@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-umd.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
6
6
|
|
7
7
|
(function() {
|
8
|
-
const env = {"npm_package_name":"@linear/sdk","npm_package_version":"2.
|
8
|
+
const env = {"npm_package_name":"@linear/sdk","npm_package_version":"2.3.0"};
|
9
9
|
try {
|
10
10
|
if (process) {
|
11
11
|
process.env = Object.assign({}, process.env);
|
@@ -3910,259 +3910,6 @@
|
|
3910
3910
|
},
|
3911
3911
|
],
|
3912
3912
|
};
|
3913
|
-
const CommitPayloadFragmentDoc = {
|
3914
|
-
kind: "Document",
|
3915
|
-
definitions: [
|
3916
|
-
{
|
3917
|
-
kind: "FragmentDefinition",
|
3918
|
-
name: { kind: "Name", value: "CommitPayload" },
|
3919
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CommitPayload" } },
|
3920
|
-
selectionSet: {
|
3921
|
-
kind: "SelectionSet",
|
3922
|
-
selections: [
|
3923
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
3924
|
-
{ kind: "Field", name: { kind: "Name", value: "added" } },
|
3925
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
3926
|
-
{ kind: "Field", name: { kind: "Name", value: "message" } },
|
3927
|
-
{ kind: "Field", name: { kind: "Name", value: "modified" } },
|
3928
|
-
{ kind: "Field", name: { kind: "Name", value: "removed" } },
|
3929
|
-
{ kind: "Field", name: { kind: "Name", value: "timestamp" } },
|
3930
|
-
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
3931
|
-
],
|
3932
|
-
},
|
3933
|
-
},
|
3934
|
-
],
|
3935
|
-
};
|
3936
|
-
const PullRequestReviewFragmentDoc = {
|
3937
|
-
kind: "Document",
|
3938
|
-
definitions: [
|
3939
|
-
{
|
3940
|
-
kind: "FragmentDefinition",
|
3941
|
-
name: { kind: "Name", value: "PullRequestReview" },
|
3942
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PullRequestReview" } },
|
3943
|
-
selectionSet: {
|
3944
|
-
kind: "SelectionSet",
|
3945
|
-
selections: [
|
3946
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
3947
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
3948
|
-
{ kind: "Field", name: { kind: "Name", value: "reviewerLogin" } },
|
3949
|
-
{ kind: "Field", name: { kind: "Name", value: "state" } },
|
3950
|
-
{ kind: "Field", name: { kind: "Name", value: "submittedAt" } },
|
3951
|
-
{ kind: "Field", name: { kind: "Name", value: "reviewerId" } },
|
3952
|
-
],
|
3953
|
-
},
|
3954
|
-
},
|
3955
|
-
],
|
3956
|
-
};
|
3957
|
-
const PullRequestPayloadFragmentDoc = {
|
3958
|
-
kind: "Document",
|
3959
|
-
definitions: [
|
3960
|
-
{
|
3961
|
-
kind: "FragmentDefinition",
|
3962
|
-
name: { kind: "Name", value: "PullRequestPayload" },
|
3963
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PullRequestPayload" } },
|
3964
|
-
selectionSet: {
|
3965
|
-
kind: "SelectionSet",
|
3966
|
-
selections: [
|
3967
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
3968
|
-
{ kind: "Field", name: { kind: "Name", value: "branch" } },
|
3969
|
-
{ kind: "Field", name: { kind: "Name", value: "closedAt" } },
|
3970
|
-
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
3971
|
-
{ kind: "Field", name: { kind: "Name", value: "draft" } },
|
3972
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
3973
|
-
{ kind: "Field", name: { kind: "Name", value: "mergedAt" } },
|
3974
|
-
{ kind: "Field", name: { kind: "Name", value: "number" } },
|
3975
|
-
{ kind: "Field", name: { kind: "Name", value: "repoLogin" } },
|
3976
|
-
{ kind: "Field", name: { kind: "Name", value: "repoName" } },
|
3977
|
-
{ kind: "Field", name: { kind: "Name", value: "reviewers" } },
|
3978
|
-
{
|
3979
|
-
kind: "Field",
|
3980
|
-
name: { kind: "Name", value: "reviews" },
|
3981
|
-
selectionSet: {
|
3982
|
-
kind: "SelectionSet",
|
3983
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestReview" } }],
|
3984
|
-
},
|
3985
|
-
},
|
3986
|
-
{ kind: "Field", name: { kind: "Name", value: "status" } },
|
3987
|
-
{ kind: "Field", name: { kind: "Name", value: "title" } },
|
3988
|
-
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
3989
|
-
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
3990
|
-
{ kind: "Field", name: { kind: "Name", value: "userId" } },
|
3991
|
-
{ kind: "Field", name: { kind: "Name", value: "userLogin" } },
|
3992
|
-
],
|
3993
|
-
},
|
3994
|
-
},
|
3995
|
-
...PullRequestReviewFragmentDoc.definitions,
|
3996
|
-
],
|
3997
|
-
};
|
3998
|
-
const SentryIssuePayloadFragmentDoc = {
|
3999
|
-
kind: "Document",
|
4000
|
-
definitions: [
|
4001
|
-
{
|
4002
|
-
kind: "FragmentDefinition",
|
4003
|
-
name: { kind: "Name", value: "SentryIssuePayload" },
|
4004
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SentryIssuePayload" } },
|
4005
|
-
selectionSet: {
|
4006
|
-
kind: "SelectionSet",
|
4007
|
-
selections: [
|
4008
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
4009
|
-
{ kind: "Field", name: { kind: "Name", value: "issueId" } },
|
4010
|
-
{ kind: "Field", name: { kind: "Name", value: "actorId" } },
|
4011
|
-
{ kind: "Field", name: { kind: "Name", value: "projectId" } },
|
4012
|
-
{ kind: "Field", name: { kind: "Name", value: "firstSeen" } },
|
4013
|
-
{ kind: "Field", name: { kind: "Name", value: "webUrl" } },
|
4014
|
-
{ kind: "Field", name: { kind: "Name", value: "actorName" } },
|
4015
|
-
{ kind: "Field", name: { kind: "Name", value: "firstVersion" } },
|
4016
|
-
{ kind: "Field", name: { kind: "Name", value: "shortId" } },
|
4017
|
-
{ kind: "Field", name: { kind: "Name", value: "projectSlug" } },
|
4018
|
-
{ kind: "Field", name: { kind: "Name", value: "issueTitle" } },
|
4019
|
-
{ kind: "Field", name: { kind: "Name", value: "actorType" } },
|
4020
|
-
],
|
4021
|
-
},
|
4022
|
-
},
|
4023
|
-
],
|
4024
|
-
};
|
4025
|
-
const IntegrationResourceDataFragmentDoc = {
|
4026
|
-
kind: "Document",
|
4027
|
-
definitions: [
|
4028
|
-
{
|
4029
|
-
kind: "FragmentDefinition",
|
4030
|
-
name: { kind: "Name", value: "IntegrationResourceData" },
|
4031
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "IntegrationResourceData" } },
|
4032
|
-
selectionSet: {
|
4033
|
-
kind: "SelectionSet",
|
4034
|
-
selections: [
|
4035
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
4036
|
-
{
|
4037
|
-
kind: "Field",
|
4038
|
-
name: { kind: "Name", value: "githubCommit" },
|
4039
|
-
selectionSet: {
|
4040
|
-
kind: "SelectionSet",
|
4041
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "CommitPayload" } }],
|
4042
|
-
},
|
4043
|
-
},
|
4044
|
-
{
|
4045
|
-
kind: "Field",
|
4046
|
-
name: { kind: "Name", value: "githubPullRequest" },
|
4047
|
-
selectionSet: {
|
4048
|
-
kind: "SelectionSet",
|
4049
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestPayload" } }],
|
4050
|
-
},
|
4051
|
-
},
|
4052
|
-
{
|
4053
|
-
kind: "Field",
|
4054
|
-
name: { kind: "Name", value: "gitlabMergeRequest" },
|
4055
|
-
selectionSet: {
|
4056
|
-
kind: "SelectionSet",
|
4057
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestPayload" } }],
|
4058
|
-
},
|
4059
|
-
},
|
4060
|
-
{
|
4061
|
-
kind: "Field",
|
4062
|
-
name: { kind: "Name", value: "sentryIssue" },
|
4063
|
-
selectionSet: {
|
4064
|
-
kind: "SelectionSet",
|
4065
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "SentryIssuePayload" } }],
|
4066
|
-
},
|
4067
|
-
},
|
4068
|
-
],
|
4069
|
-
},
|
4070
|
-
},
|
4071
|
-
...CommitPayloadFragmentDoc.definitions,
|
4072
|
-
...PullRequestPayloadFragmentDoc.definitions,
|
4073
|
-
...SentryIssuePayloadFragmentDoc.definitions,
|
4074
|
-
],
|
4075
|
-
};
|
4076
|
-
const IntegrationResourceFragmentDoc = {
|
4077
|
-
kind: "Document",
|
4078
|
-
definitions: [
|
4079
|
-
{
|
4080
|
-
kind: "FragmentDefinition",
|
4081
|
-
name: { kind: "Name", value: "IntegrationResource" },
|
4082
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "IntegrationResource" } },
|
4083
|
-
selectionSet: {
|
4084
|
-
kind: "SelectionSet",
|
4085
|
-
selections: [
|
4086
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
4087
|
-
{
|
4088
|
-
kind: "Field",
|
4089
|
-
name: { kind: "Name", value: "data" },
|
4090
|
-
selectionSet: {
|
4091
|
-
kind: "SelectionSet",
|
4092
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationResourceData" } }],
|
4093
|
-
},
|
4094
|
-
},
|
4095
|
-
{
|
4096
|
-
kind: "Field",
|
4097
|
-
name: { kind: "Name", value: "pullRequest" },
|
4098
|
-
selectionSet: {
|
4099
|
-
kind: "SelectionSet",
|
4100
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PullRequestPayload" } }],
|
4101
|
-
},
|
4102
|
-
},
|
4103
|
-
{ kind: "Field", name: { kind: "Name", value: "resourceId" } },
|
4104
|
-
{
|
4105
|
-
kind: "Field",
|
4106
|
-
name: { kind: "Name", value: "integration" },
|
4107
|
-
selectionSet: {
|
4108
|
-
kind: "SelectionSet",
|
4109
|
-
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
4110
|
-
},
|
4111
|
-
},
|
4112
|
-
{ kind: "Field", name: { kind: "Name", value: "resourceType" } },
|
4113
|
-
{
|
4114
|
-
kind: "Field",
|
4115
|
-
name: { kind: "Name", value: "issue" },
|
4116
|
-
selectionSet: {
|
4117
|
-
kind: "SelectionSet",
|
4118
|
-
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
4119
|
-
},
|
4120
|
-
},
|
4121
|
-
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
4122
|
-
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
4123
|
-
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
4124
|
-
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
4125
|
-
],
|
4126
|
-
},
|
4127
|
-
},
|
4128
|
-
...IntegrationResourceDataFragmentDoc.definitions,
|
4129
|
-
...PullRequestPayloadFragmentDoc.definitions,
|
4130
|
-
],
|
4131
|
-
};
|
4132
|
-
const IntegrationResourceConnectionFragmentDoc = {
|
4133
|
-
kind: "Document",
|
4134
|
-
definitions: [
|
4135
|
-
{
|
4136
|
-
kind: "FragmentDefinition",
|
4137
|
-
name: { kind: "Name", value: "IntegrationResourceConnection" },
|
4138
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "IntegrationResourceConnection" } },
|
4139
|
-
selectionSet: {
|
4140
|
-
kind: "SelectionSet",
|
4141
|
-
selections: [
|
4142
|
-
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
4143
|
-
{
|
4144
|
-
kind: "Field",
|
4145
|
-
name: { kind: "Name", value: "nodes" },
|
4146
|
-
selectionSet: {
|
4147
|
-
kind: "SelectionSet",
|
4148
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationResource" } }],
|
4149
|
-
},
|
4150
|
-
},
|
4151
|
-
{
|
4152
|
-
kind: "Field",
|
4153
|
-
name: { kind: "Name", value: "pageInfo" },
|
4154
|
-
selectionSet: {
|
4155
|
-
kind: "SelectionSet",
|
4156
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
|
4157
|
-
},
|
4158
|
-
},
|
4159
|
-
],
|
4160
|
-
},
|
4161
|
-
},
|
4162
|
-
...IntegrationResourceFragmentDoc.definitions,
|
4163
|
-
...PageInfoFragmentDoc.definitions,
|
4164
|
-
],
|
4165
|
-
};
|
4166
3913
|
const IntegrationTemplateFragmentDoc = {
|
4167
3914
|
kind: "Document",
|
4168
3915
|
definitions: [
|
@@ -10001,44 +9748,6 @@
|
|
10001
9748
|
...IntegrationRequestPayloadFragmentDoc.definitions,
|
10002
9749
|
],
|
10003
9750
|
};
|
10004
|
-
const ArchiveIntegrationResourceDocument = {
|
10005
|
-
kind: "Document",
|
10006
|
-
definitions: [
|
10007
|
-
{
|
10008
|
-
kind: "OperationDefinition",
|
10009
|
-
operation: "mutation",
|
10010
|
-
name: { kind: "Name", value: "archiveIntegrationResource" },
|
10011
|
-
variableDefinitions: [
|
10012
|
-
{
|
10013
|
-
kind: "VariableDefinition",
|
10014
|
-
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
10015
|
-
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
10016
|
-
},
|
10017
|
-
],
|
10018
|
-
selectionSet: {
|
10019
|
-
kind: "SelectionSet",
|
10020
|
-
selections: [
|
10021
|
-
{
|
10022
|
-
kind: "Field",
|
10023
|
-
name: { kind: "Name", value: "integrationResourceArchive" },
|
10024
|
-
arguments: [
|
10025
|
-
{
|
10026
|
-
kind: "Argument",
|
10027
|
-
name: { kind: "Name", value: "id" },
|
10028
|
-
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
10029
|
-
},
|
10030
|
-
],
|
10031
|
-
selectionSet: {
|
10032
|
-
kind: "SelectionSet",
|
10033
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ArchivePayload" } }],
|
10034
|
-
},
|
10035
|
-
},
|
10036
|
-
],
|
10037
|
-
},
|
10038
|
-
},
|
10039
|
-
...ArchivePayloadFragmentDoc.definitions,
|
10040
|
-
],
|
10041
|
-
};
|
10042
9751
|
const IntegrationSentryConnectDocument = {
|
10043
9752
|
kind: "Document",
|
10044
9753
|
definitions: [
|
@@ -26915,13 +26624,6 @@
|
|
26915
26624
|
IntegrationConnectionFragmentDoc: IntegrationConnectionFragmentDoc,
|
26916
26625
|
IntegrationPayloadFragmentDoc: IntegrationPayloadFragmentDoc,
|
26917
26626
|
IntegrationRequestPayloadFragmentDoc: IntegrationRequestPayloadFragmentDoc,
|
26918
|
-
CommitPayloadFragmentDoc: CommitPayloadFragmentDoc,
|
26919
|
-
PullRequestReviewFragmentDoc: PullRequestReviewFragmentDoc,
|
26920
|
-
PullRequestPayloadFragmentDoc: PullRequestPayloadFragmentDoc,
|
26921
|
-
SentryIssuePayloadFragmentDoc: SentryIssuePayloadFragmentDoc,
|
26922
|
-
IntegrationResourceDataFragmentDoc: IntegrationResourceDataFragmentDoc,
|
26923
|
-
IntegrationResourceFragmentDoc: IntegrationResourceFragmentDoc,
|
26924
|
-
IntegrationResourceConnectionFragmentDoc: IntegrationResourceConnectionFragmentDoc,
|
26925
26627
|
IntegrationTemplateFragmentDoc: IntegrationTemplateFragmentDoc,
|
26926
26628
|
IntegrationTemplateConnectionFragmentDoc: IntegrationTemplateConnectionFragmentDoc,
|
26927
26629
|
IntegrationTemplatePayloadFragmentDoc: IntegrationTemplatePayloadFragmentDoc,
|
@@ -27079,7 +26781,6 @@
|
|
27079
26781
|
UpdateIntegrationIntercomSettingsDocument: UpdateIntegrationIntercomSettingsDocument,
|
27080
26782
|
IntegrationLoomDocument: IntegrationLoomDocument,
|
27081
26783
|
IntegrationRequestDocument: IntegrationRequestDocument,
|
27082
|
-
ArchiveIntegrationResourceDocument: ArchiveIntegrationResourceDocument,
|
27083
26784
|
IntegrationSentryConnectDocument: IntegrationSentryConnectDocument,
|
27084
26785
|
IntegrationSlackDocument: IntegrationSlackDocument,
|
27085
26786
|
IntegrationSlackImportEmojisDocument: IntegrationSlackImportEmojisDocument,
|
@@ -27819,24 +27520,6 @@
|
|
27819
27520
|
return new CommentQuery(this._request).fetch(this._comment.id);
|
27820
27521
|
}
|
27821
27522
|
}
|
27822
|
-
/**
|
27823
|
-
* GitHub's commit data
|
27824
|
-
*
|
27825
|
-
* @param request - function to call the graphql client
|
27826
|
-
* @param data - L.CommitPayloadFragment response data
|
27827
|
-
*/
|
27828
|
-
class CommitPayload extends Request {
|
27829
|
-
constructor(request, data) {
|
27830
|
-
super(request);
|
27831
|
-
this.added = data.added;
|
27832
|
-
this.id = data.id;
|
27833
|
-
this.message = data.message;
|
27834
|
-
this.modified = data.modified;
|
27835
|
-
this.removed = data.removed;
|
27836
|
-
this.timestamp = data.timestamp;
|
27837
|
-
this.url = data.url;
|
27838
|
-
}
|
27839
|
-
}
|
27840
27523
|
/**
|
27841
27524
|
* ContactPayload model
|
27842
27525
|
*
|
@@ -28622,72 +28305,6 @@
|
|
28622
28305
|
this.success = data.success;
|
28623
28306
|
}
|
28624
28307
|
}
|
28625
|
-
/**
|
28626
|
-
* An integration resource created by an external service.
|
28627
|
-
*
|
28628
|
-
* @param request - function to call the graphql client
|
28629
|
-
* @param data - L.IntegrationResourceFragment response data
|
28630
|
-
*/
|
28631
|
-
class IntegrationResource extends Request {
|
28632
|
-
constructor(request, data) {
|
28633
|
-
var _a, _b, _c, _d;
|
28634
|
-
super(request);
|
28635
|
-
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
28636
|
-
this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
|
28637
|
-
this.id = data.id;
|
28638
|
-
this.resourceId = data.resourceId;
|
28639
|
-
this.resourceType = data.resourceType;
|
28640
|
-
this.updatedAt = (_c = parseDate(data.updatedAt)) !== null && _c !== void 0 ? _c : new Date();
|
28641
|
-
this.data = new IntegrationResourceData(request, data.data);
|
28642
|
-
this.pullRequest = new PullRequestPayload(request, data.pullRequest);
|
28643
|
-
this._integration = (_d = data.integration) !== null && _d !== void 0 ? _d : undefined;
|
28644
|
-
this._issue = data.issue;
|
28645
|
-
}
|
28646
|
-
/** The integration that the resource is associated with. */
|
28647
|
-
get integration() {
|
28648
|
-
var _a, _b;
|
28649
|
-
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;
|
28650
|
-
}
|
28651
|
-
/** The issue that the resource is associated with. */
|
28652
|
-
get issue() {
|
28653
|
-
return new IssueQuery(this._request).fetch(this._issue.id);
|
28654
|
-
}
|
28655
|
-
/** Archives an integration resource. */
|
28656
|
-
archive() {
|
28657
|
-
return new ArchiveIntegrationResourceMutation(this._request).fetch(this.id);
|
28658
|
-
}
|
28659
|
-
}
|
28660
|
-
/**
|
28661
|
-
* IntegrationResourceConnection model
|
28662
|
-
*
|
28663
|
-
* @param request - function to call the graphql client
|
28664
|
-
* @param fetch - function to trigger a refetch of this IntegrationResourceConnection model
|
28665
|
-
* @param data - IntegrationResourceConnection response data
|
28666
|
-
*/
|
28667
|
-
class IntegrationResourceConnection extends Connection {
|
28668
|
-
constructor(request, fetch, data) {
|
28669
|
-
super(request, fetch, data.nodes.map(node => new IntegrationResource(request, node)), new PageInfo(request, data.pageInfo));
|
28670
|
-
}
|
28671
|
-
}
|
28672
|
-
/**
|
28673
|
-
* Integration resource's payload
|
28674
|
-
*
|
28675
|
-
* @param request - function to call the graphql client
|
28676
|
-
* @param data - L.IntegrationResourceDataFragment response data
|
28677
|
-
*/
|
28678
|
-
class IntegrationResourceData extends Request {
|
28679
|
-
constructor(request, data) {
|
28680
|
-
super(request);
|
28681
|
-
this.githubCommit = data.githubCommit ? new CommitPayload(request, data.githubCommit) : undefined;
|
28682
|
-
this.githubPullRequest = data.githubPullRequest
|
28683
|
-
? new PullRequestPayload(request, data.githubPullRequest)
|
28684
|
-
: undefined;
|
28685
|
-
this.gitlabMergeRequest = data.gitlabMergeRequest
|
28686
|
-
? new PullRequestPayload(request, data.gitlabMergeRequest)
|
28687
|
-
: undefined;
|
28688
|
-
this.sentryIssue = data.sentryIssue ? new SentryIssuePayload(request, data.sentryIssue) : undefined;
|
28689
|
-
}
|
28690
|
-
}
|
28691
28308
|
/**
|
28692
28309
|
* The integration resource's settings
|
28693
28310
|
*
|
@@ -30660,51 +30277,6 @@
|
|
30660
30277
|
return new ProjectUpdateQuery(this._request).fetch(this._projectUpdate.id);
|
30661
30278
|
}
|
30662
30279
|
}
|
30663
|
-
/**
|
30664
|
-
* Pull request data
|
30665
|
-
*
|
30666
|
-
* @param request - function to call the graphql client
|
30667
|
-
* @param data - L.PullRequestPayloadFragment response data
|
30668
|
-
*/
|
30669
|
-
class PullRequestPayload extends Request {
|
30670
|
-
constructor(request, data) {
|
30671
|
-
var _a;
|
30672
|
-
super(request);
|
30673
|
-
this.branch = data.branch;
|
30674
|
-
this.closedAt = data.closedAt;
|
30675
|
-
this.createdAt = data.createdAt;
|
30676
|
-
this.draft = data.draft;
|
30677
|
-
this.id = data.id;
|
30678
|
-
this.mergedAt = data.mergedAt;
|
30679
|
-
this.number = data.number;
|
30680
|
-
this.repoLogin = data.repoLogin;
|
30681
|
-
this.repoName = data.repoName;
|
30682
|
-
this.reviewers = (_a = data.reviewers) !== null && _a !== void 0 ? _a : undefined;
|
30683
|
-
this.status = data.status;
|
30684
|
-
this.title = data.title;
|
30685
|
-
this.updatedAt = data.updatedAt;
|
30686
|
-
this.url = data.url;
|
30687
|
-
this.userId = data.userId;
|
30688
|
-
this.userLogin = data.userLogin;
|
30689
|
-
this.reviews = data.reviews ? data.reviews.map(node => new PullRequestReview(request, node)) : undefined;
|
30690
|
-
}
|
30691
|
-
}
|
30692
|
-
/**
|
30693
|
-
* Pull request review data
|
30694
|
-
*
|
30695
|
-
* @param request - function to call the graphql client
|
30696
|
-
* @param data - L.PullRequestReviewFragment response data
|
30697
|
-
*/
|
30698
|
-
class PullRequestReview extends Request {
|
30699
|
-
constructor(request, data) {
|
30700
|
-
super(request);
|
30701
|
-
this.id = data.id;
|
30702
|
-
this.reviewerId = data.reviewerId;
|
30703
|
-
this.reviewerLogin = data.reviewerLogin;
|
30704
|
-
this.state = data.state;
|
30705
|
-
this.submittedAt = data.submittedAt;
|
30706
|
-
}
|
30707
|
-
}
|
30708
30280
|
/**
|
30709
30281
|
* A user's web browser push notification subscription.
|
30710
30282
|
*
|
@@ -31035,29 +30607,6 @@
|
|
31035
30607
|
this.ssoSignAlgo = (_d = data.ssoSignAlgo) !== null && _d !== void 0 ? _d : undefined;
|
31036
30608
|
}
|
31037
30609
|
}
|
31038
|
-
/**
|
31039
|
-
* Sentry issue data
|
31040
|
-
*
|
31041
|
-
* @param request - function to call the graphql client
|
31042
|
-
* @param data - L.SentryIssuePayloadFragment response data
|
31043
|
-
*/
|
31044
|
-
class SentryIssuePayload extends Request {
|
31045
|
-
constructor(request, data) {
|
31046
|
-
var _a;
|
31047
|
-
super(request);
|
31048
|
-
this.actorId = data.actorId;
|
31049
|
-
this.actorName = data.actorName;
|
31050
|
-
this.actorType = data.actorType;
|
31051
|
-
this.firstSeen = data.firstSeen;
|
31052
|
-
this.firstVersion = (_a = data.firstVersion) !== null && _a !== void 0 ? _a : undefined;
|
31053
|
-
this.issueId = data.issueId;
|
31054
|
-
this.issueTitle = data.issueTitle;
|
31055
|
-
this.projectId = data.projectId;
|
31056
|
-
this.projectSlug = data.projectSlug;
|
31057
|
-
this.shortId = data.shortId;
|
31058
|
-
this.webUrl = data.webUrl;
|
31059
|
-
}
|
31060
|
-
}
|
31061
30610
|
/**
|
31062
30611
|
* Sentry specific settings.
|
31063
30612
|
*
|
@@ -33424,31 +32973,6 @@
|
|
33424
32973
|
});
|
33425
32974
|
}
|
33426
32975
|
}
|
33427
|
-
/**
|
33428
|
-
* A fetchable ArchiveIntegrationResource Mutation
|
33429
|
-
*
|
33430
|
-
* @param request - function to call the graphql client
|
33431
|
-
*/
|
33432
|
-
class ArchiveIntegrationResourceMutation extends Request {
|
33433
|
-
constructor(request) {
|
33434
|
-
super(request);
|
33435
|
-
}
|
33436
|
-
/**
|
33437
|
-
* Call the ArchiveIntegrationResource mutation and return a ArchivePayload
|
33438
|
-
*
|
33439
|
-
* @param id - required id to pass to archiveIntegrationResource
|
33440
|
-
* @returns parsed response from ArchiveIntegrationResourceMutation
|
33441
|
-
*/
|
33442
|
-
fetch(id) {
|
33443
|
-
return __awaiter(this, void 0, void 0, function* () {
|
33444
|
-
const response = yield this._request(ArchiveIntegrationResourceDocument, {
|
33445
|
-
id,
|
33446
|
-
});
|
33447
|
-
const data = response.integrationResourceArchive;
|
33448
|
-
return new ArchivePayload(this._request, data);
|
33449
|
-
});
|
33450
|
-
}
|
33451
|
-
}
|
33452
32976
|
/**
|
33453
32977
|
* A fetchable IntegrationSentryConnect Mutation
|
33454
32978
|
*
|
@@ -40465,15 +39989,6 @@
|
|
40465
39989
|
integrationRequest(input) {
|
40466
39990
|
return new IntegrationRequestMutation(this._request).fetch(input);
|
40467
39991
|
}
|
40468
|
-
/**
|
40469
|
-
* Archives an integration resource.
|
40470
|
-
*
|
40471
|
-
* @param id - required id to pass to archiveIntegrationResource
|
40472
|
-
* @returns ArchivePayload
|
40473
|
-
*/
|
40474
|
-
archiveIntegrationResource(id) {
|
40475
|
-
return new ArchiveIntegrationResourceMutation(this._request).fetch(id);
|
40476
|
-
}
|
40477
39992
|
/**
|
40478
39993
|
* Integrates the organization with Sentry.
|
40479
39994
|
*
|
@@ -42316,7 +41831,6 @@
|
|
42316
41831
|
exports.ApplicationWithAuthorizationQuery = ApplicationWithAuthorizationQuery;
|
42317
41832
|
exports.ArchiveAttachmentMutation = ArchiveAttachmentMutation;
|
42318
41833
|
exports.ArchiveCycleMutation = ArchiveCycleMutation;
|
42319
|
-
exports.ArchiveIntegrationResourceMutation = ArchiveIntegrationResourceMutation;
|
42320
41834
|
exports.ArchiveIssueLabelMutation = ArchiveIssueLabelMutation;
|
42321
41835
|
exports.ArchiveIssueMutation = ArchiveIssueMutation;
|
42322
41836
|
exports.ArchiveNotificationMutation = ArchiveNotificationMutation;
|
@@ -42359,7 +41873,6 @@
|
|
42359
41873
|
exports.CommentQuery = CommentQuery;
|
42360
41874
|
exports.Comment_ChildrenQuery = Comment_ChildrenQuery;
|
42361
41875
|
exports.CommentsQuery = CommentsQuery;
|
42362
|
-
exports.CommitPayload = CommitPayload;
|
42363
41876
|
exports.Connection = Connection;
|
42364
41877
|
exports.ContactPayload = ContactPayload;
|
42365
41878
|
exports.CreateApiKeyMutation = CreateApiKeyMutation;
|
@@ -42502,9 +42015,6 @@
|
|
42502
42015
|
exports.IntegrationQuery = IntegrationQuery;
|
42503
42016
|
exports.IntegrationRequestMutation = IntegrationRequestMutation;
|
42504
42017
|
exports.IntegrationRequestPayload = IntegrationRequestPayload;
|
42505
|
-
exports.IntegrationResource = IntegrationResource;
|
42506
|
-
exports.IntegrationResourceConnection = IntegrationResourceConnection;
|
42507
|
-
exports.IntegrationResourceData = IntegrationResourceData;
|
42508
42018
|
exports.IntegrationSentryConnectMutation = IntegrationSentryConnectMutation;
|
42509
42019
|
exports.IntegrationSettings = IntegrationSettings;
|
42510
42020
|
exports.IntegrationSlackImportEmojisMutation = IntegrationSlackImportEmojisMutation;
|
@@ -42670,8 +42180,6 @@
|
|
42670
42180
|
exports.Project_ProjectUpdatesQuery = Project_ProjectUpdatesQuery;
|
42671
42181
|
exports.Project_TeamsQuery = Project_TeamsQuery;
|
42672
42182
|
exports.ProjectsQuery = ProjectsQuery;
|
42673
|
-
exports.PullRequestPayload = PullRequestPayload;
|
42674
|
-
exports.PullRequestReview = PullRequestReview;
|
42675
42183
|
exports.PushSubscription = PushSubscription;
|
42676
42184
|
exports.PushSubscriptionConnection = PushSubscriptionConnection;
|
42677
42185
|
exports.PushSubscriptionPayload = PushSubscriptionPayload;
|
@@ -42701,7 +42209,6 @@
|
|
42701
42209
|
exports.SamlConfiguration = SamlConfiguration;
|
42702
42210
|
exports.SamlConfigurationPayload = SamlConfigurationPayload;
|
42703
42211
|
exports.SamlTokenUserAccountAuthMutation = SamlTokenUserAccountAuthMutation;
|
42704
|
-
exports.SentryIssuePayload = SentryIssuePayload;
|
42705
42212
|
exports.SentrySettings = SentrySettings;
|
42706
42213
|
exports.SlackPostSettings = SlackPostSettings;
|
42707
42214
|
exports.SsoUrlFromEmailQuery = SsoUrlFromEmailQuery;
|