npm package diff
Package: @forge/util
Versions: 1.4.10-next.0 - 1.4.10-next.0-experimental-effab31
File: package/packages/ari/chunk-DM4VJT35.mjs
Index: package/packages/ari/chunk-DM4VJT35.mjs
===================================================================
--- package/packages/ari/chunk-DM4VJT35.mjs
+++ package/packages/ari/chunk-DM4VJT35.mjs
@@ -0,0 +1,70 @@
+import {
+ GraphServiceAndVcsRepositoryRelationshipAriResourceOwner,
+ GraphServiceAndVcsRepositoryRelationshipAriResourceType
+} from "./chunk-SYSNNBBE.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/graph/service-and-vcs-repository-relationship/manifest.ts
+var graphServiceAndVcsRepositoryRelationshipAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
+ resourceOwner: GraphServiceAndVcsRepositoryRelationshipAriResourceOwner,
+ resourceType: GraphServiceAndVcsRepositoryRelationshipAriResourceType,
+ resourceIdSlug: "{workspaceId}/{relationshipId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
+ // eslint-disable-line no-useless-escape
+ relationshipId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+ // eslint-disable-line no-useless-escape
+ }
+};
+
+// src/graph/service-and-vcs-repository-relationship/index.ts
+var GraphServiceAndVcsRepositoryRelationshipAri = class _GraphServiceAndVcsRepositoryRelationshipAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts);
+ this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._relationshipId = opts.resourceIdSegmentValues.relationshipId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get relationshipId() {
+ return this._relationshipId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: graphServiceAndVcsRepositoryRelationshipAriStaticOpts.qualifier,
+ platformQualifier: graphServiceAndVcsRepositoryRelationshipAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: graphServiceAndVcsRepositoryRelationshipAriStaticOpts.resourceOwner,
+ resourceType: graphServiceAndVcsRepositoryRelationshipAriStaticOpts.resourceType,
+ resourceId: `${opts.workspaceId}/${opts.relationshipId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ relationshipId: opts.relationshipId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, graphServiceAndVcsRepositoryRelationshipAriStaticOpts);
+ return new _GraphServiceAndVcsRepositoryRelationshipAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, graphServiceAndVcsRepositoryRelationshipAriStaticOpts);
+ return new _GraphServiceAndVcsRepositoryRelationshipAri(opts);
+ }
+ getVariables() {
+ return {
+ workspaceId: this.workspaceId,
+ relationshipId: this.relationshipId
+ };
+ }
+};
+
+export {
+ GraphServiceAndVcsRepositoryRelationshipAri
+};