@linear/sdk 18.1.0 → 19.1.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.
@@ -10,6 +10,12 @@ export declare type LinearRequest = <Response, Variables extends Record<string,
10
10
  export declare class Request {
11
11
  protected _request: LinearRequest;
12
12
  constructor(request: LinearRequest);
13
+ /**
14
+ * Helper to paginate over all pages of a given connection query.
15
+ * @param fn The query to paginate
16
+ * @param args The arguments to pass to the query
17
+ */
18
+ paginate<T extends Node, U>(fn: (variables: U) => LinearFetch<Connection<T>>, args: U): Promise<T[]>;
13
19
  }
14
20
  /** Fetch return type wrapped in a promise */
15
21
  export declare type LinearFetch<Response> = Promise<Response>;
@@ -7207,21 +7213,6 @@ export declare class OrganizationInvitesQuery extends Request {
7207
7213
  */
7208
7214
  fetch(variables?: L.OrganizationInvitesQueryVariables): LinearFetch<OrganizationInviteConnection>;
7209
7215
  }
7210
- /**
7211
- * A fetchable OrganizationRegion Query
7212
- *
7213
- * @param request - function to call the graphql client
7214
- */
7215
- export declare class OrganizationRegionQuery extends Request {
7216
- constructor(request: LinearRequest);
7217
- /**
7218
- * Call the OrganizationRegion query and return a OrganizationRegionResponse
7219
- *
7220
- * @param id - required id to pass to organizationRegion
7221
- * @returns parsed response from OrganizationRegionQuery
7222
- */
7223
- fetch(id: string): LinearFetch<OrganizationRegionResponse>;
7224
- }
7225
7216
  /**
7226
7217
  * A fetchable Project Query
7227
7218
  *
@@ -7984,14 +7975,12 @@ export declare class AttachmentLinkSlackMutation extends Request {
7984
7975
  /**
7985
7976
  * Call the AttachmentLinkSlack mutation and return a AttachmentPayload
7986
7977
  *
7987
- * @param channel - required channel to pass to attachmentLinkSlack
7988
7978
  * @param issueId - required issueId to pass to attachmentLinkSlack
7989
- * @param latest - required latest to pass to attachmentLinkSlack
7990
7979
  * @param url - required url to pass to attachmentLinkSlack
7991
- * @param variables - variables without 'channel', 'issueId', 'latest', 'url' to pass into the AttachmentLinkSlackMutation
7980
+ * @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
7992
7981
  * @returns parsed response from AttachmentLinkSlackMutation
7993
7982
  */
7994
- fetch(channel: string, issueId: string, latest: string, url: string, variables?: Omit<L.AttachmentLinkSlackMutationVariables, "channel" | "issueId" | "latest" | "url">): LinearFetch<AttachmentPayload>;
7983
+ fetch(issueId: string, url: string, variables?: Omit<L.AttachmentLinkSlackMutationVariables, "issueId" | "url">): LinearFetch<AttachmentPayload>;
7995
7984
  }
7996
7985
  /**
7997
7986
  * A fetchable AttachmentLinkUrl Mutation
@@ -12693,13 +12682,6 @@ export declare class LinearSdk extends Request {
12693
12682
  * @returns OrganizationInviteConnection
12694
12683
  */
12695
12684
  organizationInvites(variables?: L.OrganizationInvitesQueryVariables): LinearFetch<OrganizationInviteConnection>;
12696
- /**
12697
- * Fetch the region for the organization.
12698
- *
12699
- * @param id - required id to pass to organizationRegion
12700
- * @returns OrganizationRegionResponse
12701
- */
12702
- organizationRegion(id: string): LinearFetch<OrganizationRegionResponse>;
12703
12685
  /**
12704
12686
  * One specific project.
12705
12687
  *
@@ -13063,14 +13045,12 @@ export declare class LinearSdk extends Request {
13063
13045
  /**
13064
13046
  * Link an existing Slack message to an issue.
13065
13047
  *
13066
- * @param channel - required channel to pass to attachmentLinkSlack
13067
13048
  * @param issueId - required issueId to pass to attachmentLinkSlack
13068
- * @param latest - required latest to pass to attachmentLinkSlack
13069
13049
  * @param url - required url to pass to attachmentLinkSlack
13070
- * @param variables - variables without 'channel', 'issueId', 'latest', 'url' to pass into the AttachmentLinkSlackMutation
13050
+ * @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
13071
13051
  * @returns AttachmentPayload
13072
13052
  */
13073
- attachmentLinkSlack(channel: string, issueId: string, latest: string, url: string, variables?: Omit<L.AttachmentLinkSlackMutationVariables, "channel" | "issueId" | "latest" | "url">): LinearFetch<AttachmentPayload>;
13053
+ attachmentLinkSlack(issueId: string, url: string, variables?: Omit<L.AttachmentLinkSlackMutationVariables, "issueId" | "url">): LinearFetch<AttachmentPayload>;
13074
13054
  /**
13075
13055
  * Link any url to an issue.
13076
13056
  *