@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-A6LBXM6A.mjs−
packages/ari/chunk-A6LBXM6A.mjsDeleted−60
Index: package/packages/ari/chunk-A6LBXM6A.mjs
===================================================================
--- package/packages/ari/chunk-A6LBXM6A.mjs
+++ package/packages/ari/chunk-A6LBXM6A.mjs
@@ -1,60 +0,0 @@
-import {
- TrelloUserAriResourceOwner,
- TrelloUserAriResourceType
-} from "./chunk-OZFY5Y6K.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/trello/user/manifest.ts
-var trelloUserAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^$"),
- resourceOwner: TrelloUserAriResourceOwner,
- resourceType: TrelloUserAriResourceType,
- resourceIdSlug: "{userId}",
- resourceIdSegmentFormats: {
- userId: /[a-zA-Z0-9\-_.]*/
- }
-};
-
-// src/trello/user/index.ts
-var TrelloUserAri = class _TrelloUserAri extends RegisteredAri {
- constructor(opts) {
- super(opts), this._userId = opts.resourceIdSegmentValues.userId;
- }
- get userId() {
- return this._userId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: trelloUserAriStaticOpts.qualifier,
- platformQualifier: trelloUserAriStaticOpts.platformQualifier,
- cloudId: void 0,
- resourceOwner: trelloUserAriStaticOpts.resourceOwner,
- resourceType: trelloUserAriStaticOpts.resourceType,
- resourceId: `${opts.userId}`,
- resourceIdSegmentValues: {
- userId: opts.userId || ""
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, trelloUserAriStaticOpts);
- return new _TrelloUserAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, trelloUserAriStaticOpts);
- return new _TrelloUserAri(opts);
- }
- getVariables() {
- return {
- userId: this.userId
- };
- }
-};
-
-export {
- TrelloUserAri
-};