@digdir/dialogporten-schema 1.0.7 → 1.0.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "author": "DigDir",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  schema {
2
- query: DialogQueries
2
+ query: Queries
3
3
  }
4
4
 
5
5
  type Activity {
@@ -34,6 +34,18 @@ type ApiActionEndpoint {
34
34
  sunsetAt: DateTime
35
35
  }
36
36
 
37
+ type AuthorizedParty {
38
+ party: String!
39
+ name: String!
40
+ partyType: String!
41
+ isDeleted: Boolean!
42
+ hasKeyRole: Boolean!
43
+ isMainAdministrator: Boolean!
44
+ isAccessManager: Boolean!
45
+ hasOnlyAccessToSubParties: Boolean!
46
+ subParties: [AuthorizedParty!]
47
+ }
48
+
37
49
  type Content {
38
50
  type: ContentType!
39
51
  value: [Localization!]!
@@ -63,11 +75,6 @@ type Dialog {
63
75
  seenSinceLastUpdate: [SeenLog!]!
64
76
  }
65
77
 
66
- type DialogQueries @authorize(policy: "enduser") {
67
- dialogById(dialogId: UUID!): Dialog!
68
- searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
69
- }
70
-
71
78
  type Element {
72
79
  id: UUID!
73
80
  type: URL
@@ -103,6 +110,12 @@ type Localization {
103
110
  cultureCode: String!
104
111
  }
105
112
 
113
+ type Queries @authorize(policy: "enduser") {
114
+ dialogById(dialogId: UUID!): Dialog!
115
+ searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
116
+ parties: [AuthorizedParty!]!
117
+ }
118
+
106
119
  type SearchDialog {
107
120
  id: UUID!
108
121
  org: String!
@@ -239,4 +252,4 @@ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time"
239
252
 
240
253
  scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")
241
254
 
242
- scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
255
+ scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "openapi": "3.0.0",
3
3
  "info": {
4
4
  "title": "Dialogporten",
@@ -1606,6 +1606,42 @@
1606
1606
  ]
1607
1607
  }
1608
1608
  },
1609
+ "/api/v1/enduser/parties": {
1610
+ "get": {
1611
+ "tags": [
1612
+ "Enduser"
1613
+ ],
1614
+ "summary": "Gets the list of authorized parties for the end user",
1615
+ "description": "Gets the list of authorized parties for the end user. For more information see the documentation (link TBD).",
1616
+ "operationId": "GetParties",
1617
+ "responses": {
1618
+ "200": {
1619
+ "description": "The list of authorized parties for the end user",
1620
+ "content": {
1621
+ "application/json": {
1622
+ "schema": {
1623
+ "type": "array",
1624
+ "items": {
1625
+ "$ref": "#/components/schemas/GetPartiesDto"
1626
+ }
1627
+ }
1628
+ }
1629
+ }
1630
+ },
1631
+ "401": {
1632
+ "description": "Unauthorized"
1633
+ },
1634
+ "403": {
1635
+ "description": "Forbidden"
1636
+ }
1637
+ },
1638
+ "security": [
1639
+ {
1640
+ "JWTBearerAuth": []
1641
+ }
1642
+ ]
1643
+ }
1644
+ },
1609
1645
  "/api/v1/enduser/dialogs/{dialogId}/seenlog": {
1610
1646
  "get": {
1611
1647
  "tags": [
@@ -3732,6 +3768,55 @@
3732
3768
  }
3733
3769
  }
3734
3770
  },
3771
+ "GetPartiesDto": {
3772
+ "type": "object",
3773
+ "additionalProperties": false,
3774
+ "properties": {
3775
+ "authorizedParties": {
3776
+ "type": "array",
3777
+ "items": {
3778
+ "$ref": "#/components/schemas/AuthorizedPartyDto"
3779
+ }
3780
+ }
3781
+ }
3782
+ },
3783
+ "AuthorizedPartyDto": {
3784
+ "type": "object",
3785
+ "additionalProperties": false,
3786
+ "properties": {
3787
+ "party": {
3788
+ "type": "string"
3789
+ },
3790
+ "name": {
3791
+ "type": "string"
3792
+ },
3793
+ "partyType": {
3794
+ "type": "string"
3795
+ },
3796
+ "isDeleted": {
3797
+ "type": "boolean"
3798
+ },
3799
+ "hasKeyRole": {
3800
+ "type": "boolean"
3801
+ },
3802
+ "isMainAdministrator": {
3803
+ "type": "boolean"
3804
+ },
3805
+ "isAccessManager": {
3806
+ "type": "boolean"
3807
+ },
3808
+ "hasOnlyAccessToSubParties": {
3809
+ "type": "boolean"
3810
+ },
3811
+ "subParties": {
3812
+ "type": "array",
3813
+ "nullable": true,
3814
+ "items": {
3815
+ "$ref": "#/components/schemas/AuthorizedPartyDto"
3816
+ }
3817
+ }
3818
+ }
3819
+ },
3735
3820
  "SearchDialogSeenLogDto": {
3736
3821
  "type": "object",
3737
3822
  "additionalProperties": false,