@nmshd/connector-tui 0.2.1 → 0.2.2
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.
|
@@ -295,6 +295,7 @@ export function AddSendRequestByMessage(Base) {
|
|
|
295
295
|
return requestItem;
|
|
296
296
|
}
|
|
297
297
|
async createCreateRelationshipAttributeRequestItemWithBooleanValue() {
|
|
298
|
+
const connectorAddress = (await this.connectorClient.account.getIdentityInfo()).result.address;
|
|
298
299
|
const result = await prompts([
|
|
299
300
|
{
|
|
300
301
|
message: "What's the title of the RelationshipAttribute you would like to create?",
|
|
@@ -313,13 +314,22 @@ export function AddSendRequestByMessage(Base) {
|
|
|
313
314
|
type: "toggle",
|
|
314
315
|
name: "value",
|
|
315
316
|
},
|
|
317
|
+
{
|
|
318
|
+
message: "Who will be the owner of the RelationshipAttribute?",
|
|
319
|
+
type: "select",
|
|
320
|
+
name: "owner",
|
|
321
|
+
choices: [
|
|
322
|
+
{ title: "You (Connector)", value: connectorAddress },
|
|
323
|
+
{ title: "The other Side", value: "" },
|
|
324
|
+
],
|
|
325
|
+
},
|
|
316
326
|
]);
|
|
317
327
|
const requestItem = {
|
|
318
328
|
"@type": "CreateAttributeRequestItem",
|
|
319
329
|
mustBeAccepted: true,
|
|
320
330
|
attribute: {
|
|
321
331
|
"@type": "RelationshipAttribute",
|
|
322
|
-
owner:
|
|
332
|
+
owner: result.owner,
|
|
323
333
|
key: result.key,
|
|
324
334
|
confidentiality: "public",
|
|
325
335
|
isTechnical: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/connector-tui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"repository": "github:nmshd/connector-tui",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "j&s-soft GmbH",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@nmshd/connector-sdk": "^2.2.2",
|
|
28
28
|
"chalk": "^5.3.0",
|
|
29
29
|
"dotenv": "^16.3.1",
|
|
30
|
-
"luxon": "^3.4.
|
|
30
|
+
"luxon": "^3.4.1",
|
|
31
31
|
"prompts": "^2.4.2",
|
|
32
32
|
"qrcode-terminal": "^0.12.0",
|
|
33
33
|
"yargs": "^17.7.2"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@js-soft/eslint-config-ts": "^1.6.3",
|
|
37
37
|
"@js-soft/license-check": "^1.0.6",
|
|
38
38
|
"@types/luxon": "^3.3.1",
|
|
39
|
-
"@types/node": "^20.5.
|
|
39
|
+
"@types/node": "^20.5.3",
|
|
40
40
|
"@types/prompts": "^2.4.4",
|
|
41
41
|
"@types/qrcode-terminal": "^0.12.0",
|
|
42
42
|
"@types/yargs": "^17.0.24",
|