@linear/sdk 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/_generated_documents.d.ts +2 -252
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +0 -178
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +0 -493
- package/dist/index-cjs.js.map +1 -1
- package/dist/index-cjs.min.js +1 -1
- package/dist/index-cjs.min.js.br +0 -0
- package/dist/index-cjs.min.js.gz +0 -0
- package/dist/index-cjs.min.js.map +1 -1
- package/dist/index-es.js +1 -486
- package/dist/index-es.js.map +1 -1
- package/dist/index-es.min.js +1 -1
- package/dist/index-es.min.js.br +0 -0
- package/dist/index-es.min.js.gz +0 -0
- package/dist/index-es.min.js.map +1 -1
- package/dist/index-umd.js +1 -494
- package/dist/index-umd.js.map +1 -1
- package/dist/index-umd.min.js +1 -1
- package/dist/index-umd.min.js.br +0 -0
- package/dist/index-umd.min.js.gz +0 -0
- package/dist/index-umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index-cjs.js
CHANGED
@@ -85938,259 +85938,6 @@ const IntegrationRequestPayloadFragmentDoc = {
|
|
85938
85938
|
},
|
85939
85939
|
],
|
85940
85940
|
};
|
85941
|
-
const CommitPayloadFragmentDoc = {
|
85942
|
-
kind: "Document",
|
85943
|
-
definitions: [
|
85944
|
-
{
|
85945
|
-
kind: "FragmentDefinition",
|
85946
|
-
name: { kind: "Name", value: "CommitPayload" },
|
85947
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CommitPayload" } },
|
85948
|
-
selectionSet: {
|
85949
|
-
kind: "SelectionSet",
|
85950
|
-
selections: [
|
85951
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
85952
|
-
{ kind: "Field", name: { kind: "Name", value: "added" } },
|
85953
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
85954
|
-
{ kind: "Field", name: { kind: "Name", value: "message" } },
|
85955
|
-
{ kind: "Field", name: { kind: "Name", value: "modified" } },
|
85956
|
-
{ kind: "Field", name: { kind: "Name", value: "removed" } },
|
85957
|
-
{ kind: "Field", name: { kind: "Name", value: "timestamp" } },
|
85958
|
-
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
85959
|
-
],
|
85960
|
-
},
|
85961
|
-
},
|
85962
|
-
],
|
85963
|
-
};
|
85964
|
-
const PullRequestReviewFragmentDoc = {
|
85965
|
-
kind: "Document",
|
85966
|
-
definitions: [
|
85967
|
-
{
|
85968
|
-
kind: "FragmentDefinition",
|
85969
|
-
name: { kind: "Name", value: "PullRequestReview" },
|
85970
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PullRequestReview" } },
|
85971
|
-
selectionSet: {
|
85972
|
-
kind: "SelectionSet",
|
85973
|
-
selections: [
|
85974
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
85975
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
85976
|
-
{ kind: "Field", name: { kind: "Name", value: "reviewerLogin" } },
|
85977
|
-
{ kind: "Field", name: { kind: "Name", value: "state" } },
|
85978
|
-
{ kind: "Field", name: { kind: "Name", value: "submittedAt" } },
|
85979
|
-
{ kind: "Field", name: { kind: "Name", value: "reviewerId" } },
|
85980
|
-
],
|
85981
|
-
},
|
85982
|
-
},
|
85983
|
-
],
|
85984
|
-
};
|
85985
|
-
const PullRequestPayloadFragmentDoc = {
|
85986
|
-
kind: "Document",
|
85987
|
-
definitions: [
|
85988
|
-
{
|
85989
|
-
kind: "FragmentDefinition",
|
85990
|
-
name: { kind: "Name", value: "PullRequestPayload" },
|
85991
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PullRequestPayload" } },
|
85992
|
-
selectionSet: {
|
85993
|
-
kind: "SelectionSet",
|
85994
|
-
selections: [
|
85995
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
85996
|
-
{ kind: "Field", name: { kind: "Name", value: "branch" } },
|
85997
|
-
{ kind: "Field", name: { kind: "Name", value: "closedAt" } },
|
85998
|
-
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
85999
|
-
{ kind: "Field", name: { kind: "Name", value: "draft" } },
|
86000
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
86001
|
-
{ kind: "Field", name: { kind: "Name", value: "mergedAt" } },
|
86002
|
-
{ kind: "Field", name: { kind: "Name", value: "number" } },
|
86003
|
-
{ kind: "Field", name: { kind: "Name", value: "repoLogin" } },
|
86004
|
-
{ kind: "Field", name: { kind: "Name", value: "repoName" } },
|
86005
|
-
{ kind: "Field", name: { kind: "Name", value: "reviewers" } },
|
86006
|
-
{
|
86007
|
-
kind: "Field",
|
86008
|
-
name: { kind: "Name", value: "reviews" },
|
86009
|
-
selectionSet: {
|
86010
|
-
kind: "SelectionSet",
|
86011
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestReview" } }],
|
86012
|
-
},
|
86013
|
-
},
|
86014
|
-
{ kind: "Field", name: { kind: "Name", value: "status" } },
|
86015
|
-
{ kind: "Field", name: { kind: "Name", value: "title" } },
|
86016
|
-
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
86017
|
-
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
86018
|
-
{ kind: "Field", name: { kind: "Name", value: "userId" } },
|
86019
|
-
{ kind: "Field", name: { kind: "Name", value: "userLogin" } },
|
86020
|
-
],
|
86021
|
-
},
|
86022
|
-
},
|
86023
|
-
...PullRequestReviewFragmentDoc.definitions,
|
86024
|
-
],
|
86025
|
-
};
|
86026
|
-
const SentryIssuePayloadFragmentDoc = {
|
86027
|
-
kind: "Document",
|
86028
|
-
definitions: [
|
86029
|
-
{
|
86030
|
-
kind: "FragmentDefinition",
|
86031
|
-
name: { kind: "Name", value: "SentryIssuePayload" },
|
86032
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SentryIssuePayload" } },
|
86033
|
-
selectionSet: {
|
86034
|
-
kind: "SelectionSet",
|
86035
|
-
selections: [
|
86036
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
86037
|
-
{ kind: "Field", name: { kind: "Name", value: "issueId" } },
|
86038
|
-
{ kind: "Field", name: { kind: "Name", value: "actorId" } },
|
86039
|
-
{ kind: "Field", name: { kind: "Name", value: "projectId" } },
|
86040
|
-
{ kind: "Field", name: { kind: "Name", value: "firstSeen" } },
|
86041
|
-
{ kind: "Field", name: { kind: "Name", value: "webUrl" } },
|
86042
|
-
{ kind: "Field", name: { kind: "Name", value: "actorName" } },
|
86043
|
-
{ kind: "Field", name: { kind: "Name", value: "firstVersion" } },
|
86044
|
-
{ kind: "Field", name: { kind: "Name", value: "shortId" } },
|
86045
|
-
{ kind: "Field", name: { kind: "Name", value: "projectSlug" } },
|
86046
|
-
{ kind: "Field", name: { kind: "Name", value: "issueTitle" } },
|
86047
|
-
{ kind: "Field", name: { kind: "Name", value: "actorType" } },
|
86048
|
-
],
|
86049
|
-
},
|
86050
|
-
},
|
86051
|
-
],
|
86052
|
-
};
|
86053
|
-
const IntegrationResourceDataFragmentDoc = {
|
86054
|
-
kind: "Document",
|
86055
|
-
definitions: [
|
86056
|
-
{
|
86057
|
-
kind: "FragmentDefinition",
|
86058
|
-
name: { kind: "Name", value: "IntegrationResourceData" },
|
86059
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "IntegrationResourceData" } },
|
86060
|
-
selectionSet: {
|
86061
|
-
kind: "SelectionSet",
|
86062
|
-
selections: [
|
86063
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
86064
|
-
{
|
86065
|
-
kind: "Field",
|
86066
|
-
name: { kind: "Name", value: "githubCommit" },
|
86067
|
-
selectionSet: {
|
86068
|
-
kind: "SelectionSet",
|
86069
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "CommitPayload" } }],
|
86070
|
-
},
|
86071
|
-
},
|
86072
|
-
{
|
86073
|
-
kind: "Field",
|
86074
|
-
name: { kind: "Name", value: "githubPullRequest" },
|
86075
|
-
selectionSet: {
|
86076
|
-
kind: "SelectionSet",
|
86077
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestPayload" } }],
|
86078
|
-
},
|
86079
|
-
},
|
86080
|
-
{
|
86081
|
-
kind: "Field",
|
86082
|
-
name: { kind: "Name", value: "gitlabMergeRequest" },
|
86083
|
-
selectionSet: {
|
86084
|
-
kind: "SelectionSet",
|
86085
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestPayload" } }],
|
86086
|
-
},
|
86087
|
-
},
|
86088
|
-
{
|
86089
|
-
kind: "Field",
|
86090
|
-
name: { kind: "Name", value: "sentryIssue" },
|
86091
|
-
selectionSet: {
|
86092
|
-
kind: "SelectionSet",
|
86093
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SentryIssuePayload" } }],
|
86094
|
-
},
|
86095
|
-
},
|
86096
|
-
],
|
86097
|
-
},
|
86098
|
-
},
|
86099
|
-
...CommitPayloadFragmentDoc.definitions,
|
86100
|
-
...PullRequestPayloadFragmentDoc.definitions,
|
86101
|
-
...SentryIssuePayloadFragmentDoc.definitions,
|
86102
|
-
],
|
86103
|
-
};
|
86104
|
-
const IntegrationResourceFragmentDoc = {
|
86105
|
-
kind: "Document",
|
86106
|
-
definitions: [
|
86107
|
-
{
|
86108
|
-
kind: "FragmentDefinition",
|
86109
|
-
name: { kind: "Name", value: "IntegrationResource" },
|
86110
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "IntegrationResource" } },
|
86111
|
-
selectionSet: {
|
86112
|
-
kind: "SelectionSet",
|
86113
|
-
selections: [
|
86114
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
86115
|
-
{
|
86116
|
-
kind: "Field",
|
86117
|
-
name: { kind: "Name", value: "data" },
|
86118
|
-
selectionSet: {
|
86119
|
-
kind: "SelectionSet",
|
86120
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationResourceData" } }],
|
86121
|
-
},
|
86122
|
-
},
|
86123
|
-
{
|
86124
|
-
kind: "Field",
|
86125
|
-
name: { kind: "Name", value: "pullRequest" },
|
86126
|
-
selectionSet: {
|
86127
|
-
kind: "SelectionSet",
|
86128
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestPayload" } }],
|
86129
|
-
},
|
86130
|
-
},
|
86131
|
-
{ kind: "Field", name: { kind: "Name", value: "resourceId" } },
|
86132
|
-
{
|
86133
|
-
kind: "Field",
|
86134
|
-
name: { kind: "Name", value: "integration" },
|
86135
|
-
selectionSet: {
|
86136
|
-
kind: "SelectionSet",
|
86137
|
-
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
86138
|
-
},
|
86139
|
-
},
|
86140
|
-
{ kind: "Field", name: { kind: "Name", value: "resourceType" } },
|
86141
|
-
{
|
86142
|
-
kind: "Field",
|
86143
|
-
name: { kind: "Name", value: "issue" },
|
86144
|
-
selectionSet: {
|
86145
|
-
kind: "SelectionSet",
|
86146
|
-
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
86147
|
-
},
|
86148
|
-
},
|
86149
|
-
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
86150
|
-
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
86151
|
-
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
86152
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
86153
|
-
],
|
86154
|
-
},
|
86155
|
-
},
|
86156
|
-
...IntegrationResourceDataFragmentDoc.definitions,
|
86157
|
-
...PullRequestPayloadFragmentDoc.definitions,
|
86158
|
-
],
|
86159
|
-
};
|
86160
|
-
const IntegrationResourceConnectionFragmentDoc = {
|
86161
|
-
kind: "Document",
|
86162
|
-
definitions: [
|
86163
|
-
{
|
86164
|
-
kind: "FragmentDefinition",
|
86165
|
-
name: { kind: "Name", value: "IntegrationResourceConnection" },
|
86166
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "IntegrationResourceConnection" } },
|
86167
|
-
selectionSet: {
|
86168
|
-
kind: "SelectionSet",
|
86169
|
-
selections: [
|
86170
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
86171
|
-
{
|
86172
|
-
kind: "Field",
|
86173
|
-
name: { kind: "Name", value: "nodes" },
|
86174
|
-
selectionSet: {
|
86175
|
-
kind: "SelectionSet",
|
86176
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationResource" } }],
|
86177
|
-
},
|
86178
|
-
},
|
86179
|
-
{
|
86180
|
-
kind: "Field",
|
86181
|
-
name: { kind: "Name", value: "pageInfo" },
|
86182
|
-
selectionSet: {
|
86183
|
-
kind: "SelectionSet",
|
86184
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
|
86185
|
-
},
|
86186
|
-
},
|
86187
|
-
],
|
86188
|
-
},
|
86189
|
-
},
|
86190
|
-
...IntegrationResourceFragmentDoc.definitions,
|
86191
|
-
...PageInfoFragmentDoc.definitions,
|
86192
|
-
],
|
86193
|
-
};
|
86194
85941
|
const IntegrationTemplateFragmentDoc = {
|
86195
85942
|
kind: "Document",
|
86196
85943
|
definitions: [
|
@@ -92029,44 +91776,6 @@ const IntegrationRequestDocument = {
|
|
92029
91776
|
...IntegrationRequestPayloadFragmentDoc.definitions,
|
92030
91777
|
],
|
92031
91778
|
};
|
92032
|
-
const ArchiveIntegrationResourceDocument = {
|
92033
|
-
kind: "Document",
|
92034
|
-
definitions: [
|
92035
|
-
{
|
92036
|
-
kind: "OperationDefinition",
|
92037
|
-
operation: "mutation",
|
92038
|
-
name: { kind: "Name", value: "archiveIntegrationResource" },
|
92039
|
-
variableDefinitions: [
|
92040
|
-
{
|
92041
|
-
kind: "VariableDefinition",
|
92042
|
-
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
92043
|
-
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
92044
|
-
},
|
92045
|
-
],
|
92046
|
-
selectionSet: {
|
92047
|
-
kind: "SelectionSet",
|
92048
|
-
selections: [
|
92049
|
-
{
|
92050
|
-
kind: "Field",
|
92051
|
-
name: { kind: "Name", value: "integrationResourceArchive" },
|
92052
|
-
arguments: [
|
92053
|
-
{
|
92054
|
-
kind: "Argument",
|
92055
|
-
name: { kind: "Name", value: "id" },
|
92056
|
-
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
92057
|
-
},
|
92058
|
-
],
|
92059
|
-
selectionSet: {
|
92060
|
-
kind: "SelectionSet",
|
92061
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ArchivePayload" } }],
|
92062
|
-
},
|
92063
|
-
},
|
92064
|
-
],
|
92065
|
-
},
|
92066
|
-
},
|
92067
|
-
...ArchivePayloadFragmentDoc.definitions,
|
92068
|
-
],
|
92069
|
-
};
|
92070
91779
|
const IntegrationSentryConnectDocument = {
|
92071
91780
|
kind: "Document",
|
92072
91781
|
definitions: [
|
@@ -108943,13 +108652,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
108943
108652
|
IntegrationConnectionFragmentDoc: IntegrationConnectionFragmentDoc,
|
108944
108653
|
IntegrationPayloadFragmentDoc: IntegrationPayloadFragmentDoc,
|
108945
108654
|
IntegrationRequestPayloadFragmentDoc: IntegrationRequestPayloadFragmentDoc,
|
108946
|
-
CommitPayloadFragmentDoc: CommitPayloadFragmentDoc,
|
108947
|
-
PullRequestReviewFragmentDoc: PullRequestReviewFragmentDoc,
|
108948
|
-
PullRequestPayloadFragmentDoc: PullRequestPayloadFragmentDoc,
|
108949
|
-
SentryIssuePayloadFragmentDoc: SentryIssuePayloadFragmentDoc,
|
108950
|
-
IntegrationResourceDataFragmentDoc: IntegrationResourceDataFragmentDoc,
|
108951
|
-
IntegrationResourceFragmentDoc: IntegrationResourceFragmentDoc,
|
108952
|
-
IntegrationResourceConnectionFragmentDoc: IntegrationResourceConnectionFragmentDoc,
|
108953
108655
|
IntegrationTemplateFragmentDoc: IntegrationTemplateFragmentDoc,
|
108954
108656
|
IntegrationTemplateConnectionFragmentDoc: IntegrationTemplateConnectionFragmentDoc,
|
108955
108657
|
IntegrationTemplatePayloadFragmentDoc: IntegrationTemplatePayloadFragmentDoc,
|
@@ -109107,7 +108809,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
109107
108809
|
UpdateIntegrationIntercomSettingsDocument: UpdateIntegrationIntercomSettingsDocument,
|
109108
108810
|
IntegrationLoomDocument: IntegrationLoomDocument,
|
109109
108811
|
IntegrationRequestDocument: IntegrationRequestDocument,
|
109110
|
-
ArchiveIntegrationResourceDocument: ArchiveIntegrationResourceDocument,
|
109111
108812
|
IntegrationSentryConnectDocument: IntegrationSentryConnectDocument,
|
109112
108813
|
IntegrationSlackDocument: IntegrationSlackDocument,
|
109113
108814
|
IntegrationSlackImportEmojisDocument: IntegrationSlackImportEmojisDocument,
|
@@ -109847,24 +109548,6 @@ class CommentPayload extends Request {
|
|
109847
109548
|
return new CommentQuery(this._request).fetch(this._comment.id);
|
109848
109549
|
}
|
109849
109550
|
}
|
109850
|
-
/**
|
109851
|
-
* GitHub's commit data
|
109852
|
-
*
|
109853
|
-
* @param request - function to call the graphql client
|
109854
|
-
* @param data - L.CommitPayloadFragment response data
|
109855
|
-
*/
|
109856
|
-
class CommitPayload extends Request {
|
109857
|
-
constructor(request, data) {
|
109858
|
-
super(request);
|
109859
|
-
this.added = data.added;
|
109860
|
-
this.id = data.id;
|
109861
|
-
this.message = data.message;
|
109862
|
-
this.modified = data.modified;
|
109863
|
-
this.removed = data.removed;
|
109864
|
-
this.timestamp = data.timestamp;
|
109865
|
-
this.url = data.url;
|
109866
|
-
}
|
109867
|
-
}
|
109868
109551
|
/**
|
109869
109552
|
* ContactPayload model
|
109870
109553
|
*
|
@@ -110650,72 +110333,6 @@ class IntegrationRequestPayload extends Request {
|
|
110650
110333
|
this.success = data.success;
|
110651
110334
|
}
|
110652
110335
|
}
|
110653
|
-
/**
|
110654
|
-
* An integration resource created by an external service.
|
110655
|
-
*
|
110656
|
-
* @param request - function to call the graphql client
|
110657
|
-
* @param data - L.IntegrationResourceFragment response data
|
110658
|
-
*/
|
110659
|
-
class IntegrationResource extends Request {
|
110660
|
-
constructor(request, data) {
|
110661
|
-
var _a, _b, _c, _d;
|
110662
|
-
super(request);
|
110663
|
-
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
110664
|
-
this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
|
110665
|
-
this.id = data.id;
|
110666
|
-
this.resourceId = data.resourceId;
|
110667
|
-
this.resourceType = data.resourceType;
|
110668
|
-
this.updatedAt = (_c = parseDate(data.updatedAt)) !== null && _c !== void 0 ? _c : new Date();
|
110669
|
-
this.data = new IntegrationResourceData(request, data.data);
|
110670
|
-
this.pullRequest = new PullRequestPayload(request, data.pullRequest);
|
110671
|
-
this._integration = (_d = data.integration) !== null && _d !== void 0 ? _d : undefined;
|
110672
|
-
this._issue = data.issue;
|
110673
|
-
}
|
110674
|
-
/** The integration that the resource is associated with. */
|
110675
|
-
get integration() {
|
110676
|
-
var _a, _b;
|
110677
|
-
return ((_a = this._integration) === null || _a === void 0 ? void 0 : _a.id) ? new IntegrationQuery(this._request).fetch((_b = this._integration) === null || _b === void 0 ? void 0 : _b.id) : undefined;
|
110678
|
-
}
|
110679
|
-
/** The issue that the resource is associated with. */
|
110680
|
-
get issue() {
|
110681
|
-
return new IssueQuery(this._request).fetch(this._issue.id);
|
110682
|
-
}
|
110683
|
-
/** Archives an integration resource. */
|
110684
|
-
archive() {
|
110685
|
-
return new ArchiveIntegrationResourceMutation(this._request).fetch(this.id);
|
110686
|
-
}
|
110687
|
-
}
|
110688
|
-
/**
|
110689
|
-
* IntegrationResourceConnection model
|
110690
|
-
*
|
110691
|
-
* @param request - function to call the graphql client
|
110692
|
-
* @param fetch - function to trigger a refetch of this IntegrationResourceConnection model
|
110693
|
-
* @param data - IntegrationResourceConnection response data
|
110694
|
-
*/
|
110695
|
-
class IntegrationResourceConnection extends Connection {
|
110696
|
-
constructor(request, fetch, data) {
|
110697
|
-
super(request, fetch, data.nodes.map(node => new IntegrationResource(request, node)), new PageInfo(request, data.pageInfo));
|
110698
|
-
}
|
110699
|
-
}
|
110700
|
-
/**
|
110701
|
-
* Integration resource's payload
|
110702
|
-
*
|
110703
|
-
* @param request - function to call the graphql client
|
110704
|
-
* @param data - L.IntegrationResourceDataFragment response data
|
110705
|
-
*/
|
110706
|
-
class IntegrationResourceData extends Request {
|
110707
|
-
constructor(request, data) {
|
110708
|
-
super(request);
|
110709
|
-
this.githubCommit = data.githubCommit ? new CommitPayload(request, data.githubCommit) : undefined;
|
110710
|
-
this.githubPullRequest = data.githubPullRequest
|
110711
|
-
? new PullRequestPayload(request, data.githubPullRequest)
|
110712
|
-
: undefined;
|
110713
|
-
this.gitlabMergeRequest = data.gitlabMergeRequest
|
110714
|
-
? new PullRequestPayload(request, data.gitlabMergeRequest)
|
110715
|
-
: undefined;
|
110716
|
-
this.sentryIssue = data.sentryIssue ? new SentryIssuePayload(request, data.sentryIssue) : undefined;
|
110717
|
-
}
|
110718
|
-
}
|
110719
110336
|
/**
|
110720
110337
|
* The integration resource's settings
|
110721
110338
|
*
|
@@ -112688,51 +112305,6 @@ class ProjectUpdateWithInteractionPayload extends Request {
|
|
112688
112305
|
return new ProjectUpdateQuery(this._request).fetch(this._projectUpdate.id);
|
112689
112306
|
}
|
112690
112307
|
}
|
112691
|
-
/**
|
112692
|
-
* Pull request data
|
112693
|
-
*
|
112694
|
-
* @param request - function to call the graphql client
|
112695
|
-
* @param data - L.PullRequestPayloadFragment response data
|
112696
|
-
*/
|
112697
|
-
class PullRequestPayload extends Request {
|
112698
|
-
constructor(request, data) {
|
112699
|
-
var _a;
|
112700
|
-
super(request);
|
112701
|
-
this.branch = data.branch;
|
112702
|
-
this.closedAt = data.closedAt;
|
112703
|
-
this.createdAt = data.createdAt;
|
112704
|
-
this.draft = data.draft;
|
112705
|
-
this.id = data.id;
|
112706
|
-
this.mergedAt = data.mergedAt;
|
112707
|
-
this.number = data.number;
|
112708
|
-
this.repoLogin = data.repoLogin;
|
112709
|
-
this.repoName = data.repoName;
|
112710
|
-
this.reviewers = (_a = data.reviewers) !== null && _a !== void 0 ? _a : undefined;
|
112711
|
-
this.status = data.status;
|
112712
|
-
this.title = data.title;
|
112713
|
-
this.updatedAt = data.updatedAt;
|
112714
|
-
this.url = data.url;
|
112715
|
-
this.userId = data.userId;
|
112716
|
-
this.userLogin = data.userLogin;
|
112717
|
-
this.reviews = data.reviews ? data.reviews.map(node => new PullRequestReview(request, node)) : undefined;
|
112718
|
-
}
|
112719
|
-
}
|
112720
|
-
/**
|
112721
|
-
* Pull request review data
|
112722
|
-
*
|
112723
|
-
* @param request - function to call the graphql client
|
112724
|
-
* @param data - L.PullRequestReviewFragment response data
|
112725
|
-
*/
|
112726
|
-
class PullRequestReview extends Request {
|
112727
|
-
constructor(request, data) {
|
112728
|
-
super(request);
|
112729
|
-
this.id = data.id;
|
112730
|
-
this.reviewerId = data.reviewerId;
|
112731
|
-
this.reviewerLogin = data.reviewerLogin;
|
112732
|
-
this.state = data.state;
|
112733
|
-
this.submittedAt = data.submittedAt;
|
112734
|
-
}
|
112735
|
-
}
|
112736
112308
|
/**
|
112737
112309
|
* A user's web browser push notification subscription.
|
112738
112310
|
*
|
@@ -113063,29 +112635,6 @@ class SamlConfigurationPayload extends Request {
|
|
113063
112635
|
this.ssoSignAlgo = (_d = data.ssoSignAlgo) !== null && _d !== void 0 ? _d : undefined;
|
113064
112636
|
}
|
113065
112637
|
}
|
113066
|
-
/**
|
113067
|
-
* Sentry issue data
|
113068
|
-
*
|
113069
|
-
* @param request - function to call the graphql client
|
113070
|
-
* @param data - L.SentryIssuePayloadFragment response data
|
113071
|
-
*/
|
113072
|
-
class SentryIssuePayload extends Request {
|
113073
|
-
constructor(request, data) {
|
113074
|
-
var _a;
|
113075
|
-
super(request);
|
113076
|
-
this.actorId = data.actorId;
|
113077
|
-
this.actorName = data.actorName;
|
113078
|
-
this.actorType = data.actorType;
|
113079
|
-
this.firstSeen = data.firstSeen;
|
113080
|
-
this.firstVersion = (_a = data.firstVersion) !== null && _a !== void 0 ? _a : undefined;
|
113081
|
-
this.issueId = data.issueId;
|
113082
|
-
this.issueTitle = data.issueTitle;
|
113083
|
-
this.projectId = data.projectId;
|
113084
|
-
this.projectSlug = data.projectSlug;
|
113085
|
-
this.shortId = data.shortId;
|
113086
|
-
this.webUrl = data.webUrl;
|
113087
|
-
}
|
113088
|
-
}
|
113089
112638
|
/**
|
113090
112639
|
* Sentry specific settings.
|
113091
112640
|
*
|
@@ -115452,31 +115001,6 @@ class IntegrationRequestMutation extends Request {
|
|
115452
115001
|
});
|
115453
115002
|
}
|
115454
115003
|
}
|
115455
|
-
/**
|
115456
|
-
* A fetchable ArchiveIntegrationResource Mutation
|
115457
|
-
*
|
115458
|
-
* @param request - function to call the graphql client
|
115459
|
-
*/
|
115460
|
-
class ArchiveIntegrationResourceMutation extends Request {
|
115461
|
-
constructor(request) {
|
115462
|
-
super(request);
|
115463
|
-
}
|
115464
|
-
/**
|
115465
|
-
* Call the ArchiveIntegrationResource mutation and return a ArchivePayload
|
115466
|
-
*
|
115467
|
-
* @param id - required id to pass to archiveIntegrationResource
|
115468
|
-
* @returns parsed response from ArchiveIntegrationResourceMutation
|
115469
|
-
*/
|
115470
|
-
fetch(id) {
|
115471
|
-
return __awaiter(this, void 0, void 0, function* () {
|
115472
|
-
const response = yield this._request(ArchiveIntegrationResourceDocument, {
|
115473
|
-
id,
|
115474
|
-
});
|
115475
|
-
const data = response.integrationResourceArchive;
|
115476
|
-
return new ArchivePayload(this._request, data);
|
115477
|
-
});
|
115478
|
-
}
|
115479
|
-
}
|
115480
115004
|
/**
|
115481
115005
|
* A fetchable IntegrationSentryConnect Mutation
|
115482
115006
|
*
|
@@ -122493,15 +122017,6 @@ class LinearSdk extends Request {
|
|
122493
122017
|
integrationRequest(input) {
|
122494
122018
|
return new IntegrationRequestMutation(this._request).fetch(input);
|
122495
122019
|
}
|
122496
|
-
/**
|
122497
|
-
* Archives an integration resource.
|
122498
|
-
*
|
122499
|
-
* @param id - required id to pass to archiveIntegrationResource
|
122500
|
-
* @returns ArchivePayload
|
122501
|
-
*/
|
122502
|
-
archiveIntegrationResource(id) {
|
122503
|
-
return new ArchiveIntegrationResourceMutation(this._request).fetch(id);
|
122504
|
-
}
|
122505
122020
|
/**
|
122506
122021
|
* Integrates the organization with Sentry.
|
122507
122022
|
*
|
@@ -124344,7 +123859,6 @@ exports.ApplicationInfoQuery = ApplicationInfoQuery;
|
|
124344
123859
|
exports.ApplicationWithAuthorizationQuery = ApplicationWithAuthorizationQuery;
|
124345
123860
|
exports.ArchiveAttachmentMutation = ArchiveAttachmentMutation;
|
124346
123861
|
exports.ArchiveCycleMutation = ArchiveCycleMutation;
|
124347
|
-
exports.ArchiveIntegrationResourceMutation = ArchiveIntegrationResourceMutation;
|
124348
123862
|
exports.ArchiveIssueLabelMutation = ArchiveIssueLabelMutation;
|
124349
123863
|
exports.ArchiveIssueMutation = ArchiveIssueMutation;
|
124350
123864
|
exports.ArchiveNotificationMutation = ArchiveNotificationMutation;
|
@@ -124387,7 +123901,6 @@ exports.CommentPayload = CommentPayload;
|
|
124387
123901
|
exports.CommentQuery = CommentQuery;
|
124388
123902
|
exports.Comment_ChildrenQuery = Comment_ChildrenQuery;
|
124389
123903
|
exports.CommentsQuery = CommentsQuery;
|
124390
|
-
exports.CommitPayload = CommitPayload;
|
124391
123904
|
exports.Connection = Connection;
|
124392
123905
|
exports.ContactPayload = ContactPayload;
|
124393
123906
|
exports.CreateApiKeyMutation = CreateApiKeyMutation;
|
@@ -124530,9 +124043,6 @@ exports.IntegrationPayload = IntegrationPayload;
|
|
124530
124043
|
exports.IntegrationQuery = IntegrationQuery;
|
124531
124044
|
exports.IntegrationRequestMutation = IntegrationRequestMutation;
|
124532
124045
|
exports.IntegrationRequestPayload = IntegrationRequestPayload;
|
124533
|
-
exports.IntegrationResource = IntegrationResource;
|
124534
|
-
exports.IntegrationResourceConnection = IntegrationResourceConnection;
|
124535
|
-
exports.IntegrationResourceData = IntegrationResourceData;
|
124536
124046
|
exports.IntegrationSentryConnectMutation = IntegrationSentryConnectMutation;
|
124537
124047
|
exports.IntegrationSettings = IntegrationSettings;
|
124538
124048
|
exports.IntegrationSlackImportEmojisMutation = IntegrationSlackImportEmojisMutation;
|
@@ -124698,8 +124208,6 @@ exports.Project_MembersQuery = Project_MembersQuery;
|
|
124698
124208
|
exports.Project_ProjectUpdatesQuery = Project_ProjectUpdatesQuery;
|
124699
124209
|
exports.Project_TeamsQuery = Project_TeamsQuery;
|
124700
124210
|
exports.ProjectsQuery = ProjectsQuery;
|
124701
|
-
exports.PullRequestPayload = PullRequestPayload;
|
124702
|
-
exports.PullRequestReview = PullRequestReview;
|
124703
124211
|
exports.PushSubscription = PushSubscription;
|
124704
124212
|
exports.PushSubscriptionConnection = PushSubscriptionConnection;
|
124705
124213
|
exports.PushSubscriptionPayload = PushSubscriptionPayload;
|
@@ -124729,7 +124237,6 @@ exports.RoadmapsQuery = RoadmapsQuery;
|
|
124729
124237
|
exports.SamlConfiguration = SamlConfiguration;
|
124730
124238
|
exports.SamlConfigurationPayload = SamlConfigurationPayload;
|
124731
124239
|
exports.SamlTokenUserAccountAuthMutation = SamlTokenUserAccountAuthMutation;
|
124732
|
-
exports.SentryIssuePayload = SentryIssuePayload;
|
124733
124240
|
exports.SentrySettings = SentrySettings;
|
124734
124241
|
exports.SlackPostSettings = SlackPostSettings;
|
124735
124242
|
exports.SsoUrlFromEmailQuery = SsoUrlFromEmailQuery;
|