HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/self/root/home/arjun/projects/buyercall/buyercall/assets/vue/mock/notificationMockAPIs.js
import { GET, POST } from '../constants';

export default [
  {
    type: GET,
    endpoint: '/user/notifications/status',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Notification status fetched successfully!',
      data: {
        isMuted: false,
      },
    },
  },
  {
    type: POST,
    endpoint: '/user/notifications/status',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Notification status updated successfully!',
      data: {},
    },
  },
  {
    type: POST,
    endpoint: '/notifications/update-read',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Notification udpated successfully!',
      data: {},
    },
  },
  {
    type: GET,
    endpoint: '/notifications/get-unviewed-count',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Count fetched successfully!',
      data: 20,
    },
  },
  {
    type: POST,
    endpoint: '/notifications/update-isviewed-flag',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Updated successfully!',
      data: {},
    },
  },
  {
    type: GET,
    endpoint: '/notifications/get-all-unviewed',
    status: 200,
    response: {
      statusCode: 200,
      success: true,
      message: 'Notifications fetched successfully!',
      data: {
        totalRecordCount: 13,
        notifications: [
          {
            type: 'CHAT_CONVERSATION',
            message: 'A chat was initiated by Susan',
            createdAt: '2021-08-04T00:24:17.915203+00:00',
            notificationId: '18',
            hyperLink: 'http://www.google.com',
            is_viewed: false,
          },
          {
            type: 'MISSED_CALL',
            message: 'You have a missed call from (453) 323 323',
            createdAt: '2021-08-03T02:24:17.915203+00:00',
            notificationId: '1',
            hyperLink: 'http://www.google.com',
            is_viewed: false,
          },
          {
            type: 'MISSED_CALL',
            message: 'You have a missed call from (453) 323 323',
            createdAt: '2021-08-02T15:24:17.915203+00:00',
            notificationId: '11',
            hyperLink: 'http://www.google.com',
            is_viewed: false,
          },
          {
            type: 'TEXT_MESSAGE',
            message: 'You recieved text message from John Beard.',
            createdAt: '2021-08-01T15:24:17.915203+00:00',
            notificationId: '2',
            hyperLink: '',
            is_viewed: false,
          },
          {
            type: 'FORM_SUBMISSION',
            message: 'You recieved a form submission from Burt Reynolds.',
            createdAt: '2021-07-29T15:24:17.915203+00:00',
            notificationId: '3',
            hyperLink: '',
            is_viewed: true,
          },
          {
            type: 'VOICE_MAIL',
            message: 'You have a voice mail from (453) 323 323',
            createdAt: '2021-07-29T15:24:17.915203+00:00',
            notificationId: '4',
            hyperLink: '',
            is_viewed: false,
          },
          {
            type: 'VOICE_MAIL',
            message: 'You have a voice mail from (453) 323 323',
            createdAt: '2021-07-29T15:24:17.915203+00:00',
            notificationId: '24',
            hyperLink: '',
            is_viewed: true,
          },
          {
            type: 'FORM_SUBMISSION',
            message: 'You recieved a form submission from Burt Reynolds.',
            createdAt: '2021-07-28T15:24:17.915203+00:00',
            notificationId: '5',
            hyperLink: 'http://www.google.com',
            is_viewed: false,
          },
          {
            type: 'VOICE_MAIL',
            message: 'You have a voice mail from (453) 323 323',
            createdAt: '2021-07-28T15:24:17.915203+00:00',
            notificationId: '6',
            hyperLink: '',
            is_viewed: false,
          },
          {
            type: 'VOICE_MAIL',
            message: 'You have a voice mail from (453) 323 323',
            createdAt: '2021-07-28T15:24:17.915203+00:00',
            notificationId: '7',
            hyperLink: '',
            is_viewed: true,
          },
          {
            type: 'VOICE_MAIL',
            message: 'You have a voice mail from (453) 323 323',
            createdAt: '2021-07-28T15:24:17.915203+00:00',
            notificationId: '8',
            hyperLink: '',
            is_viewed: false,
          },
          {
            type: 'VOICE_MAIL',
            message: 'You have a voice mail from (453) 323 323',
            createdAt: '2021-07-28T15:24:17.915203+00:00',
            notificationId: '9',
            hyperLink: '',
            is_viewed: true,
          },
        ],
      },
    },
  },
];