Returns compliance building blocks by vessel class and building block type.
Arguments
Name | Type | Description |
---|---|---|
input | ComplianceVesselBuildingBlocksByInput | Filters building blocks by vessel class and building block type |
complianceVesselBuildingBlocksByFilterInput
Name | Type | Description |
---|---|---|
filter | ComplianceVesselBuildingBlocksByFilterInput | Filters building blocks by vessel class and building block type |
limit | PositiveInt! | The maximal number of records to return. |
offset | NonNegativeInt! | The number of returned records to skip from the beginning of the record list. |
sort | ComplianceVesselBuildingBlocksByInputSortInput | Sorting parameters for the provided data. |
Returns
Name | Description |
---|---|
ComplianceVesselBuildingBlocksByConnection | Details about the building block. |
ComplianceBuildingBlocksByConnection Fields
Name | Type | Description |
---|---|---|
nodes | ComplianceVesselActivity | Details about the building block. |
totalCount | NonNegativeInt! | The number of nodes returned. |
Example Code
Sample Query
query ComplianceVesselRiskIndicatorsBy($input: ComplianceVesselBuildingBlocksByInput!) {
complianceVesselBuildingBlocksBy(input: $input) {
nodes {
program
buildingBlock
startDate
endDate
vessel {
name
imo
class
subClass
}
details {
previousPortCallStartDate
reportedDestinationAfter
previousPort {
properties {
country
name
}
}
}
}
totalCount
}
}
Variables
{
"input": {
"filter": {
"buildingBlocks": "DARK_ACTIVITY"
"classes": "Tanker"
},
"limit": 100,
"offset": 50,
"sort": {
"field": "START_DATE",
"order": "DESC"
}
}
}
Response
{
"data": {
"complianceVesselBuildingBlocksBy": {
"nodes": [
{
"program": [
"IRAN"
],
"buildingBlock": "DARK_ACTIVITY",
"startDate": "2021-07-06T15:21:32.000Z",
"endDate": "2021-07-11T01:48:43.000Z",
"vessel": {
"name": "MMB1",
"imo": 9578323,
"class": "Tanker",
"subClass": "Asphalt/Bitumen Tanker"
},
"details": {
"previousPortCallStartDate": "2021-06-12T23:45:08.000Z",
"reportedDestinationAfter": "MANGALORE",
"previousPort": {
"properties": {
"country": "India",
"name": "Mumbai"
}
}
}
},
{
"program": [
"IRAN"
],
"buildingBlock": "DARK_ACTIVITY",
"startDate": "2021-07-06T16:00:01.000Z",
"endDate": "2021-07-14T23:48:52.000Z",
"vessel": {
"name": "IRIS",
"imo": 9247778,
"class": "Tanker",
"subClass": "Oil Products Tanker"
},
"details": {
"previousPortCallStartDate": "2021-06-12T20:35:17.000Z",
"reportedDestinationAfter": "JEBEL ALI",
"previousPort": {
"properties": {
"country": "India",
"name": "Kandla"
}
}
}
}
],
"totalCount": 1537
}
}
}