@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/slack/index.js~
packages/ari/slack/index.jsModified+11−2
Index: package/packages/ari/slack/index.js
===================================================================
--- package/packages/ari/slack/index.js
+++ package/packages/ari/slack/index.js
@@ -283,21 +283,25 @@
var slackChannelAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: SlackChannelAriResourceOwner,
resourceType: SlackChannelAriResourceType,
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/channel/index.ts
var SlackChannelAri = class _SlackChannelAri 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;
}
@@ -338,22 +342,27 @@
var slackMessageAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: SlackMessageAriResourceOwner,
resourceType: SlackMessageAriResourceType,
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/message/index.ts
var SlackMessageAri = class _SlackMessageAri 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;
}