@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-IZEGO4GG.mjs
+packages/ari/chunk-IZEGO4GG.mjsNew file
+66
Index: package/packages/ari/chunk-IZEGO4GG.mjs
===================================================================
--- package/packages/ari/chunk-IZEGO4GG.mjs
+++ package/packages/ari/chunk-IZEGO4GG.mjs
@@ -0,0 +1,66 @@
+import {
+  MicrosoftOutlookCalendarCalendarEventAriResourceOwner,
+  MicrosoftOutlookCalendarCalendarEventAriResourceType
+} from "./chunk-LBWJ6T7X.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/microsoft.outlook-calendar/calendar-event/manifest.ts
+var microsoftOutlookCalendarCalendarEventAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "third-party",
+  cloudId: new RegExp("^$"),
+  resourceOwner: MicrosoftOutlookCalendarCalendarEventAriResourceOwner,
+  resourceType: MicrosoftOutlookCalendarCalendarEventAriResourceType,
+  resourceIdSlug: "outlook/userId/{userId}/calendarEventId/{calendarEventId}",
+  resourceIdSegmentFormats: {
+    userId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
+    calendarEventId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+  }
+};
+
+// src/microsoft.outlook-calendar/calendar-event/index.ts
+var MicrosoftOutlookCalendarCalendarEventAri = class _MicrosoftOutlookCalendarCalendarEventAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._userId = opts.resourceIdSegmentValues.userId, this._calendarEventId = opts.resourceIdSegmentValues.calendarEventId;
+  }
+  get userId() {
+    return this._userId;
+  }
+  get calendarEventId() {
+    return this._calendarEventId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: microsoftOutlookCalendarCalendarEventAriStaticOpts.qualifier,
+      platformQualifier: microsoftOutlookCalendarCalendarEventAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: microsoftOutlookCalendarCalendarEventAriStaticOpts.resourceOwner,
+      resourceType: microsoftOutlookCalendarCalendarEventAriStaticOpts.resourceType,
+      resourceId: `outlook/userId/${opts.userId}/calendarEventId/${opts.calendarEventId}`,
+      resourceIdSegmentValues: {
+        userId: opts.userId,
+        calendarEventId: opts.calendarEventId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, microsoftOutlookCalendarCalendarEventAriStaticOpts);
+    return new _MicrosoftOutlookCalendarCalendarEventAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, microsoftOutlookCalendarCalendarEventAriStaticOpts);
+    return new _MicrosoftOutlookCalendarCalendarEventAri(opts);
+  }
+  getVariables() {
+    return {
+      userId: this.userId,
+      calendarEventId: this.calendarEventId
+    };
+  }
+};
+
+export {
+  MicrosoftOutlookCalendarCalendarEventAri
+};