@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-6QHJ3Z4L.mjs−
packages/ari/chunk-6QHJ3Z4L.mjsDeleted−67
Index: package/packages/ari/chunk-6QHJ3Z4L.mjs
===================================================================
--- package/packages/ari/chunk-6QHJ3Z4L.mjs
+++ package/packages/ari/chunk-6QHJ3Z4L.mjs
@@ -1,67 +0,0 @@
-import {
- GraphTestPlanAriResourceOwner,
- GraphTestPlanAriResourceType
-} from "./chunk-XTKHC7L6.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/graph/test-plan/manifest.ts
-var graphTestPlanAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^$"),
- resourceOwner: GraphTestPlanAriResourceOwner,
- resourceType: GraphTestPlanAriResourceType,
- resourceIdSlug: "activation/{activationId}/{testPlanId}",
- resourceIdSegmentFormats: {
- activationId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- testPlanId: /[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/test-plan/index.ts
-var GraphTestPlanAri = class _GraphTestPlanAri extends RegisteredAri {
- constructor(opts) {
- super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._testPlanId = opts.resourceIdSegmentValues.testPlanId;
- }
- get activationId() {
- return this._activationId;
- }
- get testPlanId() {
- return this._testPlanId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: graphTestPlanAriStaticOpts.qualifier,
- platformQualifier: graphTestPlanAriStaticOpts.platformQualifier,
- cloudId: void 0,
- resourceOwner: graphTestPlanAriStaticOpts.resourceOwner,
- resourceType: graphTestPlanAriStaticOpts.resourceType,
- resourceId: `activation/${opts.activationId}/${opts.testPlanId}`,
- resourceIdSegmentValues: {
- activationId: opts.activationId,
- testPlanId: opts.testPlanId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, graphTestPlanAriStaticOpts);
- return new _GraphTestPlanAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, graphTestPlanAriStaticOpts);
- return new _GraphTestPlanAri(opts);
- }
- getVariables() {
- return {
- activationId: this.activationId,
- testPlanId: this.testPlanId
- };
- }
-};
-
-export {
- GraphTestPlanAri
-};