Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Add activity criteria #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions person/person.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,54 @@
}
}
},
{
"name": "activity",
"properties": {
"entity": {
"type": "string",
"enum": ["activity"],
"description": "Name of the entity to be queried."
},
"criteria": {
"type": "object",
"description": "Specific criteria for the activity entity.",
"properties": {
"network": {
"type": "string",
"description": "Name of a network."
},
"date": {
"type": "object",
"description": "The date of an activity entity.",
"properties": {
"from": {
"type": "string",
"description": "From date of date range for the activity entity. ISO date string."
},
"to": {
"type": "string",
"description": "To date of date range for the activity entity. ISO date string."
}
}
},
"type": {
"type": "string",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have an "enum": ["used","updated"], here? I am assuming the default of 'either' you mention is when the type property is not present?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made the changed and improved the description.

"enum": ["used","updated"],
"description": "The type of activity to be queried. If type is not specified, both will be included."
},
"exists": {
"type": "boolean",
"description": "'true' to only return profiles that have this entity."
},
"filter": {
"type": "string",
"enum": ["LAST","ANY"],
"description": "'LAST' indicates only last updated/used activity, 'ANY' indicates any updated/used activity. Default is 'LAST'."
}
}
}
}
},
{
"name": "country_code",
"properties": {
Expand Down