@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-L65XLQ2F.mjs
+packages/ari/chunk-L65XLQ2F.mjsNew file
+67
Index: package/packages/ari/chunk-L65XLQ2F.mjs
===================================================================
--- package/packages/ari/chunk-L65XLQ2F.mjs
+++ package/packages/ari/chunk-L65XLQ2F.mjs
@@ -0,0 +1,67 @@
+import {
+  CustomerServiceManagementCustomerAriResourceOwner,
+  CustomerServiceManagementCustomerAriResourceType
+} from "./chunk-RDKKTY4X.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/customer-service-management/customer/manifest.ts
+var customerServiceManagementCustomerAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^$"),
+  resourceOwner: CustomerServiceManagementCustomerAriResourceOwner,
+  resourceType: CustomerServiceManagementCustomerAriResourceType,
+  resourceIdSlug: "activation/{activationId}/{customerId}",
+  resourceIdSegmentFormats: {
+    activationId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
+    customerId: /[a-zA-Z0-9_\-\:]{1,128}/
+    // eslint-disable-line no-useless-escape
+  }
+};
+
+// src/customer-service-management/customer/index.ts
+var CustomerServiceManagementCustomerAri = class _CustomerServiceManagementCustomerAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._customerId = opts.resourceIdSegmentValues.customerId;
+  }
+  get activationId() {
+    return this._activationId;
+  }
+  get customerId() {
+    return this._customerId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: customerServiceManagementCustomerAriStaticOpts.qualifier,
+      platformQualifier: customerServiceManagementCustomerAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: customerServiceManagementCustomerAriStaticOpts.resourceOwner,
+      resourceType: customerServiceManagementCustomerAriStaticOpts.resourceType,
+      resourceId: `activation/${opts.activationId}/${opts.customerId}`,
+      resourceIdSegmentValues: {
+        activationId: opts.activationId,
+        customerId: opts.customerId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, customerServiceManagementCustomerAriStaticOpts);
+    return new _CustomerServiceManagementCustomerAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, customerServiceManagementCustomerAriStaticOpts);
+    return new _CustomerServiceManagementCustomerAri(opts);
+  }
+  getVariables() {
+    return {
+      activationId: this.activationId,
+      customerId: this.customerId
+    };
+  }
+};
+
+export {
+  CustomerServiceManagementCustomerAri
+};