@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-EDM7BCEH.mjs
+packages/ari/chunk-EDM7BCEH.mjsNew file
+60
Index: package/packages/ari/chunk-EDM7BCEH.mjs
===================================================================
--- package/packages/ari/chunk-EDM7BCEH.mjs
+++ package/packages/ari/chunk-EDM7BCEH.mjs
@@ -0,0 +1,60 @@
+import {
+  IdentityTeamWorkspaceAriResourceOwner,
+  IdentityTeamWorkspaceAriResourceType
+} from "./chunk-GEBJAERK.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/identity/team-workspace/manifest.ts
+var identityTeamWorkspaceAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^$"),
+  resourceOwner: IdentityTeamWorkspaceAriResourceOwner,
+  resourceType: IdentityTeamWorkspaceAriResourceType,
+  resourceIdSlug: "{workspaceId}",
+  resourceIdSegmentFormats: {
+    workspaceId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+  }
+};
+
+// src/identity/team-workspace/index.ts
+var IdentityTeamWorkspaceAri = class _IdentityTeamWorkspaceAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId;
+  }
+  get workspaceId() {
+    return this._workspaceId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: identityTeamWorkspaceAriStaticOpts.qualifier,
+      platformQualifier: identityTeamWorkspaceAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: identityTeamWorkspaceAriStaticOpts.resourceOwner,
+      resourceType: identityTeamWorkspaceAriStaticOpts.resourceType,
+      resourceId: `${opts.workspaceId}`,
+      resourceIdSegmentValues: {
+        workspaceId: opts.workspaceId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, identityTeamWorkspaceAriStaticOpts);
+    return new _IdentityTeamWorkspaceAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, identityTeamWorkspaceAriStaticOpts);
+    return new _IdentityTeamWorkspaceAri(opts);
+  }
+  getVariables() {
+    return {
+      workspaceId: this.workspaceId
+    };
+  }
+};
+
+export {
+  IdentityTeamWorkspaceAri
+};