@digdir/dialogporten-schema 1.8.1-96d50fc → 1.8.1-a635fcb

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.8.1-96d50fc",
3
+ "version": "1.8.1-a635fcb",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "author": "DigDir",
6
6
  "repository": {
@@ -16,10 +16,16 @@ type Activity {
16
16
  extendedType: URL
17
17
  type: ActivityType!
18
18
  relatedActivityId: UUID
19
- performedBy: String
19
+ performedBy: Actor!
20
20
  description: [Localization!]!
21
21
  }
22
22
 
23
+ type Actor {
24
+ actorType: ActorType
25
+ actorId: String
26
+ actorName: String
27
+ }
28
+
23
29
  type ApiAction {
24
30
  id: UUID!
25
31
  action: String!
@@ -173,8 +179,7 @@ type SearchDialogsPayload {
173
179
  type SeenLog {
174
180
  id: UUID!
175
181
  seenAt: DateTime!
176
- endUserIdHash: String!
177
- endUserName: String
182
+ seenBy: Actor!
178
183
  isCurrentEndUser: Boolean!
179
184
  }
180
185
 
@@ -224,6 +229,11 @@ enum ActivityType {
224
229
  FORWARDED
225
230
  }
226
231
 
232
+ enum ActorType {
233
+ PARTY_REPRESENTATIVE
234
+ SERVICE_OWNER
235
+ }
236
+
227
237
  enum ApplyPolicy {
228
238
  BEFORE_RESOLVER
229
239
  AFTER_RESOLVER
@@ -241,6 +251,7 @@ enum ContentType {
241
251
  SUMMARY
242
252
  ADDITIONAL_INFO
243
253
  EXTENDED_STATUS
254
+ MAIN_CONTENT_REFERENCE
244
255
  }
245
256
 
246
257
  enum DialogStatus {
@@ -230,7 +230,7 @@
230
230
  "LanguageCode": "en"
231
231
  }
232
232
  ],
233
- "MediaType": null
233
+ "MediaType": "text/plain"
234
234
  },
235
235
  {
236
236
  "Type": 3,
@@ -240,7 +240,7 @@
240
240
  "LanguageCode": "en"
241
241
  }
242
242
  ],
243
- "MediaType": null
243
+ "MediaType": "text/plain"
244
244
  }
245
245
  ],
