@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-6TBYSXCU.mjs
+packages/ari/chunk-6TBYSXCU.mjsNew file
+66
Index: package/packages/ari/chunk-6TBYSXCU.mjs
===================================================================
--- package/packages/ari/chunk-6TBYSXCU.mjs
+++ package/packages/ari/chunk-6TBYSXCU.mjs
@@ -0,0 +1,66 @@
+import {
+  IdentityThirdPartyGroupAriResourceOwner,
+  IdentityThirdPartyGroupAriResourceType
+} from "./chunk-IMAEBUUM.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/identity/third-party-group/manifest.ts
+var identityThirdPartyGroupAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^$"),
+  resourceOwner: IdentityThirdPartyGroupAriResourceOwner,
+  resourceType: IdentityThirdPartyGroupAriResourceType,
+  resourceIdSlug: "{directoryId}/{groupId}",
+  resourceIdSegmentFormats: {
+    directoryId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
+    groupId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+  }
+};
+
+// src/identity/third-party-group/index.ts
+var IdentityThirdPartyGroupAri = class _IdentityThirdPartyGroupAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId, this._groupId = opts.resourceIdSegmentValues.groupId;
+  }
+  get directoryId() {
+    return this._directoryId;
+  }
+  get groupId() {
+    return this._groupId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: identityThirdPartyGroupAriStaticOpts.qualifier,
+      platformQualifier: identityThirdPartyGroupAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: identityThirdPartyGroupAriStaticOpts.resourceOwner,
+      resourceType: identityThirdPartyGroupAriStaticOpts.resourceType,
+      resourceId: `${opts.directoryId}/${opts.groupId}`,
+      resourceIdSegmentValues: {
+        directoryId: opts.directoryId,
+        groupId: opts.groupId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, identityThirdPartyGroupAriStaticOpts);
+    return new _IdentityThirdPartyGroupAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, identityThirdPartyGroupAriStaticOpts);
+    return new _IdentityThirdPartyGroupAri(opts);
+  }
+  getVariables() {
+    return {
+      directoryId: this.directoryId,
+      groupId: this.groupId
+    };
+  }
+};
+
+export {
+  IdentityThirdPartyGroupAri
+};