@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.
- package/dist/_generated_documents.d.ts +6 -24
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +10 -30
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/client.d.ts +1 -8
- package/dist/client.d.ts.map +1 -1
- package/dist/index-cjs.js +25 -105
- package/dist/index-cjs.js.map +1 -1
- package/dist/index-cjs.min.js +1 -1
- package/dist/index-cjs.min.js.br +0 -0
- package/dist/index-cjs.min.js.gz +0 -0
- package/dist/index-cjs.min.js.map +1 -1
- package/dist/index-es.js +26 -105
- package/dist/index-es.js.map +1 -1
- package/dist/index-es.min.js +1 -1
- package/dist/index-es.min.js.br +0 -0
- package/dist/index-es.min.js.gz +0 -0
- package/dist/index-es.min.js.map +1 -1
- package/dist/index-umd.js +26 -106
- package/dist/index-umd.js.map +1 -1
- package/dist/index-umd.min.js +1 -1
- package/dist/index-umd.min.js.br +0 -0
- package/dist/index-umd.min.js.gz +0 -0
- package/dist/index-umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/_generated_sdk.d.ts
CHANGED
@@ -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 '
|
7980
|
+
* @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
|
7992
7981
|
* @returns parsed response from AttachmentLinkSlackMutation
|
7993
7982
|
*/
|
7994
|
-
fetch(
|
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 '
|
13050
|
+
* @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
|
13071
13051
|
* @returns AttachmentPayload
|
13072
13052
|
*/
|
13073
|
-
attachmentLinkSlack(
|
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
|
*
|