@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-PHM5PT2W.mjs+
packages/ari/chunk-PHM5PT2W.mjsNew file+73
Index: package/packages/ari/chunk-PHM5PT2W.mjs
===================================================================
--- package/packages/ari/chunk-PHM5PT2W.mjs
+++ package/packages/ari/chunk-PHM5PT2W.mjs
@@ -0,0 +1,73 @@
+import {
+ GraphRemoteLinkHistoryAriResourceOwner,
+ GraphRemoteLinkHistoryAriResourceType
+} from "./chunk-2YKXM3UN.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/graph/remote-link-history/manifest.ts
+var graphRemoteLinkHistoryAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: GraphRemoteLinkHistoryAriResourceOwner,
+ resourceType: GraphRemoteLinkHistoryAriResourceType,
+ resourceIdSlug: "activation/{activationId}/{remoteLinkId}/{updateSequenceNumber}",
+ resourceIdSegmentFormats: {
+ activationId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ remoteLinkId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
+ updateSequenceNumber: /\d+/
+ }
+};
+
+// src/graph/remote-link-history/index.ts
+var GraphRemoteLinkHistoryAri = class _GraphRemoteLinkHistoryAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._remoteLinkId = opts.resourceIdSegmentValues.remoteLinkId, this._updateSequenceNumber = opts.resourceIdSegmentValues.updateSequenceNumber;
+ }
+ get activationId() {
+ return this._activationId;
+ }
+ get remoteLinkId() {
+ return this._remoteLinkId;
+ }
+ get updateSequenceNumber() {
+ return this._updateSequenceNumber;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: graphRemoteLinkHistoryAriStaticOpts.qualifier,
+ platformQualifier: graphRemoteLinkHistoryAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: graphRemoteLinkHistoryAriStaticOpts.resourceOwner,
+ resourceType: graphRemoteLinkHistoryAriStaticOpts.resourceType,
+ resourceId: `activation/${opts.activationId}/${opts.remoteLinkId}/${opts.updateSequenceNumber}`,
+ resourceIdSegmentValues: {
+ activationId: opts.activationId,
+ remoteLinkId: opts.remoteLinkId,
+ updateSequenceNumber: opts.updateSequenceNumber
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, graphRemoteLinkHistoryAriStaticOpts);
+ return new _GraphRemoteLinkHistoryAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, graphRemoteLinkHistoryAriStaticOpts);
+ return new _GraphRemoteLinkHistoryAri(opts);
+ }
+ getVariables() {
+ return {
+ activationId: this.activationId,
+ remoteLinkId: this.remoteLinkId,
+ updateSequenceNumber: this.updateSequenceNumber
+ };
+ }
+};
+
+export {
+ GraphRemoteLinkHistoryAri
+};