@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-5R4C6BRK.mjs
packages/ari/chunk-5R4C6BRK.mjsDeleted
−63
Index: package/packages/ari/chunk-5R4C6BRK.mjs
===================================================================
--- package/packages/ari/chunk-5R4C6BRK.mjs
+++ package/packages/ari/chunk-5R4C6BRK.mjs
@@ -1,63 +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("^$"),
-  // 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;
-  }
-  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
-};