{"version":3,"file":"deletecollectionReceiverHandler.mjs","sources":["../../../../../../../../../src/grafana/api/notifications/v0alpha1/mocks/handlers/ReceiverHandlers/deletecollectionReceiverHandler.ts"],"sourcesContent":["import { HttpResponse, http } from 'msw';\n\nimport {\n  API_GROUP,\n  API_VERSION,\n  DeletecollectionReceiverApiResponse,\n} from '@grafana/api-clients/rtkq/notifications.alerting/v0alpha1';\n\nimport { getAPIBaseURLForMocks } from '../../../../../../mocks/util';\n\nexport function deletecollectionReceiverHandler(\n  data: DeletecollectionReceiverApiResponse | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Response)\n) {\n  return http.delete(getAPIBaseURLForMocks(API_GROUP, API_VERSION, '/receivers'), function handler(info) {\n    if (typeof data === 'function') {\n      return data(info);\n    }\n\n    return HttpResponse.json(data);\n  });\n}\n"],"names":[],"mappings":";;;;;AAUO,SAAS,gCACd,IAAA,EACA;AACA,EAAA,OAAO,IAAA,CAAK,OAAO,qBAAA,CAAsB,SAAA,EAAW,aAAa,YAAY,CAAA,EAAG,SAAS,OAAA,CAAQ,IAAA,EAAM;AACrG,IAAA,IAAI,OAAO,SAAS,UAAA,EAAY;AAC9B,MAAA,OAAO,KAAK,IAAI,CAAA;AAAA,IAClB;AAEA,IAAA,OAAO,YAAA,CAAa,KAAK,IAAI,CAAA;AAAA,EAC/B,CAAC,CAAA;AACH;;;;"}