246
246
  "SearchTags": [
@@ -319,7 +319,11 @@
319
319
  "ExtendedType": null,
320
320
  "Type": 3,
321
321
  "RelatedActivityId": null,
322
- "PerformedBy": "Some performed",
322
+ "PerformedBy": {
323
+ "ActorType": 2,
324
+ "ActorName": null,
325
+ "ActorId": null
326
+ },
323
327
  "Description": [
324
328
  {
325
329
  "Value": "Some description",
@@ -1787,15 +1791,27 @@
1787
1791
  "type": "string",
1788
1792
  "format": "date-time"
1789
1793
  },
1790
- "endUserIdHash": {
1791
- "type": "string"
1794
+ "seenBy": {
1795
+ "$ref": "#/components/schemas/SearchDialogSeenLogActorDtoSO"
1792
1796
  },
1793
- "endUserName": {
1794
- "type": "string",
1797
+ "isViaServiceOwner": {
1798
+ "type": "boolean",
1795
1799
  "nullable": true
1796
1800
  }
1797
1801
  }
1798
1802
  },
1803
+ "SearchDialogSeenLogActorDtoSO": {
1804
+ "type": "object",
1805
+ "additionalProperties": false,
1806
+ "properties": {
1807
+ "actorName": {
1808
+ "type": "string"
1809
+ },
1810
+ "actorId": {
1811
+ "type": "string"
1812
+ }
1813
+ }
1814
+ },
1799
1815
  "ProblemDetails": {
1800
1816
  "type": "object",
1801
1817
  "additionalProperties": false,
@@ -1867,15 +1883,27 @@
1867
1883
  "type": "string",
1868
1884
  "format": "date-time"
1869
1885
  },
1870
- "endUserIdHash": {
1871
- "type": "string"
1886
+ "seenBy": {
1887
+ "$ref": "#/components/schemas/GetDialogSeenLogActorDtoSO"
1872
1888
  },
1873
- "endUserName": {
1874
- "type": "string",
1889
+ "isViaServiceOwner": {
1890
+ "type": "boolean",
1875
1891
  "nullable": true
1876
1892
  }
1877
1893
  }
1878
1894
  },
1895
+ "GetDialogSeenLogActorDtoSO": {
1896
+ "type": "object",
1897
+ "additionalProperties": false,
1898
+ "properties": {
1899
+ "actorName": {
1900
+ "type": "string"
1901
+ },
1902
+ "actorId": {
1903
+ "type": "string"
1904
+ }
1905
+ }
1906
+ },
1879
1907
  "UpdateDialogRequest": {
1880
1908
  "type": "object",
1881
1909
  "additionalProperties": false,
@@ -2281,8 +2309,7 @@
2281
2309
  "nullable": true
2282
2310
  },
2283
2311
  "performedBy": {
2284
- "type": "string",
2285
- "nullable": true
2312
+ "$ref": "#/components/schemas/UpdateDialogDialogActivityActorDto"
2286
2313
  },
2287
2314
  "description": {
2288
2315
  "type": "array",
@@ -2312,6 +2339,35 @@
2312
2339
  "Forwarded"
2313
2340
  ]
2314
2341
  },
2342
+ "UpdateDialogDialogActivityActorDto": {
2343
+ "type": "object",
2344
+ "additionalProperties": false,
2345
+ "properties": {
2346
+ "actorType": {
2347
+ "$ref": "#/components/schemas/DialogActorType_Values"
2348
+ },
2349
+ "actorName": {
2350
+ "type": "string",
2351
+ "nullable": true
2352
+ },
2353
+ "actorId": {
2354
+ "type": "string",
2355
+ "nullable": true
2356
+ }
2357
+ }
2358
+ },
2359
+ "DialogActorType_Values": {
2360
+ "type": "string",
2361
+ "description": "",
2362
+ "x-enumNames": [
2363
+ "PartyRepresentative",
2364
+ "ServiceOwner"
2365
+ ],
2366
+ "enum": [
2367
+ "PartyRepresentative",
2368
+ "ServiceOwner"
2369
+ ]
2370
+ },
2315
2371
  "PaginatedListOfSearchDialogDtoSO": {
2316
2372
  "type": "object",
2317
2373
  "additionalProperties": false,
@@ -2363,6 +2419,11 @@
2363
2419
  "format": "int32",
2364
2420
  "nullable": true
2365
2421
  },
2422
+ "guiAttachmentCount": {
2423
+ "type": "integer",
2424
+ "format": "int32",
2425
+ "nullable": true
2426
+ },
2366
2427
  "extendedStatus": {
2367
2428
  "type": "string",
2368
2429
  "nullable": true
@@ -2388,6 +2449,14 @@
2388
2449
  "status": {
2389
2450
  "$ref": "#/components/schemas/DialogStatus_Values"
2390
2451
  },
2452
+ "latestActivity": {
2453
+ "nullable": true,
2454
+ "oneOf": [
2455
+ {
2456
+ "$ref": "#/components/schemas/SearchDialogDialogActivityDtoSO"
2457
+ }
2458
+ ]
2459
+ },
2391
2460
  "content": {
2392
2461
  "type": "array",
2393
2462
  "items": {
@@ -2402,6 +2471,60 @@
2402
2471
  }
2403
2472
  }
2404
2473
  },
2474
+ "SearchDialogDialogActivityDtoSO": {
2475
+ "type": "object",
2476
+ "additionalProperties": false,
2477
+ "properties": {
2478
+ "id": {
2479
+ "type": "string",
2480
+ "format": "guid"
2481
+ },
2482
+ "createdAt": {
2483
+ "type": "string",
2484
+ "format": "date-time",
2485
+ "nullable": true
2486
+ },
2487
+ "extendedType": {
2488
+ "type": "string",
2489
+ "format": "uri",
2490
+ "nullable": true
2491
+ },
2492
+ "type": {
2493
+ "$ref": "#/components/schemas/DialogActivityType_Values"
2494
+ },
2495
+ "relatedActivityId": {
2496
+ "type": "string",
2497
+ "format": "guid",
2498
+ "nullable": true
2499
+ },
2500
+ "performedBy": {
2501
+ "$ref": "#/components/schemas/SearchDialogDialogActivityActorDtoSO"
2502
+ },
2503
+ "description": {
2504
+ "type": "array",
2505
+ "items": {
2506
+ "$ref": "#/components/schemas/LocalizationDto"
2507
+ }
2508
+ }
2509
+ }
2510
+ },
2511
+ "SearchDialogDialogActivityActorDtoSO": {
2512
+ "type": "object",
2513
+ "additionalProperties": false,
2514
+ "properties": {
2515
+ "actorType": {
2516
+ "$ref": "#/components/schemas/DialogActorType_Values"
2517
+ },
2518
+ "actorName": {
2519
+ "type": "string",
2520
+ "nullable": true
2521
+ },
2522
+ "actorId": {
2523
+ "type": "string",
2524
+ "nullable": true
2525
+ }
2526
+ }
2527
+ },
2405
2528
  "SearchDialogContentDtoSO": {
2406
2529
  "type": "object",
2407
2530
  "additionalProperties": false,
@@ -2425,20 +2548,31 @@
2425
2548
  "type": "string",
2426
2549
  "format": "guid"
2427
2550
  },
2428
- "createdAt": {
2551
+ "seenAt": {
2429
2552
  "type": "string",
2430
2553
  "format": "date-time"
2431
2554
  },
2432
- "endUserIdHash": {
2433
- "type": "string"
2555
+ "seenBy": {
2556
+ "$ref": "#/components/schemas/SearchDialogDialogSeenLogActorDtoSO"
2434
2557
  },
2435
- "endUserName": {
2436
- "type": "string",
2558
+ "isViaServiceOwner": {
2559
+ "type": "boolean",
2437
2560
  "nullable": true
2438
2561
  },
2439
2562
  "isCurrentEndUser": {
2440
- "type": "boolean",
2441
- "nullable": true
2563
+ "type": "boolean"
2564
+ }
2565
+ }
2566
+ },
2567
+ "SearchDialogDialogSeenLogActorDtoSO": {
2568
+ "type": "object",
2569
+ "additionalProperties": false,
2570
+ "properties": {
2571
+ "actorName": {
2572
+ "type": "string"
2573
+ },
2574
+ "actorId": {
2575
+ "type": "string"
2442
2576
  }
2443
2577
  }
2444
2578
  },
@@ -2765,8 +2899,7 @@
2765
2899
  "nullable": true
2766
2900
  },
2767
2901
  "performedBy": {
2768
- "type": "string",
2769
- "nullable": true
2902
+ "$ref": "#/components/schemas/GetDialogDialogActivityActorDtoSO"
2770
2903
  },
2771
2904
  "description": {
2772
2905
  "type": "array",
@@ -2776,6 +2909,23 @@
2776
2909
  }
2777
2910
  }
