@linear/sdk 65.1.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 +8 -6
- package/dist/_generated_documents.d.ts +4123 -5922
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +111 -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 +30 -20
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.
|
|
@@ -9385,6 +9389,84 @@ export declare class ReactionWebhookPayload {
|
|
|
9385
9389
|
/** The user that created the reaction. */
|
|
9386
9390
|
user?: UserChildWebhookPayload;
|
|
9387
9391
|
}
|
|
9392
|
+
/**
|
|
9393
|
+
* A generic payload return from entity archive mutations.
|
|
9394
|
+
*
|
|
9395
|
+
* @param request - function to call the graphql client
|
|
9396
|
+
* @param data - L.ReleaseArchivePayloadFragment response data
|
|
9397
|
+
*/
|
|
9398
|
+
export declare class ReleaseArchivePayload extends Request {
|
|
9399
|
+
constructor(request: LinearRequest, data: L.ReleaseArchivePayloadFragment);
|
|
9400
|
+
/** The identifier of the last sync operation. */
|
|
9401
|
+
lastSyncId: number;
|
|
9402
|
+
/** Whether the operation was successful. */
|
|
9403
|
+
success: boolean;
|
|
9404
|
+
}
|
|
9405
|
+
/**
|
|
9406
|
+
* ReleasePayload model
|
|
9407
|
+
*
|
|
9408
|
+
* @param request - function to call the graphql client
|
|
9409
|
+
* @param data - L.ReleasePayloadFragment response data
|
|
9410
|
+
*/
|
|
9411
|
+
export declare class ReleasePayload extends Request {
|
|
9412
|
+
constructor(request: LinearRequest, data: L.ReleasePayloadFragment);
|
|
9413
|
+
/** The identifier of the last sync operation. */
|
|
9414
|
+
lastSyncId: number;
|
|
9415
|
+
/** Whether the operation was successful. */
|
|
9416
|
+
success: boolean;
|
|
9417
|
+
}
|
|
9418
|
+
/**
|
|
9419
|
+
* A generic payload return from entity archive mutations.
|
|
9420
|
+
*
|
|
9421
|
+
* @param request - function to call the graphql client
|
|
9422
|
+
* @param data - L.ReleasePipelineArchivePayloadFragment response data
|
|
9423
|
+
*/
|
|
9424
|
+
export declare class ReleasePipelineArchivePayload extends Request {
|
|
9425
|
+
constructor(request: LinearRequest, data: L.ReleasePipelineArchivePayloadFragment);
|
|
9426
|
+
/** The identifier of the last sync operation. */
|
|
9427
|
+
lastSyncId: number;
|
|
9428
|
+
/** Whether the operation was successful. */
|
|
9429
|
+
success: boolean;
|
|
9430
|
+
}
|
|
9431
|
+
/**
|
|
9432
|
+
* ReleasePipelinePayload model
|
|
9433
|
+
*
|
|
9434
|
+
* @param request - function to call the graphql client
|
|
9435
|
+
* @param data - L.ReleasePipelinePayloadFragment response data
|
|
9436
|
+
*/
|
|
9437
|
+
export declare class ReleasePipelinePayload extends Request {
|
|
9438
|
+
constructor(request: LinearRequest, data: L.ReleasePipelinePayloadFragment);
|
|
9439
|
+
/** The identifier of the last sync operation. */
|
|
9440
|
+
lastSyncId: number;
|
|
9441
|
+
/** Whether the operation was successful. */
|
|
9442
|
+
success: boolean;
|
|
9443
|
+
}
|
|
9444
|
+
/**
|
|
9445
|
+
* A generic payload return from entity archive mutations.
|
|
9446
|
+
*
|
|
9447
|
+
* @param request - function to call the graphql client
|
|
9448
|
+
* @param data - L.ReleaseStageArchivePayloadFragment response data
|
|
9449
|
+
*/
|
|
9450
|
+
export declare class ReleaseStageArchivePayload extends Request {
|
|
9451
|
+
constructor(request: LinearRequest, data: L.ReleaseStageArchivePayloadFragment);
|
|
9452
|
+
/** The identifier of the last sync operation. */
|
|
9453
|
+
lastSyncId: number;
|
|
9454
|
+
/** Whether the operation was successful. */
|
|
9455
|
+
success: boolean;
|
|
9456
|
+
}
|
|
9457
|
+
/**
|
|
9458
|
+
* ReleaseStagePayload model
|
|
9459
|
+
*
|
|
9460
|
+
* @param request - function to call the graphql client
|
|
9461
|
+
* @param data - L.ReleaseStagePayloadFragment response data
|
|
9462
|
+
*/
|
|
9463
|
+
export declare class ReleaseStagePayload extends Request {
|
|
9464
|
+
constructor(request: LinearRequest, data: L.ReleaseStagePayloadFragment);
|
|
9465
|
+
/** The identifier of the last sync operation. */
|
|
9466
|
+
lastSyncId: number;
|
|
9467
|
+
/** Whether the operation was successful. */
|
|
9468
|
+
success: boolean;
|
|
9469
|
+
}
|
|
9388
9470
|
/**
|
|
9389
9471
|
* RepositorySuggestion model
|
|
9390
9472
|
*
|
|
@@ -9882,7 +9964,7 @@ export declare class Team extends Request {
|
|
|
9882
9964
|
inheritIssueEstimation: boolean;
|
|
9883
9965
|
/** Whether the team should inherit its workflow statuses from its parent. Only applies to sub-teams. */
|
|
9884
9966
|
inheritWorkflowStatuses: boolean;
|
|
9885
|
-
/** Unique hash for the team to be used in invite URLs. */
|
|
9967
|
+
/** [DEPRECATED] Unique hash for the team to be used in invite URLs. */
|
|
9886
9968
|
inviteHash: string;
|
|
9887
9969
|
/** Number of issues in the team. */
|
|
9888
9970
|
issueCount: number;
|
|
@@ -16203,6 +16285,22 @@ export declare class DeleteProjectMutation extends Request {
|
|
|
16203
16285
|
*/
|
|
16204
16286
|
fetch(id: string): LinearFetch<ProjectArchivePayload>;
|
|
16205
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
|
+
}
|
|
16206
16304
|
/**
|
|
16207
16305
|
* A fetchable CreateProjectLabel Mutation
|
|
16208
16306
|
*
|
|
@@ -22620,6 +22718,14 @@ export declare class LinearSdk extends Request {
|
|
|
22620
22718
|
* @returns ProjectArchivePayload
|
|
22621
22719
|
*/
|
|
22622
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>;
|
|
22623
22729
|
/**
|
|
22624
22730
|
* Creates a new project label.
|
|
22625
22731
|
*
|
|
@@ -23222,5 +23328,5 @@ export declare class LinearSdk extends Request {
|
|
|
23222
23328
|
*/
|
|
23223
23329
|
updateWorkflowState(id: string, input: L.WorkflowStateUpdateInput): LinearFetch<WorkflowStatePayload>;
|
|
23224
23330
|
}
|
|
23225
|
-
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, 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";
|
|
23226
23332
|
//# sourceMappingURL=_generated_sdk.d.ts.map
|