Skip to content

Commit

Permalink
Upd: Add data agreement record definition
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed Sep 1, 2023
1 parent 0435bf1 commit a40e938
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 63 deletions.
128 changes: 65 additions & 63 deletions openapi/v2023.8.2/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4115,51 +4115,11 @@ components:
Purpose:
$ref: '#/components/schemas/DataAgreement'
Count:
required:
- Total
- Consented
type: object
properties:
Total:
type: integer
format: int32
Consented:
type: integer
format: int32
$ref: '#/components/schemas/DataAgreementRecord/properties/Count'
Consents:
type: array
items:
required:
- ID
- Description
- Value
- Status
type: object
properties:
ID:
type: string
Description:
type: string
Value:
type: string
Status:
required:
- Consented
- TimeStamp
- Days
- Remaining
type: object
properties:
Consented:
type: string
TimeStamp:
type: string
Days:
type: integer
format: int32
Remaining:
type: integer
format: int32
$ref: '#/components/schemas/DataAgreementRecord/properties/Consents/items'
GetConsentsForAllConsentAgreements:
required:
- ID
Expand All @@ -4186,11 +4146,11 @@ components:
Purpose:
$ref: '#/components/schemas/DataAgreement'
Count:
$ref: '#/components/schemas/GetConsentsByConsentAgreementId/properties/Consents/properties/Count'
$ref: '#/components/schemas/DataAgreementRecord/properties/Count'
Consents:
type: array
items:
$ref: '#/components/schemas/GetConsentsByConsentAgreementId/properties/Consents/properties/Consents/items'
$ref: '#/components/schemas/DataAgreementRecord/properties/Consents/items'
GetConsents:
required:
- ID
Expand Down Expand Up @@ -4218,11 +4178,11 @@ components:
Purpose:
$ref: '#/components/schemas/DataAgreement'
Count:
$ref: '#/components/schemas/GetConsentsByConsentAgreementId/properties/Consents/properties/Count'
$ref: '#/components/schemas/DataAgreementRecord/properties/Count'
Consents:
type: array
items:
$ref: '#/components/schemas/GetConsentsByConsentAgreementId/properties/Consents/properties/Consents/items'
$ref: '#/components/schemas/DataAgreementRecord/properties/Consents/items'
DataRetention:
required:
- Expiry
Expand Down Expand Up @@ -4257,32 +4217,74 @@ components:
UserID:
type: string
ConsentsAndPurposes:
type: array
items:
$ref: '#/components/schemas/DataAgreementRecord'
DataAgreementRecord:
required:
- Purpose
- Count
- Consents
- DataRetention
type: object
properties:
Purpose:
$ref: '#/components/schemas/DataAgreement'
Count:
required:
- Total
- Consented
type: object
properties:
Total:
type: integer
format: int32
Consented:
type: integer
format: int32
Consents:
type: array
items:
required:
- Purpose
- Count
- Consents
- DataRetention
- ID
- Description
- Value
- Status
type: object
properties:
Purpose:
$ref: '#/components/schemas/DataAgreement'
Count:
$ref: '#/components/schemas/GetConsentsByConsentAgreementId/properties/Consents/properties/Count'
Consents:
type: array
items:
$ref: '#/components/schemas/GetConsentsByConsentAgreementId/properties/Consents/properties/Consents/items'
DataRetention:
ID:
type: string
Description:
type: string
Value:
type: string
Status:
required:
- Expiry
- Consented
- TimeStamp
- Days
- Remaining
type: object
properties:
Expiry:
Consented:
type: string
DataAgreementRecordRevision:
$ref: '#/components/schemas/DataAgreementRecordRevision'
TimeStamp:
type: string
Days:
type: integer
format: int32
Remaining:
type: integer
format: int32
DataRetention:
required:
- Expiry
type: object
properties:
Expiry:
type: string
DataAgreementRecordRevision:
$ref: '#/components/schemas/DataAgreementRecordRevision'
DataAgreementRecordRevision:
type: object
description: |-
Expand Down
2 changes: 2 additions & 0 deletions openapi/v2023.8.2/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ components:
$ref: "./definitions/service/UpdateDataAgreementRecord.yaml"
DataAgreementRecords:
$ref: "./definitions/service/DataAgreementRecords.yaml"
DataAgreementRecord:
$ref: "./definitions/service/DataAgreementRecord.yaml"
DataAgreementRecordRevision:
$ref: "./definitions/service/DataAgreementRecordRevision.yaml"
UpdateConsentForDataAttributeRequest:
Expand Down

0 comments on commit a40e938

Please sign in to comment.