2778
2911
  },
2912
+ "GetDialogDialogActivityActorDtoSO": {
2913
+ "type": "object",
2914
+ "additionalProperties": false,
2915
+ "properties": {
2916
+ "actorType": {
2917
+ "$ref": "#/components/schemas/DialogActorType_Values"
2918
+ },
2919
+ "actorName": {
2920
+ "type": "string",
2921
+ "nullable": true
2922
+ },
2923
+ "actorId": {
2924
+ "type": "string",
2925
+ "nullable": true
2926
+ }
2927
+ }
2928
+ },
2779
2929
  "GetDialogDialogSeenLogDtoSO": {
2780
2930
  "type": "object",
2781
2931
  "additionalProperties": false,
@@ -2784,20 +2934,27 @@
2784
2934
  "type": "string",
2785
2935
  "format": "guid"
2786
2936
  },
2787
- "createdAt": {
2937
+ "seenAt": {
2788
2938
  "type": "string",
2789
2939
  "format": "date-time"
2790
2940
  },
2791
- "endUserIdHash": {
2792
- "type": "string"
2941
+ "seenBy": {
2942
+ "$ref": "#/components/schemas/GetDialogDialogSeenLogActorDtoSO"
2793
2943
  },
2794
- "endUserName": {
2795
- "type": "string",
2796
- "nullable": true
2944
+ "isViaServiceOwner": {
2945
+ "type": "boolean"
2946
+ }
2947
+ }
2948
+ },
2949
+ "GetDialogDialogSeenLogActorDtoSO": {
2950
+ "type": "object",
2951
+ "additionalProperties": false,
2952
+ "properties": {
2953
+ "actorName": {
2954
+ "type": "string"
2797
2955
  },
2798
- "isCurrentEndUser": {
2799
- "type": "boolean",
2800
- "nullable": true
2956
+ "actorId": {
2957
+ "type": "string"
2801
2958
  }
2802
2959
  }
2803
2960
  },
@@ -3084,8 +3241,7 @@
3084
3241
  "nullable": true
3085
3242
  },
3086
3243
  "performedBy": {
3087
- "type": "string",
3088
- "nullable": true
3244
+ "$ref": "#/components/schemas/CreateDialogDialogActivityActorDto"
3089
3245
  },
3090
3246
  "description": {
3091
3247
  "type": "array",
@@ -3095,6 +3251,23 @@
3095
3251
  }
3096
3252
  }
