@linear/sdk 2.2.0 → 2.4.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/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.2.0"};
8
+ const env = {"npm_package_name":"@linear/sdk","npm_package_version":"2.4.0"};
9
9
  try {
10
10
  if (process) {
11
11
  process.env = Object.assign({}, process.env);
@@ -1433,6 +1433,14 @@
1433
1433
  PushSubscriptionType["Apple"] = "apple";
1434
1434
  PushSubscriptionType["Web"] = "web";
1435
1435
  })(PushSubscriptionType || (PushSubscriptionType = {}));
1436
+ /** Features release channel */
1437
+ var ReleaseChannel;
1438
+ (function (ReleaseChannel) {
1439
+ ReleaseChannel["Beta"] = "beta";
1440
+ ReleaseChannel["Internal"] = "internal";
1441
+ ReleaseChannel["PreRelease"] = "preRelease";
1442
+ ReleaseChannel["Public"] = "public";
1443
+ })(ReleaseChannel || (ReleaseChannel = {}));
1436
1444
  var SlaStatus;
1437
1445
  (function (SlaStatus) {
1438
1446
  SlaStatus["Breached"] = "Breached";
@@ -1513,7 +1521,6 @@
1513
1521
  ViewType["MyIssuesActivity"] = "myIssuesActivity";
1514
1522
  ViewType["MyIssuesCreatedByMe"] = "myIssuesCreatedByMe";
1515
1523
  ViewType["MyIssuesSubscribedTo"] = "myIssuesSubscribedTo";
1516
- ViewType["MyIssuesTouchedByMe"] = "myIssuesTouchedByMe";
1517
1524
  ViewType["Project"] = "project";
1518
1525
  ViewType["Projects"] = "projects";
1519
1526
  ViewType["ProjectsAll"] = "projectsAll";
@@ -1531,7 +1538,6 @@
1531
1538
  })(ViewType || (ViewType = {}));
1532
1539
  var WorkflowTrigger;
1533
1540
  (function (WorkflowTrigger) {
1534
- WorkflowTrigger["Cron"] = "cron";
1535
1541
  WorkflowTrigger["EntityCreated"] = "entityCreated";
1536
1542
  WorkflowTrigger["EntityCreatedOrUpdated"] = "entityCreatedOrUpdated";
1537
1543
  WorkflowTrigger["EntityRemoved"] = "entityRemoved";
@@ -1546,7 +1552,6 @@
1546
1552
  var WorkflowType;
1547
1553
  (function (WorkflowType) {
1548
1554
  WorkflowType["Custom"] = "custom";
1549
- WorkflowType["RecurringIssue"] = "recurringIssue";
1550
1555
  WorkflowType["Sla"] = "sla";
1551
1556
  })(WorkflowType || (WorkflowType = {}));
1552
1557
  const EntityFragmentDoc = {
@@ -3910,259 +3915,6 @@
3910
3915
  },
3911
3916
  ],
3912
3917
  };
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
3918
  const IntegrationTemplateFragmentDoc = {
4167
3919
  kind: "Document",
4168
3920
  definitions: [
@@ -5997,6 +5749,7 @@
5997
5749
  { kind: "Field", name: { kind: "Name", value: "description" } },
5998
5750
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
5999
5751
  { kind: "Field", name: { kind: "Name", value: "name" } },
5752
+ { kind: "Field", name: { kind: "Name", value: "sortOrder" } },
6000
5753
  { kind: "Field", name: { kind: "Name", value: "targetDate" } },
6001
5754
  {
6002
5755
  kind: "Field",
@@ -7521,6 +7274,82 @@
7521
7274
  },
7522
7275
  ],
7523
7276
  };
