@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/microsoft/index.js~
packages/ari/microsoft/index.jsModified+5−24
Index: package/packages/ari/microsoft/index.js
===================================================================
--- package/packages/ari/microsoft/index.js
+++ package/packages/ari/microsoft/index.js
@@ -286,23 +286,20 @@
var microsoftAccountAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MicrosoftAccountAriResourceOwner,
resourceType: MicrosoftAccountAriResourceType,
resourceIdSlug: "{accountId}",
resourceIdSegmentFormats: {
accountId: /[a-zA-Z0-9\-_.~@;{}=]{0,255}/
- // eslint-disable-line no-useless-escape
}
};
// src/microsoft/account/index.ts
var MicrosoftAccountAri = class _MicrosoftAccountAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._accountId = opts.resourceIdSegmentValues.accountId;
+ super(opts), this._accountId = opts.resourceIdSegmentValues.accountId;
}
get accountId() {
return this._accountId;
}
@@ -338,25 +335,21 @@
var microsoftCalendarEventAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MicrosoftCalendarEventAriResourceOwner,
resourceType: MicrosoftCalendarEventAriResourceType,
resourceIdSlug: "outlook/userId/{userId}/calendarEventId/{calendarEventId}",
resourceIdSegmentFormats: {
userId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
calendarEventId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/microsoft/calendar-event/index.ts
var MicrosoftCalendarEventAri = class _MicrosoftCalendarEventAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._userId = opts.resourceIdSegmentValues.userId, this._calendarEventId = opts.resourceIdSegmentValues.calendarEventId;
+ super(opts), this._userId = opts.resourceIdSegmentValues.userId, this._calendarEventId = opts.resourceIdSegmentValues.calendarEventId;
}
get userId() {
return this._userId;
}
@@ -397,25 +390,21 @@
var microsoftChannelAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MicrosoftChannelAriResourceOwner,
resourceType: MicrosoftChannelAriResourceType,
resourceIdSlug: "teamId/{teamId}/channelId/{channelId}",
resourceIdSegmentFormats: {
teamId: /[!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/microsoft/channel/index.ts
var MicrosoftChannelAri = class _MicrosoftChannelAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._teamId = opts.resourceIdSegmentValues.teamId, this._channelId = opts.resourceIdSegmentValues.channelId;
+ super(opts), this._teamId = opts.resourceIdSegmentValues.teamId, this._channelId = opts.resourceIdSegmentValues.channelId;
}
get teamId() {
return this._teamId;
}
@@ -456,25 +445,21 @@
var microsoftChatAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MicrosoftChatAriResourceOwner,
resourceType: MicrosoftChatAriResourceType,
resourceIdSlug: "chatId/{chatId}/messageId/{messageId}",
resourceIdSegmentFormats: {
chatId: /[!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/microsoft/chat/index.ts
var MicrosoftChatAri = class _MicrosoftChatAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._chatId = opts.resourceIdSegmentValues.chatId, this._messageId = opts.resourceIdSegmentValues.messageId;
+ super(opts), this._chatId = opts.resourceIdSegmentValues.chatId, this._messageId = opts.resourceIdSegmentValues.messageId;
}
get chatId() {
return this._chatId;
}
@@ -515,25 +500,21 @@
var microsoftSharepointDocumentAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MicrosoftSharepointDocumentAriResourceOwner,
resourceType: MicrosoftSharepointDocumentAriResourceType,
resourceIdSlug: "driveId/{driveId}/fileId/{fileId}",
resourceIdSegmentFormats: {
driveId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
fileId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/microsoft/sharepoint-document/index.ts
var MicrosoftSharepointDocumentAri = class _MicrosoftSharepointDocumentAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._driveId = opts.resourceIdSegmentValues.driveId, this._fileId = opts.resourceIdSegmentValues.fileId;
+ super(opts), this._driveId = opts.resourceIdSegmentValues.driveId, this._fileId = opts.resourceIdSegmentValues.fileId;
}
get driveId() {
return this._driveId;
}