3097
3253
  },
3254
+ "CreateDialogDialogActivityActorDto": {
3255
+ "type": "object",
3256
+ "additionalProperties": false,
3257
+ "properties": {
3258
+ "actorType": {
3259
+ "$ref": "#/components/schemas/DialogActorType_Values"
3260
+ },
3261
+ "actorName": {
3262
+ "type": "string",
3263
+ "nullable": true
3264
+ },
3265
+ "actorId": {
3266
+ "type": "string",
3267
+ "nullable": true
3268
+ }
3269
+ }
3270
+ },
3098
3271
  "CreateDialogActivityRequest": {
3099
3272
  "type": "object",
3100
3273
  "additionalProperties": false,
@@ -3123,8 +3296,7 @@
3123
3296
  "nullable": true
3124
3297
  },
3125
3298
  "performedBy": {
3126
- "type": "string",
3127
- "nullable": true
3299
+ "$ref": "#/components/schemas/UpdateDialogDialogActivityActorDto"
3128
3300
  },
3129
3301
  "description": {
3130
3302
  "type": "array",
@@ -3195,18 +3367,29 @@
3195
3367
  "type": "string",
3196
3368
  "format": "date-time"
3197
3369
  },
3198
- "endUserIdHash": {
3199
- "type": "string"
3370
+ "seenBy": {
3371
+ "$ref": "#/components/schemas/SearchDialogSeenLogSeenByDto"
3200
3372
  },
3201
- "endUserName": {
3202
- "type": "string",
3203
- "nullable": true
3373
+ "isViaServiceOwner": {
3374
+ "type": "boolean"
3204
3375
  },
3205
3376
  "isCurrentEndUser": {
3206
3377
  "type": "boolean"
3207
3378
  }
3208
3379
  }
3209
3380
  },
3381
+ "SearchDialogSeenLogSeenByDto": {
3382
+ "type": "object",
3383
+ "additionalProperties": false,
3384
+ "properties": {
3385
+ "actorName": {
3386
+ "type": "string"
3387
+ },
3388
+ "actorId": {
3389
+ "type": "string"
3390
+ }
3391
+ }
3392
+ },
3210
3393
  "GetDialogSeenLogDto": {
3211
3394
  "type": "object",
3212
3395
  "additionalProperties": false,
@@ -3219,18 +3402,29 @@
3219
3402
  "type": "string",
3220
3403
  "format": "date-time"
3221
3404
  },
3222
- "endUserIdHash": {
3223
- "type": "string"
3405
+ "seenBy": {
3406
+ "$ref": "#/components/schemas/GetDialogSeenLogActorDto"
3224
3407
  },
3225
- "endUserName": {
3226
- "type": "string",
3227
- "nullable": true
3408
+ "isViaServiceOwner": {
3409
+ "type": "boolean"
3228
3410
  },
3229
3411
  "isCurrentEndUser": {
3230
3412
  "type": "boolean"
3231
3413
  }
3232
3414
  }
3233
3415
  },
3416
+ "GetDialogSeenLogActorDto": {
3417
+ "type": "object",
3418
+ "additionalProperties": false,
3419
+ "properties": {
3420
+ "actorName": {
3421
+ "type": "string"
3422
+ },
3423
+ "actorId": {
3424
+ "type": "string"
3425
+ }
3426
+ }
3427
+ },
3234
3428
  "PaginatedListOfSearchDialogDto": {
3235
3429
  "type": "object",
3236
3430
  "additionalProperties": false,
@@ -3352,8 +3546,7 @@
3352
3546
  "nullable": true
3353
3547
  },
3354
3548
  "performedBy": {
3355
- "type": "string",
3356
- "nullable": true
3549
+ "$ref": "#/components/schemas/SearchDialogDialogActivityActorDto"
3357
3550
  },