7277
+ const WorkflowCronJobDefinitionFragmentDoc = {
7278
+ kind: "Document",
7279
+ definitions: [
7280
+ {
7281
+ kind: "FragmentDefinition",
7282
+ name: { kind: "Name", value: "WorkflowCronJobDefinition" },
7283
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinition" } },
7284
+ selectionSet: {
7285
+ kind: "SelectionSet",
7286
+ selections: [
7287
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
7288
+ { kind: "Field", name: { kind: "Name", value: "activities" } },
7289
+ { kind: "Field", name: { kind: "Name", value: "schedule" } },
7290
+ { kind: "Field", name: { kind: "Name", value: "description" } },
7291
+ { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
7292
+ { kind: "Field", name: { kind: "Name", value: "name" } },
7293
+ { kind: "Field", name: { kind: "Name", value: "sortOrder" } },
7294
+ {
7295
+ kind: "Field",
7296
+ name: { kind: "Name", value: "team" },
7297
+ selectionSet: {
7298
+ kind: "SelectionSet",
7299
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
7300
+ },
7301
+ },
7302
+ { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
7303
+ { kind: "Field", name: { kind: "Name", value: "createdAt" } },
7304
+ { kind: "Field", name: { kind: "Name", value: "id" } },
7305
+ {
7306
+ kind: "Field",
7307
+ name: { kind: "Name", value: "creator" },
7308
+ selectionSet: {
7309
+ kind: "SelectionSet",
7310
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
7311
+ },
7312
+ },
7313
+ { kind: "Field", name: { kind: "Name", value: "enabled" } },
7314
+ ],
7315
+ },
7316
+ },
7317
+ ],
7318
+ };
7319
+ const WorkflowCronJobDefinitionConnectionFragmentDoc = {
7320
+ kind: "Document",
7321
+ definitions: [
7322
+ {
7323
+ kind: "FragmentDefinition",
7324
+ name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" },
7325
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" } },
7326
+ selectionSet: {
7327
+ kind: "SelectionSet",
7328
+ selections: [
7329
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
7330
+ {
7331
+ kind: "Field",
7332
+ name: { kind: "Name", value: "nodes" },
7333
+ selectionSet: {
7334
+ kind: "SelectionSet",
7335
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "WorkflowCronJobDefinition" } }],
7336
+ },
7337
+ },
7338
+ {
7339
+ kind: "Field",
7340
+ name: { kind: "Name", value: "pageInfo" },
7341
+ selectionSet: {
7342
+ kind: "SelectionSet",
7343
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
7344
+ },
7345
+ },
7346
+ ],
7347
+ },
7348
+ },
7349
+ ...WorkflowCronJobDefinitionFragmentDoc.definitions,
7350
+ ...PageInfoFragmentDoc.definitions,
7351
+ ],
7352
+ };
7524
7353
  const WorkflowDefinitionFragmentDoc = {
7525
7354
  kind: "Document",
7526
7355
  definitions: [
@@ -7533,7 +7362,6 @@
7533
7362
  selections: [
7534
7363
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
7535
7364
  { kind: "Field", name: { kind: "Name", value: "activities" } },
7536
- { kind: "Field", name: { kind: "Name", value: "schedule" } },
7537
7365
  { kind: "Field", name: { kind: "Name", value: "conditions" } },
7538
7366
  { kind: "Field", name: { kind: "Name", value: "description" } },
7539
7367
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
@@ -10001,44 +9829,6 @@
10001
9829
  ...IntegrationRequestPayloadFragmentDoc.definitions,
10002
9830
  ],
10003
9831
  };
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
9832
  const IntegrationSentryConnectDocument = {
10043
9833
  kind: "Document",
10044
9834
  definitions: [
@@ -26828,6 +26618,7 @@
26828
26618
  get ProjectUpdateHealthType () { return ProjectUpdateHealthType; },
26829
26619
  get ProjectUpdateReminderFrequency () { return ProjectUpdateReminderFrequency; },
26830
26620
  get PushSubscriptionType () { return PushSubscriptionType; },
26621
+ get ReleaseChannel () { return ReleaseChannel; },
26831
26622
  get SlaStatus () { return SlaStatus; },
26832
26623
  get UserFlagType () { return UserFlagType; },
26833
26624
  get UserFlagUpdateOperation () { return UserFlagUpdateOperation; },
@@ -26915,13 +26706,6 @@
26915
26706
  IntegrationConnectionFragmentDoc: IntegrationConnectionFragmentDoc,
26916
26707
  IntegrationPayloadFragmentDoc: IntegrationPayloadFragmentDoc,
26917
26708
  IntegrationRequestPayloadFragmentDoc: IntegrationRequestPayloadFragmentDoc,
26918
- CommitPayloadFragmentDoc: CommitPayloadFragmentDoc,
26919
- PullRequestReviewFragmentDoc: PullRequestReviewFragmentDoc,
26920
- PullRequestPayloadFragmentDoc: PullRequestPayloadFragmentDoc,
26921
- SentryIssuePayloadFragmentDoc: SentryIssuePayloadFragmentDoc,
26922
- IntegrationResourceDataFragmentDoc: IntegrationResourceDataFragmentDoc,
26923
- IntegrationResourceFragmentDoc: IntegrationResourceFragmentDoc,
26924
- IntegrationResourceConnectionFragmentDoc: IntegrationResourceConnectionFragmentDoc,
26925
26709
  IntegrationTemplateFragmentDoc: IntegrationTemplateFragmentDoc,
26926
26710
  IntegrationTemplateConnectionFragmentDoc: IntegrationTemplateConnectionFragmentDoc,
26927
26711
  IntegrationTemplatePayloadFragmentDoc: IntegrationTemplatePayloadFragmentDoc,
@@ -27021,6 +26805,8 @@
27021
26805
  WebhookFragmentDoc: WebhookFragmentDoc,
27022
26806
  WebhookConnectionFragmentDoc: WebhookConnectionFragmentDoc,
27023
26807
  WebhookPayloadFragmentDoc: WebhookPayloadFragmentDoc,
26808
+ WorkflowCronJobDefinitionFragmentDoc: WorkflowCronJobDefinitionFragmentDoc,
26809
+ WorkflowCronJobDefinitionConnectionFragmentDoc: WorkflowCronJobDefinitionConnectionFragmentDoc,
27024
26810
  WorkflowDefinitionFragmentDoc: WorkflowDefinitionFragmentDoc,
27025
26811
  WorkflowDefinitionConnectionFragmentDoc: WorkflowDefinitionConnectionFragmentDoc,
27026
26812
  WorkflowStateFragmentDoc: WorkflowStateFragmentDoc,
@@ -27079,7 +26865,6 @@
27079
26865
  UpdateIntegrationIntercomSettingsDocument: UpdateIntegrationIntercomSettingsDocument,
27080
26866
  IntegrationLoomDocument: IntegrationLoomDocument,
27081
26867
  IntegrationRequestDocument: IntegrationRequestDocument,
27082
- ArchiveIntegrationResourceDocument: ArchiveIntegrationResourceDocument,
27083
26868
  IntegrationSentryConnectDocument: IntegrationSentryConnectDocument,
27084
26869
  IntegrationSlackDocument: IntegrationSlackDocument,
27085
26870
  IntegrationSlackImportEmojisDocument: IntegrationSlackImportEmojisDocument,
@@ -27819,24 +27604,6 @@
27819
27604
  return new CommentQuery(this._request).fetch(this._comment.id);
27820
27605
  }
27821
27606
  }
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
27607
  /**
27841
27608
  * ContactPayload model
27842
27609
  *
@@ -28622,72 +28389,6 @@
28622
28389
  this.success = data.success;
28623
28390
  }
28624
28391
  }
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
28392
  /**
28692
28393
  * The integration resource's settings
28693
28394
  *
@@ -30358,6 +30059,7 @@
30358
30059
  this.description = (_c = data.description) !== null && _c !== void 0 ? _c : undefined;
30359
30060
  this.id = data.id;
30360
30061
  this.name = data.name;
30062
+ this.sortOrder = data.sortOrder;
30361
30063
  this.targetDate = (_d = data.targetDate) !== null && _d !== void 0 ? _d : undefined;
30362
30064
  this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
30363
30065
  this._project = data.project;
@@ -30660,51 +30362,6 @@
30660
30362
  return new ProjectUpdateQuery(this._request).fetch(this._projectUpdate.id);
30661
30363
  }
30662
30364
  }
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
30365
  /**
30709
30366
  * A user's web browser push notification subscription.
30710
30367
  *
@@ -31035,29 +30692,6 @@
31035
30692
  this.ssoSignAlgo = (_d = data.ssoSignAlgo) !== null && _d !== void 0 ? _d : undefined;
31036
30693
  }
31037
30694
  }
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
30695
  /**
31062
30696
  * Sentry specific settings.
31063
30697
  *
@@ -31933,6 +31567,50 @@
31933
31567
  return new WebhookQuery(this._request).fetch(this._webhook.id);
31934
31568
  }
31935
31569
  }
31570
+ /**
31571
+ * WorkflowCronJobDefinition model
31572
+ *
31573
+ * @param request - function to call the graphql client
31574
+ * @param data - L.WorkflowCronJobDefinitionFragment response data
31575
+ */
31576
+ class WorkflowCronJobDefinition extends Request {
31577
+ constructor(request, data) {
31578
+ var _a, _b, _c, _d, _e, _f;
31579
+ super(request);
31580
+ this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
31581
+ this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
31582
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
31583
+ this.description = (_d = data.description) !== null && _d !== void 0 ? _d : undefined;
31584
+ this.enabled = data.enabled;
31585
+ this.id = data.id;
31586
+ this.name = data.name;
31587
+ this.schedule = (_e = parseJson(data.schedule)) !== null && _e !== void 0 ? _e : {};
31588
+ this.sortOrder = data.sortOrder;
31589
+ this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
31590
+ this._creator = data.creator;
31591
+ this._team = data.team;
31592
+ }
31593
+ /** The user who created the workflow cron job. */
31594
+ get creator() {
31595
+ return new UserQuery(this._request).fetch(this._creator.id);
31596
+ }
31597
+ /** The team associated with the workflow cron job. */
31598
+ get team() {
31599
+ return new TeamQuery(this._request).fetch(this._team.id);
31600
+ }
31601
+ }
31602
+ /**
31603
+ * WorkflowCronJobDefinitionConnection model
31604
+ *
31605
+ * @param request - function to call the graphql client
31606
+ * @param fetch - function to trigger a refetch of this WorkflowCronJobDefinitionConnection model
31607
+ * @param data - WorkflowCronJobDefinitionConnection response data
31608
+ */
31609
+ class WorkflowCronJobDefinitionConnection extends Connection {
31610
+ constructor(request, fetch, data) {
31611
+ super(request, fetch, data.nodes.map(node => new WorkflowCronJobDefinition(request, node)), new PageInfo(request, data.pageInfo));
31612
+ }
31613
+ }
31936
31614
  /**
31937
31615
  * WorkflowDefinition model
31938
31616
  *
@@ -31941,7 +31619,7 @@
31941
31619
  */
31942
31620
  class WorkflowDefinition extends Request {
31943
31621
  constructor(request, data) {
31944
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
31622
+ var _a, _b, _c, _d, _e, _f, _g, _h;
31945
31623
  super(request);
31946
31624
  this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
31947
31625
  this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -31952,11 +31630,10 @@
31952
31630
  this.groupName = (_f = data.groupName) !== null && _f !== void 0 ? _f : undefined;
31953
31631
  this.id = data.id;
31954
31632
  this.name = data.name;
31955
- this.schedule = (_g = parseJson(data.schedule)) !== null && _g !== void 0 ? _g : {};
31956
31633
  this.sortOrder = data.sortOrder;
31957
- this.updatedAt = (_h = parseDate(data.updatedAt)) !== null && _h !== void 0 ? _h : new Date();
31634
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
31958
31635
  this._creator = data.creator;
31959
- this._team = (_j = data.team) !== null && _j !== void 0 ? _j : undefined;
31636
+ this._team = (_h = data.team) !== null && _h !== void 0 ? _h : undefined;
31960
31637
  }
31961
31638
  /** The user who created the workflow. */
31962
31639
  get creator() {
@@ -33424,31 +33101,6 @@
33424
33101
  });
33425
33102
  }
