@linear/sdk 2.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 735f437: feat(schema): [breaking] Enum value 'myIssuesTouchedByMe' was removed from enum 'ViewType' (ViewType.myIssuesTouchedByMe)
8
+
9
+ feat(schema): [breaking] Field 'schedule' was removed from object type 'WorkflowDefinition' (WorkflowDefinition.schedule)
10
+
11
+ feat(schema): [breaking] Enum value 'cron' was removed from enum 'WorkflowTrigger' (WorkflowTrigger.cron)
12
+
13
+ feat(schema): [breaking] Enum value 'recurringIssue' was removed from enum 'WorkflowType' (WorkflowType.recurringIssue)
14
+
15
+ feat(schema): [dangerous] Input field 'projectMilestone' was added to input object type 'IssueCollectionFilter' (IssueCollectionFilter.projectMilestone)
16
+
17
+ feat(schema): [dangerous] Input field 'projectMilestone' was added to input object type 'IssueFilter' (IssueFilter.projectMilestone)
18
+
19
+ feat(schema): [dangerous] Input field 'projectMilestone' was added to input object type 'NullableIssueFilter' (NullableIssueFilter.projectMilestone)
20
+
21
+ feat(schema): [non_breaking] Type 'NullableProjectMilestoneFilter' was added (NullableProjectMilestoneFilter)
22
+
23
+ feat(schema): [non_breaking] Type 'ReleaseChannel' was added (ReleaseChannel)
24
+
25
+ feat(schema): [non_breaking] Type 'WorkflowCronJobDefinition' was added (WorkflowCronJobDefinition)
26
+
27
+ feat(schema): [non_breaking] Type 'WorkflowCronJobDefinitionConnection' was added (WorkflowCronJobDefinitionConnection)
28
+
29
+ feat(schema): [non_breaking] Type 'WorkflowCronJobDefinitionEdge' was added (WorkflowCronJobDefinitionEdge)
30
+
31
+ feat(schema): [non_breaking] Field 'releaseChannel' was added to object type 'Organization' (Organization.releaseChannel)
32
+
33
+ - 9583079: feat(schema): [non_breaking] Field 'sortOrder' was added to object type 'ProjectMilestone' (ProjectMilestone.sortOrder)
34
+
35
+ ## 2.3.1
36
+
37
+ ### Patch Changes
38
+
39
+ - 3b943fb: chore(deps): update dependency patch versions
40
+
3
41
  ## 2.3.0
4
42
 
5
43
  ### Minor Changes
