@linear/sdk 65.2.0 → 66.0.1
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/LICENSE +21 -0
- package/README.md +6 -6
- package/dist/_generated_documents.d.ts +3732 -5984
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +33 -5
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/graphql-client.d.ts.map +1 -1
- package/dist/index-cjs.min.js +1 -1
- package/dist/index-cjs.min.js.map +1 -1
- package/dist/index-es.min.js +1 -1
- package/dist/index-es.min.js.map +1 -1
- package/dist/index-umd.min.js +1 -1
- package/dist/index-umd.min.js.map +1 -1
- package/dist/webhooks/client.d.ts +0 -1
- package/dist/webhooks/client.d.ts.map +1 -1
- package/dist/webhooks/index-cjs.min.js +1 -1
- package/dist/webhooks/index-cjs.min.js.map +1 -1
- package/dist/webhooks/index-es.min.js +1 -1
- package/dist/webhooks/index-es.min.js.map +1 -1
- package/dist/webhooks/types.d.ts +24 -25
- package/dist/webhooks/types.d.ts.map +1 -1
- package/package.json +29 -18
package/dist/_generated_sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DocumentNode } from "graphql/language/ast";
|
|
2
2
|
import * as L from "./_generated_documents";
|
|
3
3
|
/** The function for calling the graphql client */
|
|
4
|
-
export
|
|
4
|
+
export type LinearRequest = <Response, Variables extends Record<string, unknown>>(doc: DocumentNode, variables?: Variables) => Promise<Response>;
|
|
5
5
|
/**
|
|
6
6
|
* Base class to provide a request function
|
|
7
7
|
*
|
|
@@ -18,12 +18,12 @@ export declare class Request {
|
|
|
18
18
|
paginate<T extends Node, U>(fn: (variables: U) => LinearFetch<Connection<T>>, args: U): Promise<T[]>;
|
|
19
19
|
}
|
|
20
20
|
/** Fetch return type wrapped in a promise */
|
|
21
|
-
export
|
|
21
|
+
export type LinearFetch<Response> = Promise<Response>;
|
|
22
22
|
/**
|
|
23
23
|
* Variables required for pagination
|
|
24
24
|
* Follows the Relay spec
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type LinearConnectionVariables = {
|
|
27
27
|
after?: string | null;
|
|
28
28
|
before?: string | null;
|
|
29
29
|
first?: number | null;
|
|
@@ -3857,6 +3857,8 @@ export declare class GuidanceRuleWebhookPayload {
|
|
|
3857
3857
|
*/
|
|
3858
3858
|
export declare class IdentityProvider extends Request {
|
|
3859
3859
|
constructor(request: LinearRequest, data: L.IdentityProviderFragment);
|
|
3860
|
+
/** Whether users are allowed to change their name and display name even if SCIM is enabled. */
|
|
3861
|
+
allowNameChange: boolean;
|
|
3860
3862
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
|
3861
3863
|
archivedAt?: Date;
|
|
3862
3864
|
/** The time at which the entity was created. */
|
|
@@ -7259,6 +7261,8 @@ export declare class Organization extends Request {
|
|
|
7259
7261
|
securitySettings: L.Scalars["JSONObject"];
|
|
7260
7262
|
/** The time at which the trial will end. */
|
|
7261
7263
|
trialEndsAt?: Date;
|
|
7264
|
+
/** The time at which the trial started. */
|
|
7265
|
+
trialStartsAt?: Date;
|
|
7262
7266
|
/**
|
|
7263
7267
|
* The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't
|
|
7264
7268
|
* been updated after creation.
|
|
@@ -9960,7 +9964,7 @@ export declare class Team extends Request {
|
|
|
9960
9964
|
inheritIssueEstimation: boolean;
|
|
9961
9965
|
/** Whether the team should inherit its workflow statuses from its parent. Only applies to sub-teams. */
|
|
9962
9966
|
inheritWorkflowStatuses: boolean;
|
|
9963
|
-
/** Unique hash for the team to be used in invite URLs. */
|
|
9967
|
+
/** [DEPRECATED] Unique hash for the team to be used in invite URLs. */
|
|
9964
9968
|
inviteHash: string;
|
|
9965
9969
|
/** Number of issues in the team. */
|
|
9966
9970
|
issueCount: number;
|
|
@@ -16281,6 +16285,22 @@ export declare class DeleteProjectMutation extends Request {
|
|
|
16281
16285
|
*/
|
|
16282
16286
|
fetch(id: string): LinearFetch<ProjectArchivePayload>;
|
|
16283
16287
|
}
|
|
16288
|
+
/**
|
|
16289
|
+
* A fetchable ProjectExternalSyncDisable Mutation
|
|
16290
|
+
*
|
|
16291
|
+
* @param request - function to call the graphql client
|
|
16292
|
+
*/
|
|
16293
|
+
export declare class ProjectExternalSyncDisableMutation extends Request {
|
|
16294
|
+
constructor(request: LinearRequest);
|
|
16295
|
+
/**
|
|
16296
|
+
* Call the ProjectExternalSyncDisable mutation and return a ProjectPayload
|
|
16297
|
+
*
|
|
16298
|
+
* @param projectId - required projectId to pass to projectExternalSyncDisable
|
|
16299
|
+
* @param syncSource - required syncSource to pass to projectExternalSyncDisable
|
|
16300
|
+
* @returns parsed response from ProjectExternalSyncDisableMutation
|
|
16301
|
+
*/
|
|
16302
|
+
fetch(projectId: string, syncSource: L.ExternalSyncService): LinearFetch<ProjectPayload>;
|
|
16303
|
+
}
|
|
16284
16304
|
/**
|
|
16285
16305
|
* A fetchable CreateProjectLabel Mutation
|
|
16286
16306
|
*
|
|
@@ -22698,6 +22718,14 @@ export declare class LinearSdk extends Request {
|
|
|
22698
22718
|
* @returns ProjectArchivePayload
|
|
22699
22719
|
*/
|
|
22700
22720
|
deleteProject(id: string): LinearFetch<ProjectArchivePayload>;
|
|
22721
|
+
/**
|
|
22722
|
+
* Disables external sync on a project.
|
|
22723
|
+
*
|
|
22724
|
+
* @param projectId - required projectId to pass to projectExternalSyncDisable
|
|
22725
|
+
* @param syncSource - required syncSource to pass to projectExternalSyncDisable
|
|
22726
|
+
* @returns ProjectPayload
|
|
22727
|
+
*/
|
|
22728
|
+
projectExternalSyncDisable(projectId: string, syncSource: L.ExternalSyncService): LinearFetch<ProjectPayload>;
|
|
22701
22729
|
/**
|
|
22702
22730
|
* Creates a new project label.
|
|
22703
22731
|
*
|
|
@@ -23300,5 +23328,5 @@ export declare class LinearSdk extends Request {
|
|
|
23300
23328
|
*/
|
|
23301
23329
|
updateWorkflowState(id: string, input: L.WorkflowStateUpdateInput): LinearFetch<WorkflowStatePayload>;
|
|
23302
23330
|
}
|
|
23303
|
-
export { AgentActivitySignal, AgentActivityType, AgentSessionStatus, AgentSessionType, AuthenticationSessionType, ContextViewType, CustomerStatusType, CustomerVisibilityMode, CyclePeriod, DateResolutionType, Day, EmailIntakeAddressType, ExternalSyncService, FacetPageSource, FeedSummarySchedule, FrequencyResolutionType, GitAutomationStates, GitLinkKind, GithubOrgType, IdentityProviderType, InitiativeStatus, InitiativeTab, InitiativeUpdateHealthType, IntegrationService, IssueRelationType, IssueSuggestionState, IssueSuggestionType, NotificationCategory, NotificationChannel, OAuthClientApprovalStatus, OrganizationDomainAuthType, OrganizationInviteStatus, OtherNotificationType, PaginationNulls, PaginationOrderBy, PaginationSortOrder, PostType, ProductIntelligenceScope, ProjectMilestoneStatus, ProjectStatusType, ProjectTab, ProjectUpdateHealthType, ProjectUpdateReminderFrequency, PullRequestMergeMethod, PullRequestReviewTool, PullRequestStatus, PushSubscriptionType, ReleaseChannel, ReleaseStageType, SLADayCountType, SemanticSearchResultType, SendStrategy, SlaStatus, SlackChannelType, TeamRoleType, TriageResponsibilityAction, UserContextViewType, UserFlagType, UserFlagUpdateOperation, UserRoleType, UserSettingsThemeDeviceType, UserSettingsThemeMode, UserSettingsThemePreset, ViewPreferencesType, ViewType, } from "./_generated_documents";
|
|
23331
|
+
export { AgentActivitySignal, AgentActivityType, AgentSessionStatus, AgentSessionType, AuthenticationSessionType, ContextViewType, CustomerStatusType, CustomerVisibilityMode, CyclePeriod, DateResolutionType, Day, EmailIntakeAddressType, ExternalSyncService, FacetPageSource, FeedSummarySchedule, FrequencyResolutionType, GitAutomationStates, GitLinkKind, GithubOrgType, IdentityProviderType, InitiativeStatus, InitiativeTab, InitiativeUpdateHealthType, IntegrationService, IssueRelationType, IssueSuggestionState, IssueSuggestionType, NotificationCategory, NotificationChannel, OAuthClientApprovalStatus, OrganizationDomainAuthType, OrganizationInviteStatus, OtherNotificationType, PaginationNulls, PaginationOrderBy, PaginationSortOrder, PostType, ProductIntelligenceScope, ProjectMilestoneStatus, ProjectStatusType, ProjectTab, ProjectUpdateHealthType, ProjectUpdateReminderFrequency, PullRequestMergeMethod, PullRequestReviewTool, PullRequestStatus, PushSubscriptionType, ReleaseChannel, ReleasePipelineType, ReleaseStageType, SLADayCountType, SemanticSearchResultType, SendStrategy, SlaStatus, SlackChannelType, TeamRoleType, TriageResponsibilityAction, UserContextViewType, UserFlagType, UserFlagUpdateOperation, UserRoleType, UserSettingsThemeDeviceType, UserSettingsThemeMode, UserSettingsThemePreset, ViewPreferencesType, ViewType, } from "./_generated_documents";
|
|
23304
23332
|
//# sourceMappingURL=_generated_sdk.d.ts.map
|