3358
3551
  "description": {
3359
3552
  "type": "array",
@@ -3363,6 +3556,23 @@
3363
3556
  }
3364
3557
  }
3365
3558
  },
3559
+ "SearchDialogDialogActivityActorDto": {
3560
+ "type": "object",
3561
+ "additionalProperties": false,
3562
+ "properties": {
3563
+ "actorType": {
3564
+ "$ref": "#/components/schemas/DialogActorType_Values"
3565
+ },
3566
+ "actorName": {
3567
+ "type": "string",
3568
+ "nullable": true
3569
+ },
3570
+ "actorId": {
3571
+ "type": "string",
3572
+ "nullable": true
3573
+ }
3574
+ }
3575
+ },
3366
3576
  "SearchDialogContentDto": {
3367
3577
  "type": "object",
3368
3578
  "additionalProperties": false,
@@ -3390,11 +3600,11 @@
3390
3600
  "type": "string",
3391
3601
  "format": "date-time"
3392
3602
  },
3393
- "endUserIdHash": {
3394
- "type": "string"
3603
+ "seenBy": {
3604
+ "$ref": "#/components/schemas/SearchDialogDialogSeenLogActorDto"
3395
3605
  },
3396
- "endUserName": {
3397
- "type": "string",
3606
+ "isViaServiceOwner": {
3607
+ "type": "boolean",
3398
3608
  "nullable": true
3399
3609
  },
3400
3610
  "isCurrentEndUser": {
@@ -3402,6 +3612,18 @@
3402
3612
  }
3403
3613
  }
3404
3614
  },
3615
+ "SearchDialogDialogSeenLogActorDto": {
3616
+ "type": "object",
3617
+ "additionalProperties": false,
3618
+ "properties": {
3619
+ "actorName": {
3620
+ "type": "string"
3621
+ },
3622
+ "actorId": {
3623
+ "type": "string"
3624
+ }
3625
+ }
3626
+ },
3405
3627
  "GetDialogDto": {
3406
3628
  "type": "object",
3407
3629
  "additionalProperties": false,
@@ -3712,8 +3934,7 @@
3712
3934
  "nullable": true
3713
3935
  },
3714
3936
  "performedBy": {
3715
- "type": "string",
3716
- "nullable": true
3937
+ "$ref": "#/components/schemas/GetDialogDialogActivityActorDto"
3717
3938
  },
3718
3939
  "description": {
3719
3940
  "type": "array",
@@ -3723,6 +3944,23 @@
3723
3944
  }
3724
3945
  }
3725
3946
  },
3947
+ "GetDialogDialogActivityActorDto": {
3948
+ "type": "object",
3949
+ "additionalProperties": false,
3950
+ "properties": {
3951
+ "actorType": {
3952
+ "$ref": "#/components/schemas/DialogActorType_Values"
3953
+ },
3954
+ "actorName": {
3955
+ "type": "string",
3956
+ "nullable": true
3957
+ },
3958
+ "actorId": {
3959
+ "type": "string",
3960
+ "nullable": true
3961
+ }
3962
+ }
3963
+ },
3726
3964
  "GetDialogDialogSeenLogDto": {
3727
3965
  "type": "object",
3728
3966
  "additionalProperties": false,
@@ -3735,11 +3973,11 @@
3735
3973
  "type": "string",
3736
3974
  "format": "date-time"
3737
3975
  },
3738
- "endUserIdHash": {
3739
- "type": "string"
3976
+ "seenBy": {
3977
+ "$ref": "#/components/schemas/GetDialogDialogSeenLogActorDto"
3740
3978
  },
3741
- "endUserName": {
3742
- "type": "string",
3979
+ "isViaServiceOwner": {
3980
+ "type": "boolean",
3743
3981
  "nullable": true
3744
3982
  },
3745
3983
  "isCurrentEndUser": {
@@ -3747,6 +3985,18 @@
3747
3985
  }
3748
3986
  }
3749
3987
  },
3988
+ "GetDialogDialogSeenLogActorDto": {
3989
+ "type": "object",
3990
+ "additionalProperties": false,
3991
+ "properties": {
3992
+ "actorName": {
3993
+ "type": "string"
3994
+ },
3995
+ "actorId": {
3996
+ "type": "string"
3997
+ }
3998
+ }
3999
+ },
3750
4000
  "Operation": {
3751
4001
  "type": "object",
3752
4002
  "additionalProperties": false,