UNPKG

1.61 kBJavaScriptView Raw
1"use strict";
2function __export(m) {
3 for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4}
5Object.defineProperty(exports, "__esModule", { value: true });
6var logger_1 = require("@slack/logger");
7exports.LogLevel = logger_1.LogLevel;
8// Using a wildcard (*) export because listing each individual method is cumbersome and hard to keep up to date.
9// The following export contains:
10// addAppMetadata,
11// TLSOptions,
12// retryPolicies,
13// RetryOptions,
14// WebClient,
15// WebClientOptions,
16// WebAPICallOptions,
17// WebAPICallResult,
18// WebAPIPlatformError,
19// WebAPIRequestError,
20// WebAPIHTTPError,
21// WebAPIRateLimitedError,
22// WebAPICallError,
23// WebClientEvent,
24// and all method definitions
25__export(require("@slack/web-api"));
26var web_api_1 = require("@slack/web-api");
27exports.WebAPIErrorCode = web_api_1.ErrorCode;
28var rtm_api_1 = require("@slack/rtm-api");
29exports.RTMClient = rtm_api_1.RTMClient;
30var rtm_api_2 = require("@slack/rtm-api");
31exports.RTMAPIErrorCode = rtm_api_2.ErrorCode;
32var webhook_1 = require("@slack/webhook");
33exports.IncomingWebhook = webhook_1.IncomingWebhook;
34var webhook_2 = require("@slack/webhook");
35exports.WebhookErrorCode = webhook_2.ErrorCode;
36// Merge the two ErrorCode constants into one, to make this as similar to @slack/client@4 as possible
37const web_api_2 = require("@slack/web-api");
38const rtm_api_3 = require("@slack/rtm-api");
39const webhook_3 = require("@slack/webhook");
40// tslint:disable-next-line:variable-name
41exports.ErrorCode = Object.assign({}, web_api_2.ErrorCode, rtm_api_3.ErrorCode, webhook_3.ErrorCode);
42//# sourceMappingURL=index.js.map
\No newline at end of file