npm package diff
Package: @forge/util
Versions: 1.4.10-next.0 - 1.4.10-next.0-experimental-effab31
File: package/packages/ari/chunk-EZ4NBAAG.mjs
Index: package/packages/ari/chunk-EZ4NBAAG.mjs
===================================================================
--- package/packages/ari/chunk-EZ4NBAAG.mjs
+++ package/packages/ari/chunk-EZ4NBAAG.mjs
@@ -0,0 +1,70 @@
+import {
+ OpsgenieCallRoutingAriResourceOwner,
+ OpsgenieCallRoutingAriResourceType
+} from "./chunk-P2OBBGSQ.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/opsgenie/call-routing/manifest.ts
+var opsgenieCallRoutingAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
+ resourceOwner: OpsgenieCallRoutingAriResourceOwner,
+ resourceType: OpsgenieCallRoutingAriResourceType,
+ resourceIdSlug: "{workspaceId}/{callRoutingId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ callRoutingId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
+ }
+};
+
+// src/opsgenie/call-routing/index.ts
+var OpsgenieCallRoutingAri = class _OpsgenieCallRoutingAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts);
+ this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._callRoutingId = opts.resourceIdSegmentValues.callRoutingId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get callRoutingId() {
+ return this._callRoutingId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: opsgenieCallRoutingAriStaticOpts.qualifier,
+ platformQualifier: opsgenieCallRoutingAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: opsgenieCallRoutingAriStaticOpts.resourceOwner,
+ resourceType: opsgenieCallRoutingAriStaticOpts.resourceType,
+ resourceId: `${opts.workspaceId}/${opts.callRoutingId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ callRoutingId: opts.callRoutingId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, opsgenieCallRoutingAriStaticOpts);
+ return new _OpsgenieCallRoutingAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, opsgenieCallRoutingAriStaticOpts);
+ return new _OpsgenieCallRoutingAri(opts);
+ }
+ getVariables() {
+ return {
+ workspaceId: this.workspaceId,
+ callRoutingId: this.callRoutingId
+ };
+ }
+};
+
+export {
+ OpsgenieCallRoutingAri
+};