@nmshd/runtime 2.0.0-alpha.34 → 2.0.0-alpha.37

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.
Files changed (39) hide show
  1. package/dist/buildInformation.js +4 -4
  2. package/dist/dataViews/DataViewExpander.js +4 -4
  3. package/dist/dataViews/DataViewExpander.js.map +1 -1
  4. package/dist/modules/RequestModule.js +12 -11
  5. package/dist/modules/RequestModule.js.map +1 -1
  6. package/dist/useCases/common/Schemas.js +899 -207
  7. package/dist/useCases/common/Schemas.js.map +1 -1
  8. package/dist/useCases/consumption/attributes/GetAttributes.d.ts +15 -22
  9. package/dist/useCases/consumption/attributes/GetAttributes.js +1 -1
  10. package/dist/useCases/consumption/attributes/GetAttributes.js.map +1 -1
  11. package/dist/useCases/consumption/drafts/GetDrafts.d.ts +6 -1
  12. package/dist/useCases/consumption/drafts/GetDrafts.js.map +1 -1
  13. package/dist/useCases/consumption/requests/CompleteIncomingRequest.js +1 -1
  14. package/dist/useCases/consumption/requests/CompleteIncomingRequest.js.map +1 -1
  15. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js +1 -1
  16. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js.map +1 -1
  17. package/dist/useCases/consumption/requests/GetIncomingRequests.d.ts +14 -31
  18. package/dist/useCases/consumption/requests/GetIncomingRequests.js.map +1 -1
  19. package/dist/useCases/consumption/requests/GetOutgoingRequests.d.ts +14 -31
  20. package/dist/useCases/consumption/requests/GetOutgoingRequests.js.map +1 -1
  21. package/dist/useCases/consumption/settings/GetSettings.d.ts +10 -1
  22. package/dist/useCases/consumption/settings/GetSettings.js.map +1 -1
  23. package/dist/useCases/transport/files/GetFiles.d.ts +13 -1
  24. package/dist/useCases/transport/files/GetFiles.js.map +1 -1
  25. package/dist/useCases/transport/messages/GetMessages.d.ts +12 -0
  26. package/dist/useCases/transport/messages/GetMessages.js +7 -3
  27. package/dist/useCases/transport/messages/GetMessages.js.map +1 -1
  28. package/dist/useCases/transport/relationshipTemplates/GetRelationshipTemplates.d.ts +9 -0
  29. package/dist/useCases/transport/relationshipTemplates/GetRelationshipTemplates.js.map +1 -1
  30. package/dist/useCases/transport/relationships/GetRelationships.d.ts +6 -1
  31. package/dist/useCases/transport/relationships/GetRelationships.js +0 -1
  32. package/dist/useCases/transport/relationships/GetRelationships.js.map +1 -1
  33. package/dist/useCases/transport/tokens/GetTokens.d.ts +7 -1
  34. package/dist/useCases/transport/tokens/GetTokens.js.map +1 -1
  35. package/lib-web/nmshd.runtime.js +914 -218
  36. package/lib-web/nmshd.runtime.js.map +1 -1
  37. package/lib-web/nmshd.runtime.min.js +1 -1
  38. package/lib-web/nmshd.runtime.min.js.map +1 -1
  39. package/package.json +7 -7
