@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.
@@ -403,22 +403,6 @@ export declare class CommentPayload extends Request {
403
403
  /** The comment that was created or updated. */
404
404
  get comment(): LinearFetch<Comment> | undefined;
405
405
  }
406
- /**
407
- * GitHub's commit data
408
- *
409
- * @param request - function to call the graphql client
410
- * @param data - L.CommitPayloadFragment response data
411
- */
412
- export declare class CommitPayload extends Request {
413
- constructor(request: LinearRequest, data: L.CommitPayloadFragment);
414
- added: string[];
415
- id: string;
416
- message: string;
417
- modified: string[];
418
- removed: string[];
419
- timestamp: string;
420
- url: string;
421
- }
422
406
  /**
423
407
  * ContactPayload model
424
408
  *
@@ -1138,70 +1122,6 @@ export declare class IntegrationRequestPayload extends Request {
1138
1122
  /** Whether the operation was successful. */
1139
1123
  success: boolean;
1140
1124
  }
1141
- /**
1142
- * An integration resource created by an external service.
1143
- *
1144
- * @param request - function to call the graphql client
1145
- * @param data - L.IntegrationResourceFragment response data
1146
- */
1147
- export declare class IntegrationResource extends Request {
1148
- private _integration?;
1149
- private _issue;
1150
- constructor(request: LinearRequest, data: L.IntegrationResourceFragment);
1151
- /** The time at which the entity was archived. Null if the entity has not been archived. */
1152
- archivedAt?: Date;
1153
- /** The time at which the entity was created. */
1154
- createdAt: Date;
1155
- /** The unique identifier of the entity. */
1156
- id: string;
1157
- /** The external service resource ID. */
1158
- resourceId: string;
1159
- /** The integration's type. */
1160
- resourceType: string;
1161
- /**
1162
- * The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
1163
- * 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
1164
- * been updated after creation.
1165
- */
1166
- updatedAt: Date;
1167
- /** Detailed information about the external resource. */
1168
- data: IntegrationResourceData;
1169
- /** Pull request information for GitHub pull requests and GitLab merge requests. */
1170
- pullRequest: PullRequestPayload;
1171
- /** The integration that the resource is associated with. */
1172
- get integration(): LinearFetch<Integration> | undefined;
1173
- /** The issue that the resource is associated with. */
1174
- get issue(): LinearFetch<Issue> | undefined;
1175
- /** Archives an integration resource. */
1176
- archive(): LinearFetch<ArchivePayload>;
1177
- }
1178
- /**
1179
- * IntegrationResourceConnection model
1180
- *
1181
- * @param request - function to call the graphql client
1182
- * @param fetch - function to trigger a refetch of this IntegrationResourceConnection model
1183
- * @param data - IntegrationResourceConnection response data
1184
- */
1185
- export declare class IntegrationResourceConnection extends Connection<IntegrationResource> {
1186
- constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<IntegrationResource> | undefined>, data: L.IntegrationResourceConnectionFragment);
1187
- }
1188
- /**
1189
- * Integration resource's payload
1190
- *
1191
- * @param request - function to call the graphql client
1192
- * @param data - L.IntegrationResourceDataFragment response data
1193
- */
1194
- export declare class IntegrationResourceData extends Request {
1195
- constructor(request: LinearRequest, data: L.IntegrationResourceDataFragment);
1196
- /** The payload for an IntegrationResource of type 'githubCommit' */
1197
- githubCommit?: CommitPayload;
1198
- /** The payload for an IntegrationResource of type 'githubPullRequest' */
1199
- githubPullRequest?: PullRequestPayload;
1200
- /** The payload for an IntegrationResource of type 'gitlabMergeRequest' */
1201
- gitlabMergeRequest?: PullRequestPayload;
1202
- /** The payload for an IntegrationResource of type 'sentryIssue' */
1203
- sentryIssue?: SentryIssuePayload;
1204
- }
1205
1125
  /**
1206
1126
  * The integration resource's settings
1207
1127
  *
@@ -2814,6 +2734,8 @@ export declare class ProjectMilestone extends Request {
2814
2734
  id: string;
2815
2735
  /** The name of the project milestone. */
2816
2736
  name: string;
2737
+ /** The order of the milestone in relation to other milestones within a project. */
2738
+ sortOrder: number;
2817
2739
  /** The planned completion date of the milestone. */
