@nmshd/connector-tui 0.0.1-beta.4 → 0.0.1-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,13 +79,12 @@ export function AddSendRequestByMessage(Base) {
79
79
  query: {
80
80
  "@type": "RelationshipAttributeQuery",
81
81
  owner: "",
82
- valueType: result.attributeType,
83
82
  attributeCreationHints: {
84
83
  title: `A ${result.attributeType} attribute`,
85
84
  confidentiality: "public",
85
+ valueType: result.attributeType,
86
86
  },
87
87
  key: result.key,
88
- thirdParty: result.thirdParty ? result.thirdParty : undefined,
89
88
  },
90
89
  },
91
90
  ],
@@ -182,7 +181,7 @@ export function AddSendRequestByMessage(Base) {
182
181
  content: {
183
182
  items: [
184
183
  {
185
- "@type": "CreateRelationshipAttributeRequestItem",
184
+ "@type": "CreateAttributeRequestItem",
186
185
  mustBeAccepted: true,
187
186
  attribute: {
188
187
  "@type": "RelationshipAttribute",
@@ -87,8 +87,8 @@ export function AddShareRequestByTemplate(Base) {
87
87
  return createAttributeResponse.result;
88
88
  }
89
89
  async createQRCodeForRelationshipTemplate(request, name) {
90
- const templateBody = {
91
- "@type": "RelationshipTemplateBody",
90
+ const content = {
91
+ "@type": "RelationshipTemplateContent",
92
92
  title: `Kontaktanfrage mit ${name}`,
93
93
  metadata: {
94
94
  webSessionId: "12345",
@@ -96,7 +96,7 @@ export function AddShareRequestByTemplate(Base) {
96
96
  onNewRelationship: request,
97
97
  };
98
98
  const template = await this.connectorClient.relationshipTemplates.createOwnRelationshipTemplate({
99
- content: templateBody,
99
+ content,
100
100
  expiresAt: DateTime.now().plus({ days: 2 }).toISO(),
101
101
  });
102
102
  const templateId = template.result.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nmshd/connector-tui",
3
- "version": "0.0.1-beta.4",
3
+ "version": "0.0.1-beta.6",
4
4
  "repository": "github:nmshd/connector-tui",
5
5
  "license": "MIT",
6
6
  "author": "j&s-soft GmbH",
@@ -18,29 +18,30 @@
18
18
  "scripts": {
19
19
  "lint:prettier": "prettier --check ./src",
20
20
  "lint:eslint": "eslint --ext .ts ./src",
21
+ "lint": "npm run lint:prettier && npm run lint:eslint",
21
22
  "build": "tsc",
22
23
  "start": "clear && ts-node --esm --experimental-specifier-resolution node ./src/index.ts",
23
24
  "test": "echo 'no test specified'"
24
25
  },
25
26
  "dependencies": {
26
- "@nmshd/connector-sdk": "^2.0.0-beta.7",
27
+ "@nmshd/connector-sdk": "^2.0.0-beta.12",
27
28
  "chalk": "^5.0.1",
28
- "dotenv": "^16.0.2",
29
- "luxon": "^3.0.3",
29
+ "dotenv": "^16.0.3",
30
+ "luxon": "^3.0.4",
30
31
  "prompts": "^2.4.2",
31
32
  "qrcode-terminal": "^0.12.0"
32
33
  },
33
34
  "devDependencies": {
34
- "@js-soft/eslint-config-ts": "^1.6.0",
35
+ "@js-soft/eslint-config-ts": "^1.6.1",
35
36
  "@js-soft/license-check": "^1.0.5",
36
37
  "@types/luxon": "^3.0.1",
37
- "@types/node": "^18.7.15",
38
+ "@types/node": "^18.8.1",
38
39
  "@types/prompts": "^2.0.14",
39
40
  "@types/qrcode-terminal": "^0.12.0",
40
- "eslint": "^8.23.0",
41
+ "eslint": "^8.24.0",
41
42
  "prettier": "^2.7.1",
42
43
  "ts-node": "^10.9.1",
43
- "typescript": "^4.8.2"
44
+ "typescript": "^4.8.4"
44
45
  },
45
46
  "publishConfig": {
46
47
  "access": "public"