33426
33103
  }
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
33104
  /**
33453
33105
  * A fetchable IntegrationSentryConnect Mutation
33454
33106
  *
@@ -40465,15 +40117,6 @@
40465
40117
  integrationRequest(input) {
40466
40118
  return new IntegrationRequestMutation(this._request).fetch(input);
40467
40119
  }
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
40120
  /**
40478
40121
  * Integrates the organization with Sentry.
40479
40122
  *
@@ -42316,7 +41959,6 @@
42316
41959
  exports.ApplicationWithAuthorizationQuery = ApplicationWithAuthorizationQuery;
42317
41960
  exports.ArchiveAttachmentMutation = ArchiveAttachmentMutation;
42318
41961
  exports.ArchiveCycleMutation = ArchiveCycleMutation;
42319
- exports.ArchiveIntegrationResourceMutation = ArchiveIntegrationResourceMutation;
42320
41962
  exports.ArchiveIssueLabelMutation = ArchiveIssueLabelMutation;
42321
41963
  exports.ArchiveIssueMutation = ArchiveIssueMutation;
42322
41964
  exports.ArchiveNotificationMutation = ArchiveNotificationMutation;
@@ -42359,7 +42001,6 @@
42359
42001
  exports.CommentQuery = CommentQuery;
42360
42002
  exports.Comment_ChildrenQuery = Comment_ChildrenQuery;
42361
42003
  exports.CommentsQuery = CommentsQuery;
42362
- exports.CommitPayload = CommitPayload;
42363
42004
  exports.Connection = Connection;
42364
42005
  exports.ContactPayload = ContactPayload;
42365
42006
  exports.CreateApiKeyMutation = CreateApiKeyMutation;
@@ -42502,9 +42143,6 @@
42502
42143
  exports.IntegrationQuery = IntegrationQuery;
42503
42144
  exports.IntegrationRequestMutation = IntegrationRequestMutation;
42504
42145
  exports.IntegrationRequestPayload = IntegrationRequestPayload;
42505
- exports.IntegrationResource = IntegrationResource;
42506
- exports.IntegrationResourceConnection = IntegrationResourceConnection;
42507
- exports.IntegrationResourceData = IntegrationResourceData;
42508
42146
  exports.IntegrationSentryConnectMutation = IntegrationSentryConnectMutation;
42509
42147
  exports.IntegrationSettings = IntegrationSettings;
42510
42148
  exports.IntegrationSlackImportEmojisMutation = IntegrationSlackImportEmojisMutation;
@@ -42670,8 +42308,6 @@
42670
42308
  exports.Project_ProjectUpdatesQuery = Project_ProjectUpdatesQuery;
42671
42309
  exports.Project_TeamsQuery = Project_TeamsQuery;
42672
42310
  exports.ProjectsQuery = ProjectsQuery;
42673
- exports.PullRequestPayload = PullRequestPayload;
42674
- exports.PullRequestReview = PullRequestReview;
42675
42311
  exports.PushSubscription = PushSubscription;
42676
42312
  exports.PushSubscriptionConnection = PushSubscriptionConnection;
42677
42313
  exports.PushSubscriptionPayload = PushSubscriptionPayload;
@@ -42701,7 +42337,6 @@
42701
42337
  exports.SamlConfiguration = SamlConfiguration;
42702
42338
  exports.SamlConfigurationPayload = SamlConfigurationPayload;
42703
42339
  exports.SamlTokenUserAccountAuthMutation = SamlTokenUserAccountAuthMutation;
42704
- exports.SentryIssuePayload = SentryIssuePayload;
42705
42340
  exports.SentrySettings = SentrySettings;
42706
42341
  exports.SlackPostSettings = SlackPostSettings;
42707
42342
  exports.SsoUrlFromEmailQuery = SsoUrlFromEmailQuery;
@@ -42814,6 +42449,8 @@
42814
42449
  exports.WebhookPayload = WebhookPayload;
42815
42450
  exports.WebhookQuery = WebhookQuery;
42816
42451
  exports.WebhooksQuery = WebhooksQuery;
42452
+ exports.WorkflowCronJobDefinition = WorkflowCronJobDefinition;
42453
+ exports.WorkflowCronJobDefinitionConnection = WorkflowCronJobDefinitionConnection;
42817
42454
  exports.WorkflowDefinition = WorkflowDefinition;
42818
42455
  exports.WorkflowDefinitionConnection = WorkflowDefinitionConnection;
42819
42456
  exports.WorkflowState = WorkflowState;