2818
2740
  targetDate?: L.Scalars["TimelessDate"];
2819
2741
  /**
@@ -3092,51 +3014,6 @@ export declare class ProjectUpdateWithInteractionPayload extends Request {
3092
3014
  /** The project update that was created or updated. */
3093
3015
  get projectUpdate(): LinearFetch<ProjectUpdate> | undefined;
3094
3016
  }
3095
- /**
3096
- * Pull request data
3097
- *
3098
- * @param request - function to call the graphql client
3099
- * @param data - L.PullRequestPayloadFragment response data
3100
- */
3101
- export declare class PullRequestPayload extends Request {
3102
- constructor(request: LinearRequest, data: L.PullRequestPayloadFragment);
3103
- branch: string;
3104
- closedAt: string;
3105
- createdAt: string;
3106
- draft: boolean;
3107
- id: string;
3108
- mergedAt: string;
3109
- number: number;
3110
- repoLogin: string;
3111
- repoName: string;
3112
- reviewers?: string[];
3113
- status: string;
3114
- title: string;
3115
- updatedAt: string;
3116
- url: string;
3117
- userId: string;
3118
- userLogin: string;
3119
- reviews?: PullRequestReview[];
3120
- }
3121
- /**
3122
- * Pull request review data
3123
- *
3124
- * @param request - function to call the graphql client
3125
- * @param data - L.PullRequestReviewFragment response data
3126
- */
3127
- export declare class PullRequestReview extends Request {
3128
- constructor(request: LinearRequest, data: L.PullRequestReviewFragment);
3129
- /** The ID of the review. */
3130
- id: number;
3131
- /** The user ID of the reviewer. */
3132
- reviewerId: number;
3133
- /** The login of the reviewer. */
3134
- reviewerLogin: string;
3135
- /** The state of the review. */
3136
- state: string;
3137
- /** The timestamp of review submission. */
3138
- submittedAt: string;
3139
- }
3140
3017
  /**
3141
3018
  * A user's web browser push notification subscription.
3142
3019
  *
@@ -3451,37 +3328,6 @@ export declare class SamlConfigurationPayload extends Request {
3451
3328
  /** The algorithm of the Signing Certificate. Can be one of `sha1`, `sha256` (default), or `sha512`. */
3452
3329
  ssoSignAlgo?: string;
3453
3330
  }
3454
- /**
3455
- * Sentry issue data
3456
- *
3457
- * @param request - function to call the graphql client
3458
- * @param data - L.SentryIssuePayloadFragment response data
3459
- */
3460
- export declare class SentryIssuePayload extends Request {
3461
- constructor(request: LinearRequest, data: L.SentryIssuePayloadFragment);
3462
- /** The Sentry identifier of the actor who created the issue. */
3463
- actorId: number;
3464
- /** The name of the Sentry actor who created this issue. */
3465
- actorName: string;
3466
- /** The type of the actor who created the issue. */
3467
- actorType: string;
3468
- /** The date this issue was first seen. */
3469
- firstSeen: string;
3470
- /** The name of the first release version this issue appeared on, if available. */
3471
- firstVersion?: string;
3472
- /** The Sentry identifier for the issue. */
3473
- issueId: string;
3474
- /** The title of the issue. */
3475
- issueTitle: string;
3476
- /** The Sentry identifier of the project this issue belongs to. */
3477
- projectId: number;
3478
- /** The slug of the project this issue belongs to. */
3479
- projectSlug: string;
3480
- /** The shortId of the issue. */
3481
- shortId: string;
3482
- /** The description of the issue. */
3483
- webUrl: string;
3484
- }
3485
3331
  /**
3486
3332
  * Sentry specific settings.
3487
3333
  *
@@ -4306,6 +4152,54 @@ export declare class WebhookPayload extends Request {
4306
4152
  /** The webhook entity being mutated. */
4307
4153
  get webhook(): LinearFetch<Webhook> | undefined;
4308
4154
  }
