@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-WH5VP55F.mjs
+packages/ari/chunk-WH5VP55F.mjsNew file
+60
Index: package/packages/ari/chunk-WH5VP55F.mjs
===================================================================
--- package/packages/ari/chunk-WH5VP55F.mjs
+++ package/packages/ari/chunk-WH5VP55F.mjs
@@ -0,0 +1,60 @@
+import {
+  UnifiedPortableProfileParentAccountAriResourceOwner,
+  UnifiedPortableProfileParentAccountAriResourceType
+} from "./chunk-PFRWENB5.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/unified-portable-profile/parent-account/manifest.ts
+var unifiedPortableProfileParentAccountAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^$"),
+  resourceOwner: UnifiedPortableProfileParentAccountAriResourceOwner,
+  resourceType: UnifiedPortableProfileParentAccountAriResourceType,
+  resourceIdSlug: "{parentAccountInternalId}",
+  resourceIdSegmentFormats: {
+    parentAccountInternalId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+  }
+};
+
+// src/unified-portable-profile/parent-account/index.ts
+var UnifiedPortableProfileParentAccountAri = class _UnifiedPortableProfileParentAccountAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._parentAccountInternalId = opts.resourceIdSegmentValues.parentAccountInternalId;
+  }
+  get parentAccountInternalId() {
+    return this._parentAccountInternalId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: unifiedPortableProfileParentAccountAriStaticOpts.qualifier,
+      platformQualifier: unifiedPortableProfileParentAccountAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: unifiedPortableProfileParentAccountAriStaticOpts.resourceOwner,
+      resourceType: unifiedPortableProfileParentAccountAriStaticOpts.resourceType,
+      resourceId: `${opts.parentAccountInternalId}`,
+      resourceIdSegmentValues: {
+        parentAccountInternalId: opts.parentAccountInternalId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, unifiedPortableProfileParentAccountAriStaticOpts);
+    return new _UnifiedPortableProfileParentAccountAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, unifiedPortableProfileParentAccountAriStaticOpts);
+    return new _UnifiedPortableProfileParentAccountAri(opts);
+  }
+  getVariables() {
+    return {
+      parentAccountInternalId: this.parentAccountInternalId
+    };
+  }
+};
+
+export {
+  UnifiedPortableProfileParentAccountAri
+};