Skip to content

Latest commit

 

History

History
68 lines (63 loc) · 2.7 KB

subscriberscontrollermarkactionasseenresponse.md

File metadata and controls

68 lines (63 loc) · 2.7 KB

SubscribersControllerMarkActionAsSeenResponse

Example Usage

import { SubscribersControllerMarkActionAsSeenResponse } from "@novu/api/models/operations";

let value: SubscribersControllerMarkActionAsSeenResponse = {
  headers: {
    "key": [
      "<value>",
    ],
  },
  result: {
    templateId: "<id>",
    environmentId: "<id>",
    messageTemplateId: "<id>",
    organizationId: "<id>",
    notificationId: "<id>",
    subscriberId: "<id>",
    subscriber: {
      subscriberId: "<id>",
      channels: [
        {
          providerId: "one-signal",
          credentials: {
            webhookUrl: "https://example.com/webhook",
            channel: "general",
            deviceTokens: [
              "token1",
              "token2",
              "token3",
            ],
            alertUid: "12345-abcde",
            title: "Critical Alert",
            imageUrl: "https://example.com/image.png",
            state: "resolved",
            externalUrl: "https://example.com/details",
          },
          integrationId: "<id>",
        },
      ],
      organizationId: "<id>",
      environmentId: "<id>",
      deleted: false,
      createdAt: "1708622953211",
      updatedAt: "1737082765077",
    },
    createdAt: "1708591326770",
    content: "<value>",
    transactionId: "<id>",
    channel: "sms",
    read: false,
    seen: false,
    cta: {
      data: {},
    },
    status: "warning",
  },
};

Fields

Field Type Required Description
headers Record<string, string[]> ✔️ N/A
result components.MessageResponseDto ✔️ N/A