4155
+ /**
4156
+ * WorkflowCronJobDefinition model
4157
+ *
4158
+ * @param request - function to call the graphql client
4159
+ * @param data - L.WorkflowCronJobDefinitionFragment response data
4160
+ */
4161
+ export declare class WorkflowCronJobDefinition extends Request {
4162
+ private _creator;
4163
+ private _team;
4164
+ constructor(request: LinearRequest, data: L.WorkflowCronJobDefinitionFragment);
4165
+ /** An array of activities that will be executed as part of the workflow cron job. */
4166
+ activities: Record<string, unknown>;
4167
+ /** The time at which the entity was archived. Null if the entity has not been archived. */
4168
+ archivedAt?: Date;
4169
+ /** The time at which the entity was created. */
4170
+ createdAt: Date;
4171
+ /** The description of the workflow cron job. */
4172
+ description?: string;
4173
+ enabled: boolean;
4174
+ /** The unique identifier of the entity. */
4175
+ id: string;
4176
+ /** The name of the workflow cron job. */
4177
+ name: string;
4178
+ /** Cron schedule which is used to execute the workflow cron job. */
4179
+ schedule: Record<string, unknown>;
4180
+ /** The sort order of the workflow cron job definition within its siblings. */
4181
+ sortOrder: string;
4182
+ /**
4183
+ * The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
4184
+ * 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
4185
+ * been updated after creation.
4186
+ */
4187
+ updatedAt: Date;
4188
+ /** The user who created the workflow cron job. */
4189
+ get creator(): LinearFetch<User> | undefined;
4190
+ /** The team associated with the workflow cron job. */
4191
+ get team(): LinearFetch<Team> | undefined;
4192
+ }
4193
+ /**
4194
+ * WorkflowCronJobDefinitionConnection model
4195
+ *
4196
+ * @param request - function to call the graphql client
4197
+ * @param fetch - function to trigger a refetch of this WorkflowCronJobDefinitionConnection model
4198
+ * @param data - WorkflowCronJobDefinitionConnection response data
4199
+ */
4200
+ export declare class WorkflowCronJobDefinitionConnection extends Connection<WorkflowCronJobDefinition> {
4201
+ constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<WorkflowCronJobDefinition> | undefined>, data: L.WorkflowCronJobDefinitionConnectionFragment);
4202
+ }
4309
4203
  /**
4310
4204
  * WorkflowDefinition model
4311
4205
  *
@@ -4333,8 +4227,6 @@ export declare class WorkflowDefinition extends Request {
4333
4227
  id: string;
4334
4228
  /** The name of the workflow. */
4335
4229
  name: string;
4336
- /** Cron schedule which is used to execute the workflow. Only applicable for cron based workflows. */
4337
- schedule: Record<string, unknown>;
4338
4230
  /** The sort order of the workflow definition within its siblings. */
4339
4231
  sortOrder: string;
4340
4232
  /**
@@ -5268,21 +5160,6 @@ export declare class IntegrationRequestMutation extends Request {
5268
5160
  */
5269
5161
  fetch(input: L.IntegrationRequestInput): LinearFetch<IntegrationRequestPayload>;
5270
5162
  }
5271
- /**
5272
- * A fetchable ArchiveIntegrationResource Mutation
5273
- *
5274
- * @param request - function to call the graphql client
5275
- */
5276
- export declare class ArchiveIntegrationResourceMutation extends Request {
5277
- constructor(request: LinearRequest);
5278
- /**
5279
- * Call the ArchiveIntegrationResource mutation and return a ArchivePayload
5280
- *
5281
- * @param id - required id to pass to archiveIntegrationResource
5282
- * @returns parsed response from ArchiveIntegrationResourceMutation
5283
- */
5284
- fetch(id: string): LinearFetch<ArchivePayload>;
5285
- }
5286
5163
  /**
5287
5164
  * A fetchable IntegrationSentryConnect Mutation
5288
5165
  *
@@ -9768,13 +9645,6 @@ export declare class LinearSdk extends Request {
9768
9645
  * @returns IntegrationRequestPayload
9769
9646
  */
9770
9647
  integrationRequest(input: L.IntegrationRequestInput): LinearFetch<IntegrationRequestPayload>;
9771
- /**
9772
- * Archives an integration resource.
9773
- *
9774
- * @param id - required id to pass to archiveIntegrationResource
9775
- * @returns ArchivePayload
9776
- */
9777
- archiveIntegrationResource(id: string): LinearFetch<ArchivePayload>;
9778
9648
  /**
9779
9649
  * Integrates the organization with Sentry.
9780
9650
  *