{"version":3,"file":"mockResponses.cjs","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mockResponses.ts"],"names":[],"mappings":";;;AAAA,yEAKuC;AACvC,iFAA6E;AAC7E,2EAAyE;AACzE,iFAAsF;AACtF,yEAA6E;AAQhE,QAAA,mBAAmB,GAAG,IAAA,mEAAsC,GAAE,CAAC;AAE5E,kIAAkI;AAClI,qEAAqE;AAC9D,MAAM,kCAAkC,GAAG,GAAG,EAAE;IACrD,OAAO;QACL,GAAG,EAAE,gDAAwB;QAC7B,aAAa,EAAE,KAAK;QACpB,QAAQ,EAAE,2BAAmB;KACP,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,kCAAkC,sCAM7C;AAEK,MAAM,iCAAiC,GAAG,GAAG,EAAE;IACpD,OAAO;QACL,GAAG,EAAE,IAAA,sDAAkC,GAAE;QACzC,aAAa,EAAE,MAAM;QACrB,QAAQ,EAAE,IAAI;KACQ,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,iCAAiC,qCAM5C;AAEK,MAAM,iCAAiC,GAAG,GAAG,EAAE;IACpD,OAAO;QACL,GAAG,EAAE,IAAA,4DAAwC,GAAE;QAC/C,aAAa,EAAE,MAAM;QACrB,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KACjC,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,iCAAiC,qCAM5C;AACF,oEAAoE;AAEvD,QAAA,+BAA+B,GAC1C,IAAA,0DAAiC,GAAE,CAAC;AAEtC,kIAAkI;AAClI,qEAAqE;AAC9D,MAAM,gCAAgC,GAAG,GAAG,EAAE;IACnD,OAAO;QACL,GAAG,EAAE,IAAA,kDAA8B,GAAE;QACrC,aAAa,EAAE,MAAM;QACrB,QAAQ,EAAE,uCAA+B;KACnB,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,gCAAgC,oCAM3C;AAEK,MAAM,sCAAsC,GAAG,GAAG,EAAE;IACzD,OAAO;QACL,GAAG,EAAE,IAAA,8DAA0C,GAAE;QACjD,aAAa,EAAE,MAAM;QACrB,QAAQ,EAAE,IAAI;KACQ,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,sCAAsC,0CAMjD;AAEK,MAAM,kCAAkC,GAAG,GAAG,EAAE;IACrD,OAAO;QACL,GAAG,EAAE,4CAAuB;QAC5B,aAAa,EAAE,MAAM;QACrB,QAAQ,EAAE,IAAI;KACQ,CAAC;AAC3B,CAAC,CAAC;AANW,QAAA,kCAAkC,sCAM7C;AACF,oEAAoE","sourcesContent":["import {\n  NOTIFICATION_API_LIST_ENDPOINT,\n  NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT,\n  TRIGGER_API_NOTIFICATIONS_ENDPOINT,\n  TRIGGER_API_NOTIFICATIONS_QUERY_ENDPOINT,\n} from '../services/api-notifications';\nimport { FEATURE_ANNOUNCEMENT_API } from '../services/feature-announcements';\nimport { PERPS_API_CREATE_ORDERS } from '../services/perp-notifications';\nimport { createMockFeatureAnnouncementAPIResult } from './mock-feature-announcements';\nimport { createMockRawOnChainNotifications } from './mock-raw-notifications';\n\ntype MockResponse = {\n  url: string;\n  requestMethod: 'GET' | 'POST' | 'PUT' | 'DELETE';\n  response: unknown;\n};\n\nexport const CONTENTFUL_RESPONSE = createMockFeatureAnnouncementAPIResult();\n\n// Using `satisfies` to preserve narrow return types while ensuring type safety; explicit return types would widen to MockResponse\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nexport const getMockFeatureAnnouncementResponse = () => {\n  return {\n    url: FEATURE_ANNOUNCEMENT_API,\n    requestMethod: 'GET',\n    response: CONTENTFUL_RESPONSE,\n  } satisfies MockResponse;\n};\n\nexport const getMockUpdateOnChainNotifications = () => {\n  return {\n    url: TRIGGER_API_NOTIFICATIONS_ENDPOINT(),\n    requestMethod: 'POST',\n    response: null,\n  } satisfies MockResponse;\n};\n\nexport const getMockOnChainNotificationsConfig = () => {\n  return {\n    url: TRIGGER_API_NOTIFICATIONS_QUERY_ENDPOINT(),\n    requestMethod: 'POST',\n    response: [{ address: '0xTestAddress', enabled: true }],\n  } satisfies MockResponse;\n};\n/* eslint-enable @typescript-eslint/explicit-function-return-type */\n\nexport const MOCK_RAW_ON_CHAIN_NOTIFICATIONS =\n  createMockRawOnChainNotifications();\n\n// Using `satisfies` to preserve narrow return types while ensuring type safety; explicit return types would widen to MockResponse\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nexport const getMockListNotificationsResponse = () => {\n  return {\n    url: NOTIFICATION_API_LIST_ENDPOINT(),\n    requestMethod: 'POST',\n    response: MOCK_RAW_ON_CHAIN_NOTIFICATIONS,\n  } satisfies MockResponse;\n};\n\nexport const getMockMarkNotificationsAsReadResponse = () => {\n  return {\n    url: NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT(),\n    requestMethod: 'POST',\n    response: null,\n  } satisfies MockResponse;\n};\n\nexport const getMockCreatePerpOrderNotification = () => {\n  return {\n    url: PERPS_API_CREATE_ORDERS,\n    requestMethod: 'POST',\n    response: null,\n  } satisfies MockResponse;\n};\n/* eslint-enable @typescript-eslint/explicit-function-return-type */\n"]}