@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-ZNQSUFLP.mjs−
packages/ari/chunk-ZNQSUFLP.mjsDeleted−77
Index: package/packages/ari/chunk-ZNQSUFLP.mjs
===================================================================
--- package/packages/ari/chunk-ZNQSUFLP.mjs
+++ package/packages/ari/chunk-ZNQSUFLP.mjs
@@ -1,77 +0,0 @@
-import {
- OpsgenieCustomRoleAriResourceOwner,
- OpsgenieCustomRoleAriResourceType
-} from "./chunk-RW54AUFT.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/opsgenie/custom-role/manifest.ts
-var opsgenieCustomRoleAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
- resourceOwner: OpsgenieCustomRoleAriResourceOwner,
- resourceType: OpsgenieCustomRoleAriResourceType,
- resourceIdSlug: "{workspaceId}/{opsgenieRoleType}/{customRoleId}",
- resourceIdSegmentFormats: {
- workspaceId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- opsgenieRoleType: /(?:account|team|responder)/,
- // eslint-disable-line no-useless-escape
- customRoleId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
- }
-};
-
-// src/opsgenie/custom-role/index.ts
-var OpsgenieCustomRoleAri = class _OpsgenieCustomRoleAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._opsgenieRoleType = opts.resourceIdSegmentValues.opsgenieRoleType, this._customRoleId = opts.resourceIdSegmentValues.customRoleId;
- }
- get workspaceId() {
- return this._workspaceId;
- }
- get opsgenieRoleType() {
- return this._opsgenieRoleType;
- }
- get customRoleId() {
- return this._customRoleId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: opsgenieCustomRoleAriStaticOpts.qualifier,
- platformQualifier: opsgenieCustomRoleAriStaticOpts.platformQualifier,
- cloudId: void 0,
- resourceOwner: opsgenieCustomRoleAriStaticOpts.resourceOwner,
- resourceType: opsgenieCustomRoleAriStaticOpts.resourceType,
- resourceId: `${opts.workspaceId}/${opts.opsgenieRoleType}/${opts.customRoleId}`,
- resourceIdSegmentValues: {
- workspaceId: opts.workspaceId,
- opsgenieRoleType: opts.opsgenieRoleType,
- customRoleId: opts.customRoleId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, opsgenieCustomRoleAriStaticOpts);
- return new _OpsgenieCustomRoleAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, opsgenieCustomRoleAriStaticOpts);
- return new _OpsgenieCustomRoleAri(opts);
- }
- getVariables() {
- return {
- workspaceId: this.workspaceId,
- opsgenieRoleType: this.opsgenieRoleType,
- customRoleId: this.customRoleId
- };
- }
-};
-
-export {
- OpsgenieCustomRoleAri
-};