@linear/sdk 2.3.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 +72 -0
- package/dist/_generated_documents.d.ts +158 -44
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +86 -28
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +355 -134
- 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 +348 -133
- 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 +362 -139
- 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
|
*
|
@@ -2734,6 +2720,8 @@ export declare class ProjectMilestone extends Request {
|
|
2734
2720
|
id: string;
|
2735
2721
|
/** The name of the project milestone. */
|
2736
2722
|
name: string;
|
2723
|
+
/** The order of the milestone in relation to other milestones within a project. */
|
2724
|
+
sortOrder: number;
|
2737
2725
|
/** The planned completion date of the milestone. */
|
2738
2726
|
targetDate?: L.Scalars["TimelessDate"];
|
2739
2727
|
/**
|
@@ -4150,6 +4138,54 @@ export declare class WebhookPayload extends Request {
|
|
4150
4138
|
/** The webhook entity being mutated. */
|
4151
4139
|
get webhook(): LinearFetch<Webhook> | undefined;
|
4152
4140
|
}
|
4141
|
+
/**
|
4142
|
+
* WorkflowCronJobDefinition model
|
4143
|
+
*
|
4144
|
+
* @param request - function to call the graphql client
|
4145
|
+
* @param data - L.WorkflowCronJobDefinitionFragment response data
|
4146
|
+
*/
|
4147
|
+
export declare class WorkflowCronJobDefinition extends Request {
|
4148
|
+
private _creator;
|
4149
|
+
private _team;
|
4150
|
+
constructor(request: LinearRequest, data: L.WorkflowCronJobDefinitionFragment);
|
4151
|
+
/** An array of activities that will be executed as part of the workflow cron job. */
|
4152
|
+
activities: Record<string, unknown>;
|
4153
|
+
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
4154
|
+
archivedAt?: Date;
|
4155
|
+
/** The time at which the entity was created. */
|
4156
|
+
createdAt: Date;
|
4157
|
+
/** The description of the workflow cron job. */
|
4158
|
+
description?: string;
|
4159
|
+
enabled: boolean;
|
4160
|
+
/** The unique identifier of the entity. */
|
4161
|
+
id: string;
|
4162
|
+
/** The name of the workflow cron job. */
|
4163
|
+
name: string;
|
4164
|
+
/** Cron schedule which is used to execute the workflow cron job. */
|
4165
|
+
schedule: Record<string, unknown>;
|
4166
|
+
/** The sort order of the workflow cron job definition within its siblings. */
|
4167
|
+
sortOrder: string;
|
4168
|
+
/**
|
4169
|
+
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
4170
|
+
* 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
|
4171
|
+
* been updated after creation.
|
4172
|
+
*/
|
4173
|
+
updatedAt: Date;
|
4174
|
+
/** The user who created the workflow cron job. */
|
4175
|
+
get creator(): LinearFetch<User> | undefined;
|
4176
|
+
/** The team associated with the workflow cron job. */
|
4177
|
+
get team(): LinearFetch<Team> | undefined;
|
4178
|
+
}
|
4179
|
+
/**
|
4180
|
+
* WorkflowCronJobDefinitionConnection model
|
4181
|
+
*
|
4182
|
+
* @param request - function to call the graphql client
|
4183
|
+
* @param fetch - function to trigger a refetch of this WorkflowCronJobDefinitionConnection model
|
4184
|
+
* @param data - WorkflowCronJobDefinitionConnection response data
|
4185
|
+
*/
|
4186
|
+
export declare class WorkflowCronJobDefinitionConnection extends Connection<WorkflowCronJobDefinition> {
|
4187
|
+
constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<WorkflowCronJobDefinition> | undefined>, data: L.WorkflowCronJobDefinitionConnectionFragment);
|
4188
|
+
}
|
4153
4189
|
/**
|
4154
4190
|
* WorkflowDefinition model
|
4155
4191
|
*
|
@@ -4177,8 +4213,6 @@ export declare class WorkflowDefinition extends Request {
|
|
4177
4213
|
id: string;
|
4178
4214
|
/** The name of the workflow. */
|
4179
4215
|
name: string;
|
4180
|
-
/** Cron schedule which is used to execute the workflow. Only applicable for cron based workflows. */
|
4181
|
-
schedule: Record<string, unknown>;
|
4182
4216
|
/** The sort order of the workflow definition within its siblings. */
|
4183
4217
|
sortOrder: string;
|
4184
4218
|
/**
|
@@ -5162,6 +5196,22 @@ export declare class IntegrationSlackImportEmojisMutation extends Request {
|
|
5162
5196
|
*/
|
5163
5197
|
fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
5164
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
|
+
}
|
5165
5215
|
/**
|
5166
5216
|
* A fetchable IntegrationSlackOrgProjectUpdatesPost Mutation
|
5167
5217
|
*
|
@@ -9623,6 +9673,14 @@ export declare class LinearSdk extends Request {
|
|
9623
9673
|
* @returns IntegrationPayload
|
9624
9674
|
*/
|
9625
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>;
|
9626
9684
|
/**
|
9627
9685
|
* Slack integration for organization level project update notifications.
|
9628
9686
|
*
|