@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/slack.slack/index.js~
packages/ari/slack.slack/index.jsModified+2−11
Index: package/packages/ari/slack.slack/index.js
===================================================================
--- package/packages/ari/slack.slack/index.js
+++ package/packages/ari/slack.slack/index.js
@@ -283,25 +283,21 @@
var slackSlackConversationAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: SlackSlackConversationAriResourceOwner,
resourceType: SlackSlackConversationAriResourceType,
resourceIdSlug: "workspaceId/{workspaceId}/channelId/{channelId}",
resourceIdSegmentFormats: {
workspaceId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
channelId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/slack.slack/conversation/index.ts
var SlackSlackConversationAri = class _SlackSlackConversationAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._channelId = opts.resourceIdSegmentValues.channelId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._channelId = opts.resourceIdSegmentValues.channelId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -342,27 +338,22 @@
var slackSlackMessageAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: SlackSlackMessageAriResourceOwner,
resourceType: SlackSlackMessageAriResourceType,
resourceIdSlug: "workspaceId/{workspaceId}/channelId/{channelId}/messageId/{messageId}",
resourceIdSegmentFormats: {
workspaceId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
channelId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
messageId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/slack.slack/message/index.ts
var SlackSlackMessageAri = class _SlackSlackMessageAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._channelId = opts.resourceIdSegmentValues.channelId, this._messageId = opts.resourceIdSegmentValues.messageId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._channelId = opts.resourceIdSegmentValues.channelId, this._messageId = opts.resourceIdSegmentValues.messageId;
}
get workspaceId() {
return this._workspaceId;
}