@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-HLMUHQRF.mjs+
packages/ari/chunk-HLMUHQRF.mjsNew file+60
Index: package/packages/ari/chunk-HLMUHQRF.mjs
===================================================================
--- package/packages/ari/chunk-HLMUHQRF.mjs
+++ package/packages/ari/chunk-HLMUHQRF.mjs
@@ -0,0 +1,60 @@
+import {
+ CustomerThreeSixtyCustomerAriResourceOwner,
+ CustomerThreeSixtyCustomerAriResourceType
+} from "./chunk-MXVU2PJV.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/customer-three-sixty/customer/manifest.ts
+var customerThreeSixtyCustomerAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: CustomerThreeSixtyCustomerAriResourceOwner,
+ resourceType: CustomerThreeSixtyCustomerAriResourceType,
+ resourceIdSlug: "{customerId}",
+ resourceIdSegmentFormats: {
+ customerId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+ }
+};
+
+// src/customer-three-sixty/customer/index.ts
+var CustomerThreeSixtyCustomerAri = class _CustomerThreeSixtyCustomerAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._customerId = opts.resourceIdSegmentValues.customerId;
+ }
+ get customerId() {
+ return this._customerId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: customerThreeSixtyCustomerAriStaticOpts.qualifier,
+ platformQualifier: customerThreeSixtyCustomerAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: customerThreeSixtyCustomerAriStaticOpts.resourceOwner,
+ resourceType: customerThreeSixtyCustomerAriStaticOpts.resourceType,
+ resourceId: `${opts.customerId}`,
+ resourceIdSegmentValues: {
+ customerId: opts.customerId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, customerThreeSixtyCustomerAriStaticOpts);
+ return new _CustomerThreeSixtyCustomerAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, customerThreeSixtyCustomerAriStaticOpts);
+ return new _CustomerThreeSixtyCustomerAri(opts);
+ }
+ getVariables() {
+ return {
+ customerId: this.customerId
+ };
+ }
+};
+
+export {
+ CustomerThreeSixtyCustomerAri
+};