UNPKG

@nu-art/bug-report

Version:
35 lines (34 loc) 1.4 kB
"use strict"; /* * Allow the user to file a bug report directly from your app * * Copyright (C) 2020 Adam van der Kruk aka TacB0sS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiDef_BugReport = exports.ApiDef_AdminBugReport = exports.Platform_Slack = exports.Platform_Jira = void 0; const thunderstorm_1 = require("@nu-art/thunderstorm"); exports.Platform_Jira = 'jira'; exports.Platform_Slack = 'slack'; exports.ApiDef_AdminBugReport = { v1: { downloadLogs: { method: thunderstorm_1.HttpMethod.POST, path: 'v1/bug-reports/download-logs' }, retrieveLogs: { method: thunderstorm_1.HttpMethod.GET, path: 'v1/bug-reports/get-logs' }, } }; exports.ApiDef_BugReport = { v1: { sendBugReport: { method: thunderstorm_1.HttpMethod.POST, path: 'v1/bug-reports/report' } } };