@@ -436,10 +436,10 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
436
436
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
437
437
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
438
438
  exports.buildInformation = {
439
- version: "2.0.0-alpha.34",
440
- build: "83",
441
- date: "2022-07-14T11:29:58+00:00",
442
- commit: "3659ab0d22cad598cb0cc53157fc58ea30990902",
439
+ version: "2.0.0-alpha.37",
440
+ build: "86",
441
+ date: "2022-07-19T12:35:03+00:00",
442
+ commit: "433825837ad2288ce82b696a9eae52186976f925",
443
443
  dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.3","@js-soft/ts-utils":"^2.0.1","@nmshd/consumption":"2.0.0-alpha.29","@nmshd/content":"2.0.0-alpha.44","@nmshd/crypto":"2.0.1","@nmshd/transport":"2.0.0-alpha.3","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","fluent-ts-validator":"3.0.3","json-stringify-safe":"^5.0.1","luxon":"^2.4.0","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
444
444
  libraries: {
445
445
  serval: ts_serval_1.buildInformation,
@@ -627,7 +627,7 @@ let DataViewExpander = class DataViewExpander {
627
627
  let localRequest;
628
628
  if (isOwn) {
629
629
  const localRequestsResult = await this.consumption.outgoingRequests.getRequests({
630
- query: { source: { reference: message.id } }
630
+ query: { "source.reference": message.id }
631
631
  });
632
632
  if (localRequestsResult.value.length === 0) {
633
633
  throw new Error("No LocalRequest has been found for this message id.");
@@ -639,7 +639,7 @@ let DataViewExpander = class DataViewExpander {
639
639
  }
640
640
  else {
641
641
  const localRequestsResult = await this.consumption.incomingRequests.getRequests({
642
- query: { source: { reference: message.id } }
642
+ query: { "source.reference": message.id }
643
643
  });
644
644
  if (localRequestsResult.value.length === 0) {
645
645
  throw new Error("No LocalRequest has been found for this message id.");
@@ -708,7 +708,7 @@ let DataViewExpander = class DataViewExpander {
708
708
  if (!template.isOwn) {
709
709
  const onNewRelationshipRequest = await this.consumption.incomingRequests.getRequests({
710
710
  query: {
711
- source: { reference: template.id }
711
+ "source.reference": template.id
712
712
  }
713
713
  });
714
714
  localRequest = onNewRelationshipRequest.value[0];
@@ -980,7 +980,7 @@ let DataViewExpander = class DataViewExpander {
980
980
  tags: []
981
981
  };
982
982
  }
983
- const sharedToPeerAttributes = await this.consumption.attributes.getAttributes({ query: { shareInfo: { sourceAttribute: attribute.id } } });
983
+ const sharedToPeerAttributes = await this.consumption.attributes.getAttributes({ query: { "shareInfo.sourceAttribute": attribute.id } });
984
984
  const sharedToPeerDVOs = await this.expandLocalAttributeDTOs(sharedToPeerAttributes.value);
985
985
  // Own Source Attribute
986
986
  return {
@@ -4003,8 +4003,9 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4003
4003
  case "Response":
4004
4004
  const receivedResponse = event.data.content;
4005
4005
  const result = await services.consumptionServices.outgoingRequests.complete({ receivedResponse, messageId: event.data.id });
4006
- if (result.isError)
4007
- this.logger.error(`Could not complete outgoing request for message id ${event.data.id} due to ${result.error}`);
4006
+ if (result.isError) {
4007
+ this.logger.error(`Could not complete outgoing request for message id ${event.data.id} due to ${result.error}. Root error:`, result.error);
4008
+ }
4008
4009
  break;
4009
4010
  }
4010
4011
  }
@@ -4016,19 +4017,19 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4016
4017
  const request = message.content;
4017
4018
  const requestResult = await services.consumptionServices.outgoingRequests.sent({ requestId: request.id, messageId: message.id });
4018
4019
  if (requestResult.isError) {
4019
- this.logger.error(`Could not mark request '${request.id}' as sent using message '${message.id}'.`);
4020
+ this.logger.error(`Could not mark request '${request.id}' as sent using message '${message.id}'. Root error:`, requestResult.error);
4020
4021
  return;
4021
4022
  }
4022
4023
  }
4023
4024
  async createIncomingRequest(services, request, requestSourceId) {
4024
4025
  const receivedRequestResult = await services.consumptionServices.incomingRequests.received({ receivedRequest: request, requestSourceId });
4025
4026
  if (receivedRequestResult.isError) {
4026
- this.logger.error(`Could not receive request ${request.id}`, receivedRequestResult.error);
4027
+ this.logger.error(`Could not receive request ${request.id}. Root error:`, receivedRequestResult.error);
4027
4028
  return;
4028
4029
  }
4029
4030
  const checkPrerequitesResult = await services.consumptionServices.incomingRequests.checkPrerequisites({ requestId: receivedRequestResult.value.id });
4030
4031
  if (checkPrerequitesResult.isError) {
4031
- this.logger.error(`Could not check prerequisites for request ${request.id}`, checkPrerequitesResult.error);
4032
+ this.logger.error(`Could not check prerequisites for request ${request.id}. Root error:`, checkPrerequitesResult.error);
4032
4033
  return;
4033
4034
  }
4034
4035
  }
@@ -4056,7 +4057,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4056
4057
  const services = this.runtime.getServices(event.eventTargetAddress);
4057
4058
  const templateResult = await services.transportServices.relationshipTemplates.getRelationshipTemplate({ id: templateId });
4058
4059
  if (templateResult.isError) {
4059
- this.logger.error(`Could not find template with id '${templateId}'.`);
4060
+ this.logger.error(`Could not find template with id '${templateId}'. Root error:`, templateResult.error);
4060
4061
  // TODO: error state
4061
4062
  return;
4062
4063
  }
@@ -4068,7 +4069,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4068
4069
  });
4069
4070
  const createRelationshipResult = await services.transportServices.relationships.createRelationship({ templateId, content: creationChangeBody });
4070
4071
  if (createRelationshipResult.isError) {
4071
- this.logger.error(`Could not create relationship for templateId '${templateId}'.`);
4072
+ this.logger.error(`Could not create relationship for templateId '${templateId}'. Root error:`, createRelationshipResult.error);
4072
4073
  // TODO: error state
4073
4074
  return;
4074
4075
  }
@@ -4078,7 +4079,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4078
4079
  responseSourceId: createRelationshipResult.value.changes[0].id
4079
4080
  });
4080
4081
  if (completeRequestResult.isError) {
4081
- this.logger.error(`Could not complete the request '${requestId}'.`);
4082
+ this.logger.error(`Could not complete the request '${requestId}'. Root error:`, completeRequestResult.error);
4082
4083
  return;
4083
4084
  }
4084
4085
  }
@@ -4091,7 +4092,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4091
4092
  content: request.response.content
4092
4093
  });
4093
4094
  if (sendMessageResult.isError) {
4094
- this.logger.error(`Could not send message to answer the request '${requestId}'.`);
4095
+ this.logger.error(`Could not send message to answer the request '${requestId}'.`, sendMessageResult.error);
4095
4096
  // TODO: error state
4096
4097
  return;
4097
4098
  }
@@ -4100,7 +4101,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4100
4101
  responseSourceId: sendMessageResult.value.id
4101
4102
  });
4102
4103
  if (completeRequestResult.isError) {
4103
- this.logger.error(`Could not complete the request '${requestId}'.`);
4104
+ this.logger.error(`Could not complete the request '${requestId}'. Root error:`, completeRequestResult.error);
4104
4105
  return;
4105
4106
  }
4106
4107
  }
@@ -4122,7 +4123,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
4122
4123
  return;
4123
4124
  const result = await services.consumptionServices.outgoingRequests.createAndCompleteFromRelationshipCreationChange({ templateId, relationshipChangeId });
4124
4125
  if (result.isError) {
4125
- this.logger.error(`Could not create and complete request for templateId '${templateId}' and changeId '${relationshipChangeId}'.`, result.error);
4126
+ this.logger.error(`Could not create and complete request for templateId '${templateId}' and changeId '${relationshipChangeId}'. Root error:`, result.error);
4126
4127
  return;
4127
4128
  }
4128
4129
  }