@@ -1887,6 +1887,8 @@ export declare type IssueCollectionFilter = {
1887
1887
  priority?: Maybe<NullableNumberComparator>;
1888
1888
  /** Filters that the issues project must satisfy. */
1889
1889
  project?: Maybe<NullableProjectFilter>;
1890
+ /** [ALPHA] Filters that the issues project milestone must satisfy. */
1891
+ projectMilestone?: Maybe<NullableProjectMilestoneFilter>;
1890
1892
  /** [Internal] Comparator for the issues content. */
1891
1893
  searchableContent?: Maybe<ContentComparator>;
1892
1894
  /** Comparator for the issues sla status. */
@@ -2074,6 +2076,8 @@ export declare type IssueFilter = {
2074
2076
  priority?: Maybe<NullableNumberComparator>;
2075
2077
  /** Filters that the issues project must satisfy. */
2076
2078
  project?: Maybe<NullableProjectFilter>;
2079
+ /** [ALPHA] Filters that the issues project milestone must satisfy. */
2080
+ projectMilestone?: Maybe<NullableProjectMilestoneFilter>;
2077
2081
  /** [Internal] Comparator for the issues content. */
2078
2082
  searchableContent?: Maybe<ContentComparator>;
2079
2083
  /** Comparator for the issues sla status. */
@@ -3912,6 +3916,8 @@ export declare type NullableIssueFilter = {
3912
3916
  priority?: Maybe<NullableNumberComparator>;
3913
3917
  /** Filters that the issues project must satisfy. */
3914
3918
  project?: Maybe<NullableProjectFilter>;
3919
+ /** [ALPHA] Filters that the issues project milestone must satisfy. */
3920
+ projectMilestone?: Maybe<NullableProjectMilestoneFilter>;
3915
3921
  /** [Internal] Comparator for the issues content. */
3916
3922
  searchableContent?: Maybe<ContentComparator>;
3917
3923
  /** Comparator for the issues sla status. */
@@ -3989,6 +3995,21 @@ export declare type NullableProjectFilter = {
3989
3995
  /** Comparator for the updated at date. */
3990
3996
  updatedAt?: Maybe<DateComparator>;
3991
3997
  };
3998
+ /** [ALPHA] Project milestone filtering options. */
3999
+ export declare type NullableProjectMilestoneFilter = {
4000
+ /** Compound filters, all of which need to be matched by the project milestone. */
4001
+ and?: Maybe<Array<NullableProjectMilestoneFilter>>;
4002
+ /** Comparator for the created at date. */
4003
+ createdAt?: Maybe<DateComparator>;
4004
+ /** Comparator for the identifier. */
4005
+ id?: Maybe<IdComparator>;
4006
+ /** Filter based on the existence of the relation. */
4007
+ null?: Maybe<Scalars["Boolean"]>;
4008
+ /** Compound filters, one of which need to be matched by the project milestone. */
4009
+ or?: Maybe<Array<NullableProjectMilestoneFilter>>;
4010
+ /** Comparator for the updated at date. */
4011
+ updatedAt?: Maybe<DateComparator>;
4012
+ };
3992
4013
  /** Comparator for optional strings. */
3993
4014
  export declare type NullableStringComparator = {
3994
4015
  /** Contains constraint. Matches any values that contain the given string. */
@@ -4246,6 +4267,8 @@ export declare type Organization = Node & {
4246
4267
  projectUpdateRemindersHour: Scalars["Float"];
4247
4268
  /** The frequency at which to prompt for project updates. */
4248
4269
  projectUpdatesReminderFrequency: ProjectUpdateReminderFrequency;
4270
+ /** The feature release channel the organization belongs to. */
4271
+ releaseChannel: ReleaseChannel;
4249
4272
  /** Whether the organization is using a roadmap. */
4250
4273
  roadmapEnabled: Scalars["Boolean"];
4251
4274
  /** Whether SAML authentication is enabled for organization. */
@@ -4919,6 +4942,8 @@ export declare type ProjectMilestone = Node & {
4919
4942
  name: Scalars["String"];
4920
4943
  /** The project of the milestone. */
4921
4944
  project: Project;
4945
+ /** The order of the milestone in relation to other milestones within a project. */
4946
+ sortOrder: Scalars["Float"];
4922
4947
  /** The planned completion date of the milestone. */
4923
4948
  targetDate?: Maybe<Scalars["TimelessDate"]>;
4924
4949
  /**
@@ -5945,6 +5970,13 @@ export declare type RelationExistsComparator = {
5945
5970
  /** Not equals constraint. */
5946
5971
  neq?: Maybe<Scalars["Boolean"]>;
5947
5972
  };
5973
+ /** Features release channel */
5974
+ export declare enum ReleaseChannel {
5975
+ Beta = "beta",
5976
+ Internal = "internal",
5977
+ PreRelease = "preRelease",
5978
+ Public = "public"
5979
+ }
5948
5980
  /** A roadmap for projects. */
5949
5981
  export declare type Roadmap = Node & {
5950
5982
  __typename?: "Roadmap";
@@ -7434,7 +7466,6 @@ export declare enum ViewType {
7434
7466
  MyIssuesActivity = "myIssuesActivity",
7435
7467
  MyIssuesCreatedByMe = "myIssuesCreatedByMe",
7436
7468
  MyIssuesSubscribedTo = "myIssuesSubscribedTo",
7437
- MyIssuesTouchedByMe = "myIssuesTouchedByMe",
7438
7469
  Project = "project",
7439
7470
  Projects = "projects",
7440
7471
  ProjectsAll = "projectsAll",
@@ -7540,6 +7571,48 @@ export declare type WorkflowCondition = {
7540
7571
  /** Triggers the workflow when a project matches the filter. Can only be used when the trigger type is `Project`. */
7541
7572
  projectFilter?: Maybe<ProjectFilter>;
7542
7573
  };
7574
+ export declare type WorkflowCronJobDefinition = Node & {
7575
+ __typename?: "WorkflowCronJobDefinition";
7576
+ /** An array of activities that will be executed as part of the workflow cron job. */
7577
+ activities: Scalars["JSONObject"];
7578
+ /** The time at which the entity was archived. Null if the entity has not been archived. */
7579
+ archivedAt?: Maybe<Scalars["DateTime"]>;
7580
+ /** The time at which the entity was created. */
7581
+ createdAt: Scalars["DateTime"];
7582
+ /** The user who created the workflow cron job. */
7583
+ creator: User;
7584
+ /** The description of the workflow cron job. */
7585
+ description?: Maybe<Scalars["String"]>;
7586
+ enabled: Scalars["Boolean"];
7587
+ /** The unique identifier of the entity. */
7588
+ id: Scalars["ID"];
7589
+ /** The name of the workflow cron job. */
7590
+ name: Scalars["String"];
7591
+ /** Cron schedule which is used to execute the workflow cron job. */
7592
+ schedule: Scalars["JSONObject"];
7593
+ /** The sort order of the workflow cron job definition within its siblings. */
7594
+ sortOrder: Scalars["String"];
7595
+ /** The team associated with the workflow cron job. */
7596
+ team: Team;
7597
+ /**
7598
+ * The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
7599
+ * for which updates should not produce an update to updatedAt (see skipUpdatedAtKeys). This is the same as the creation time if the entity hasn't
7600
+ * been updated after creation.
7601
+ */
7602
+ updatedAt: Scalars["DateTime"];
7603
+ };
7604
+ export declare type WorkflowCronJobDefinitionConnection = {
7605
+ __typename?: "WorkflowCronJobDefinitionConnection";
7606
+ edges: Array<WorkflowCronJobDefinitionEdge>;
7607
+ nodes: Array<WorkflowCronJobDefinition>;
7608
+ pageInfo: PageInfo;
7609
+ };
7610
+ export declare type WorkflowCronJobDefinitionEdge = {
7611
+ __typename?: "WorkflowCronJobDefinitionEdge";
7612
+ /** Used in `before` and `after` args */
7613
+ cursor: Scalars["String"];
7614
+ node: WorkflowCronJobDefinition;
7615
+ };
7543
7616
  export declare type WorkflowDefinition = Node & {
7544
7617
  __typename?: "WorkflowDefinition";
7545
7618
  /** An array of activities that will be executed as part of the workflow. */
@@ -7561,8 +7634,6 @@ export declare type WorkflowDefinition = Node & {
7561
7634
  id: Scalars["ID"];
7562
7635
  /** The name of the workflow. */
7563
7636
  name: Scalars["String"];
7564
- /** Cron schedule which is used to execute the workflow. Only applicable for cron based workflows. */
7565
- schedule: Scalars["JSONObject"];
7566
7637
  /** The sort order of the workflow definition within its siblings. */
7567
7638
  sortOrder: Scalars["String"];
7568
7639
  /** The team associated with the workflow. If not set, the workflow is associated with the entire organization. */
@@ -7705,7 +7776,6 @@ export declare type WorkflowStateUpdateInput = {
7705
7776
  position?: Maybe<Scalars["Float"]>;
7706
7777
  };
7707
7778
  export declare enum WorkflowTrigger {
7708
- Cron = "cron",
7709
7779
  EntityCreated = "entityCreated",
7710
7780
  EntityCreatedOrUpdated = "entityCreatedOrUpdated",
7711
7781
  EntityRemoved = "entityRemoved",
@@ -7718,7 +7788,6 @@ export declare enum WorkflowTriggerType {
7718
7788
  }
7719
7789
  export declare enum WorkflowType {
7720
7790
  Custom = "custom",
7721
- RecurringIssue = "recurringIssue",
7722
7791
  Sla = "sla"
7723
7792
  }
7724
7793
  /** [INTERNAL] Public information of the OAuth application, plus the userIds and scopes for those users. */
@@ -7840,7 +7909,7 @@ export declare type DocumentFragment = {
7840
7909
  };
7841
7910
  export declare type ProjectMilestoneFragment = {
7842
7911
  __typename: "ProjectMilestone";
7843
- } & Pick<ProjectMilestone, "description" | "updatedAt" | "name" | "targetDate" | "archivedAt" | "createdAt" | "id"> & {
7912
+ } & Pick<ProjectMilestone, "description" | "updatedAt" | "name" | "sortOrder" | "targetDate" | "archivedAt" | "createdAt" | "id"> & {
7844
7913
  project: {
7845
7914
  __typename?: "Project";
7846
7915
  } & Pick<Project, "id">;
@@ -9017,13 +9086,16 @@ declare type Node_ViewPreferences_Fragment = {
9017
9086
  declare type Node_Webhook_Fragment = {
9018
9087
  __typename: "Webhook";
9019
9088
  } & Pick<Webhook, "id">;
9089
+ declare type Node_WorkflowCronJobDefinition_Fragment = {
9090
+ __typename: "WorkflowCronJobDefinition";
9091
+ } & Pick<WorkflowCronJobDefinition, "id">;
9020
9092
  declare type Node_WorkflowDefinition_Fragment = {
9021
9093
  __typename: "WorkflowDefinition";
9022
9094
  } & Pick<WorkflowDefinition, "id">;
9023
9095
  declare type Node_WorkflowState_Fragment = {
9024
9096
  __typename: "WorkflowState";
9025
9097
  } & Pick<WorkflowState, "id">;
9026
- export declare type NodeFragment = Node_ApiKey_Fragment | Node_Attachment_Fragment | Node_AuditEntry_Fragment | Node_Comment_Fragment | Node_CustomView_Fragment | Node_Cycle_Fragment | Node_Document_Fragment | Node_Emoji_Fragment | Node_Favorite_Fragment | Node_Integration_Fragment | Node_IntegrationTemplate_Fragment | Node_IntegrationsSettings_Fragment | Node_Issue_Fragment | Node_IssueDraft_Fragment | Node_IssueHistory_Fragment | Node_IssueImport_Fragment | Node_IssueLabel_Fragment | Node_IssueNotification_Fragment | Node_IssueRelation_Fragment | Node_OauthClient_Fragment | Node_OauthClientApproval_Fragment | Node_OauthClientApprovalNotification_Fragment | Node_Organization_Fragment | Node_OrganizationDomain_Fragment | Node_OrganizationInvite_Fragment | Node_PaidSubscription_Fragment | Node_PersonalNote_Fragment | Node_Project_Fragment | Node_ProjectLink_Fragment | Node_ProjectMilestone_Fragment | Node_ProjectNotification_Fragment | Node_ProjectNotificationSubscription_Fragment | Node_ProjectUpdate_Fragment | Node_ProjectUpdateInteraction_Fragment | Node_PushSubscription_Fragment | Node_Reaction_Fragment | Node_Roadmap_Fragment | Node_RoadmapToProject_Fragment | Node_Team_Fragment | Node_TeamMembership_Fragment | Node_TeamNotificationSubscription_Fragment | Node_Template_Fragment | Node_User_Fragment | Node_UserSettings_Fragment | Node_ViewPreferences_Fragment | Node_Webhook_Fragment | Node_WorkflowDefinition_Fragment | Node_WorkflowState_Fragment;
9098
+ export declare type NodeFragment = Node_ApiKey_Fragment | Node_Attachment_Fragment | Node_AuditEntry_Fragment | Node_Comment_Fragment | Node_CustomView_Fragment | Node_Cycle_Fragment | Node_Document_Fragment | Node_Emoji_Fragment | Node_Favorite_Fragment | Node_Integration_Fragment | Node_IntegrationTemplate_Fragment | Node_IntegrationsSettings_Fragment | Node_Issue_Fragment | Node_IssueDraft_Fragment | Node_IssueHistory_Fragment | Node_IssueImport_Fragment | Node_IssueLabel_Fragment | Node_IssueNotification_Fragment | Node_IssueRelation_Fragment | Node_OauthClient_Fragment | Node_OauthClientApproval_Fragment | Node_OauthClientApprovalNotification_Fragment | Node_Organization_Fragment | Node_OrganizationDomain_Fragment | Node_OrganizationInvite_Fragment | Node_PaidSubscription_Fragment | Node_PersonalNote_Fragment | Node_Project_Fragment | Node_ProjectLink_Fragment | Node_ProjectMilestone_Fragment | Node_ProjectNotification_Fragment | Node_ProjectNotificationSubscription_Fragment | Node_ProjectUpdate_Fragment | Node_ProjectUpdateInteraction_Fragment | Node_PushSubscription_Fragment | Node_Reaction_Fragment | Node_Roadmap_Fragment | Node_RoadmapToProject_Fragment | Node_Team_Fragment | Node_TeamMembership_Fragment | Node_TeamNotificationSubscription_Fragment | Node_Template_Fragment | Node_User_Fragment | Node_UserSettings_Fragment | Node_ViewPreferences_Fragment | Node_Webhook_Fragment | Node_WorkflowCronJobDefinition_Fragment | Node_WorkflowDefinition_Fragment | Node_WorkflowState_Fragment;
9027
9099
  export declare type NotificationConnectionFragment = {
9028
9100
  __typename: "NotificationConnection";
9029
9101
  } & {
@@ -9397,9 +9469,29 @@ export declare type WebhookPayloadFragment = {
9397
9469
  __typename?: "Webhook";
9398
9470
  } & Pick<Webhook, "id">;
9399
9471
  };
9472
+ export declare type WorkflowCronJobDefinitionFragment = {
9473
+ __typename: "WorkflowCronJobDefinition";
9474
+ } & Pick<WorkflowCronJobDefinition, "activities" | "schedule" | "description" | "updatedAt" | "name" | "sortOrder" | "archivedAt" | "createdAt" | "id" | "enabled"> & {
9475
+ team: {
9476
+ __typename?: "Team";
9477
+ } & Pick<Team, "id">;
9478
+ creator: {
9479
+ __typename?: "User";
9480
+ } & Pick<User, "id">;
9481
+ };
9482
+ export declare type WorkflowCronJobDefinitionConnectionFragment = {
9483
+ __typename: "WorkflowCronJobDefinitionConnection";
9484
+ } & {
9485
+ nodes: Array<{
9486
+ __typename?: "WorkflowCronJobDefinition";
9487
+ } & WorkflowCronJobDefinitionFragment>;
9488
+ pageInfo: {
9489
+ __typename?: "PageInfo";
9490
+ } & PageInfoFragment;
9491
+ };
9400
9492
  export declare type WorkflowDefinitionFragment = {
9401
9493
  __typename: "WorkflowDefinition";
9402
- } & Pick<WorkflowDefinition, "activities" | "schedule" | "conditions" | "description" | "updatedAt" | "groupName" | "name" | "sortOrder" | "archivedAt" | "createdAt" | "id" | "enabled"> & {
9494
+ } & Pick<WorkflowDefinition, "activities" | "conditions" | "description" | "updatedAt" | "groupName" | "name" | "sortOrder" | "archivedAt" | "createdAt" | "id" | "enabled"> & {
9403
9495
  team?: Maybe<{
9404
9496
  __typename?: "Team";
9405
9497
  } & Pick<Team, "id">>;
@@ -13610,6 +13702,8 @@ export declare const ViewPreferencesPayloadFragmentDoc: DocumentNode<ViewPrefere
13610
13702
  export declare const WebhookFragmentDoc: DocumentNode<WebhookFragment, unknown>;
13611
13703
  export declare const WebhookConnectionFragmentDoc: DocumentNode<WebhookConnectionFragment, unknown>;
13612
13704
  export declare const WebhookPayloadFragmentDoc: DocumentNode<WebhookPayloadFragment, unknown>;
13705
+ export declare const WorkflowCronJobDefinitionFragmentDoc: DocumentNode<WorkflowCronJobDefinitionFragment, unknown>;
13706
+ export declare const WorkflowCronJobDefinitionConnectionFragmentDoc: DocumentNode<WorkflowCronJobDefinitionConnectionFragment, unknown>;
13613
13707
  export declare const WorkflowDefinitionFragmentDoc: DocumentNode<WorkflowDefinitionFragment, unknown>;
13614
13708
  export declare const WorkflowDefinitionConnectionFragmentDoc: DocumentNode<WorkflowDefinitionConnectionFragment, unknown>;
13615
13709
  export declare const WorkflowStateFragmentDoc: DocumentNode<WorkflowStateFragment, unknown>;