@linear/sdk 2.4.0 → 2.5.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/CHANGELOG.md +34 -0
- package/dist/_generated_documents.d.ts +56 -36
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +36 -26
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +217 -126
- 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 +212 -125
- 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 +224 -131
- 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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/webhooks.d.ts +18 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/_generated_sdk.d.ts
CHANGED
@@ -57,32 +57,6 @@ export declare class Connection<Node> extends LinearConnection<Node> {
|
|
57
57
|
/** Fetch the previous page of results and prepend to nodes */
|
58
58
|
fetchPrevious(): Promise<this>;
|
59
59
|
}
|
60
|
-
/**
|
61
|
-
* AdminJobConfigurationPayload model
|
62
|
-
*
|
63
|
-
* @param request - function to call the graphql client
|
64
|
-
* @param data - L.AdminJobConfigurationPayloadFragment response data
|
65
|
-
*/
|
66
|
-
export declare class AdminJobConfigurationPayload extends Request {
|
67
|
-
constructor(request: LinearRequest, data: L.AdminJobConfigurationPayloadFragment);
|
68
|
-
currentJob?: string;
|
69
|
-
delay: number;
|
70
|
-
enabled: boolean;
|
71
|
-
param?: string;
|
72
|
-
}
|
73
|
-
/**
|
74
|
-
* AdminJobStatusPayload model
|
75
|
-
*
|
76
|
-
* @param request - function to call the graphql client
|
77
|
-
* @param data - L.AdminJobStatusPayloadFragment response data
|
78
|
-
*/
|
79
|
-
export declare class AdminJobStatusPayload extends Request {
|
80
|
-
constructor(request: LinearRequest, data: L.AdminJobStatusPayloadFragment);
|
81
|
-
availableJobs: string[];
|
82
|
-
cursor?: string;
|
83
|
-
startedAt?: Date;
|
84
|
-
configuration: AdminJobConfigurationPayload;
|
85
|
-
}
|
86
60
|
/**
|
87
61
|
* An API key. Grants access to the user's resources.
|
88
62
|
*
|
@@ -2127,6 +2101,8 @@ export declare class OauthClient extends Request {
|
|
2127
2101
|
updatedAt: Date;
|
2128
2102
|
/** The resource types to request when creating new webhooks. */
|
2129
2103
|
webhookResourceTypes: string[];
|
2104
|
+
/** Webhook secret token for verifying the origin on the recipient side. */
|
2105
|
+
webhookSecret?: string;
|
2130
2106
|
/** Webhook URL */
|
2131
2107
|
webhookUrl?: string;
|
2132
2108
|
/** The user who created the OAuthClient. */
|
@@ -2209,6 +2185,16 @@ export declare class OauthClientApprovalNotification extends Request {
|
|
2209
2185
|
/** The user that received the notification. */
|
2210
2186
|
get user(): LinearFetch<User> | undefined;
|
2211
2187
|
}
|
2188
|
+
/**
|
2189
|
+
* OauthClientConnection model
|
2190
|
+
*
|
2191
|
+
* @param request - function to call the graphql client
|
2192
|
+
* @param fetch - function to trigger a refetch of this OauthClientConnection model
|
2193
|
+
* @param data - OauthClientConnection response data
|
2194
|
+
*/
|
2195
|
+
export declare class OauthClientConnection extends Connection<OauthClient> {
|
2196
|
+
constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<OauthClient> | undefined>, data: L.OauthClientConnectionFragment);
|
2197
|
+
}
|
2212
2198
|
/**
|
2213
2199
|
* An organization. Organizations are root-level objects that contain user accounts and teams.
|
2214
2200
|
*
|
@@ -5210,6 +5196,22 @@ export declare class IntegrationSlackImportEmojisMutation extends Request {
|
|
5210
5196
|
*/
|
5211
5197
|
fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
5212
5198
|
}
|
5199
|
+
/**
|
5200
|
+
* A fetchable IntegrationSlackIntake Mutation
|
5201
|
+
*
|
5202
|
+
* @param request - function to call the graphql client
|
5203
|
+
*/
|
5204
|
+
export declare class IntegrationSlackIntakeMutation extends Request {
|
5205
|
+
constructor(request: LinearRequest);
|
5206
|
+
/**
|
5207
|
+
* Call the IntegrationSlackIntake mutation and return a IntegrationPayload
|
5208
|
+
*
|
5209
|
+
* @param code - required code to pass to integrationSlackIntake
|
5210
|
+
* @param redirectUri - required redirectUri to pass to integrationSlackIntake
|
5211
|
+
* @returns parsed response from IntegrationSlackIntakeMutation
|
5212
|
+
*/
|
5213
|
+
fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
5214
|
+
}
|
5213
5215
|
/**
|
5214
5216
|
* A fetchable IntegrationSlackOrgProjectUpdatesPost Mutation
|
5215
5217
|
*
|
@@ -9671,6 +9673,14 @@ export declare class LinearSdk extends Request {
|
|
9671
9673
|
* @returns IntegrationPayload
|
9672
9674
|
*/
|
9673
9675
|
integrationSlackImportEmojis(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
9676
|
+
/**
|
9677
|
+
* Integrates the organization with Slack for issue intake.
|
9678
|
+
*
|
9679
|
+
* @param code - required code to pass to integrationSlackIntake
|
9680
|
+
* @param redirectUri - required redirectUri to pass to integrationSlackIntake
|
9681
|
+
* @returns IntegrationPayload
|
9682
|
+
*/
|
9683
|
+
integrationSlackIntake(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
9674
9684
|
/**
|
9675
9685
|
* Slack integration for organization level project update notifications.
|
9676
9686
|
*
|