proca
Version:
2,174 lines (2,173 loc) • 249 kB
JSON
{
"__schema": {
"queryType": {
"name": "RootQueryType"
},
"mutationType": {
"name": "RootMutationType"
},
"subscriptionType": {
"name": "RootSubscriptionType"
},
"types": [
{
"kind": "OBJECT",
"name": "Action",
"description": null,
"fields": [
{
"name": "actionId",
"description": "Id of action",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "actionPage",
"description": "Action page this action was collected at",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INTERFACE",
"name": "ActionPage",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "actionType",
"description": "Action type",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "campaign",
"description": "Campaign this action was collected in",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INTERFACE",
"name": "Campaign",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "contact",
"description": "supporter contact data",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Contact",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "createdAt",
"description": "Timestamp of creation",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "NaiveDateTime",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "customFields",
"description": "Action custom fields (as stringified JSON)",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Json",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "donation",
"description": "Donation specific data",
"args": [],
"type": {
"kind": "OBJECT",
"name": "Donation",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "fields",
"description": "Deprecated, use customFields",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "CustomField",
"ofType": null
}
}
}
},
"isDeprecated": true,
"deprecationReason": "use custom_fields"
},
{
"name": "privacy",
"description": "Consents, privacy data of this action",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Consent",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "tracking",
"description": "UTM codes",
"args": [],
"type": {
"kind": "OBJECT",
"name": "Tracking",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ActionCustomFields",
"description": null,
"fields": [
{
"name": "actionId",
"description": "id of action",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "actionType",
"description": "type of action",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "area",
"description": "area of supporter that did the action",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "customFields",
"description": "custom fields as stringified json",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Json",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "fields",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "CustomField",
"ofType": null
}
}
}
},
"isDeprecated": true,
"deprecationReason": "use custom_fields"
},
{
"name": "insertedAt",
"description": "creation timestamp",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "NaiveDateTime",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "ActionInput",
"description": "Custom field added to action. For signature it can be contact, for mail it can be subject and body",
"fields": null,
"inputFields": [
{
"name": "actionType",
"description": "Action Type",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "customFields",
"description": "Custom fields added to action",
"type": {
"kind": "SCALAR",
"name": "Json",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "donation",
"description": "Donation payload",
"type": {
"kind": "INPUT_OBJECT",
"name": "DonationActionInput",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "fields",
"description": "Deprecated format: Other fields added to action",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "CustomFieldInput",
"ofType": null
}
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "mtt",
"description": "MTT payload",
"type": {
"kind": "INPUT_OBJECT",
"name": "MttActionInput",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "testing",
"description": "Test mode",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INTERFACE",
"name": "ActionPage",
"description": null,
"fields": [
{
"name": "campaign",
"description": "Campaign this action page belongs to.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INTERFACE",
"name": "Campaign",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "config",
"description": "Config JSON of this action page",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Json",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": "Id",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "journey",
"description": "List of steps in journey",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
}
},
"isDeprecated": true,
"deprecationReason": "moved under config"
},
{
"name": "live",
"description": "Is live?",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "locale",
"description": "Locale for the widget, in i18n format",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": "Name where the widget is hosted",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "org",
"description": "Org the action page belongs to",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INTERFACE",
"name": "Org",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "thankYouTemplate",
"description": "Thank you email templated of this Action Page",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "thankYouTemplateRef",
"description": "A reference to thank you email template of this ActionPage",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": [
{
"kind": "OBJECT",
"name": "PrivateActionPage",
"ofType": null
},
{
"kind": "OBJECT",
"name": "PublicActionPage",
"ofType": null
}
]
},
{
"kind": "INPUT_OBJECT",
"name": "ActionPageInput",
"description": "ActionPage input",
"fields": null,
"inputFields": [
{
"name": "config",
"description": "JSON string containing Action Page config",
"type": {
"kind": "SCALAR",
"name": "Json",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "delivery",
"description": "Collected PII is processed even with no opt-in",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "extraSupporters",
"description": "Extra supporter count. If you want to add a number of signatories you have offline or kept in another system, you can specify the number here.",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "locale",
"description": "2-letter, lowercase, code of ActionPage language",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": "Unique NAME identifying ActionPage.\n\nDoes not have to exist, must be unique. Can be a 'technical' identifier\nscoped to particular organization, so it does not have to change when the\nslugs/names change (eg. some.org/1234). However, frontend Widget can\nask for ActionPage by it's current location.href (but without https://), in which case it is useful\nto make this url match the real widget location.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "supporterConfirmTemplate",
"description": "Supporter confirm email template of this ActionPage",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "thankYouTemplate",
"description": "Thank you email template of this ActionPage",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "ENUM",
"name": "ActionPageStatus",
"description": null,
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": [
{
"name": "ACTIVE",
"description": "This action page received actions lately",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "STALLED",
"description": "This action page did not receive actions lately",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "STANDBY",
"description": "This action page is ready to receive first action or is stalled for over 1 year",
"isDeprecated": false,
"deprecationReason": null
}
],
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ActionTypeCount",
"description": "Count of actions for particular action type",
"fields": [
{
"name": "actionType",
"description": "action type",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "count",
"description": "count of actions of action type",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ActivateKeyResult",
"description": null,
"fields": [
{
"name": "status",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "Status",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "AddKeyInput",
"description": null,
"fields": null,
"inputFields": [
{
"name": "name",
"description": "Name of the key",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "public",
"description": "Public part of the key (base64url)",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "AddressInput",
"description": "Address type which can hold different addres fields.",
"fields": null,
"inputFields": [
{
"name": "country",
"description": "Country code (two-letter).",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "locality",
"description": "Locality, which can be a city/town/village",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "postcode",
"description": "Postcode, in format correct for country locale",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "region",
"description": "Region, being province, voyevodship, county",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "street",
"description": "Street name",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "streetNumber",
"description": "Street number",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ApiToken",
"description": "Api token metadata",
"fields": [
{
"name": "expiresAt",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "NaiveDateTime",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Application",
"description": null,
"fields": [
{
"name": "logLevel",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "version",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "AreaCount",
"description": "Count of actions for particular action type",
"fields": [
{
"name": "area",
"description": "area",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "count",
"description": "count of supporters in this area",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Boolean",
"description": "The `Boolean` scalar type represents `true` or `false`.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INTERFACE",
"name": "Campaign",
"description": null,
"fields": [
{
"name": "actions",
"description": "Fetch public actions. Can be used to display recent comments for example.\n\nTo allow-list action fields to be public, `campaign.public_actions` must be set to a list of strings in form\naction_type:custom_field_name, eg: `[\"signature:comment\"]`. XXX this cannot be set in API, you need to set in backend.",
"args": [
{
"name": "actionType",
"description": "Specify action type to return",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "limit",
"description": "Limit the number of returned actions, default is 10, max is 100)",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"defaultValue": "10",
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "PublicActionsResult",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "config",
"description": "Custom config map",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Json",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "contactSchema",
"description": "Schema for contact personal information",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "ContactSchema",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "externalId",
"description": "External ID (if set)",
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": "Campaign id",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": "Internal name of the campaign",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "org",
"description": "Lead org",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INTERFACE",
"name": "Org",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "stats",
"description": "Statistics",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "CampaignStats",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "status",
"description": "Current status of the campaign",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "CampaignStatus",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "targets",
"description": "List MTT targets of this campaign",
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "INTERFACE",
"name": "Target",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "title",
"description": "Full, official name of the campaign",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": [
{
"kind": "OBJECT",
"name": "PrivateCampaign",
"ofType": null
},
{
"kind": "OBJECT",
"name": "PublicCampaign",
"ofType": null
}
]
},
{
"kind": "INPUT_OBJECT",
"name": "CampaignInput",
"description": "Campaign content changed in mutations",
"fields": null,
"inputFields": [
{
"name": "actionPages",
"description": "Action pages of this campaign",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "ActionPageInput",
"ofType": null
}
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "config",
"description": "Custom config as stringified JSON map",
"type": {
"kind": "SCALAR",
"name": "Json",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "contactSchema",
"description": "Schema for contact personal information",
"type": {
"kind": "ENUM",
"name": "ContactSchema",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "externalId",
"description": "Campaign external_id. If provided, it will be used to find campaign. Can be used to rename a campaign",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "mtt",
"description": "MTT configuration",
"type": {
"kind": "INPUT_OBJECT",
"name": "CampaignMttInput",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": "Campaign short name",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "status",
"description": "Current status of the campaign",
"type": {
"kind": "ENUM",
"name": "CampaignStatus",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "title",
"description": "Campaign human readable title",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "CampaignMtt",
"description": null,
"fields": [
{
"name": "endAt",
"description": "This is last day and end hour of the campaign. Note, every day of the campaign the end hour will be same.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "messageTemplate",
"description": "If email templates are used to create MTT, use this template (works like thank you email templates).\nOtherwise, the raw text that is send with MTT action will make a plain text email.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "startAt",
"description": "This is first day and start hour of the campaign. Note, every day of the campaign the start hour will be same.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "testEmail",
"description": "A test target email (yourself) where test mtt actions will be sent (instead to real targets)",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "CampaignMttInput",
"description": null,
"fields": null,
"inputFields": [
{
"name": "endAt",
"description": "This is last day and end hour of the campaign. Note, every day of the campaign the end hour will be same.",
"type": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "messageTemplate",
"description": "If email templates are used to create MTT, use this template (works like thank you email templates).\nOtherwise, the raw text that is send with MTT action will make a plain text email.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "startAt",
"description": "This is first day and start hour of the campaign. Note, every day of the campaign the start hour will be same.",
"type": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "testEmail",
"description": "A test target email (yourself) where test mtt actions will be sent (instead to real targets)",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "CampaignStats",
"description": "Campaign statistics",
"fields": [
{
"name": "actionCount",
"description": "Action counts per action types (with duplicates)",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "ActionTypeCount",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "supporterCount",
"description": "Unique action tagers count",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "supporterCountByArea",
"description": "Unique action takers by area",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "AreaCount",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "supporterCountByOrg",
"description": "Unique action takers by org",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "OrgCount",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "supporterCountByOthers",
"description": "Unique supporter count not including the ones collected by org_name",
"args": [
{
"name": "orgName",
"description": "Org name to exclude from counting supporters",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "ENUM",
"name": "CampaignStatus",
"description": null,
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": [
{
"name": "CLOSED",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "IGNORED",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "LIVE",
"description": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ChangeUserStatus",
"description": null,
"fields": [
{
"name": "status",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "Status",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Confirm",
"description": null,
"fields": [
{
"name": "code",
"description": "Secret code/PIN of the confirm",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "creator",
"description": "Who created the confirm",
"args": [],
"type": {
"kind": "OBJECT",
"name": "User",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "email",
"description": "Email the confirm is sent to",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "message",
"description": "Message attached to the confirm",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "objectId",
"description": "Object id that confirmable action refers to",
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "ConfirmInput",
"description": null,
"fields": null,
"inputFields": [
{
"name": "code",
"description": "secret code of this confirm",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "email",
"description": "email that confirm was assigned for",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "objectId",
"description": "object_id that this confirm refers to",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ConfirmResult",
"description": null,
"fields": [
{
"name": "actionPage",
"description": "Action page if its an object of confirm",
"args": [],
"type": {
"kind": "INTERFACE",
"name": "ActionPage",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "campaign",
"description": "Campaign page if its an object of confirm",
"args": [],
"type": {
"kind": "INTERFACE",
"name": "Campaign",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "message",
"description": "A message attached to the confirm",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "org",
"description": "Org if its an object of confirm",
"args": [],
"type": {
"kind": "INTERFACE",
"name": "Org",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "status",
"description": "Status of Confirm: Success, Confirming (waiting for confirmation), Noop",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "Status",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Consent",
"description": "GDPR consent data for this org",
"fields": [
{
"name": "emailStatus",
"description": "Email status, whether it's normal, DOI, or bouncing",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "EmailStatus",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "emailStatusChanged",
"description": "When did the email status change last time",
"args": [],
"type": {
"kind": "SCALAR",
"name": "NaiveDateTime",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "givenAt",
"description": "Consent timestamp",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "NaiveDateTime",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "optIn",
"description": "communication (email) opt-in",
"args": [],
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "withConsent",
"description": "This action contained consent (if false, it could be a share action that is attached to another action containing a consent)",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "ConsentInput",
"description": "GDPR consent data structure",
"fields": null,
"inputFields": [
{
"name": "leadOptIn",
"description": "Opt in to the campaign leader",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "optIn",
"description": "Has contact consented to receiving communication from widget owner? Null: not asked",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Contact",
"description": null,
"fields": [
{
"name": "contactRef",
"description": "Contact ref (fingerprint) of supporter",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "nonce",
"description": "Encryption nonce value",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "payload",
"description": "Stringified json with PII optionally encrypted",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "publicKey",
"description": "Public key used to encrypt this action",
"args": [],
"type": {
"kind": "OBJECT",
"name": "KeyIds",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "signKey",
"description": "Signing key used to encrypt this action",
"args": [],
"type": {
"kind": "OBJECT",
"name": "KeyIds",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "ContactInput",
"description": "Contact information",
"fields": null,
"inputFields": [
{
"name": "address",
"description": "Contacts address",
"type": {
"kind": "INPUT_OBJECT",
"name": "AddressInput",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "birthDate",
"description": "Date of birth in format YYYY-MM-DD",
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "email",
"description": "Email",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "firstName",
"description": "First name (when you provide full name split into first and last)",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "lastName",
"description": "Last name (when you provide full name split into first and last)",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "name",
"description": "Full name",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "nationality",
"description": "Nationality information",
"type": {
"kind": "INPUT_OBJECT",
"name": "NationalityInput",
"ofType": null