@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.
@@ -394,6 +394,52 @@ export declare class CommentPayload extends Request {
394
394
  /** The comment that was created or updated. */
395
395
  get comment(): LinearFetch<Comment> | undefined;
396
396
  }
397
+ /**
398
+ * A company related to issue's origin.
399
+ *
400
+ * @param request - function to call the graphql client
401
+ * @param data - L.CompanyFragment response data
402
+ */
403
+ export declare class Company extends Request {
404
+ private _creator;
405
+ constructor(request: LinearRequest, data: L.CompanyFragment);
406
+ /** The time at which the entity was archived. Null if the entity has not been archived. */
407
+ archivedAt?: Date;
408
+ /** Custom company properties. */
409
+ companyProperties: Record<string, unknown>;
410
+ /** The time at which the entity was created. */
411
+ createdAt: Date;
412
+ /** Company ID in an external system. */
413
+ externalId: string;
414
+ /** The unique identifier of the entity. */
415
+ id: string;
416
+ /** Company logo URL. */
417
+ logoUrl?: string;
418
+ /** Company name. */
419
+ name: string;
420
+ /**
421
+ * The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
422
+ * 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
423
+ * been updated after creation.
424
+ */
425
+ updatedAt: Date;
426
+ /** Company website URL. */
427
+ websiteUrl?: string;
428
+ /** The user who added the company. */
429
+ get creator(): LinearFetch<User> | undefined;
430
+ /** The organization of the customer. */
431
+ get organization(): LinearFetch<Organization>;
432
+ }
433
+ /**
434
+ * CompanyConnection model
435
+ *
436
+ * @param request - function to call the graphql client
437
+ * @param fetch - function to trigger a refetch of this CompanyConnection model
438
+ * @param data - CompanyConnection response data
439
+ */
440
+ export declare class CompanyConnection extends Connection<Company> {
441
+ constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<Company> | undefined>, data: L.CompanyConnectionFragment);
442
+ }
397
443
  /**
398
444
  * ContactPayload model
399
445
  *
@@ -469,7 +515,7 @@ export declare class CustomView extends Request {
469
515
  get creator(): LinearFetch<User> | undefined;
470
516
  /** The organization of the custom view. */
471
517
  get organization(): LinearFetch<Organization>;
472
- /** The user who owns the custom view. */
518
+ /** [Deprecated] The user who owns the custom view. */
473
519
  get owner(): LinearFetch<User> | undefined;
474
520
  /** The team associated with the custom view. */
475
521
  get team(): LinearFetch<Team> | undefined;
@@ -1590,7 +1636,7 @@ export declare class IssueHistory extends Request {
1590
1636
  actorId?: string;
1591
1637
  /** ID's of labels that were added. */
1592
1638
  addedLabelIds?: string[];
1593
- /** Whether the issue was archived or un-archived. */
1639
+ /** Whether the issue is archived at the time of this history entry. */
1594
1640
  archived?: boolean;
1595
1641
  /** The time at which the entity was archived. Null if the entity has not been archived. */
1596
1642
  archivedAt?: Date;
@@ -5738,6 +5784,22 @@ export declare class DeleteIntegrationTemplateMutation extends Request {
5738
5784
  */
5739
5785
  fetch(id: string): LinearFetch<ArchivePayload>;
5740
5786
  }
5787
+ /**
5788
+ * A fetchable IntegrationUpdateSlack Mutation
5789
+ *
5790
+ * @param request - function to call the graphql client
5791
+ */
5792
+ export declare class IntegrationUpdateSlackMutation extends Request {
5793
+ constructor(request: LinearRequest);
5794
+ /**
5795
+ * Call the IntegrationUpdateSlack mutation and return a IntegrationPayload
5796
+ *
5797
+ * @param code - required code to pass to integrationUpdateSlack
5798
+ * @param redirectUri - required redirectUri to pass to integrationUpdateSlack
5799
+ * @returns parsed response from IntegrationUpdateSlackMutation
5800
+ */
5801
+ fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
5802
+ }
5741
5803
  /**
5742
5804
  * A fetchable IntegrationZendesk Mutation
5743
5805
  *
@@ -10415,6 +10477,14 @@ export declare class LinearSdk extends Request {
10415
10477
  * @returns ArchivePayload
10416
10478
  */
10417
10479
  deleteIntegrationTemplate(id: string): LinearFetch<ArchivePayload>;
10480
+ /**
10481
+ * Updates the organization's Slack integration.
10482
+ *
10483
+ * @param code - required code to pass to integrationUpdateSlack
10484
+ * @param redirectUri - required redirectUri to pass to integrationUpdateSlack
10485
+ * @returns IntegrationPayload
10486
+ */
10487
+ integrationUpdateSlack(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
10418
10488
  /**
10419
10489
  * Integrates the organization with Zendesk.
10420
10490
  *