Soapbox
Soapbox articles about a venue, event, person or locale; a locale’s are its news.
Root fields
Section titled “Root fields”| Field | Type | Description |
|---|---|---|
soapbox |
IAudienceSoapbox! |
The instance’s IAudienceSoapbox mixin. Left out of the schema where its module isn’t installed. |
Mutations
Section titled “Mutations”| Operation | Returns | Description |
|---|---|---|
addPublicationMedia staffql onlyinput: PublicationMediaAddInput! |
PublicationMediaAddPayload |
Adds a picture to a publication’s media library for its articles and ads. Like every upload, it is checked by the child safety scan. requires soapbox:write:mine or soapbox:write:* |
deleteArticle staffql onlyinput: ArticleDeleteInput! |
ArticleDeletePayload |
Deletes an article for good: its publication’s managers, or the audience’s admins. To take one down for now, unpublish it (setArticleStatus). requires soapbox:write:mine or soapbox:write:* |
deletePublicationAd staffql onlyinput: PublicationAdDeleteInput! |
PublicationAdDeletePayload |
Deletes a publication’s ad for good: its managers, or the audience’s admins. Its weekly reader counts go with it. To stop it for now, pause it (savePublicationAd paused). requires soapbox:write:mine or soapbox:write:* |
deletePublicationMedia staffql onlyinput: PublicationMediaDeleteInput! |
PublicationMediaDeletePayload |
Takes a picture out of a publication’s media library. Articles and ads already using it keep it. requires soapbox:write:mine or soapbox:write:* |
enablePublicationAds staffql onlyinput: PublicationAdsEnableInput! |
PublicationAdsEnablePayload |
Lets a publication sell ads on its own articles and page in the audience’s apps, or stops it (its ads stop showing but stay on file). The audience’s admins (and AudienceKit, for the publisher plan). requires soapbox:moderate:* |
featureArticleNationally staffql onlyinput: ArticleFeatureNationallyInput! |
ArticleFeatureNationallyPayload |
Features a live article in the audience’s national news for 14 days, or takes it out (featured: false). Admins only. requires soapbox:moderate:* |
mutePublicationPushesinput: PublicationPushesMuteInput! |
PublicationPushesMutePayload |
Turns a publication’s locale pushes off for the signed-in reader, or back on. Its articles still show in their locale news and on its page. requires soapbox:write:self |
removeArticle staffql onlyinput: ArticleRemoveInput! |
ArticleRemovePayload |
Takes an article down as the audience (moderation), whatever its publication says, or puts it back (removed: false). requires soapbox:moderate:* |
removePublicationAd staffql onlyinput: PublicationAdRemoveInput! |
PublicationAdRemovePayload |
Takes a publication’s ad down at once (it stops showing), whatever the publication says, or puts it back. The note is shown to the publication. A paid ad taken down is the publication’s to refund its sponsor: it was its sale. requires soapbox:moderate:* |
reviewPublicationAd staffql onlyinput: PublicationAdReviewInput! |
PublicationAdReviewPayload |
Approves a publication’s ad waiting in soapbox.adReviewQueue (it runs from its first day), or turns it down with a note the publication sees. Turned down, the publication can change it and send it again. requires soapbox:moderate:* |
saveArticle staffql onlyinput: ArticleSaveInput! |
ArticleSavePayload |
Writes a new draft for a publication (publicationId) or changes an article (id). Publishing is setArticleStatus’s. A reader’s op-ed is the publication’s to edit once it accepts it. requires soapbox:write:mine or soapbox:write:* |
savePublication staffql onlyinput: PublicationSaveInput! |
PublicationSavePayload |
Starts publishing as a person listing you manage (personId), or changes a publication (id). A new publication waits for the audience to trust it unless an admin starts it. One an admin starts links out to the publisher’s site (its feed) until its publisher runs it. requires soapbox:write:mine or soapbox:write:* |
savePublicationAd staffql onlyinput: PublicationAdSaveInput! |
PublicationAdSavePayload |
Books a sponsor’s ad on a publication’s own articles (spot ARTICLE) or page (PUBLICATION), or changes one (id). New and changed ads wait for the audience’s admins when the publication’s ads need review (Publication.adsNeedReview). dryRun checks it without saving. requires soapbox:write:mine or soapbox:write:* |
savePublicationRateSheet staffql onlyinput: PublicationRateSheetSaveInput! |
PublicationRateSheetSavePayload |
Sets a publication’s public rate sheet: a flat weekly price and the number of sponsors that share each ad spot, never per view or tap, plus notes and a sales contact. Ads booked before keep their price. requires soapbox:write:mine or soapbox:write:* |
setArticleStatus staffql onlyinput: ArticleStatusSetInput! |
ArticleStatusSetPayload |
Moves an article on: SUBMIT for the audience’s approval, PUBLISH (a trusted publication’s managers, or admins approving it), UNPUBLISH, RETURN_TO_DRAFT, and ACCEPT_OP_ED or DECLINE_OP_ED for a reader’s op-ed. requires soapbox:write:mine or soapbox:write:* |
setPublicationTrust staffql onlyinput: PublicationTrustSetInput! |
PublicationTrustSetPayload |
Sets how far the audience trusts a publication: TRUSTED publishes directly, PENDING needs each article approved, SUSPENDED stops it and hides what it published. requires soapbox:moderate:* |
setSoapboxPublisherAds staffql onlyinput: SoapboxPublisherAdsSetInput! |
SoapboxPublisherAdsSetPayload |
Sets whether Soapbox publishers sell ads on their own content in the audience’s apps, and which of their ads its admins review first (soapbox.publisherAds). requires soapbox:moderate:* |
submitOpEdinput: OpEdSubmitInput! |
OpEdSubmitPayload |
Sends a publication an op-ed from the apps, under the signed-in reader’s name. The publication takes it (then edits and publishes it, bylined to the writer) or declines it with a note; Audience.soapbox.myOpEds shows where each stands . requires soapbox:write:self |
updatePublicationMedia staffql onlyinput: PublicationMediaUpdateInput! |
PublicationMediaUpdatePayload |
Changes what a publication says about a picture in its media library. requires soapbox:write:mine or soapbox:write:* |
Objects
Section titled “Objects”Article
Section titled “Article”Object · implements HasCredits, HasTimestamps
A Soapbox publication’s article, in Markdown: its own, or an op-ed a reader sent it. Readers see it once it is published; the publication, the writer and the audience’s admins see it before.
| Field | Type | Description |
|---|---|---|
ad |
PromoCard |
The ad to show after it in the reader, sold by its publication on its own content (label Ad, soldBy). Null on a teaser or an op-ed, when none runs, or when the reader reads it without ads. Report it with recordCardViews. |
allCredits staffql only |
[Credit!]! |
Every credit on it, shown or not, for its admins. requires audience:write:* |
author |
Profile |
Who started it, or the reader who sent an op-ed: the audience’s admins only. requires soapbox:read:* |
body |
String! |
What it says, in Markdown. |
byline |
String! |
Who it shows as written by: its byline, else the publication’s name. |
canonicalUrl |
String |
Where the publication also publishes it. |
createdAt |
ISO8601DateTime! |
When it was started. |
credits |
[Credit!]! |
Its credits that everyone sees, original source first. |
disclosure |
String |
Ties the publication declared to what it covers (its own gala, a sponsor), shown to readers above the article. |
edited |
Boolean! |
Whether it changed after it was published. |
events |
[Event!]! |
Events it’s about. |
featuredNationally |
Boolean! |
Whether it’s in the audience’s national news now (soapbox.articles(national: true)). |
featuredNationallyAt |
ISO8601DateTime |
When an admin featured it nationally (featureArticleNationally); null when they did not. Admins only. requires soapbox:read:* |
heroAltText |
String |
Its photo, described for screen readers. |
heroPhotoUrl |
PhotoURL |
Its photo, shown above it. |
id |
ID! |
Its UUID. |
kind |
ArticleKind! |
The publication’s own, or a reader’s op-ed. |
locales |
[Locale!]! |
Locales it’s about. |
people |
[Person!]! |
People it’s about. |
pinned |
Boolean! |
Whether it’s pinned above the publication’s others. |
publication |
Publication! |
Who publishes it. |
publishedAt |
ISO8601DateTime |
When it went (or, scheduled, goes) live. |
pushedAt |
ISO8601DateTime |
When its locale push went out (ArticlePush). requires soapbox:read:mine or soapbox:read:* |
removedAt |
ISO8601DateTime |
When the audience’s admins took it down (removeArticle); null while it stands. Admins only. requires soapbox:read:* |
reviewNote |
String |
Why it was sent back, or why an op-ed was declined. requires soapbox:read:mine or soapbox:read:* or soapbox:read:self |
reviewedAt |
ISO8601DateTime |
When the audience’s admins last approved, sent back or removed it. Admins only. requires soapbox:read:* |
reviewedBy |
Profile |
The admin who last approved, sent back or removed it. requires soapbox:read:* |
scheduled |
Boolean! |
Whether it is published but not live yet. |
slug |
String! |
Its name in links, unique in its publication. |
status |
ArticleStatus |
Where it is between writing and readers: the publication, the writer and the audience’s admins. requires soapbox:read:mine or soapbox:read:* or soapbox:read:self |
submittedAt |
ISO8601DateTime |
When it was last sent in. requires soapbox:read:mine or soapbox:read:* or soapbox:read:self |
summary |
String |
A line or two under its title. |
teaser |
Boolean! |
A headline and blurb linking to the piece on the publication’s site (canonicalUrl): open that rather than a reader. Every article of a publication that links out (Publication.linksOut) is one. |
title |
String! |
Its headline. |
updatedAt |
ISO8601DateTime! |
When it last changed. |
venues |
[Venue!]! |
Venues it’s about. |
viewerAdFree |
Boolean! |
Whether the signed-in reader reads its publication without ads now, from a tip: show no ads or sponsored spots with it. A teaser’s own site is the publisher’s business. |
viewerCanManage |
Boolean! |
Whether the signed-in user may edit it: its publication’s managers and the audience’s admins. |
visibility |
ArticleVisibility! |
Who can read it once published. |
ArticleConnection
Section titled “ArticleConnection”Object
The connection type for Article.
| Field | Type | Description |
|---|---|---|
edges |
[ArticleEdge] |
A list of edges. |
nodes |
[Article] |
A list of nodes. |
pageInfo |
PageInfo! |
Information to aid in pagination. |
totalCount |
Int! |
How many there are in all, whatever page this is. |
ArticleEdge
Section titled “ArticleEdge”Object
An edge in a connection.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
A cursor for use in pagination. |
node |
Article |
The item at the end of the edge. |
ArticlesView
Section titled “ArticlesView”Object · implements IArticles
The local Soapbox implementation of a venue, event, person or locale’s articles.
| Field | Type | Description |
|---|---|---|
listafter: Stringbefore: Stringfirst: Intlast: Int |
ArticleConnection! |
Live articles about it, newest first; a person’s also the articles of a publication they run; a locale’s news: about it or anything in it, or by a publication covering it, from the last 30 days (pinned ones whatever their age). Also the articles linked to it or to anything under it. |
publication |
Publication |
The Soapbox publication a person runs here (QSaltLake), null for anything else or a person who runs none. A pending or suspended one only for its managers and the audience’s admins. |
AudienceSoapboxView
Section titled “AudienceSoapboxView”Object · implements IAudienceSoapbox
The local Soapbox implementation of the soapbox module’s root lookups.
| Field | Type | Description |
|---|---|---|
adReviewQueue |
[PromoPlacement!] |
Publishers’ ads waiting for the audience’s admins to approve them, oldest first. requires soapbox:moderate:* |
allArticlesafter: Stringbefore: Stringfirst: Intkinds: [ArticleKind!]last: IntpersonId: IDpublicationId: IDremoved: Booleansearch: Stringstatuses: [ArticleStatus!] |
ArticleConnection |
Every article in the audience, whatever its status and removed ones too, newest change first: the audience’s admins, for moderation (“In the admin”). requires soapbox:moderate:* |
articleid: ID! |
Article |
An article by its UUID: a live one, or one the viewer may see before it is (their publication’s, or their own op-ed). |
articlesafter: Stringbefore: Stringfirst: Intlast: IntlocaleId: IDnational: BooleanpublicationId: ID |
ArticleConnection! |
Live articles in the audience, pinned first, then newest; 20 unless first says. |
myOpEds |
[Article!] |
Op-eds the signed-in user sent, newest first, with where each stands. requires soapbox:read:self |
myPublications |
[Publication!] |
Publications the signed-in user runs (manages their person); every one for admins. requires soapbox:read:mine or soapbox:read:* |
publicationid: ID! |
Publication |
A publication by its UUID. |
publicationTipsafter: Stringbefore: Stringfirst: Intlast: IntpublicationId: IDstatuses: [TipStatus!] |
TipConnection |
Tips readers sent Soapbox publications, newest first: the audience’s admins. requires soapbox:moderate:* |
publicationstrust: [PublicationTrust!] |
[Publication!]! |
Publications readers can follow: trusted ones, by name. Admins can ask for others by trust. |
publisherAds |
PublisherAdsMode! |
Whether publishers sell ads on their own content here, and which of their ads admins review first. |
reviewQueue |
[Article!] |
Articles waiting for the audience’s admins to approve them, oldest first. requires soapbox:moderate:* |
stats |
PublicationStats |
Every publication’s counts added up: articles, tips and ad-free readers. The audience’s admins only. requires soapbox:moderate:* |
PromoCard
Section titled “PromoCard”Object · implements IPromoContent
A promoted or charity card in a promo slot (a PromoPlacement): a venue, an event, or a sponsor’s picture, words and link. The app hides it when the viewer turned its category off, and says it showed it with recordCardViews.
| Field | Type | Description |
|---|---|---|
body |
String |
A line or two under the headline. |
category |
String! |
Its category, one of cardCategories (venue, event, health, employment, small_business, charity). The app filters on it; the server never learns what was hidden. |
event |
Event |
The event it promotes, for an event card. |
headline |
String! |
What it says. |
id |
ID! |
The placement, as recordCardViews takes it. |
imageAlt |
String |
What the picture shows, for screen readers. |
imageUrl |
String |
Its picture. |
label |
String! |
Its badge, in the audience’s words: Promoted, Sponsored for its own venue or event where it takes only sponsorships, Charity for a free charity placement, From AudienceKit for AudienceKit’s own. Show it as sent; it can change without an app release. |
linkLabel |
String |
The link’s button text. |
linkUrl |
String |
Where it goes, opened in the browser. A plain link: nothing about the viewer is added to it. |
soldBy |
String |
The Soapbox publication selling it, for a publisher’s ad on its own content: show “Sold by <soldBy>”. Null for the audience’s own cards. |
sponsorName |
String! |
Who placed it. |
staffApp |
String |
velvet, backstage or focus when the card is about getting that staff app: the app skips it on a phone that already has the app (checked on the device; the server never learns). |
venue |
Venue |
The venue it promotes, for a venue card. |
Publication
Section titled “Publication”Object · implements HasTimestamps
A person listing that publishes articles in the audience’s apps with Soapbox, e.g. QSaltLake. Its name, picture, page and socials are its person’s.
| Field | Type | Description |
|---|---|---|
about |
String |
What it covers. |
acceptsOpEds |
Boolean! |
Whether readers can send it op-eds (submitOpEd). |
ad |
PromoCard |
The ad to show on its page now, sold by the publication on its own content (label Ad, soldBy). Null when none runs, it sells no ads, or the reader reads it without ads. Report it with recordCardViews. |
adFreeDays |
Int! |
How many days a tip of at least adFreeTipCents reads it without ads. |
adFreeOffered |
Boolean! |
Whether readers can tip it to read it without ads now: it asks for a tip, its publisher runs it here, and it takes tips. Apps offer it in US storefronts only, paid on the web (startTip publicationId, then checkoutUrl). |
adFreeTipCents |
Int |
The least tip, in cents, that reads it without ads; null when it offers no ad-free pass. All of the tip is the publisher’s. |
adsstatuses: [PublisherAdStatus!] |
[PromoPlacement!] |
Ads it sells on its own articles and page, newest first: its managers and the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
adsEnabled |
Boolean! |
Whether it may sell ads on its own content now: the audience’s admins switched it on, the audience takes publisher ads, and it runs here and is not suspended. |
adsEnabledAt |
ISO8601DateTime |
When the audience’s admins switched its ads on; null when they haven’t. requires soapbox:read:mine or soapbox:read:* |
adsNeedReview |
Boolean |
Whether its new and changed ads wait for the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
allArticlesafter: Stringbefore: Stringfirst: Intlast: Intstatuses: [ArticleStatus!] |
ArticleConnection |
Every article it has, drafts and op-eds included, newest first: its managers and the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
articlesafter: Stringbefore: Stringfirst: Intlast: Int |
ArticleConnection! |
Its live articles, pinned first, then newest (20 unless first says). |
createdAt |
ISO8601DateTime! |
When it started publishing here. |
editorialEmail |
String |
Where readers send tips and corrections. |
feedCheckedAt |
ISO8601DateTime |
When its feed was last read: its managers and the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
feedError |
String |
Why its feed could not be read last time: its managers and the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
feedUrl |
String |
Its RSS or Atom feed, read hourly into articles that link out to its site: its managers and the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
id |
ID! |
Its UUID. |
linksOut |
Boolean! |
Whether its articles are read on its own site (each a teaser linking to canonicalUrl), because its publisher does not run it here yet. |
locale |
Locale |
The locale it covers. |
masthead |
String |
Its name as a publication, when not its person’s. |
media |
[PublicationMedia!] |
Its media library, newest first: pictures for its articles and ads. Its managers and the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
name |
String! |
The name it publishes under: its masthead, else its person’s. |
onboarded |
Boolean! |
Whether its publisher (someone who manages its person) runs it here. |
opEdGuidelines |
String |
What it asks of op-ed writers. |
person |
Person |
The listing it publishes as. |
photoUrl |
PhotoURL |
Its person’s picture. |
rateSheet |
PublicationRateSheet! |
Its public rate sheet: what its ad spots cost a week, and who to ask. |
stats |
PublicationStats |
Its articles by where they stand, the tips readers paid it and its ad-free readers: the audience’s admins. requires soapbox:read:* |
trust |
PublicationTrust |
How far the audience trusts it: its managers and the audience’s admins. requires soapbox:read:mine or soapbox:read:* |
trustNote |
String |
Why the audience trusted or suspended it. requires soapbox:read:mine or soapbox:read:* |
trusted |
Boolean! |
Whether its articles go out without the audience approving each. |
trustedAt |
ISO8601DateTime |
When the audience last changed its trust. requires soapbox:read:* |
trustedBy |
Profile |
The admin who last changed its trust. requires soapbox:read:* |
updatedAt |
ISO8601DateTime! |
When it last changed. |
viewerAdFree |
Boolean! |
Whether the signed-in reader reads it without ads now, from a tip (hide its ads and sponsored spots around its articles). False when signed out. |
viewerAdFreeUntil |
ISO8601DateTime |
When the signed-in reader’s time reading it without ads ends; null when none. |
viewerCanManage |
Boolean! |
Whether the signed-in user runs it (manages its person) or is the audience’s admin. |
viewerCanPublish |
Boolean! |
Whether the signed-in user may publish its articles without approval: a trusted publication’s managers, or admins. |
viewerMutedPushes |
Boolean! |
Whether the signed-in reader turned its locale pushes off (mutePublicationPushes). False when signed out. |
websiteUrl |
String |
Its website. |
PublicationMedia
Section titled “PublicationMedia”Object · implements HasTimestamps
A picture in a Soapbox publication’s media library, for its articles and ads.
| Field | Type | Description |
|---|---|---|
altText |
String |
What it shows, for screen readers. |
caption |
String |
Its caption. |
createdAt |
ISO8601DateTime! |
When it was added. |
credit |
String |
Who took or made it. |
id |
ID! |
Its UUID. |
updatedAt |
ISO8601DateTime! |
When it last changed. |
url |
PhotoURL! |
The picture. |
PublicationRate
Section titled “PublicationRate”Object
One spot on a Soapbox publication’s public rate sheet: a flat weekly price, never per view or tap.
| Field | Type | Description |
|---|---|---|
slots |
Int! |
How many sponsors share the spot in a week. |
spot |
PublisherAdSpot! |
The spot. |
weeklyCents |
Int |
Its price a week, in cents; null when not listed. |
PublicationRateSheet
Section titled “PublicationRateSheet”Object
A Soapbox publication’s public rate sheet: what its ad spots cost a week and who to ask. All of the money is the publication’s.
| Field | Type | Description |
|---|---|---|
contactEmail |
String |
Who sponsors write to about buying a spot. |
notes |
String |
Anything else sponsors should know (discounts, deadlines). |
rates |
[PublicationRate!]! |
Each spot’s price and slots. |
PublicationStats
Section titled “PublicationStats”Object
What the audience’s admins count about a Soapbox publication, or all of them : its articles by where they stand, the tips readers paid it and the time reading without ads those tips gave. All of a tip is the publisher’s: none of it is the audience’s.
| Field | Type | Description |
|---|---|---|
activeAdFreePasses |
Int! |
Readers reading it without ads right now, from a tip. |
disputedTips |
Int! |
Tips a reader disputed with their bank. |
inReview |
Int! |
Articles waiting for the audience’s admins to approve them. |
lastTipAt |
ISO8601DateTime |
When a reader last paid a tip. |
liveArticles |
Int! |
Articles readers can read now. |
paidTips |
Int! |
Tips readers paid, not refunded or disputed. |
refunded |
Money! |
What refunded tips came to. |
refundedTips |
Int! |
Tips refunded. |
removedArticles |
Int! |
Articles the audience took down. |
tipped |
Money! |
What paid tips came to: all of it the publisher’s. |
totalArticles |
Int! |
Every article it has that the audience has not removed, drafts included. |
TipConnection
Section titled “TipConnection”Object
The connection type for Tip.
| Field | Type | Description |
|---|---|---|
edges |
[TipEdge] |
A list of edges. |
nodes |
[Tip] |
A list of nodes. |
pageInfo |
PageInfo! |
Information to aid in pagination. |
totalCount |
Int! |
How many there are in all, whatever page this is. |
TipEdge
Section titled “TipEdge”Object
An edge in a connection.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
A cursor for use in pagination. |
node |
Tip |
The item at the end of the edge. |
Mutation payloads
Section titled “Mutation payloads”ArticleDeletePayload
Section titled “ArticleDeletePayload”Object · staffql only
Autogenerated return type of ArticleDelete.
| Field | Type | Description |
|---|---|---|
article staffql only |
Article |
Null once deleted. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
ArticleFeatureNationallyPayload
Section titled “ArticleFeatureNationallyPayload”Object · staffql only
Autogenerated return type of ArticleFeatureNationally.
| Field | Type | Description |
|---|---|---|
article staffql only |
Article |
The article. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
ArticleRemovePayload
Section titled “ArticleRemovePayload”Object · staffql only
Autogenerated return type of ArticleRemove.
| Field | Type | Description |
|---|---|---|
article staffql only |
Article |
The article. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
ArticleSavePayload
Section titled “ArticleSavePayload”Object · staffql only
Autogenerated return type of ArticleSave.
| Field | Type | Description |
|---|---|---|
article staffql only |
Article |
The article. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
ArticleStatusSetPayload
Section titled “ArticleStatusSetPayload”Object · staffql only
Autogenerated return type of ArticleStatusSet.
| Field | Type | Description |
|---|---|---|
article staffql only |
Article |
The article. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
OpEdSubmitPayload
Section titled “OpEdSubmitPayload”Object
Autogenerated return type of OpEdSubmit.
| Field | Type | Description |
|---|---|---|
article |
Article |
The op-ed, waiting for the publication. |
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
PublicationAdDeletePayload
Section titled “PublicationAdDeletePayload”Object · staffql only
Autogenerated return type of PublicationAdDelete.
| Field | Type | Description |
|---|---|---|
ad staffql only |
PromoPlacement |
Null once deleted. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
PublicationAdRemovePayload
Section titled “PublicationAdRemovePayload”Object · staffql only
Autogenerated return type of PublicationAdRemove.
| Field | Type | Description |
|---|---|---|
ad staffql only |
PromoPlacement |
The ad. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
PublicationAdReviewPayload
Section titled “PublicationAdReviewPayload”Object · staffql only
Autogenerated return type of PublicationAdReview.
| Field | Type | Description |
|---|---|---|
ad staffql only |
PromoPlacement |
The ad. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
PublicationAdSavePayload
Section titled “PublicationAdSavePayload”Object · staffql only
Autogenerated return type of PublicationAdSave.
| Field | Type | Description |
|---|---|---|
ad staffql only |
PromoPlacement |
The ad (unsaved for a dry run). |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
problems staffql only |
[String!]! |
What stops it being booked; empty when it can be. |
PublicationAdsEnablePayload
Section titled “PublicationAdsEnablePayload”Object · staffql only
Autogenerated return type of PublicationAdsEnable.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
publication staffql only |
Publication |
The publication. |
PublicationMediaAddPayload
Section titled “PublicationMediaAddPayload”Object · staffql only
Autogenerated return type of PublicationMediaAdd.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
media staffql only |
PublicationMedia |
The picture in the library. |
PublicationMediaDeletePayload
Section titled “PublicationMediaDeletePayload”Object · staffql only
Autogenerated return type of PublicationMediaDelete.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
media staffql only |
PublicationMedia |
Null once taken out. |
PublicationMediaUpdatePayload
Section titled “PublicationMediaUpdatePayload”Object · staffql only
Autogenerated return type of PublicationMediaUpdate.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
media staffql only |
PublicationMedia |
The picture. |
PublicationPushesMutePayload
Section titled “PublicationPushesMutePayload”Object
Autogenerated return type of PublicationPushesMute.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
publication |
Publication! |
The publication, after the change. |
PublicationRateSheetSavePayload
Section titled “PublicationRateSheetSavePayload”Object · staffql only
Autogenerated return type of PublicationRateSheetSave.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
publication staffql only |
Publication |
The publication. |
PublicationSavePayload
Section titled “PublicationSavePayload”Object · staffql only
Autogenerated return type of PublicationSave.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
publication staffql only |
Publication |
The publication. |
PublicationTrustSetPayload
Section titled “PublicationTrustSetPayload”Object · staffql only
Autogenerated return type of PublicationTrustSet.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
publication staffql only |
Publication |
The publication. |
SoapboxPublisherAdsSetPayload
Section titled “SoapboxPublisherAdsSetPayload”Object · staffql only
Autogenerated return type of SoapboxPublisherAdsSet.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
mode staffql only |
PublisherAdsMode! |
The setting now. |
Inputs
Section titled “Inputs”ArticleDeleteInput
Section titled “ArticleDeleteInput”Input · staffql only
Autogenerated input type of ArticleDelete
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The article. |
ArticleFeatureNationallyInput
Section titled “ArticleFeatureNationallyInput”Input · staffql only
Autogenerated input type of ArticleFeatureNationally
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
featured staffql only |
Boolean |
false takes it out. |
id staffql only |
ID! |
The article. |
ArticleRemoveInput
Section titled “ArticleRemoveInput”Input · staffql only
Autogenerated input type of ArticleRemove
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The article. |
note staffql only |
String |
Why, shown to the publication. |
removed staffql only |
Boolean |
false puts it back. |
ArticleSaveInput
Section titled “ArticleSaveInput”Input · staffql only
Autogenerated input type of ArticleSave
| Field | Type | Description |
|---|---|---|
body staffql only |
String |
What it says, in Markdown. |
byline staffql only |
String |
Who it shows as written by; empty: the writer’s name. |
canonicalUrl staffql only |
String |
Where the publication also publishes it. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
disclosure staffql only |
String |
Ties to what it covers, shown to readers (its own event, a sponsor). |
eventIds staffql only |
[ID!] |
Events it’s about, replacing the ones it had. |
heroAltText staffql only |
String |
Its photo, described for screen readers. |
heroMediaId staffql only |
ID |
Its photo from the publication’s media library (Publication.media), instead of heroPhoto; its alt text fills heroAltText when that is not given. |
heroPhoto staffql only |
String |
Its photo: an image URL, or an image uploaded as a data: URI; empty removes it. |
id staffql only |
ID |
The article to change. |
localeIds staffql only |
[ID!] |
Locales it’s about, replacing the ones it had. |
personIds staffql only |
[ID!] |
People it’s about, replacing the ones it had. |
pinned staffql only |
Boolean |
Pin it above the publication’s others. |
publicationId staffql only |
ID |
The publication a new draft is for. |
summary staffql only |
String |
A line or two under its title. |
title staffql only |
String |
Its headline; needed for a new draft. |
venueIds staffql only |
[ID!] |
Venues it’s about, replacing the ones it had. |
visibility staffql only |
ArticleVisibility |
Who can read it once published. Default: COMMUNITY. |
ArticleStatusSetInput
Section titled “ArticleStatusSetInput”Input · staffql only
Autogenerated input type of ArticleStatusSet
| Field | Type | Description |
|---|---|---|
action staffql only |
ArticleAction! |
What to do. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The article. |
note staffql only |
String |
Why: shown to the publication when an admin sends it back, or to the writer when an op-ed is declined. |
publishAt staffql only |
ISO8601DateTime |
PUBLISH only: when it goes live. Default now. |
pushLocaleIds staffql only |
[ID!] |
PUBLISH only: push people in these locales (and the locales under them) when it goes live. Trusted publications, once a day per locale; admins any time (ArticlePush). |
pushPurpose staffql only |
ArticlePushPurpose |
With pushLocaleIds: what the push asks people to do. Pushes never ask for money. |
OpEdSubmitInput
Section titled “OpEdSubmitInput”Input
Autogenerated input type of OpEdSubmit
| Field | Type | Description |
|---|---|---|
body |
String! |
What it says, in Markdown. |
byline |
String |
The name to run it under. Default: their short name (“First L.”). |
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
publicationId |
ID! |
The publication. |
summary |
String |
A line or two under its title. |
title |
String! |
Its headline. |
PublicationAdDeleteInput
Section titled “PublicationAdDeleteInput”Input · staffql only
Autogenerated input type of PublicationAdDelete
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The ad. |
PublicationAdRemoveInput
Section titled “PublicationAdRemoveInput”Input · staffql only
Autogenerated input type of PublicationAdRemove
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The ad. |
note staffql only |
String |
Why, for the publication. |
removed staffql only |
Boolean |
false puts it back. |
PublicationAdReviewInput
Section titled “PublicationAdReviewInput”Input · staffql only
Autogenerated input type of PublicationAdReview
| Field | Type | Description |
|---|---|---|
approve staffql only |
Boolean! |
true approves it; false turns it down. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The ad. |
note staffql only |
String |
Why, for the publication; expected when turning it down. |
PublicationAdSaveInput
Section titled “PublicationAdSaveInput”Input · staffql only
Autogenerated input type of PublicationAdSave
| Field | Type | Description |
|---|---|---|
articles staffql only |
[ID!] |
Only on these of the publication’s articles; empty or left out: all. |
body staffql only |
String |
A line or two under the headline. |
category staffql only |
String |
health, employment, small_business or charity (cardCategories). Default small_business. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
dryRun staffql only |
Boolean |
Check it (slots, policy, fields) and return it unsaved. |
endsOn staffql only |
ISO8601Date |
Its last day; omit for open-ended. |
headline staffql only |
String |
What it says; needed for a new ad. |
id staffql only |
ID |
The ad to change; omit to book one. |
image staffql only |
String |
Its picture: an https image URL or a data: URI upload; empty removes it. |
imageAlt staffql only |
String |
What the picture shows; needed with a picture. |
imageMediaId staffql only |
ID |
Its picture from the publication’s media library, instead of image. |
linkLabel staffql only |
String |
The link’s button text. |
linkUrl staffql only |
String |
Where it goes, an https link. |
paused staffql only |
Boolean |
Pause or resume it. |
priceCents staffql only |
Int |
What the sponsor pays for it, in cents, for the publication’s records. Default: the rate sheet price for its weeks. |
publicationId staffql only |
ID |
The publication selling it; needed for a new ad. |
sponsorEmail staffql only |
String |
The sponsor’s contact, for the publication. |
sponsorName staffql only |
String |
Who the ad is for; needed for a new ad. |
spot staffql only |
PublisherAdSpot |
Where it shows. Default ARTICLE. |
startsOn staffql only |
ISO8601Date |
Its first day; needed for a new ad. |
weekdays staffql only |
[Int!] |
Days it shows, 0 (Sunday) to 6; empty: every day. |
PublicationAdsEnableInput
Section titled “PublicationAdsEnableInput”Input · staffql only
Autogenerated input type of PublicationAdsEnable
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
enabled staffql only |
Boolean! |
true switches its ads on; false off. |
id staffql only |
ID! |
The publication. |
PublicationMediaAddInput
Section titled “PublicationMediaAddInput”Input · staffql only
Autogenerated input type of PublicationMediaAdd
| Field | Type | Description |
|---|---|---|
altText staffql only |
String |
What it shows, for screen readers. |
caption staffql only |
String |
Its caption. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
credit staffql only |
String |
Who took or made it. |
photo staffql only |
String! |
The picture: a data: URI upload or an https image URL. |
publicationId staffql only |
ID! |
The publication. |
PublicationMediaDeleteInput
Section titled “PublicationMediaDeleteInput”Input · staffql only
Autogenerated input type of PublicationMediaDelete
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The picture. |
PublicationMediaUpdateInput
Section titled “PublicationMediaUpdateInput”Input · staffql only
Autogenerated input type of PublicationMediaUpdate
| Field | Type | Description |
|---|---|---|
altText staffql only |
String |
What it shows, for screen readers. |
caption staffql only |
String |
Its caption. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
credit staffql only |
String |
Who took or made it. |
id staffql only |
ID! |
The picture. |
PublicationPushesMuteInput
Section titled “PublicationPushesMuteInput”Input
Autogenerated input type of PublicationPushesMute
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
muted |
Boolean |
Turn its pushes off (default) or back on. |
publicationId |
ID! |
The publication. |
PublicationRateSheetSaveInput
Section titled “PublicationRateSheetSaveInput”Input · staffql only
Autogenerated input type of PublicationRateSheetSave
| Field | Type | Description |
|---|---|---|
articleSlots staffql only |
Int |
Sponsors sharing the article spot a week (1 to 20; default 4). |
articleWeeklyCents staffql only |
Int |
The article spot a week, in cents; null unlists it. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
contactEmail staffql only |
String |
Who sponsors write to. |
id staffql only |
ID! |
The publication. |
notes staffql only |
String |
Anything else sponsors should know. |
publicationSlots staffql only |
Int |
Sponsors sharing the page spot a week (1 to 20; default 4). |
publicationWeeklyCents staffql only |
Int |
The page spot a week, in cents; null unlists it. |
PublicationSaveInput
Section titled “PublicationSaveInput”Input · staffql only
Autogenerated input type of PublicationSave
| Field | Type | Description |
|---|---|---|
about staffql only |
String |
What it covers. |
acceptsOpEds staffql only |
Boolean |
Whether readers can send it op-eds. |
adFreeDays staffql only |
Int |
How many days a tip of at least adFreeTipCents reads it without ads (1 to 366; 30 to start). |
adFreeTipCents staffql only |
Int |
The least tip, in cents, that reads it without ads ($5 to start); 0 stops offering it. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
editorialEmail staffql only |
String |
Where readers send tips and corrections. |
feedUrl staffql only |
String |
Its RSS or Atom feed, read hourly into articles that link out to its site (an https URL); empty stops reading it. |
id staffql only |
ID |
The publication to change. |
localeId staffql only |
ID |
The locale it covers; empty clears it. |
masthead staffql only |
String |
Its name as a publication, when not the person’s. |
onboarded staffql only |
Boolean |
The audience’s admins: its publisher runs it here now (true). Its person’s managers onboard it by saving it. Until then its articles link out to its site and it takes no op-eds. |
opEdGuidelines staffql only |
String |
What it asks of op-ed writers. |
personId staffql only |
ID |
The person listing to publish as, for a new one. |
websiteUrl staffql only |
String |
Its website. |
PublicationTrustSetInput
Section titled “PublicationTrustSetInput”Input · staffql only
Autogenerated input type of PublicationTrustSet
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The publication. |
note staffql only |
String |
Why, for the publication and the other admins. |
trust staffql only |
PublicationTrust! |
How far to trust it. |
SoapboxPublisherAdsSetInput
Section titled “SoapboxPublisherAdsSetInput”Input · staffql only
Autogenerated input type of SoapboxPublisherAdsSet
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
mode staffql only |
PublisherAdsMode! |
OFF, REVIEW_ALL or REVIEW_PENDING. |
Interfaces
Section titled “Interfaces”IArticles
Section titled “IArticles”Interface · implemented by ArticlesView · mixin edge articles on Venue, Event, Person, Locale
Soapbox articles about a venue, event, person or locale; a locale’s are its news.
| Field | Type | Description |
|---|---|---|
listafter: Stringbefore: Stringfirst: Intlast: Int |
ArticleConnection! |
Live articles about it, newest first; a person’s also the articles of a publication they run; a locale’s news: about it or anything in it, or by a publication covering it, from the last 30 days (pinned ones whatever their age). Also the articles linked to it or to anything under it. |
publication |
Publication |
The Soapbox publication a person runs here (QSaltLake), null for anything else or a person who runs none. A pending or suspended one only for its managers and the audience’s admins. |
IAudienceSoapbox
Section titled “IAudienceSoapbox”Interface · implemented by AudienceSoapboxView · mixin edge soapbox on Audience
The soapbox module’s root lookups: publications and their articles . What an article is about shows it too (Venue/Event/Person/Locale.articles).
| Field | Type | Description |
|---|---|---|
adReviewQueue |
[PromoPlacement!] |
Publishers’ ads waiting for the audience’s admins to approve them, oldest first. requires soapbox:moderate:* |
allArticlesafter: Stringbefore: Stringfirst: Intkinds: [ArticleKind!]last: IntpersonId: IDpublicationId: IDremoved: Booleansearch: Stringstatuses: [ArticleStatus!] |
ArticleConnection |
Every article in the audience, whatever its status and removed ones too, newest change first: the audience’s admins, for moderation (“In the admin”). requires soapbox:moderate:* |
articleid: ID! |
Article |
An article by its UUID: a live one, or one the viewer may see before it is (their publication’s, or their own op-ed). |
articlesafter: Stringbefore: Stringfirst: Intlast: IntlocaleId: IDnational: BooleanpublicationId: ID |
ArticleConnection! |
Live articles in the audience, pinned first, then newest; 20 unless first says. |
myOpEds |
[Article!] |
Op-eds the signed-in user sent, newest first, with where each stands. requires soapbox:read:self |
myPublications |
[Publication!] |
Publications the signed-in user runs (manages their person); every one for admins. requires soapbox:read:mine or soapbox:read:* |
publicationid: ID! |
Publication |
A publication by its UUID. |
publicationTipsafter: Stringbefore: Stringfirst: Intlast: IntpublicationId: IDstatuses: [TipStatus!] |
TipConnection |
Tips readers sent Soapbox publications, newest first: the audience’s admins. requires soapbox:moderate:* |
publicationstrust: [PublicationTrust!] |
[Publication!]! |
Publications readers can follow: trusted ones, by name. Admins can ask for others by trust. |
publisherAds |
PublisherAdsMode! |
Whether publishers sell ads on their own content here, and which of their ads admins review first. |
reviewQueue |
[Article!] |
Articles waiting for the audience’s admins to approve them, oldest first. requires soapbox:moderate:* |
stats |
PublicationStats |
Every publication’s counts added up: articles, tips and ad-free readers. The audience’s admins only. requires soapbox:moderate:* |
ArticleAction
Section titled “ArticleAction”Enum · staffql only
What setArticleStatus does to a Soapbox article.
ACCEPT_OP_EDTake a reader’s op-ed: it becomes a draft the publication edits.DECLINE_OP_EDDecline a reader’s op-ed, with a note for the writer.PUBLISHPublish now or at publishAt: a trusted publication’s managers, or the audience’s admins (approving one in review).RETURN_TO_DRAFTBack to a draft: the publication pulling it back, or an admin sending it back with a note.SUBMITSend a draft to the audience’s admins for approval (a pending publication’s way out).UNPUBLISHTake it down; it can be published again.
ArticleKind
Section titled “ArticleKind”Enum
What a Soapbox article is: written by the publication, an op-ed from a reader, or a guide.
ARTICLEWritten by the publication.GUIDEA standing guide the publication keeps, e.g. a Pride guide.OP_EDSent to the publication by a reader from the apps.
ArticlePushPurpose
Section titled “ArticlePushPurpose”Enum · staffql only
What a Soapbox locale push asks people to do. Pushes are for showing up, never for money (the “no grifting” policy).
ELECTIONThe audience’s admins only: an election-season push (register, mail ballots, early voting, polling places) that opens the article.EVENTCome to an upcoming event the article is about.VOLUNTEERVolunteer.
ArticleStatus
Section titled “ArticleStatus”Enum
Where a Soapbox article is between writing and readers.
DECLINEDAn op-ed the publication won’t run.DRAFTBeing written; only the publication sees it.IN_REVIEWWaiting for the audience’s admins to approve it.PUBLISHEDLive from publishedAt on (scheduled while that is still to come).SUBMITTEDAn op-ed a reader sent, waiting for the publication.UNPUBLISHEDTaken down by the publication; it can publish it again.
ArticleVisibility
Section titled “ArticleVisibility”Enum
Who can read a published Soapbox article.
COMMUNITYAnyone signed in to the apps. The default.PUBLICThe web too, once the audience’s site shows articles.
PublicationTrust
Section titled “PublicationTrust”Enum
How far the audience trusts a Soapbox publication.
PENDINGAsked to publish: each article waits for the audience’s admins.SUSPENDEDNothing new goes out, and its published articles are hidden.TRUSTEDIts managers publish directly.
PublisherAdsMode
Section titled “PublisherAdsMode”Enum
Whether Soapbox publishers sell ads on their own content in the audience’s apps, and which of their ads its admins review first (Audience.publisher_ads).
OFFPublishers sell no ads here.REVIEW_ALLEvery publisher ad waits for an admin.REVIEW_PENDINGOnly a pending publication’s ads wait; a trusted one’s run on their start date. The default.
PublisherAdSpot
Section titled “PublisherAdSpot”Enum
Where a Soapbox publisher’s ad shows on the publication’s own content.
ARTICLEIn the article reader, after the body: one ad an article view.PUBLICATIONOn the publication’s page, below its masthead.
TipStatus
Section titled “TipStatus”Enum
Where an in-app tip stands.
CANCELEDThe payment was abandoned.DISPUTEDThe fan disputed the charge with their bank.FAILEDThe payment was declined.PAIDPaid to the performer.PENDINGPaying in the app has started but not finished.REFUNDEDThe money went back to the fan.