@linear/sdk 5.0.0 → 6.0.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 +34 -0
- package/dist/_generated_documents.d.ts +97 -7
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +72 -2
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +202 -2
- 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 +200 -3
- 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 +203 -3
- 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/CHANGELOG.md
CHANGED
@@ -1,5 +1,39 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 6.0.0
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- e76fab7: feat(schema): [breaking] Input field 'ownerId' was removed from input object type 'CustomViewCreateInput' (CustomViewCreateInput.ownerId)
|
8
|
+
|
9
|
+
feat(schema): [breaking] Input field 'ownerId' was removed from input object type 'CustomViewUpdateInput' (CustomViewUpdateInput.ownerId)
|
10
|
+
|
11
|
+
feat(schema): [dangerous] Input field 'companyIds' was added to input object type 'IssueUpdateInput' (IssueUpdateInput.companyIds)
|
12
|
+
|
13
|
+
feat(schema): [dangerous] Input field 'health' was added to input object type 'NullableProjectFilter' (NullableProjectFilter.health)
|
14
|
+
|
15
|
+
feat(schema): [dangerous] Input field 'health' was added to input object type 'ProjectCollectionFilter' (ProjectCollectionFilter.health)
|
16
|
+
|
17
|
+
feat(schema): [dangerous] Input field 'health' was added to input object type 'ProjectFilter' (ProjectFilter.health)
|
18
|
+
|
19
|
+
feat(schema): [dangerous] Argument 'modelName: String' added to field 'Query.customViewDetailsSuggestion' (Query.customViewDetailsSuggestion.modelName)
|
20
|
+
|
21
|
+
feat(schema): [non_breaking] Type 'Company' was added (Company)
|
22
|
+
|
23
|
+
feat(schema): [non_breaking] Type 'CompanyConnection' was added (CompanyConnection)
|
24
|
+
|
25
|
+
feat(schema): [non_breaking] Type 'CompanyEdge' was added (CompanyEdge)
|
26
|
+
|
27
|
+
feat(schema): [non_breaking] Field 'CustomView.owner' description changed from 'The user who owns the custom view.' to '[Deprecated] The user who owns the custom view.' (CustomView.owner)
|
28
|
+
|
29
|
+
feat(schema): [non_breaking] Field 'IssueHistory.archived' description changed from 'Whether the issue was archived or un-archived.' to 'Whether the issue is archived at the time of this history entry.' (IssueHistory.archived)
|
30
|
+
|
31
|
+
feat(schema): [non_breaking] Field 'integrationUpdateSlack' was added to object type 'Mutation' (Mutation.integrationUpdateSlack)
|
32
|
+
|
33
|
+
### Patch Changes
|
34
|
+
|
35
|
+
- 8806bf1: chore(deps): update dependency patch versions
|
36
|
+
|
3
37
|
## 5.0.0
|
4
38
|
|
5
39
|
### Major Changes
|
@@ -510,6 +510,48 @@ export declare type CommentUpdateInput = {
|
|
510
510
|
/** The comment content as a Prosemirror document. */
|
511
511
|
bodyData?: Maybe<Scalars["JSON"]>;
|
512
512
|
};
|
513
|
+
/** A company related to issue's origin. */
|
514
|
+
export declare type Company = Node & {
|
515
|
+
__typename?: "Company";
|
516
|
+
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
517
|
+
archivedAt?: Maybe<Scalars["DateTime"]>;
|
518
|
+
/** Custom company properties. */
|
519
|
+
companyProperties: Scalars["JSONObject"];
|
520
|
+
/** The time at which the entity was created. */
|
521
|
+
createdAt: Scalars["DateTime"];
|
522
|
+
/** The user who added the company. */
|
523
|
+
creator: User;
|
524
|
+
/** Company ID in an external system. */
|
525
|
+
externalId: Scalars["String"];
|
526
|
+
/** The unique identifier of the entity. */
|
527
|
+
id: Scalars["ID"];
|
528
|
+
/** Company logo URL. */
|
529
|
+
logoUrl?: Maybe<Scalars["String"]>;
|
530
|
+
/** Company name. */
|
531
|
+
name: Scalars["String"];
|
532
|
+
/** The organization of the customer. */
|
533
|
+
organization: Organization;
|
534
|
+
/**
|
535
|
+
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
536
|
+
* 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
|
537
|
+
* been updated after creation.
|
538
|
+
*/
|
539
|
+
updatedAt: Scalars["DateTime"];
|
540
|
+
/** Company website URL. */
|
541
|
+
websiteUrl?: Maybe<Scalars["String"]>;
|
542
|
+
};
|
543
|
+
export declare type CompanyConnection = {
|
544
|
+
__typename?: "CompanyConnection";
|
545
|
+
edges: Array<CompanyEdge>;
|
546
|
+
nodes: Array<Company>;
|
547
|
+
pageInfo: PageInfo;
|
548
|
+
};
|
549
|
+
export declare type CompanyEdge = {
|
550
|
+
__typename?: "CompanyEdge";
|
551
|
+
/** Used in `before` and `after` args */
|
552
|
+
cursor: Scalars["String"];
|
553
|
+
node: Company;
|
554
|
+
};
|
513
555
|
export declare type ContactCreateInput = {
|
514
556
|
/** User's browser information. */
|
515
557
|
browser?: Maybe<Scalars["String"]>;
|
@@ -597,7 +639,7 @@ export declare type CustomView = Node & {
|
|
597
639
|
name: Scalars["String"];
|
598
640
|
/** The organization of the custom view. */
|
599
641
|
organization: Organization;
|
600
|
-
/** The user who owns the custom view. */
|
642
|
+
/** [Deprecated] The user who owns the custom view. */
|
601
643
|
owner: User;
|
602
644
|
/** [ALPHA] The filter applied to projects in the custom view. */
|
603
645
|
projectFilterData?: Maybe<Scalars["JSONObject"]>;
|
@@ -633,8 +675,6 @@ export declare type CustomViewCreateInput = {
|
|
633
675
|
id?: Maybe<Scalars["String"]>;
|
634
676
|
/** The name of the custom view. */
|
635
677
|
name: Scalars["String"];
|
636
|
-
/** The owner of the custom view */
|
637
|
-
ownerId?: Maybe<Scalars["String"]>;
|
638
678
|
/** [ALPHA] The project filter applied to issues in the custom view. */
|
639
679
|
projectFilterData?: Maybe<Scalars["JSONObject"]>;
|
640
680
|
/** Whether the custom view is shared with everyone in the organization. */
|
@@ -679,8 +719,6 @@ export declare type CustomViewUpdateInput = {
|
|
679
719
|
icon?: Maybe<Scalars["String"]>;
|
680
720
|
/** The name of the custom view. */
|
681
721
|
name?: Maybe<Scalars["String"]>;
|
682
|
-
/** The owner of the custom view */
|
683
|
-
ownerId?: Maybe<Scalars["String"]>;
|
684
722
|
/** [ALPHA] The project filter applied to issues in the custom view. */
|
685
723
|
projectFilterData?: Maybe<Scalars["JSONObject"]>;
|
686
724
|
/** Whether the custom view is shared with everyone in the organization. */
|
@@ -2259,7 +2297,7 @@ export declare type IssueHistory = Node & {
|
|
2259
2297
|
actorId?: Maybe<Scalars["String"]>;
|
2260
2298
|
/** ID's of labels that were added. */
|
2261
2299
|
addedLabelIds?: Maybe<Array<Scalars["String"]>>;
|
2262
|
-
/** Whether the issue
|
2300
|
+
/** Whether the issue is archived at the time of this history entry. */
|
2263
2301
|
archived?: Maybe<Scalars["Boolean"]>;
|
2264
2302
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
2265
2303
|
archivedAt?: Maybe<Scalars["DateTime"]>;
|
@@ -2936,6 +2974,8 @@ export declare type IssueUpdateInput = {
|
|
2936
2974
|
assigneeId?: Maybe<Scalars["String"]>;
|
2937
2975
|
/** The position of the issue in its column on the board view. */
|
2938
2976
|
boardOrder?: Maybe<Scalars["Float"]>;
|
2977
|
+
/** The identifiers of the companies associated with this ticket. */
|
2978
|
+
companyIds?: Maybe<Array<Scalars["String"]>>;
|
2939
2979
|
/** The cycle associated with the issue. */
|
2940
2980
|
cycleId?: Maybe<Scalars["String"]>;
|
2941
2981
|
/** The issue description in markdown format. */
|
@@ -3187,6 +3227,8 @@ export declare type Mutation = {
|
|
3187
3227
|
integrationTemplateCreate: IntegrationTemplatePayload;
|
3188
3228
|
/** Deletes a integrationTemplate. */
|
3189
3229
|
integrationTemplateDelete: ArchivePayload;
|
3230
|
+
/** Updates the organization's Slack integration. */
|
3231
|
+
integrationUpdateSlack: IntegrationPayload;
|
3190
3232
|
/** Integrates the organization with Zendesk. */
|
3191
3233
|
integrationZendesk: IntegrationPayload;
|
3192
3234
|
/** Creates new settings for one or more integrations. */
|
@@ -3661,6 +3703,10 @@ export declare type MutationIntegrationTemplateCreateArgs = {
|
|
3661
3703
|
export declare type MutationIntegrationTemplateDeleteArgs = {
|
3662
3704
|
id: Scalars["String"];
|
3663
3705
|
};
|
3706
|
+
export declare type MutationIntegrationUpdateSlackArgs = {
|
3707
|
+
code: Scalars["String"];
|
3708
|
+
redirectUri: Scalars["String"];
|
3709
|
+
};
|
3664
3710
|
export declare type MutationIntegrationZendeskArgs = {
|
3665
3711
|
code: Scalars["String"];
|
3666
3712
|
redirectUri: Scalars["String"];
|
@@ -4384,6 +4430,8 @@ export declare type NullableProjectFilter = {
|
|
4384
4430
|
createdAt?: Maybe<DateComparator>;
|
4385
4431
|
/** Filters that the projects creator must satisfy. */
|
4386
4432
|
creator?: Maybe<UserFilter>;
|
4433
|
+
/** Comparator for the project health. */
|
4434
|
+
health?: Maybe<StringComparator>;
|
4387
4435
|
/** Comparator for the identifier. */
|
4388
4436
|
id?: Maybe<IdComparator>;
|
4389
4437
|
/** Filters that the projects issues must satisfy. */
|
@@ -5213,6 +5261,8 @@ export declare type ProjectCollectionFilter = {
|
|
5213
5261
|
creator?: Maybe<UserFilter>;
|
5214
5262
|
/** Filters that needs to be matched by all projects. */
|
5215
5263
|
every?: Maybe<ProjectFilter>;
|
5264
|
+
/** Comparator for the project health. */
|
5265
|
+
health?: Maybe<StringComparator>;
|
5216
5266
|
/** Comparator for the identifier. */
|
5217
5267
|
id?: Maybe<IdComparator>;
|
5218
5268
|
/** Filters that the projects issues must satisfy. */
|
@@ -5300,6 +5350,8 @@ export declare type ProjectFilter = {
|
|
5300
5350
|
createdAt?: Maybe<DateComparator>;
|
5301
5351
|
/** Filters that the projects creator must satisfy. */
|
5302
5352
|
creator?: Maybe<UserFilter>;
|
5353
|
+
/** Comparator for the project health. */
|
5354
|
+
health?: Maybe<StringComparator>;
|
5303
5355
|
/** Comparator for the identifier. */
|
5304
5356
|
id?: Maybe<IdComparator>;
|
5305
5357
|
/** Filters that the projects issues must satisfy. */
|
@@ -6291,6 +6343,7 @@ export declare type QueryCustomViewArgs = {
|
|
6291
6343
|
};
|
6292
6344
|
export declare type QueryCustomViewDetailsSuggestionArgs = {
|
6293
6345
|
filter: Scalars["JSONObject"];
|
6346
|
+
modelName?: Maybe<Scalars["String"]>;
|
6294
6347
|
};
|
6295
6348
|
export declare type QueryCustomViewsArgs = {
|
6296
6349
|
after?: Maybe<Scalars["String"]>;
|
@@ -8678,6 +8731,13 @@ export declare type CommentFragment = {
|
|
8678
8731
|
__typename?: "User";
|
8679
8732
|
} & Pick<User, "id">>;
|
8680
8733
|
};
|
8734
|
+
export declare type CompanyFragment = {
|
8735
|
+
__typename: "Company";
|
8736
|
+
} & Pick<Company, "externalId" | "logoUrl" | "name" | "websiteUrl" | "companyProperties" | "updatedAt" | "archivedAt" | "createdAt" | "id"> & {
|
8737
|
+
creator: {
|
8738
|
+
__typename?: "User";
|
8739
|
+
} & Pick<User, "id">;
|
8740
|
+
};
|
8681
8741
|
export declare type EmojiFragment = {
|
8682
8742
|
__typename: "Emoji";
|
8683
8743
|
} & Pick<Emoji, "url" | "name" | "updatedAt" | "source" | "archivedAt" | "createdAt" | "id"> & {
|
@@ -9482,6 +9542,16 @@ export declare type CommentPayloadFragment = {
|
|
9482
9542
|
__typename?: "Comment";
|
9483
9543
|
} & Pick<Comment, "id">;
|
9484
9544
|
};
|
9545
|
+
export declare type CompanyConnectionFragment = {
|
9546
|
+
__typename: "CompanyConnection";
|
9547
|
+
} & {
|
9548
|
+
nodes: Array<{
|
9549
|
+
__typename?: "Company";
|
9550
|
+
} & CompanyFragment>;
|
9551
|
+
pageInfo: {
|
9552
|
+
__typename?: "PageInfo";
|
9553
|
+
} & PageInfoFragment;
|
9554
|
+
};
|
9485
9555
|
export declare type ContactPayloadFragment = {
|
9486
9556
|
__typename: "ContactPayload";
|
9487
9557
|
} & Pick<ContactPayload, "success">;
|
@@ -9865,6 +9935,9 @@ declare type Node_AuditEntry_Fragment = {
|
|
9865
9935
|
declare type Node_Comment_Fragment = {
|
9866
9936
|
__typename: "Comment";
|
9867
9937
|
} & Pick<Comment, "id">;
|
9938
|
+
declare type Node_Company_Fragment = {
|
9939
|
+
__typename: "Company";
|
9940
|
+
} & Pick<Company, "id">;
|
9868
9941
|
declare type Node_CustomView_Fragment = {
|
9869
9942
|
__typename: "CustomView";
|
9870
9943
|
} & Pick<CustomView, "id">;
|
@@ -10012,7 +10085,7 @@ declare type Node_WorkflowDefinition_Fragment = {
|
|
10012
10085
|
declare type Node_WorkflowState_Fragment = {
|
10013
10086
|
__typename: "WorkflowState";
|
10014
10087
|
} & Pick<WorkflowState, "id">;
|
10015
|
-
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_DocumentContent_Fragment | Node_DocumentSearchResult_Fragment | Node_Emoji_Fragment | Node_ExternalUser_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_IssueSearchResult_Fragment | Node_OauthClient_Fragment | Node_OauthClientApproval_Fragment | Node_OauthClientApprovalNotification_Fragment | Node_Organization_Fragment | Node_OrganizationDomain_Fragment | Node_OrganizationInvite_Fragment | Node_PaidSubscription_Fragment | Node_Project_Fragment | Node_ProjectLink_Fragment | Node_ProjectMilestone_Fragment | Node_ProjectNotification_Fragment | Node_ProjectNotificationSubscription_Fragment | Node_ProjectSearchResult_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;
|
10088
|
+
export declare type NodeFragment = Node_ApiKey_Fragment | Node_Attachment_Fragment | Node_AuditEntry_Fragment | Node_Comment_Fragment | Node_Company_Fragment | Node_CustomView_Fragment | Node_Cycle_Fragment | Node_Document_Fragment | Node_DocumentContent_Fragment | Node_DocumentSearchResult_Fragment | Node_Emoji_Fragment | Node_ExternalUser_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_IssueSearchResult_Fragment | Node_OauthClient_Fragment | Node_OauthClientApproval_Fragment | Node_OauthClientApprovalNotification_Fragment | Node_Organization_Fragment | Node_OrganizationDomain_Fragment | Node_OrganizationInvite_Fragment | Node_PaidSubscription_Fragment | Node_Project_Fragment | Node_ProjectLink_Fragment | Node_ProjectMilestone_Fragment | Node_ProjectNotification_Fragment | Node_ProjectNotificationSubscription_Fragment | Node_ProjectSearchResult_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;
|
10016
10089
|
export declare type NotificationConnectionFragment = {
|
10017
10090
|
__typename: "NotificationConnection";
|
10018
10091
|
} & {
|
@@ -11182,6 +11255,17 @@ export declare type DeleteIntegrationTemplateMutation = {
|
|
11182
11255
|
__typename?: "ArchivePayload";
|
11183
11256
|
} & ArchivePayloadFragment;
|
11184
11257
|
};
|
11258
|
+
export declare type IntegrationUpdateSlackMutationVariables = Exact<{
|
11259
|
+
code: Scalars["String"];
|
11260
|
+
redirectUri: Scalars["String"];
|
11261
|
+
}>;
|
11262
|
+
export declare type IntegrationUpdateSlackMutation = {
|
11263
|
+
__typename?: "Mutation";
|
11264
|
+
} & {
|
11265
|
+
integrationUpdateSlack: {
|
11266
|
+
__typename?: "IntegrationPayload";
|
11267
|
+
} & IntegrationPayloadFragment;
|
11268
|
+
};
|
11185
11269
|
export declare type IntegrationZendeskMutationVariables = Exact<{
|
11186
11270
|
code: Scalars["String"];
|
11187
11271
|
redirectUri: Scalars["String"];
|
@@ -14790,6 +14874,8 @@ export declare const AuthResolverResponseFragmentDoc: DocumentNode<AuthResolverR
|
|
14790
14874
|
export declare const CommentFragmentDoc: DocumentNode<CommentFragment, unknown>;
|
14791
14875
|
export declare const CommentConnectionFragmentDoc: DocumentNode<CommentConnectionFragment, unknown>;
|
14792
14876
|
export declare const CommentPayloadFragmentDoc: DocumentNode<CommentPayloadFragment, unknown>;
|
14877
|
+
export declare const CompanyFragmentDoc: DocumentNode<CompanyFragment, unknown>;
|
14878
|
+
export declare const CompanyConnectionFragmentDoc: DocumentNode<CompanyConnectionFragment, unknown>;
|
14793
14879
|
export declare const ContactPayloadFragmentDoc: DocumentNode<ContactPayloadFragment, unknown>;
|
14794
14880
|
export declare const CreateCsvExportReportPayloadFragmentDoc: DocumentNode<CreateCsvExportReportPayloadFragment, unknown>;
|
14795
14881
|
export declare const CreateOrJoinOrganizationResponseFragmentDoc: DocumentNode<CreateOrJoinOrganizationResponseFragment, unknown>;
|
@@ -15179,6 +15265,10 @@ export declare const CreateIntegrationTemplateDocument: DocumentNode<CreateInteg
|
|
15179
15265
|
export declare const DeleteIntegrationTemplateDocument: DocumentNode<DeleteIntegrationTemplateMutation, Exact<{
|
15180
15266
|
id: Scalars["String"];
|
15181
15267
|
}>>;
|
15268
|
+
export declare const IntegrationUpdateSlackDocument: DocumentNode<IntegrationUpdateSlackMutation, Exact<{
|
15269
|
+
code: Scalars["String"];
|
15270
|
+
redirectUri: Scalars["String"];
|
15271
|
+
}>>;
|
15182
15272
|
export declare const IntegrationZendeskDocument: DocumentNode<IntegrationZendeskMutation, Exact<{
|
15183
15273
|
code: Scalars["String"];
|
15184
15274
|
redirectUri: Scalars["String"];
|