@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-BZRGJTNI.mjs
packages/ari/chunk-BZRGJTNI.mjsDeleted
−63
Index: package/packages/ari/chunk-BZRGJTNI.mjs
===================================================================
--- package/packages/ari/chunk-BZRGJTNI.mjs
+++ package/packages/ari/chunk-BZRGJTNI.mjs
@@ -1,63 +0,0 @@
-import {
-  BitbucketOauthConsumerAriResourceOwner,
-  BitbucketOauthConsumerAriResourceType
-} from "./chunk-B6DXOH6V.mjs";
-import {
-  RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
-  AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/bitbucket/oauth-consumer/manifest.ts
-var bitbucketOauthConsumerAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^$"),
-  // eslint-disable-line no-useless-escape
-  resourceOwner: BitbucketOauthConsumerAriResourceOwner,
-  resourceType: BitbucketOauthConsumerAriResourceType,
-  resourceIdSlug: "{clientId}",
-  resourceIdSegmentFormats: {
-    clientId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
-    // eslint-disable-line no-useless-escape
-  }
-};
-
-// src/bitbucket/oauth-consumer/index.ts
-var BitbucketOauthConsumerAri = class _BitbucketOauthConsumerAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts);
-    this._clientId = opts.resourceIdSegmentValues.clientId;
-  }
-  get clientId() {
-    return this._clientId;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: bitbucketOauthConsumerAriStaticOpts.qualifier,
-      platformQualifier: bitbucketOauthConsumerAriStaticOpts.platformQualifier,
-      cloudId: void 0,
-      resourceOwner: bitbucketOauthConsumerAriStaticOpts.resourceOwner,
-      resourceType: bitbucketOauthConsumerAriStaticOpts.resourceType,
-      resourceId: `${opts.clientId}`,
-      resourceIdSegmentValues: {
-        clientId: opts.clientId
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, bitbucketOauthConsumerAriStaticOpts);
-    return new _BitbucketOauthConsumerAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, bitbucketOauthConsumerAriStaticOpts);
-    return new _BitbucketOauthConsumerAri(opts);
-  }
-  getVariables() {
-    return {
-      clientId: this.clientId
-    };
-  }
-};
-
-export {
-  BitbucketOauthConsumerAri
-};