@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-FCHEN4KD.mjs+
packages/ari/chunk-FCHEN4KD.mjsNew file+67
Index: package/packages/ari/chunk-FCHEN4KD.mjs
===================================================================
--- package/packages/ari/chunk-FCHEN4KD.mjs
+++ package/packages/ari/chunk-FCHEN4KD.mjs
@@ -0,0 +1,67 @@
+import {
+ GraphCustomerContactAriResourceOwner,
+ GraphCustomerContactAriResourceType
+} from "./chunk-YKH3FW6V.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/graph/customer-contact/manifest.ts
+var graphCustomerContactAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: GraphCustomerContactAriResourceOwner,
+ resourceType: GraphCustomerContactAriResourceType,
+ resourceIdSlug: "activation/{activationId}/{customerContactId}",
+ resourceIdSegmentFormats: {
+ activationId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ customerContactId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+ }
+};
+
+// src/graph/customer-contact/index.ts
+var GraphCustomerContactAri = class _GraphCustomerContactAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._customerContactId = opts.resourceIdSegmentValues.customerContactId;
+ }
+ get activationId() {
+ return this._activationId;
+ }
+ get customerContactId() {
+ return this._customerContactId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: graphCustomerContactAriStaticOpts.qualifier,
+ platformQualifier: graphCustomerContactAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: graphCustomerContactAriStaticOpts.resourceOwner,
+ resourceType: graphCustomerContactAriStaticOpts.resourceType,
+ resourceId: `activation/${opts.activationId}/${opts.customerContactId}`,
+ resourceIdSegmentValues: {
+ activationId: opts.activationId,
+ customerContactId: opts.customerContactId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, graphCustomerContactAriStaticOpts);
+ return new _GraphCustomerContactAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, graphCustomerContactAriStaticOpts);
+ return new _GraphCustomerContactAri(opts);
+ }
+ getVariables() {
+ return {
+ activationId: this.activationId,
+ customerContactId: this.customerContactId
+ };
+ }
+};
+
+export {
+ GraphCustomerContactAri
+};