@@ -5814,86 +5815,203 @@ exports.GetAttributesRequest = {
5814
5815
  "createdAt": {
5815
5816
  "type": "string"
5816
5817
  },
5817
- "content": {
5818
- "type": "object",
5819
- "properties": {
5820
- "@type": {
5818
+ "content.@type": {
5819
+ "anyOf": [
5820
+ {
5821
5821
  "type": "string"
5822
5822
  },
5823
- "tags": {
5823
+ {
5824
5824
  "type": "array",
5825
5825
  "items": {
5826
5826
  "type": "string"
5827
5827
  }
5828
+ }
5829
+ ]
5830
+ },
5831
+ "content.tags": {
5832
+ "anyOf": [
5833
+ {
5834
+ "type": "string"
5828
5835
  },
5829
- "owner": {
5836
+ {
5837
+ "type": "array",
5838
+ "items": {
5839
+ "type": "string"
5840
+ }
5841
+ }
5842
+ ]
5843
+ },
5844
+ "content.owner": {
5845
+ "anyOf": [
5846
+ {
5830
5847
  "type": "string"
5831
5848
  },
5832
- "validFrom": {
5849
+ {
5850
+ "type": "array",
5851
+ "items": {
5852
+ "type": "string"
5853
+ }
5854
+ }
5855
+ ]
5856
+ },
5857
+ "content.validFrom": {
5858
+ "anyOf": [
5859
+ {
5833
5860
  "type": "string"
5834
5861
  },
5835
- "validTo": {
5862
+ {
5863
+ "type": "array",
5864
+ "items": {
5865
+ "type": "string"
5866
+ }
5867
+ }
5868
+ ]
5869
+ },
5870
+ "content.validTo": {
5871
+ "anyOf": [
5872
+ {
5836
5873
  "type": "string"
5837
5874
  },
5838
- "key": {
5875
+ {
5876
+ "type": "array",
5877
+ "items": {
5878
+ "type": "string"
5879
+ }
5880
+ }
5881
+ ]
5882
+ },
5883
+ "content.key": {
5884
+ "anyOf": [
5885
+ {
5839
5886
  "type": "string"
5840
5887
  },
5841
- "isTechnical": {
5842
- "type": "boolean"
5888
+ {
5889
+ "type": "array",
5890
+ "items": {
5891
+ "type": "string"
5892
+ }
5893
+ }
5894
+ ]
5895
+ },
5896
+ "content.isTechnical": {
5897
+ "anyOf": [
5898
+ {
5899
+ "type": "string"
5843
5900
  },
5844
- "confidentiality": {
5845
- "$ref": "#/definitions/RelationshipAttributeConfidentiality"
5901
+ {
5902
+ "type": "array",
5903
+ "items": {
5904
+ "type": "string"
5905
+ }
5906
+ }
5907
+ ]
5908
+ },
5909
+ "content.confidentiality": {
5910
+ "anyOf": [
5911
+ {
5912
+ "type": "string"
5846
5913
  },
5847
- "value": {
5848
- "type": "object",
5849
- "properties": {
5850
- "@type": {
5851
- "type": "string"
5852
- }
5853
- },
5854
- "additionalProperties": false
5914
+ {
5915
+ "type": "array",
5916
+ "items": {
5917
+ "type": "string"
5918
+ }
5855
5919
  }
5856
- },
5857
- "additionalProperties": false
5920
+ ]
5921
+ },
5922
+ "content.value.@type": {
5923
+ "anyOf": [
5924
+ {
5925
+ "type": "string"
5926
+ },
5927
+ {
5928
+ "type": "array",
5929
+ "items": {
5930
+ "type": "string"
5931
+ }
5932
+ }
5933
+ ]
5858
5934
  },
5859
5935
  "succeeds": {
5860
- "type": "string"
5936
+ "anyOf": [
5937
+ {
5938
+ "type": "string"
5939
+ },
5940
+ {
5941
+ "type": "array",
5942
+ "items": {
5943
+ "type": "string"
5944
+ }
5945
+ }
5946
+ ]
5861
5947
  },
5862
5948
  "succeededBy": {
5863
- "type": "string"
5949
+ "anyOf": [
5950
+ {
5951
+ "type": "string"
5952
+ },
5953
+ {
5954
+ "type": "array",
5955
+ "items": {
5956
+ "type": "string"
5957
+ }
5958
+ }
5959
+ ]
5864
5960
  },
5865
5961
  "shareInfo": {
5866
5962
  "anyOf": [
5867
5963
  {
5868
- "type": "object",
5869
- "properties": {
5870
- "requestReference": {
5871
- "type": "string"
5872
- },
5873
- "peer": {
5874
- "type": "string"
5875
- },
5876
- "sourceAttribute": {
5877
- "type": "string"
5878
- }
5879
- },
5880
- "additionalProperties": false
5964
+ "type": "string"
5965
+ },
5966
+ {
5967
+ "type": "array",
5968
+ "items": {
5969
+ "type": "string"
5970
+ }
5971
+ }
5972
+ ]
5973
+ },
5974
+ "shareInfo.requestReference": {
5975
+ "anyOf": [
5976
+ {
5977
+ "type": "string"
5978
+ },
5979
+ {
5980
+ "type": "array",
5981
+ "items": {
5982
+ "type": "string"
5983
+ }
5984
+ }
5985
+ ]
5986
+ },
5987
+ "shareInfo.peer": {
5988
+ "anyOf": [
5989
+ {
5990
+ "type": "string"
5881
5991
  },
5992
+ {
5993
+ "type": "array",
5994
+ "items": {
5995
+ "type": "string"
5996
+ }
5997
+ }
5998
+ ]
5999
+ },
6000
+ "shareInfo.sourceAttribute": {
6001
+ "anyOf": [
5882
6002
  {
5883
6003
  "type": "string"
6004
+ },
6005
+ {
6006
+ "type": "array",
6007
+ "items": {
6008
+ "type": "string"
6009
+ }
5884
6010
  }
5885
6011
  ]
5886
6012
  }
5887
6013
  },
5888
- "additionalProperties": {}
5889
- },
5890
- "RelationshipAttributeConfidentiality": {
5891
- "type": "string",
5892
- "enum": [
5893
- "public",
5894
- "private",
5895
- "protected"
5896
- ]
6014
+ "additionalProperties": false
5897
6015
  }
5898
6016
  }
5899
6017
  };
@@ -6339,7 +6457,54 @@ exports.GetDraftsRequest = {
6339
6457
  "GetDraftsRequest": {
6340
6458
  "type": "object",
6341
6459
  "properties": {
6342
- "query": {}
6460
+ "query": {
6461
+ "$ref": "#/definitions/GetDraftsQuery"
6462
+ }
6463
+ },
6464
+ "additionalProperties": false
6465
+ },
6466
+ "GetDraftsQuery": {
6467
+ "type": "object",
6468
+ "properties": {
6469
+ "type": {
6470
+ "anyOf": [
6471
+ {
6472
+ "type": "string"
6473
+ },
6474
+ {
6475
+ "type": "array",
6476
+ "items": {
6477
+ "type": "string"
6478
+ }
6479
+ }
6480
+ ]
6481
+ },
6482
+ "createdAt": {
6483
+ "anyOf": [
6484
+ {
6485
+ "type": "string"
6486
+ },
6487
+ {
6488
+ "type": "array",
6489
+ "items": {
6490
+ "type": "string"
6491
+ }
6492
+ }
6493
+ ]
6494
+ },
6495
+ "lastModifiedAt": {
6496
+ "anyOf": [
6497
+ {
6498
+ "type": "string"
6499
+ },
6500
+ {
6501
+ "type": "array",
6502
+ "items": {
6503
+ "type": "string"
6504
+ }
6505
+ }
6506
+ ]
6507
+ }
6343
6508
  },
6344
6509
  "additionalProperties": false
6345
6510
  }
@@ -8238,97 +8403,189 @@ exports.GetIncomingRequestsRequest = {
8238
8403
  "type": "object",
8239
8404
  "properties": {
8240
8405
  "id": {
8241
- "type": "string"
8406
+ "anyOf": [
8407
+ {
8408
+ "type": "string"
8409
+ },
8410
+ {
8411
+ "type": "array",
8412
+ "items": {
8413
+ "type": "string"
8414
+ }
8415
+ }
8416
+ ]
8242
8417
  },
8243
8418
  "peer": {
8244
- "type": "string"
8245
- },
8246
- "createdAt": {
8247
- "type": "string"
8419
+ "anyOf": [
8420
+ {
8421
+ "type": "string"
8422
+ },
8423
+ {
8424
+ "type": "array",
8425
+ "items": {
8426
+ "type": "string"
8427
+ }
8428
+ }
8429
+ ]
8430
+ },
8431
+ "createdAt": {
8432
+ "anyOf": [
8433
+ {
8434
+ "type": "string"
8435
+ },
8436
+ {
8437
+ "type": "array",
8438
+ "items": {
8439
+ "type": "string"
8440
+ }
8441
+ }
8442
+ ]
8248
8443
  },
8249
8444
  "status": {
8250
- "type": "string"
8445
+ "anyOf": [
8446
+ {
8447
+ "type": "string"
8448
+ },
8449
+ {
8450
+ "type": "array",
8451
+ "items": {
8452
+ "type": "string"
8453
+ }
8454
+ }
8455
+ ]
8251
8456
  },
8252
- "content": {
8253
- "type": "object",
8254
- "properties": {
8255
- "expiresAt": {
8457
+ "content.expiresAt": {
8458
+ "anyOf": [
8459
+ {
8256
8460
  "type": "string"
8257
8461
  },
8258
- "items": {
8259
- "type": "object",
8260
- "properties": {
8261
- "@type": {
8262
- "type": "string"
8263
- }
8264
- },
8265
- "additionalProperties": false
8462
+ {
8463
+ "type": "array",
8464
+ "items": {
8465
+ "type": "string"
8466
+ }
8266
8467
  }
8267
- },
8268
- "additionalProperties": false
8468
+ ]
8269
8469
  },
8270
- "source": {
8271
- "type": "object",
8272
- "properties": {
8273
- "type": {
8470
+ "content.items.@type": {
8471
+ "anyOf": [
8472
+ {
8274
8473
  "type": "string"
8275
8474
  },
8276
- "reference": {
8475
+ {
8476
+ "type": "array",
8477
+ "items": {
8478
+ "type": "string"
8479
+ }
8480
+ }
8481
+ ]
8482
+ },
8483
+ "source.type": {
8484
+ "anyOf": [
8485
+ {
8277
8486
  "type": "string"
8487
+ },
8488
+ {
8489
+ "type": "array",
8490
+ "items": {
8491
+ "type": "string"
8492
+ }
8278
8493
  }
8279
- },
8280
- "additionalProperties": false
8494
+ ]
8281
8495
  },
8282
- "response": {
8283
- "type": "object",
8284
- "properties": {
8285
- "createdAt": {
8496
+ "source.reference": {
8497
+ "anyOf": [
8498
+ {
8286
8499
  "type": "string"
8287
8500
  },
8288
- "source": {
8289
- "type": "object",
8290
- "properties": {
8291
- "type": {
8292
- "type": "string"
8293
- },
8294
- "reference": {
8295
- "type": "string"
8296
- }
8297
- },
8298
- "additionalProperties": false
8501
+ {
8502
+ "type": "array",
8503
+ "items": {
8504
+ "type": "string"
8505
+ }
8506
+ }
8507
+ ]
8508
+ },
8509
+ "response.createdAt": {
8510
+ "anyOf": [
8511
+ {
8512
+ "type": "string"
8299
8513
  },
8300
- "content": {
8301
- "type": "object",
8302
- "properties": {
8303
- "result": {
8304
- "type": "string"
8305
- },
8306
- "items": {
8307
- "type": "object",
8308
- "properties": {
8309
- "@type": {
8310
- "type": "string"
8311
- },
8312
- "items": {
8313
- "type": "object",
8314
- "properties": {
8315
- "@type": {
8316
- "type": "string"
8317
- }
8318
- },
8319
- "additionalProperties": false
8320
- }
8321
- },
8322
- "additionalProperties": false
8323
- }
8324
- },
8325
- "additionalProperties": false
8514
+ {
8515
+ "type": "array",
8516
+ "items": {
8517
+ "type": "string"
8518
+ }
8326
8519
  }
8327
- },
8328
- "additionalProperties": false
8520
+ ]
8521
+ },
8522
+ "response.source.type": {
8523
+ "anyOf": [
8524
+ {
8525
+ "type": "string"
8526
+ },
8527
+ {
8528
+ "type": "array",
8529
+ "items": {
8530
+ "type": "string"
8531
+ }
8532
+ }
8533
+ ]
8534
+ },
8535
+ "response.source.reference": {
8536
+ "anyOf": [
8537
+ {
8538
+ "type": "string"
8539
+ },
8540
+ {
8541
+ "type": "array",
8542
+ "items": {
8543
+ "type": "string"
8544
+ }
8545
+ }
8546
+ ]
8547
+ },
8548
+ "response.content.result": {
8549
+ "anyOf": [
8550
+ {
8551
+ "type": "string"
8552
+ },
8553
+ {
8554
+ "type": "array",
8555
+ "items": {
8556
+ "type": "string"
8557
+ }
8558
+ }
8559
+ ]
8560
+ },
8561
+ "response.content.items.@type": {
8562
+ "anyOf": [
8563
+ {
8564
+ "type": "string"
8565
+ },
8566
+ {
8567
+ "type": "array",
8568
+ "items": {
8569
+ "type": "string"
8570
+ }
8571
+ }
8572
+ ]
8573
+ },
8574
+ "response.content.items.items.@type": {
8575
+ "anyOf": [
8576
+ {
8577
+ "type": "string"
8578
+ },
8579
+ {
8580
+ "type": "array",
8581
+ "items": {
8582
+ "type": "string"
8583
+ }
8584
+ }
8585
+ ]
8329
8586
  }
8330
8587
  },
8331
- "additionalProperties": {}
8588
+ "additionalProperties": false
8332
8589
  }
8333
8590
  }
8334
8591
  };
@@ -8368,97 +8625,189 @@ exports.GetOutgoingRequestsRequest = {
8368
8625
  "type": "object",
8369
8626
  "properties": {
8370
8627
  "id": {
8371
- "type": "string"
8628
+ "anyOf": [
8629
+ {
8630
+ "type": "string"
8631
+ },
8632
+ {
8633
+ "type": "array",
8634
+ "items": {
8635
+ "type": "string"
8636
+ }
8637
+ }
8638
+ ]
8372
8639
  },
8373
8640
  "peer": {
8374
- "type": "string"
8641
+ "anyOf": [
8642
+ {
8643
+ "type": "string"
8644
+ },
8645
+ {
8646
+ "type": "array",
8647
+ "items": {
8648
+ "type": "string"
8649
+ }
8650
+ }
8651
+ ]
8375
8652
  },
8376
8653
  "createdAt": {
8377
- "type": "string"
8654
+ "anyOf": [
8655
+ {
8656
+ "type": "string"
8657
+ },
8658
+ {
8659
+ "type": "array",
8660
+ "items": {
8661
+ "type": "string"
8662
+ }
8663
+ }
8664
+ ]
8378
8665
  },
8379
8666
  "status": {
8380
- "type": "string"
8667
+ "anyOf": [
8668
+ {
8669
+ "type": "string"
8670
+ },
8671
+ {
8672
+ "type": "array",
8673
+ "items": {
8674
+ "type": "string"
8675
+ }
8676
+ }
8677
+ ]
8381
8678
  },
8382
- "content": {
8383
- "type": "object",
8384
- "properties": {
8385
- "expiresAt": {
8679
+ "content.expiresAt": {
8680
+ "anyOf": [
8681
+ {
8386
8682
  "type": "string"
8387
8683
  },
8388
- "items": {
8389
- "type": "object",
8390
- "properties": {
8391
- "@type": {
8392
- "type": "string"
8393
- }
8394
- },
8395
- "additionalProperties": false
8684
+ {
8685
+ "type": "array",
8686
+ "items": {
8687
+ "type": "string"
8688
+ }
8396
8689
  }
8397
- },
8398
- "additionalProperties": false
8690
+ ]
8399
8691
  },
8400
- "source": {
8401
- "type": "object",
8402
- "properties": {
8403
- "type": {
8692
+ "content.items.@type": {
8693
+ "anyOf": [
8694
+ {
8404
8695
  "type": "string"
8405
8696
  },
8406
- "reference": {
8697
+ {
8698
+ "type": "array",
8699
+ "items": {
8700
+ "type": "string"
8701
+ }
8702
+ }
8703
+ ]
8704
+ },
8705
+ "source.type": {
8706
+ "anyOf": [
8707
+ {
8407
8708
  "type": "string"
8709
+ },
8710
+ {
8711
+ "type": "array",
8712
+ "items": {
8713
+ "type": "string"
8714
+ }
8408
8715
  }
8409
- },
8410
- "additionalProperties": false
8716
+ ]
8411
8717
  },
8412
- "response": {
8413
- "type": "object",
8414
- "properties": {
8415
- "createdAt": {
8718
+ "source.reference": {
8719
+ "anyOf": [
8720
+ {
8416
8721
  "type": "string"
8417
8722
  },
8418
- "source": {
8419
- "type": "object",
8420
- "properties": {
8421
- "type": {
8422
- "type": "string"
8423
- },
8424
- "reference": {
8425
- "type": "string"
8426
- }
8427
- },
8428
- "additionalProperties": false
8723
+ {
8724
+ "type": "array",
8725
+ "items": {
8726
+ "type": "string"
8727
+ }
8728
+ }
8729
+ ]
8730
+ },
8731
+ "response.createdAt": {
8732
+ "anyOf": [
8733
+ {
8734
+ "type": "string"
8429
8735
  },
8430
- "content": {
8431
- "type": "object",
8432
- "properties": {
8433
- "result": {
8434
- "type": "string"
8435
- },
8436
- "items": {
8437
- "type": "object",
8438
- "properties": {
8439
- "@type": {
8440
- "type": "string"
8441
- },
8442
- "items": {
8443
- "type": "object",
8444
- "properties": {
8445
- "@type": {
8446
- "type": "string"
8447
- }
8448
- },
8449
- "additionalProperties": false
8450
- }
8451
- },
8452
- "additionalProperties": false
8453
- }
8454
- },
8455
- "additionalProperties": false
8736
+ {
8737
+ "type": "array",
8738
+ "items": {
8739
+ "type": "string"
8740
+ }
8456
8741
  }
8457
- },
8458
- "additionalProperties": false
8742
+ ]
8743
+ },
8744
+ "response.source.type": {
8745
+ "anyOf": [
8746
+ {
8747
+ "type": "string"
8748
+ },
8749
+ {
8750
+ "type": "array",
8751
+ "items": {
8752
+ "type": "string"
8753
+ }
8754
+ }
8755
+ ]
8756
+ },
8757
+ "response.source.reference": {
8758
+ "anyOf": [
8759
+ {
8760
+ "type": "string"
8761
+ },
8762
+ {
8763
+ "type": "array",
8764
+ "items": {
8765
+ "type": "string"
8766
+ }
8767
+ }
8768
+ ]
8769
+ },
8770
+ "response.content.result": {
8771
+ "anyOf": [
8772
+ {
8773
+ "type": "string"
8774
+ },
8775
+ {
8776
+ "type": "array",
8777
+ "items": {
8778
+ "type": "string"
8779
+ }
8780
+ }
8781
+ ]
8782
+ },
8783
+ "response.content.items.@type": {
8784
+ "anyOf": [
8785
+ {
8786
+ "type": "string"
8787
+ },
8788
+ {
8789
+ "type": "array",
8790
+ "items": {
8791
+ "type": "string"
8792
+ }
8793
+ }
8794
+ ]
8795
+ },
8796
+ "response.content.items.items.@type": {
8797
+ "anyOf": [
8798
+ {
8799
+ "type": "string"
8800
+ },
8801
+ {
8802
+ "type": "array",
8803
+ "items": {
8804
+ "type": "string"
8805
+ }
8806
+ }
8807
+ ]
8459
8808
  }
8460
8809
  },
8461
- "additionalProperties": {}
8810
+ "additionalProperties": false
8462
8811
  }
8463
8812
  }
8464
8813
  };
@@ -9240,7 +9589,106 @@ exports.GetSettingsRequest = {
9240
9589
  "GetSettingsRequest": {
9241
9590
  "type": "object",
9242
9591
  "properties": {
9243
- "query": {}
9592
+ "query": {
9593
+ "$ref": "#/definitions/GetSettingsQuery"
9594
+ }
9595
+ },
9596
+ "additionalProperties": false
9597
+ },
9598
+ "GetSettingsQuery": {
9599
+ "type": "object",
9600
+ "properties": {
9601
+ "key": {
9602
+ "anyOf": [
9603
+ {
9604
+ "type": "string"
9605
+ },
9606
+ {
9607
+ "type": "array",
9608
+ "items": {
9609
+ "type": "string"
9610
+ }
9611
+ }
9612
+ ]
9613
+ },
9614
+ "scope": {
9615
+ "anyOf": [
9616
+ {
9617
+ "type": "string"
9618
+ },
9619
+ {
9620
+ "type": "array",
9621
+ "items": {
9622
+ "type": "string"
9623
+ }
9624
+ }
9625
+ ]
9626
+ },
9627
+ "reference": {
9628
+ "anyOf": [
9629
+ {
9630
+ "type": "string"
9631
+ },
9632
+ {
9633
+ "type": "array",
9634
+ "items": {
9635
+ "type": "string"
9636
+ }
9637
+ }
9638
+ ]
9639
+ },
9640
+ "createdAt": {
9641
+ "anyOf": [
9642
+ {
9643
+ "type": "string"
9644
+ },
9645
+ {
9646
+ "type": "array",
9647
+ "items": {
9648
+ "type": "string"
9649
+ }
9650
+ }
9651
+ ]
9652
+ },
9653
+ "deletedAt": {
9654
+ "anyOf": [
9655
+ {
9656
+ "type": "string"
9657
+ },
9658
+ {
9659
+ "type": "array",
9660
+ "items": {
9661
+ "type": "string"
9662
+ }
9663
+ }
9664
+ ]
9665
+ },
9666
+ "succeedsItem": {
9667
+ "anyOf": [
9668
+ {
9669
+ "type": "string"
9670
+ },
9671
+ {
9672
+ "type": "array",
9673
+ "items": {
9674
+ "type": "string"
9675
+ }
9676
+ }
9677
+ ]
9678
+ },
9679
+ "succeedsAt": {
9680
+ "anyOf": [
9681
+ {
9682
+ "type": "string"
9683
+ },
9684
+ {
9685
+ "type": "array",
9686
+ "items": {
9687
+ "type": "string"
9688
+ }
9689
+ }
9690
+ ]
9691
+ }
9244
9692
  },
9245
9693
  "additionalProperties": false
9246
9694
  }
@@ -9714,13 +10162,151 @@ exports.GetFilesRequest = {
9714
10162
  "GetFilesRequest": {
9715
10163
  "type": "object",
9716
10164
  "properties": {
9717
- "query": {},
10165
+ "query": {
10166
+ "$ref": "#/definitions/GetFilesQuery"
10167
+ },
9718
10168
  "ownerRestriction": {
9719
10169
  "$ref": "#/definitions/OwnerRestriction"
9720
10170
  }
9721
10171
  },
9722
10172
  "additionalProperties": false
9723
10173
  },
10174
+ "GetFilesQuery": {
10175
+ "type": "object",
10176
+ "properties": {
10177
+ "createdAt": {
10178
+ "anyOf": [
10179
+ {
10180
+ "type": "string"
10181
+ },
10182
+ {
10183
+ "type": "array",
10184
+ "items": {
10185
+ "type": "string"
10186
+ }
10187
+ }
10188
+ ]
10189
+ },
10190
+ "createdBy": {
10191
+ "anyOf": [
10192
+ {
10193
+ "type": "string"
10194
+ },
10195
+ {
10196
+ "type": "array",
10197
+ "items": {
10198
+ "type": "string"
10199
+ }
10200
+ }
10201
+ ]
10202
+ },
10203
+ "createdByDevice": {
10204
+ "anyOf": [
10205
+ {
10206
+ "type": "string"
10207
+ },
10208
+ {
10209
+ "type": "array",
10210
+ "items": {
10211
+ "type": "string"
10212
+ }
10213
+ }
10214
+ ]
10215
+ },
10216
+ "description": {
10217
+ "anyOf": [
10218
+ {
10219
+ "type": "string"
10220
+ },
10221
+ {
10222
+ "type": "array",
10223
+ "items": {
10224
+ "type": "string"
10225
+ }
10226
+ }
10227
+ ]
10228
+ },
10229
+ "expiresAt": {
10230
+ "anyOf": [
10231
+ {
10232
+ "type": "string"
10233
+ },
10234
+ {
10235
+ "type": "array",
10236
+ "items": {
10237
+ "type": "string"
10238
+ }
10239
+ }
10240
+ ]
10241
+ },
10242
+ "filename": {
10243
+ "anyOf": [
10244
+ {
10245
+ "type": "string"
10246
+ },
10247
+ {
10248
+ "type": "array",
10249
+ "items": {
10250
+ "type": "string"
10251
+ }
10252
+ }
10253
+ ]
10254
+ },
10255
+ "filesize": {
10256
+ "anyOf": [
10257
+ {
10258
+ "type": "string"
10259
+ },
10260
+ {
10261
+ "type": "array",
10262
+ "items": {
10263
+ "type": "string"
10264
+ }
10265
+ }
10266
+ ]
10267
+ },
10268
+ "mimetype": {
10269
+ "anyOf": [
10270
+ {
10271
+ "type": "string"
10272
+ },
10273
+ {
10274
+ "type": "array",
10275
+ "items": {
10276
+ "type": "string"
10277
+ }
10278
+ }
10279
+ ]
10280
+ },
10281
+ "title": {
10282
+ "anyOf": [
10283
+ {
10284
+ "type": "string"
10285
+ },
10286
+ {
10287
+ "type": "array",
10288
+ "items": {
10289
+ "type": "string"
10290
+ }
10291
+ }
10292
+ ]
10293
+ },
10294
+ "isOwn": {
10295
+ "anyOf": [
10296
+ {
10297
+ "type": "string"
10298
+ },
10299
+ {
10300
+ "type": "array",
10301
+ "items": {
10302
+ "type": "string"
10303
+ }
10304
+ }
10305
+ ]
10306
+ }
10307
+ },
10308
+ "additionalProperties": false
10309
+ },
9724
10310
  "OwnerRestriction": {
9725
10311
  "type": "string",
9726
10312
  "enum": [
@@ -10119,7 +10705,54 @@ exports.GetRelationshipsRequest = {
10119
10705
  "GetRelationshipsRequest": {
10120
10706
  "type": "object",
10121
10707
  "properties": {
10122
- "query": {}
10708
+ "query": {
10709
+ "$ref": "#/definitions/GetRelationshipsQuery"
10710
+ }
10711
+ },
10712
+ "additionalProperties": false
10713
+ },
10714
+ "GetRelationshipsQuery": {
10715
+ "type": "object",
10716
+ "properties": {
10717
+ "peer": {
10718
+ "anyOf": [
10719
+ {
10720
+ "type": "string"
10721
+ },
10722
+ {
10723
+ "type": "array",
10724
+ "items": {
10725
+ "type": "string"
10726
+ }
10727
+ }
10728
+ ]
10729
+ },
10730
+ "status": {
10731
+ "anyOf": [
10732
+ {
10733
+ "type": "string"
10734
+ },
10735
+ {
10736
+ "type": "array",
10737
+ "items": {
10738
+ "type": "string"
10739
+ }
10740
+ }
10741
+ ]
10742
+ },
10743
+ "template.id": {
10744
+ "anyOf": [
10745
+ {
10746
+ "type": "string"
10747
+ },
10748
+ {
10749
+ "type": "array",
10750
+ "items": {
10751
+ "type": "string"
10752
+ }
10753
+ }
10754
+ ]
10755
+ }
10123
10756
  },
10124
10757
  "additionalProperties": false
10125
10758
  }
@@ -10463,13 +11096,73 @@ exports.GetTokensRequest = {
10463
11096
  "GetTokensRequest": {
10464
11097
  "type": "object",
10465
11098
  "properties": {
10466
- "query": {},
11099
+ "query": {
11100
+ "$ref": "#/definitions/GetTokensQuery"
11101
+ },
10467
11102
  "ownerRestriction": {
10468
11103
  "$ref": "#/definitions/OwnerRestriction"
10469
11104
  }
10470
11105
  },
10471
11106
  "additionalProperties": false
10472
11107
  },
11108
+ "GetTokensQuery": {
11109
+ "type": "object",
11110
+ "properties": {
11111
+ "createdAt": {
11112
+ "anyOf": [
11113
+ {
11114
+ "type": "string"
11115
+ },
11116
+ {
11117
+ "type": "array",
11118
+ "items": {
11119
+ "type": "string"
11120
+ }
11121
+ }
11122
+ ]
11123
+ },
11124
+ "createdBy": {
11125
+ "anyOf": [
11126
+ {
11127
+ "type": "string"
11128
+ },
11129
+ {
11130
+ "type": "array",
11131
+ "items": {
11132
+ "type": "string"
11133
+ }
11134
+ }
11135
+ ]
11136
+ },
11137
+ "createdByDevice": {
11138
+ "anyOf": [
11139
+ {
11140
+ "type": "string"
11141
+ },
11142
+ {
11143
+ "type": "array",
11144
+ "items": {
11145
+ "type": "string"
11146
+ }
11147
+ }
11148
+ ]
11149
+ },
11150
+ "expiresAt": {
11151
+ "anyOf": [
11152
+ {
11153
+ "type": "string"
11154
+ },
11155
+ {
11156
+ "type": "array",
11157
+ "items": {
11158
+ "type": "string"
11159
+ }
11160
+ }
11161
+ ]
11162
+ }
11163
+ },
11164
+ "additionalProperties": false
11165
+ },
10473
11166
  "OwnerRestriction": {
10474
11167
  "type": "string",
10475
11168
  "enum": [
@@ -11254,7 +11947,7 @@ GetAttributesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslat
11254
11947
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.key)}`]: true,
11255
11948
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.isTechnical)}`]: true,
11256
11949
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.confidentiality)}`]: true,
11257
- // content.shareInfo
11950
+ // shareInfo
11258
11951
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}`]: true,
11259
11952
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: true,
11260
11953
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.requestReference)}`]: true,
@@ -12375,7 +13068,7 @@ let CompleteIncomingRequestUseCase = class CompleteIncomingRequestUseCase extend
12375
13068
  responseSourceObject = message;
12376
13069
  }
12377
13070
  else if (request.responseSourceId.startsWith("RCH")) {
12378
- const relationships = await this.relationshipController.getRelationships({ "cache.changes.id": request.responseSourceId }); // eslint-disable-line @typescript-eslint/naming-convention
13071
+ const relationships = await this.relationshipController.getRelationships({ "cache.changes.id": request.responseSourceId });
12379
13072
  if (relationships.length === 0) {
12380
13073
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(transport_1.RelationshipChange));
12381
13074
  }
@@ -12537,7 +13230,7 @@ let CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeUseCase = clas
12537
13230
  if (!template) {
12538
13231
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(transport_1.RelationshipTemplate));
12539
13232
  }
12540
- const relationships = await this.relationshipController.getRelationships({ "cache.changes.id": request.relationshipChangeId }); // eslint-disable-line @typescript-eslint/naming-convention
13233
+ const relationships = await this.relationshipController.getRelationships({ "cache.changes.id": request.relationshipChangeId });
12541
13234
  if (relationships.length === 0) {
12542
13235
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(transport_1.RelationshipChange));
12543
13236
  }
@@ -16189,11 +16882,11 @@ GetMessagesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslator
16189
16882
  [(0, ts_simple_nameof_1.nameof)((m) => m.createdBy)]: true,
16190
16883
  [(0, ts_simple_nameof_1.nameof)((m) => m.createdByDevice)]: true,
16191
16884
  [(0, ts_simple_nameof_1.nameof)((m) => m.createdAt)]: true,
16192
- [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`]: true,
16193
16885
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.@type`]: true,
16194
16886
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.body`]: true,
16195
16887
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`]: true,
16196
16888
  [(0, ts_simple_nameof_1.nameof)((m) => m.attachments)]: true,
16889
+ [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`]: true,
16197
16890
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.relationshipId)}`]: true,
16198
16891
  participant: true
16199
16892
  },
@@ -16204,8 +16897,7 @@ GetMessagesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslator
16204
16897
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`,
16205
16898
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.@type`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.@type`,
16206
16899
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.body`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.body`,
16207
- [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`,
16208
- [(0, ts_simple_nameof_1.nameof)((m) => m.attachments)]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.attachments)}`
16900
+ [`${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`]: `${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.content)}.subject`
16209
16901
  },
16210
16902
  custom: {
16211
16903
  [`${(0, ts_simple_nameof_1.nameof)((m) => m.recipients)}.${(0, ts_simple_nameof_1.nameof)((r) => r.relationshipId)}`]: (query, input) => {
@@ -16213,6 +16905,11 @@ GetMessagesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslator
16213
16905
  $containsAny: Array.isArray(input) ? input : [input]
16214
16906
  };
16215
16907
  },
16908
+ [(0, ts_simple_nameof_1.nameof)((m) => m.attachments)]: (query, input) => {
16909
+ query[`${(0, ts_simple_nameof_1.nameof)((m) => m.cache)}.${(0, ts_simple_nameof_1.nameof)((m) => m.attachments)}`] = {
16910
+ $containsAny: Array.isArray(input) ? input : [input]
16911
+ };
16912
+ },
16216
16913
  participant: (query, input) => {
16217
16914
  let participantQuery;
16218
16915
  if (Array.isArray(input)) {
@@ -17534,7 +18231,6 @@ GetRelationshipsUseCase.queryTranslator = new docdb_querytranslator_1.QueryTrans
17534
18231
  },
17535
18232
  alias: {
17536
18233
  [`${(0, ts_simple_nameof_1.nameof)((r) => r.template)}.${(0, ts_simple_nameof_1.nameof)((r) => r.id)}`]: `${(0, ts_simple_nameof_1.nameof)((r) => r.cache)}.${(0, ts_simple_nameof_1.nameof)((r) => r.template)}.${(0, ts_simple_nameof_1.nameof)((r) => r.id)}`,
17537
- [(0, ts_simple_nameof_1.nameof)((r) => r.peer)]: (0, ts_simple_nameof_1.nameof)((r) => r.peer),
17538
18234
  [(0, ts_simple_nameof_1.nameof)((r) => r.status)]: (0, ts_simple_nameof_1.nameof)((r) => r.status),
17539
18235
  [(0, ts_simple_nameof_1.nameof)((r) => r.peer)]: `${(0, ts_simple_nameof_1.nameof)((r) => r.peer)}.${(0, ts_simple_nameof_1.nameof)((r) => r.address)}`
17540
18236
  }