notification81 ops

API de Notification

Push, SMS, and email notifications with per-channel providers and templates.

Consultas

CONSULTA

accountEmails

#

The emails sent to one person of the caller's workspace — a driver, a customer, a merchant, a provider — newest first, each with what its provider has reported since. Requires an admin of the workspace. An account of another workspace returns an empty page: the list is read under the caller's own workspace, whatever id is asked for.

Argumentos

  • input!
Devuelve!
CONSULTA

adminEmailSuppressions

#

The platform's opt-out list, most recent first (PlatformAdmin only).

Argumentos

  • input
Devuelve!
CONSULTA

adminEmailSuppressionsExport

#

The platform's whole opt-out list as CSV (PlatformAdmin only).

DevuelveString!
CONSULTA

adminListAnnouncements

#

List announcements with pagination (admin only)

Argumentos

  • input!
Devuelve!
CONSULTA

adminMailing

#

One mailing with its content and audiences (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
CONSULTA

adminMailingAudience

#

One audience (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
CONSULTA

adminMailingAudiencePreview

#

Who a source would reach right now, saved or not: the count, a sample, and how many are left out and why (PlatformAdmin only).

Argumentos

  • input
  • details
Devuelve!
CONSULTA

adminMailingAudiences

#

Saved audiences, newest first (PlatformAdmin only).

Argumentos

  • input
Devuelve!
CONSULTA

adminMailingContacts

#

The addresses of an imported audience (PlatformAdmin only).

Argumentos

  • input!
Devuelve!
CONSULTA

adminMailingPreflight

#

The launch checklist of a draft, and who it would reach (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
CONSULTA

adminMailingPreview

#

The mailing exactly as one recipient would receive it, rendered by the path that sends it. Without recipientEmail it is rendered for the first recipient (PlatformAdmin only).

Argumentos

  • id!
  • recipientEmailString
Devuelve!
CONSULTA

adminMailingRecipients

#

A launched mailing's recipients in sending order, each with what its provider has reported since (PlatformAdmin only).

Argumentos

  • input!
Devuelve!
CONSULTA

adminMailingReport

#

A launched mailing in numbers (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
CONSULTA

adminMailings

#

Mailings, newest first, each with its progress once launched (PlatformAdmin only).

Argumentos

  • input
Devuelve!
CONSULTA

adminMailingStreams

#

The sending streams that are set up (PlatformAdmin only).

Devuelve[!]!
CONSULTA

adminTenantEmails

#

The emails sent to a workspace, newest first, each with what its provider has reported since (PlatformAdmin only). audience: WORKSPACE is what BetterSuite sent the workspace itself, from its sign-up verification onwards. audience: USERS is what its people were sent — the sign-in codes and resets of its staff, and the mail the users of its apps received.

Argumentos

  • input!
Devuelve!
CONSULTA

announcement

#

Get a single announcement by ID (admin only)

Argumentos

  • id!
Devuelve
CONSULTA

announcements

#

Query active announcements targeted at the current account. The app is taken from the x-app request header.

Argumentos

  • limitInt
Devuelve[!]!
CONSULTA

deliveryFailureSummary

#

How many of the workspace's texts, pushes and emails were attempted over the last days days, and how many failed, per gateway where the log knows it. Requires an admin of the workspace. days is held to between 1 and 90.

Argumentos

  • daysInt!

    Por defecto

    7
Devuelve!
CONSULTA

emailContent

#

What one logged email said, while it is kept (90 days from the send). A platform admin may read any email's; an admin of a workspace, those of the emails its own people were sent. Null for everything else: an email that does not exist, one whose content is not kept, and one the caller may not read all answer alike.

Argumentos

  • id!
Devuelve
CONSULTA

emailProviderDefinitions

#

List all available email provider definitions for the tenant

Devuelve[!]!
CONSULTA

emailProviders

#

List all email providers for the tenant

Devuelve[!]!
CONSULTA

emailScenarioDefinitions

#

List the email scenario definitions configurable from the caller's panel. Platform admins get platform + shared scenarios; tenant owners/admins get tenant + shared scenarios. Each definition carries its default subject, description, and the variables the system provides. # Authorization Requires PlatformAdmin, TenantOwner, or TenantAdmin role.

Devuelve[!]!
CONSULTA

emailTemplates

#

List the email templates configurable from the caller's panel. Templates whose scenario is outside the caller's role (e.g. a platform billing scenario for a tenant admin) are filtered out so the list stays coherent with [super::EmailScenarioDefinitionQuery]. # Authorization Requires PlatformAdmin, TenantOwner, or TenantAdmin role.

Devuelve[!]!
CONSULTA

liveActivities

#

Query live activities for the current account

Argumentos

  • app!
  • topics[String!]
Devuelve[!]!
CONSULTA

messageDeliveries

#

The texts or pushes sent on behalf of the caller's workspace, newest first, each with how its gateway answered. Narrowed by outcome and by when it was sent. Requires an admin of the workspace. A text is kept for 90 days and a push for 14. What a message said is never kept.

Argumentos

  • input!
Devuelve!
CONSULTA

myNotificationPreferences

#

Get the current user's notification preferences. Returns preferences grouped by category, filtered for the caller's app and role. Merges tenant defaults with user overrides.

Devuelve!
CONSULTA

notifications

Obsoleta#

Query durable notifications for the current account

Motivo de la obsolescencia: Use notificationsPage(app, status, pagination); legacy list retires through BET-204

Argumentos

  • app!
  • status
  • limitInt
  • offsetInt
Devuelve[!]!
CONSULTA

notificationsPage

#

Durable notifications with the same app, role and status visibility as the list.

Argumentos

  • app!
  • status
  • pagination
Devuelve!
CONSULTA

pushProviders

Obsoleta#

Motivo de la obsolescencia: Use pushProvidersWithValues; BET-205

Argumentos

  • ownership
Devuelve[!]!
CONSULTA

pushProvidersWithValues

#

List push providers for an owner scope (admin only). Defaults to the caller's tenant-owned providers; ownership: PLATFORM lists the shared platform providers and requires a platform admin.

Argumentos

  • ownership
Devuelve[!]!
CONSULTA

smsProviderCatalog

#

Every SMS gateway, ranked for the given countries. Pass the tenant's operating countries (from myOperationFootprint) to get per-country prices, a coverage verdict, and a recommendation. Pass an empty list to get the bare catalog — credential schemas and integration status, with no pricing.

Argumentos

  • countryCodes[String!]!

    ISO 3166-1 alpha-2 codes the gateway must serve, e.g. ["GB", "SA"].

    Por defecto

    []
Devuelve[!]!
CONSULTA

smsProviderCoverage

#

Full SMS provider coverage matrix. Globally-available providers report an empty country_codes list with is_global = true.

Devuelve[!]!
CONSULTA

smsProviders

#

List all SMS providers for the tenant (admin only)

Argumentos

  • input!

    Por defecto

    {
      "search": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
Devuelve!
CONSULTA

smsTemplates

#

List all SMS templates for the tenant

Devuelve[!]!
CONSULTA

unreadCount

#

Get unread count for an app

Argumentos

  • app!
DevuelveInt!
CONSULTA

workspaceEmails

#

The emails the people of the caller's workspace were sent — its customers, drivers, merchants, providers, and its own staff signing in — newest first, each with what its provider has reported since. Narrowed by outcome and by when it was sent. Requires an admin of the workspace. The workspace is the session's. What BetterSuite sent the workspace itself is not in this list.

Argumentos

  • input!
Devuelve!

Mutaciones

MUTACIÓN

adminAddEmailSuppressions

#

Opt addresses out of every topic, at most 1,000 a call. An address already opted out is left as it is (PlatformAdmin only).

Argumentos

  • input!
Devuelve!
MUTACIÓN

adminArchiveMailingAudience

#

Take an audience out of the lists; mailings that use it keep it (PlatformAdmin only).

Argumentos

  • id!
DevuelveBoolean!
MUTACIÓN

adminCancelMailing

#

Stop a launched mailing for good; what was sent stays sent (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
MUTACIÓN

adminCreateMailing

#

Start a draft on a stream (PlatformAdmin only).

Argumentos

  • input!
Devuelve!
MUTACIÓN

adminCreateMailingAudience

#

Save a new audience (PlatformAdmin only).

Argumentos

  • input
  • details
Devuelve!
MUTACIÓN

adminDeleteMailing

#

Delete a draft (PlatformAdmin only).

Argumentos

  • id!
DevuelveBoolean!
MUTACIÓN

adminImportMailingContacts

#

Add rows to an imported audience, at most 1,000 a call; a row whose address is already there refreshes it (PlatformAdmin only).

Argumentos

  • input!
Devuelve!
MUTACIÓN

adminLaunchMailing

#

Freeze a draft's recipients and start sending, at once or at startAt. Refused until every check of the launch checklist passes (PlatformAdmin only).

Argumentos

  • id!
  • startAt
Devuelve!
MUTACIÓN

adminLiftEmailSuppression

#

Lift an opt-out an admin or an import added. One the recipient made, or that a bounce or complaint wrote, stays (PlatformAdmin only).

Argumentos

  • emailString!
DevuelveBoolean!
MUTACIÓN

adminPauseMailing

#

Hold a launched mailing (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
MUTACIÓN

adminResumeMailing

#

Release a paused mailing (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
MUTACIÓN

adminResumeMailingStream

#

Let a halted stream send again (PlatformAdmin only).

Argumentos

  • id!
Devuelve!
MUTACIÓN

adminSaveMailingStream

#

Set up the stream of a kind, or change the one that is there (PlatformAdmin only).

Argumentos

  • input!
Devuelve!
MUTACIÓN

adminSendMailingTest

#

Send the mailing as it stands to one address, through its stream and with its unsubscribe header. It does not count in the mailing's numbers (PlatformAdmin only).

Argumentos

  • id!
  • toEmailString!
DevuelveBoolean!
MUTACIÓN

adminUpdateMailing

#

Edit a draft; a launched mailing's content is locked (PlatformAdmin only).

Argumentos

  • id!
  • input!
Devuelve!
MUTACIÓN

adminUpdateMailingAudience

#

Change an audience's name, filter or provenance. Its kind is fixed (PlatformAdmin only).

Argumentos

  • id!
  • input
  • details
Devuelve!
MUTACIÓN

createAnnouncement

#

Create an announcement (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

createEmailProvider

#

Create a new email provider configuration

Argumentos

  • input!
Devuelve!
MUTACIÓN

createEmailTemplate

#

Create a new email template. # Authorization Requires an admin-tier role *and* that the scenario belongs to the caller's panel (tenant admins cannot create platform templates, and vice versa).

Argumentos

  • input!
Devuelve!
MUTACIÓN

createSmsProvider

#

Create a new SMS provider (admin only)

Argumentos

  • input
  • details
Devuelve!
MUTACIÓN

createSmsTemplate

#

Create a new SMS template

Argumentos

  • input!
Devuelve!
MUTACIÓN

deleteAnnouncement

#

Delete an announcement (admin only)

Argumentos

  • id!
DevuelveBoolean!
MUTACIÓN

deleteEmailProvider

#

Delete an email provider

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

deleteEmailTemplate

#

Delete an email template. # Authorization Requires an admin-tier role; the template's scenario must belong to the caller's panel (enforced in the use case once the template is loaded).

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

deleteSmsProvider

#

Delete an SMS provider (admin only)

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

deleteSmsTemplate

#

Delete an SMS template

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

dismissNotification

#

Dismiss a notification

Argumentos

  • input!
DevuelveBoolean!
MUTACIÓN

markAllRead

#

Mark all notifications as read

Argumentos

  • input!
DevuelveInt!
MUTACIÓN

markNotificationRead

#

Mark a notification as read

Argumentos

  • input!
DevuelveBoolean!
MUTACIÓN

registerLiveActivityToken

Obsoleta#

Motivo de la obsolescencia: Use registerLiveActivityTokenResult; BET-205

Argumentos

  • input!
Devuelve!
MUTACIÓN

registerLiveActivityTokenResult

#

Register an iOS ActivityKit Live Activity push token for direct APNs delivery of content-state updates.

Argumentos

  • input!
Devuelve!
MUTACIÓN

registerPushToken

#

Register a push notification token for the authenticated device

Argumentos

  • input!
Devuelve!
MUTACIÓN

removePushToken

#

Remove the push token for the authenticated device (call on logout).

DevuelveBoolean!
MUTACIÓN

sendTestEmail

#

Send a test email for the given scenario, using the caller's tenant's default email provider and its configured template. Always returns the rendered preview. When dryRun is true the email is rendered but not dispatched, so admins can verify placeholder substitution before committing to a real send. # Authorization Requires an admin-tier role *and* that the scenario belongs to the caller's panel — a tenant cannot test-send a platform scenario, and vice versa.

Argumentos

  • input!
Devuelve!
MUTACIÓN

setDefaultEmailProvider

#

Set an email provider as the default for the tenant

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

setDefaultSmsProvider

#

Set an SMS provider as the default (admin only)

Argumentos

  • idString!
DevuelveBoolean!
MUTACIÓN

testSmsProvider

Obsoleta#

Motivo de la obsolescencia: Use testSmsProviderResult; BET-205

Argumentos

  • idString!
  • phoneNumberString!
Devuelve!
MUTACIÓN

testSmsProviderResult

#

Test an SMS provider by sending a test message (admin only)

Argumentos

  • idString!
  • phoneNumberString!
Devuelve!
MUTACIÓN

updateAnnouncement

#

Update an announcement (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateEmailProvider

#

Update an existing email provider

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateEmailTemplate

#

Update an existing email template. # Authorization Requires an admin-tier role; the template's scenario must belong to the caller's panel (enforced in the use case once the template is loaded).

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateMyNotificationPreferences

#

Update the current user's notification preferences. Accepts a list of preference changes (subject + channel + enabled). Only marketing/optable subjects can be toggled — transactional and OTP subjects are rejected. Returns the full updated preferences after applying changes.

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateSmsProvider

#

Update an existing SMS provider (admin only)

Argumentos

  • input
  • details
Devuelve!
MUTACIÓN

updateSmsTemplate

#

Update an existing SMS template

Argumentos

  • input!
Devuelve!