@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/trello/index.js~
packages/ari/trello/index.jsModified+332−99
Index: package/packages/ari/trello/index.js
===================================================================
--- package/packages/ari/trello/index.js
+++ package/packages/ari/trello/index.js
@@ -16,12 +16,16 @@
// src/trello/index.ts
var trello_exports = {};
__export(trello_exports, {
+ TrelloActionAri: () => TrelloActionAri,
+ TrelloAiRuleAri: () => TrelloAiRuleAri,
+ TrelloApplicationAri: () => TrelloApplicationAri,
TrelloAttachmentAri: () => TrelloAttachmentAri,
TrelloAvatarAri: () => TrelloAvatarAri,
TrelloBackgroundAri: () => TrelloBackgroundAri,
TrelloBoardAri: () => TrelloBoardAri,
+ TrelloBoardStarAri: () => TrelloBoardStarAri,
TrelloCardAri: () => TrelloCardAri,
TrelloCheckItemAri: () => TrelloCheckItemAri,
TrelloChecklistAri: () => TrelloChecklistAri,
TrelloCustomFieldAri: () => TrelloCustomFieldAri,
@@ -29,11 +33,13 @@
TrelloEnterpriseAri: () => TrelloEnterpriseAri,
TrelloLabelAri: () => TrelloLabelAri,
TrelloListAri: () => TrelloListAri,
TrelloLogoAri: () => TrelloLogoAri,
+ TrelloNotificationAri: () => TrelloNotificationAri,
TrelloPlannerAri: () => TrelloPlannerAri,
TrelloPlannerCalendarAri: () => TrelloPlannerCalendarAri,
TrelloPlannerEventCardAri: () => TrelloPlannerEventCardAri,
+ TrelloPowerUpDataAri: () => TrelloPowerUpDataAri,
TrelloRoleAri: () => TrelloRoleAri,
TrelloSiteAri: () => TrelloSiteAri,
TrelloStickerAri: () => TrelloStickerAri,
TrelloUserAri: () => TrelloUserAri,
@@ -294,35 +300,177 @@
return AnyAri.parse(this.toString());
}
};
+// src/trello/action/types.ts
+var TrelloActionAriResourceOwner = "trello", TrelloActionAriResourceType = "action";
+
+// src/trello/action/manifest.ts
+var trelloActionAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: TrelloActionAriResourceOwner,
+ resourceType: TrelloActionAriResourceType,
+ resourceIdSlug: "{actionId}",
+ resourceIdSegmentFormats: {
+ actionId: /[a-zA-Z0-9\-_.]*/
+ }
+};
+
+// src/trello/action/index.ts
+var TrelloActionAri = class _TrelloActionAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._actionId = opts.resourceIdSegmentValues.actionId;
+ }
+ get actionId() {
+ return this._actionId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: trelloActionAriStaticOpts.qualifier,
+ platformQualifier: trelloActionAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: trelloActionAriStaticOpts.resourceOwner,
+ resourceType: trelloActionAriStaticOpts.resourceType,
+ resourceId: `${opts.actionId}`,
+ resourceIdSegmentValues: {
+ actionId: opts.actionId || ""
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, trelloActionAriStaticOpts);
+ return new _TrelloActionAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, trelloActionAriStaticOpts);
+ return new _TrelloActionAri(opts);
+ }
+ getVariables() {
+ return {
+ actionId: this.actionId
+ };
+ }
+};
+
+// src/trello/ai-rule/types.ts
+var TrelloAiRuleAriResourceOwner = "trello", TrelloAiRuleAriResourceType = "ai-rule";
+
+// src/trello/ai-rule/manifest.ts
+var trelloAiRuleAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: TrelloAiRuleAriResourceOwner,
+ resourceType: TrelloAiRuleAriResourceType,
+ resourceIdSlug: "{aiRuleId}",
+ resourceIdSegmentFormats: {
+ aiRuleId: /[a-zA-Z0-9\-_.]*/
+ }
+};
+
+// src/trello/ai-rule/index.ts
+var TrelloAiRuleAri = class _TrelloAiRuleAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._aiRuleId = opts.resourceIdSegmentValues.aiRuleId;
+ }
+ get aiRuleId() {
+ return this._aiRuleId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: trelloAiRuleAriStaticOpts.qualifier,
+ platformQualifier: trelloAiRuleAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: trelloAiRuleAriStaticOpts.resourceOwner,
+ resourceType: trelloAiRuleAriStaticOpts.resourceType,
+ resourceId: `${opts.aiRuleId}`,
+ resourceIdSegmentValues: {
+ aiRuleId: opts.aiRuleId || ""
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, trelloAiRuleAriStaticOpts);
+ return new _TrelloAiRuleAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, trelloAiRuleAriStaticOpts);
+ return new _TrelloAiRuleAri(opts);
+ }
+ getVariables() {
+ return {
+ aiRuleId: this.aiRuleId
+ };
+ }
+};
+
+// src/trello/application/types.ts
+var TrelloApplicationAriResourceOwner = "trello", TrelloApplicationAriResourceType = "application";
+
+// src/trello/application/manifest.ts
+var trelloApplicationAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: TrelloApplicationAriResourceOwner,
+ resourceType: TrelloApplicationAriResourceType,
+ resourceIdSlug: "{applicationId}",
+ resourceIdSegmentFormats: {
+ applicationId: /[a-zA-Z0-9\-_.]*/
+ }
+};
+
+// src/trello/application/index.ts
+var TrelloApplicationAri = class _TrelloApplicationAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._applicationId = opts.resourceIdSegmentValues.applicationId;
+ }
+ get applicationId() {
+ return this._applicationId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: trelloApplicationAriStaticOpts.qualifier,
+ platformQualifier: trelloApplicationAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: trelloApplicationAriStaticOpts.resourceOwner,
+ resourceType: trelloApplicationAriStaticOpts.resourceType,
+ resourceId: `${opts.applicationId}`,
+ resourceIdSegmentValues: {
+ applicationId: opts.applicationId || ""
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, trelloApplicationAriStaticOpts);
+ return new _TrelloApplicationAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, trelloApplicationAriStaticOpts);
+ return new _TrelloApplicationAri(opts);
+ }
+ getVariables() {
+ return {
+ applicationId: this.applicationId
+ };
+ }
+};
+
// src/trello/attachment/types.ts
var TrelloAttachmentAriResourceOwner = "trello", TrelloAttachmentAriResourceType = "attachment";
// src/trello/attachment/manifest.ts
var trelloAttachmentAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloAttachmentAriResourceOwner,
resourceType: TrelloAttachmentAriResourceType,
resourceIdSlug: "card/workspace/{workspaceId}/{cardId}/{attachmentId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
cardId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
attachmentId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/attachment/index.ts
var TrelloAttachmentAri = class _TrelloAttachmentAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._cardId = opts.resourceIdSegmentValues.cardId, this._attachmentId = opts.resourceIdSegmentValues.attachmentId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._cardId = opts.resourceIdSegmentValues.cardId, this._attachmentId = opts.resourceIdSegmentValues.attachmentId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -368,25 +516,21 @@
var trelloAvatarAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloAvatarAriResourceOwner,
resourceType: TrelloAvatarAriResourceType,
resourceIdSlug: "member/{memberId}/{avatarHash}",
resourceIdSegmentFormats: {
memberId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
avatarHash: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/avatar/index.ts
var TrelloAvatarAri = class _TrelloAvatarAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._memberId = opts.resourceIdSegmentValues.memberId, this._avatarHash = opts.resourceIdSegmentValues.avatarHash;
+ super(opts), this._memberId = opts.resourceIdSegmentValues.memberId, this._avatarHash = opts.resourceIdSegmentValues.avatarHash;
}
get memberId() {
return this._memberId;
}
@@ -427,27 +571,22 @@
var trelloBackgroundAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloBackgroundAriResourceOwner,
resourceType: TrelloBackgroundAriResourceType,
resourceIdSlug: "type-id/background-type/{backgroundType}/{typeId}/{backgroundId}",
resourceIdSegmentFormats: {
backgroundType: /(?:member|board|shared)/,
- // eslint-disable-line no-useless-escape
typeId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
backgroundId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/background/index.ts
var TrelloBackgroundAri = class _TrelloBackgroundAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._backgroundType = opts.resourceIdSegmentValues.backgroundType, this._typeId = opts.resourceIdSegmentValues.typeId, this._backgroundId = opts.resourceIdSegmentValues.backgroundId;
+ super(opts), this._backgroundType = opts.resourceIdSegmentValues.backgroundType, this._typeId = opts.resourceIdSegmentValues.typeId, this._backgroundId = opts.resourceIdSegmentValues.backgroundId;
}
get backgroundType() {
return this._backgroundType;
}
@@ -493,25 +632,21 @@
var trelloBoardAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloBoardAriResourceOwner,
resourceType: TrelloBoardAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{boardId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
boardId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/board/index.ts
var TrelloBoardAri = class _TrelloBoardAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._boardId = opts.resourceIdSegmentValues.boardId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._boardId = opts.resourceIdSegmentValues.boardId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -544,33 +679,78 @@
};
}
};
+// src/trello/board-star/types.ts
+var TrelloBoardStarAriResourceOwner = "trello", TrelloBoardStarAriResourceType = "board-star";
+
+// src/trello/board-star/manifest.ts
+var trelloBoardStarAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: TrelloBoardStarAriResourceOwner,
+ resourceType: TrelloBoardStarAriResourceType,
+ resourceIdSlug: "{boardStarId}",
+ resourceIdSegmentFormats: {
+ boardStarId: /[a-zA-Z0-9\-_.]*/
+ }
+};
+
+// src/trello/board-star/index.ts
+var TrelloBoardStarAri = class _TrelloBoardStarAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._boardStarId = opts.resourceIdSegmentValues.boardStarId;
+ }
+ get boardStarId() {
+ return this._boardStarId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: trelloBoardStarAriStaticOpts.qualifier,
+ platformQualifier: trelloBoardStarAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: trelloBoardStarAriStaticOpts.resourceOwner,
+ resourceType: trelloBoardStarAriStaticOpts.resourceType,
+ resourceId: `${opts.boardStarId}`,
+ resourceIdSegmentValues: {
+ boardStarId: opts.boardStarId || ""
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, trelloBoardStarAriStaticOpts);
+ return new _TrelloBoardStarAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, trelloBoardStarAriStaticOpts);
+ return new _TrelloBoardStarAri(opts);
+ }
+ getVariables() {
+ return {
+ boardStarId: this.boardStarId
+ };
+ }
+};
+
// src/trello/card/types.ts
var TrelloCardAriResourceOwner = "trello", TrelloCardAriResourceType = "card";
// src/trello/card/manifest.ts
var trelloCardAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloCardAriResourceOwner,
resourceType: TrelloCardAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{cardId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
cardId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/card/index.ts
var TrelloCardAri = class _TrelloCardAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._cardId = opts.resourceIdSegmentValues.cardId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._cardId = opts.resourceIdSegmentValues.cardId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -611,25 +791,21 @@
var trelloCheckItemAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloCheckItemAriResourceOwner,
resourceType: TrelloCheckItemAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{checkItemId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
checkItemId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/check-item/index.ts
var TrelloCheckItemAri = class _TrelloCheckItemAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._checkItemId = opts.resourceIdSegmentValues.checkItemId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._checkItemId = opts.resourceIdSegmentValues.checkItemId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -670,25 +846,21 @@
var trelloChecklistAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloChecklistAriResourceOwner,
resourceType: TrelloChecklistAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{checklistId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
checklistId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/checklist/index.ts
var TrelloChecklistAri = class _TrelloChecklistAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._checklistId = opts.resourceIdSegmentValues.checklistId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._checklistId = opts.resourceIdSegmentValues.checklistId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -729,25 +901,21 @@
var trelloCustomFieldAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloCustomFieldAriResourceOwner,
resourceType: TrelloCustomFieldAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{customFieldId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
customFieldId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/custom-field/index.ts
var TrelloCustomFieldAri = class _TrelloCustomFieldAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._customFieldId = opts.resourceIdSegmentValues.customFieldId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._customFieldId = opts.resourceIdSegmentValues.customFieldId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -788,23 +956,20 @@
var trelloEmojiAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloEmojiAriResourceOwner,
resourceType: TrelloEmojiAriResourceType,
resourceIdSlug: "{customEmojiId}",
resourceIdSegmentFormats: {
customEmojiId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/emoji/index.ts
var TrelloEmojiAri = class _TrelloEmojiAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._customEmojiId = opts.resourceIdSegmentValues.customEmojiId;
+ super(opts), this._customEmojiId = opts.resourceIdSegmentValues.customEmojiId;
}
get customEmojiId() {
return this._customEmojiId;
}
@@ -840,23 +1005,20 @@
var trelloEnterpriseAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloEnterpriseAriResourceOwner,
resourceType: TrelloEnterpriseAriResourceType,
resourceIdSlug: "{enterpriseId}",
resourceIdSegmentFormats: {
enterpriseId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/enterprise/index.ts
var TrelloEnterpriseAri = class _TrelloEnterpriseAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._enterpriseId = opts.resourceIdSegmentValues.enterpriseId;
+ super(opts), this._enterpriseId = opts.resourceIdSegmentValues.enterpriseId;
}
get enterpriseId() {
return this._enterpriseId;
}
@@ -892,25 +1054,21 @@
var trelloLabelAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloLabelAriResourceOwner,
resourceType: TrelloLabelAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{labelId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
labelId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/label/index.ts
var TrelloLabelAri = class _TrelloLabelAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._labelId = opts.resourceIdSegmentValues.labelId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._labelId = opts.resourceIdSegmentValues.labelId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -951,25 +1109,21 @@
var trelloListAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloListAriResourceOwner,
resourceType: TrelloListAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{listId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
listId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/list/index.ts
var TrelloListAri = class _TrelloListAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._listId = opts.resourceIdSegmentValues.listId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._listId = opts.resourceIdSegmentValues.listId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -1010,27 +1164,22 @@
var trelloLogoAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloLogoAriResourceOwner,
resourceType: TrelloLogoAriResourceType,
resourceIdSlug: "type-id/logo-type/{logoType}/{typeId}/{logoHash}",
resourceIdSegmentFormats: {
logoType: /(?:organization|enterprise)/,
- // eslint-disable-line no-useless-escape
typeId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
logoHash: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/logo/index.ts
var TrelloLogoAri = class _TrelloLogoAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._logoType = opts.resourceIdSegmentValues.logoType, this._typeId = opts.resourceIdSegmentValues.typeId, this._logoHash = opts.resourceIdSegmentValues.logoHash;
+ super(opts), this._logoType = opts.resourceIdSegmentValues.logoType, this._typeId = opts.resourceIdSegmentValues.typeId, this._logoHash = opts.resourceIdSegmentValues.logoHash;
}
get logoType() {
return this._logoType;
}
@@ -1068,33 +1217,84 @@
};
}
};
+// src/trello/notification/types.ts
+var TrelloNotificationAriResourceOwner = "trello", TrelloNotificationAriResourceType = "notification";
+
+// src/trello/notification/manifest.ts
+var trelloNotificationAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: TrelloNotificationAriResourceOwner,
+ resourceType: TrelloNotificationAriResourceType,
+ resourceIdSlug: "member/{memberId}/{notificationId}",
+ resourceIdSegmentFormats: {
+ memberId: /[a-zA-Z0-9\-_.]*/,
+ notificationId: /[a-zA-Z0-9\-_.]*/
+ }
+};
+
+// src/trello/notification/index.ts
+var TrelloNotificationAri = class _TrelloNotificationAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._memberId = opts.resourceIdSegmentValues.memberId, this._notificationId = opts.resourceIdSegmentValues.notificationId;
+ }
+ get memberId() {
+ return this._memberId;
+ }
+ get notificationId() {
+ return this._notificationId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: trelloNotificationAriStaticOpts.qualifier,
+ platformQualifier: trelloNotificationAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: trelloNotificationAriStaticOpts.resourceOwner,
+ resourceType: trelloNotificationAriStaticOpts.resourceType,
+ resourceId: `member/${opts.memberId}/${opts.notificationId}`,
+ resourceIdSegmentValues: {
+ memberId: opts.memberId || "",
+ notificationId: opts.notificationId || ""
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, trelloNotificationAriStaticOpts);
+ return new _TrelloNotificationAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, trelloNotificationAriStaticOpts);
+ return new _TrelloNotificationAri(opts);
+ }
+ getVariables() {
+ return {
+ memberId: this.memberId,
+ notificationId: this.notificationId
+ };
+ }
+};
+
// src/trello/planner/types.ts
var TrelloPlannerAriResourceOwner = "trello", TrelloPlannerAriResourceType = "planner";
// src/trello/planner/manifest.ts
var trelloPlannerAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloPlannerAriResourceOwner,
resourceType: TrelloPlannerAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{plannerId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
plannerId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/planner/index.ts
var TrelloPlannerAri = class _TrelloPlannerAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._plannerId = opts.resourceIdSegmentValues.plannerId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._plannerId = opts.resourceIdSegmentValues.plannerId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -1135,25 +1335,21 @@
var trelloPlannerCalendarAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloPlannerCalendarAriResourceOwner,
resourceType: TrelloPlannerCalendarAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{plannerCalendarId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
plannerCalendarId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/planner-calendar/index.ts
var TrelloPlannerCalendarAri = class _TrelloPlannerCalendarAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._plannerCalendarId = opts.resourceIdSegmentValues.plannerCalendarId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._plannerCalendarId = opts.resourceIdSegmentValues.plannerCalendarId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -1194,25 +1390,21 @@
var trelloPlannerEventCardAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloPlannerEventCardAriResourceOwner,
resourceType: TrelloPlannerEventCardAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{plannerEventCardId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/,
- // eslint-disable-line no-useless-escape
plannerEventCardId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/planner-event-card/index.ts
var TrelloPlannerEventCardAri = class _TrelloPlannerEventCardAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._plannerEventCardId = opts.resourceIdSegmentValues.plannerEventCardId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._plannerEventCardId = opts.resourceIdSegmentValues.plannerEventCardId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -1245,33 +1437,78 @@
};
}
};
+// src/trello/power-up-data/types.ts
+var TrelloPowerUpDataAriResourceOwner = "trello", TrelloPowerUpDataAriResourceType = "power-up-data";
+
+// src/trello/power-up-data/manifest.ts
+var trelloPowerUpDataAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: TrelloPowerUpDataAriResourceOwner,
+ resourceType: TrelloPowerUpDataAriResourceType,
+ resourceIdSlug: "{powerUpDataId}",
+ resourceIdSegmentFormats: {
+ powerUpDataId: /[a-zA-Z0-9\-_.]*/
+ }
+};
+
+// src/trello/power-up-data/index.ts
+var TrelloPowerUpDataAri = class _TrelloPowerUpDataAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._powerUpDataId = opts.resourceIdSegmentValues.powerUpDataId;
+ }
+ get powerUpDataId() {
+ return this._powerUpDataId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: trelloPowerUpDataAriStaticOpts.qualifier,
+ platformQualifier: trelloPowerUpDataAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: trelloPowerUpDataAriStaticOpts.resourceOwner,
+ resourceType: trelloPowerUpDataAriStaticOpts.resourceType,
+ resourceId: `${opts.powerUpDataId}`,
+ resourceIdSegmentValues: {
+ powerUpDataId: opts.powerUpDataId || ""
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, trelloPowerUpDataAriStaticOpts);
+ return new _TrelloPowerUpDataAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, trelloPowerUpDataAriStaticOpts);
+ return new _TrelloPowerUpDataAri(opts);
+ }
+ getVariables() {
+ return {
+ powerUpDataId: this.powerUpDataId
+ };
+ }
+};
+
// src/trello/role/types.ts
var TrelloRoleAriResourceOwner = "trello", TrelloRoleAriResourceType = "role";
// src/trello/role/manifest.ts
var trelloRoleAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloRoleAriResourceOwner,
resourceType: TrelloRoleAriResourceType,
resourceIdSlug: "{roleGroup}/{roleType}",
resourceIdSegmentFormats: {
roleGroup: /(?:workspace|enterprise|product)/,
- // eslint-disable-line no-useless-escape
roleType: /(?:member|admin)/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/role/index.ts
var TrelloRoleAri = class _TrelloRoleAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._roleGroup = opts.resourceIdSegmentValues.roleGroup, this._roleType = opts.resourceIdSegmentValues.roleType;
+ super(opts), this._roleGroup = opts.resourceIdSegmentValues.roleGroup, this._roleType = opts.resourceIdSegmentValues.roleType;
}
get roleGroup() {
return this._roleGroup;
}
@@ -1312,9 +1549,8 @@
var trelloSiteAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloSiteAriResourceOwner,
resourceType: TrelloSiteAriResourceType,
resourceIdSlug: "trello",
resourceIdSegmentFormats: {}
@@ -1353,23 +1589,20 @@
var trelloStickerAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloStickerAriResourceOwner,
resourceType: TrelloStickerAriResourceType,
resourceIdSlug: "{customStickerId}",
resourceIdSegmentFormats: {
customStickerId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/sticker/index.ts
var TrelloStickerAri = class _TrelloStickerAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._customStickerId = opts.resourceIdSegmentValues.customStickerId;
+ super(opts), this._customStickerId = opts.resourceIdSegmentValues.customStickerId;
}
get customStickerId() {
return this._customStickerId;
}
@@ -1405,23 +1638,20 @@
var trelloUserAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloUserAriResourceOwner,
resourceType: TrelloUserAriResourceType,
resourceIdSlug: "{userId}",
resourceIdSegmentFormats: {
userId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/user/index.ts
var TrelloUserAri = class _TrelloUserAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._userId = opts.resourceIdSegmentValues.userId;
+ super(opts), this._userId = opts.resourceIdSegmentValues.userId;
}
get userId() {
return this._userId;
}
@@ -1457,23 +1687,20 @@
var trelloWorkspaceAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: TrelloWorkspaceAriResourceOwner,
resourceType: TrelloWorkspaceAriResourceType,
resourceIdSlug: "{workspaceId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-_.]*/
- // eslint-disable-line no-useless-escape
}
};
// src/trello/workspace/index.ts
var TrelloWorkspaceAri = class _TrelloWorkspaceAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId;
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId;
}
get workspaceId() {
return this._workspaceId;
}
@@ -1502,12 +1729,16 @@
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
+ TrelloActionAri,
+ TrelloAiRuleAri,
+ TrelloApplicationAri,
TrelloAttachmentAri,
TrelloAvatarAri,
TrelloBackgroundAri,
TrelloBoardAri,
+ TrelloBoardStarAri,
TrelloCardAri,
TrelloCheckItemAri,
TrelloChecklistAri,
TrelloCustomFieldAri,
@@ -1515,11 +1746,13 @@
TrelloEnterpriseAri,
TrelloLabelAri,
TrelloListAri,
TrelloLogoAri,
+ TrelloNotificationAri,
TrelloPlannerAri,
TrelloPlannerCalendarAri,
TrelloPlannerEventCardAri,
+ TrelloPowerUpDataAri,
TrelloRoleAri,
TrelloSiteAri,
TrelloStickerAri,
TrelloUserAri,