@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/github.github/index.js~
packages/ari/github.github/index.jsModified+44−9
Index: package/packages/ari/github.github/index.js
===================================================================
--- package/packages/ari/github.github/index.js
+++ package/packages/ari/github.github/index.js
@@ -290,21 +290,25 @@
var githubGithubBranchAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubBranchAriResourceOwner,
resourceType: GithubGithubBranchAriResourceType,
resourceIdSlug: "repositoryId/{repositoryId}/branchId/{branchId}",
resourceIdSegmentFormats: {
repositoryId: /[0-9]+/,
+ // eslint-disable-line no-useless-escape
branchId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/branch/index.ts
var GithubGithubBranchAri = class _GithubGithubBranchAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._branchId = opts.resourceIdSegmentValues.branchId;
+ super(opts);
+ this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._branchId = opts.resourceIdSegmentValues.branchId;
}
get repositoryId() {
return this._repositoryId;
}
@@ -345,21 +349,25 @@
var githubGithubBuildAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubBuildAriResourceOwner,
resourceType: GithubGithubBuildAriResourceType,
resourceIdSlug: "pipelineId/{pipelineId}/buildId/{buildId}",
resourceIdSegmentFormats: {
pipelineId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
+ // eslint-disable-line no-useless-escape
buildId: /[0-9]+/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/build/index.ts
var GithubGithubBuildAri = class _GithubGithubBuildAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._pipelineId = opts.resourceIdSegmentValues.pipelineId, this._buildId = opts.resourceIdSegmentValues.buildId;
+ super(opts);
+ this._pipelineId = opts.resourceIdSegmentValues.pipelineId, this._buildId = opts.resourceIdSegmentValues.buildId;
}
get pipelineId() {
return this._pipelineId;
}
@@ -400,22 +408,27 @@
var githubGithubCommentAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubCommentAriResourceOwner,
resourceType: GithubGithubCommentAriResourceType,
resourceIdSlug: "repositoryId/{repositoryId}/pullRequestId/{pullRequestId}/comment/{commentId}",
resourceIdSegmentFormats: {
repositoryId: /[0-9]+/,
+ // eslint-disable-line no-useless-escape
pullRequestId: /[0-9]+/,
+ // eslint-disable-line no-useless-escape
commentId: /[0-9]+/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/comment/index.ts
var GithubGithubCommentAri = class _GithubGithubCommentAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._pullRequestId = opts.resourceIdSegmentValues.pullRequestId, this._commentId = opts.resourceIdSegmentValues.commentId;
+ super(opts);
+ this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._pullRequestId = opts.resourceIdSegmentValues.pullRequestId, this._commentId = opts.resourceIdSegmentValues.commentId;
}
get repositoryId() {
return this._repositoryId;
}
@@ -461,21 +474,25 @@
var githubGithubCommitAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubCommitAriResourceOwner,
resourceType: GithubGithubCommitAriResourceType,
resourceIdSlug: "repositoryId/{repositoryId}/commitId/{commitId}",
resourceIdSegmentFormats: {
repositoryId: /[0-9]+/,
+ // eslint-disable-line no-useless-escape
commitId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/commit/index.ts
var GithubGithubCommitAri = class _GithubGithubCommitAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._commitId = opts.resourceIdSegmentValues.commitId;
+ super(opts);
+ this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._commitId = opts.resourceIdSegmentValues.commitId;
}
get repositoryId() {
return this._repositoryId;
}
@@ -516,22 +533,27 @@
var githubGithubDeploymentAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubDeploymentAriResourceOwner,
resourceType: GithubGithubDeploymentAriResourceType,
resourceIdSlug: "pipelineId/{pipelineId}/environmentId/{environmentId}/deploymentSequenceNumber/{deploymentSequenceNumber}",
resourceIdSegmentFormats: {
pipelineId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
+ // eslint-disable-line no-useless-escape
environmentId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
+ // eslint-disable-line no-useless-escape
deploymentSequenceNumber: /[0-9]+/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/deployment/index.ts
var GithubGithubDeploymentAri = class _GithubGithubDeploymentAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._pipelineId = opts.resourceIdSegmentValues.pipelineId, this._environmentId = opts.resourceIdSegmentValues.environmentId, this._deploymentSequenceNumber = opts.resourceIdSegmentValues.deploymentSequenceNumber;
+ super(opts);
+ this._pipelineId = opts.resourceIdSegmentValues.pipelineId, this._environmentId = opts.resourceIdSegmentValues.environmentId, this._deploymentSequenceNumber = opts.resourceIdSegmentValues.deploymentSequenceNumber;
}
get pipelineId() {
return this._pipelineId;
}
@@ -577,21 +599,25 @@
var githubGithubPullRequestAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubPullRequestAriResourceOwner,
resourceType: GithubGithubPullRequestAriResourceType,
resourceIdSlug: "repositoryId/{repositoryId}/pullRequestId/{pullRequestId}",
resourceIdSegmentFormats: {
repositoryId: /[0-9]+/,
+ // eslint-disable-line no-useless-escape
pullRequestId: /[0-9]+/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/pull-request/index.ts
var GithubGithubPullRequestAri = class _GithubGithubPullRequestAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._pullRequestId = opts.resourceIdSegmentValues.pullRequestId;
+ super(opts);
+ this._repositoryId = opts.resourceIdSegmentValues.repositoryId, this._pullRequestId = opts.resourceIdSegmentValues.pullRequestId;
}
get repositoryId() {
return this._repositoryId;
}
@@ -632,20 +658,23 @@
var githubGithubRemoteLinkAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubRemoteLinkAriResourceOwner,
resourceType: GithubGithubRemoteLinkAriResourceType,
resourceIdSlug: "{remoteLinkId}",
resourceIdSegmentFormats: {
remoteLinkId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/remote-link/index.ts
var GithubGithubRemoteLinkAri = class _GithubGithubRemoteLinkAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._remoteLinkId = opts.resourceIdSegmentValues.remoteLinkId;
+ super(opts);
+ this._remoteLinkId = opts.resourceIdSegmentValues.remoteLinkId;
}
get remoteLinkId() {
return this._remoteLinkId;
}
@@ -681,20 +710,23 @@
var githubGithubRepositoryAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubRepositoryAriResourceOwner,
resourceType: GithubGithubRepositoryAriResourceType,
resourceIdSlug: "{repositoryId}",
resourceIdSegmentFormats: {
repositoryId: /[0-9]+/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/repository/index.ts
var GithubGithubRepositoryAri = class _GithubGithubRepositoryAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._repositoryId = opts.resourceIdSegmentValues.repositoryId;
+ super(opts);
+ this._repositoryId = opts.resourceIdSegmentValues.repositoryId;
}
get repositoryId() {
return this._repositoryId;
}
@@ -730,20 +762,23 @@
var githubGithubVulnerabilityAriStaticOpts = {
qualifier: "ari",
platformQualifier: "third-party",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GithubGithubVulnerabilityAriResourceOwner,
resourceType: GithubGithubVulnerabilityAriResourceType,
resourceIdSlug: "{vulnerabilityId}",
resourceIdSegmentFormats: {
vulnerabilityId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
}
};
// src/github.github/vulnerability/index.ts
var GithubGithubVulnerabilityAri = class _GithubGithubVulnerabilityAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._vulnerabilityId = opts.resourceIdSegmentValues.vulnerabilityId;
+ super(opts);
+ this._vulnerabilityId = opts.resourceIdSegmentValues.vulnerabilityId;
}
get vulnerabilityId() {
return this._vulnerabilityId;
}