@linear/sdk 22.0.0 → 23.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.
- package/dist/_generated_documents.d.ts +605 -142
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +256 -67
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +856 -277
- 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 +848 -276
- 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 +857 -278
- 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
@@ -556,6 +556,19 @@ export declare class AuthOrganization extends Request {
|
|
556
556
|
/** The feature release channel the organization belongs to. */
|
557
557
|
releaseChannel: L.ReleaseChannel;
|
558
558
|
}
|
559
|
+
/**
|
560
|
+
* AuthOrganizationBucketNamePayload model
|
561
|
+
*
|
562
|
+
* @param request - function to call the graphql client
|
563
|
+
* @param data - L.AuthOrganizationBucketNamePayloadFragment response data
|
564
|
+
*/
|
565
|
+
export declare class AuthOrganizationBucketNamePayload extends Request {
|
566
|
+
constructor(request: LinearRequest, data: L.AuthOrganizationBucketNamePayloadFragment);
|
567
|
+
/** The imports bucket name for the organization. */
|
568
|
+
importsBucketName: string;
|
569
|
+
/** The uploads bucket name for the organization. */
|
570
|
+
uploadsBucketName: string;
|
571
|
+
}
|
559
572
|
/**
|
560
573
|
* AuthOrganizationDomain model
|
561
574
|
*
|
@@ -821,6 +834,8 @@ export declare class Comment extends Request {
|
|
821
834
|
updatedAt: Date;
|
822
835
|
/** Comment's URL. */
|
823
836
|
url: string;
|
837
|
+
/** Reactions associated with the comment. */
|
838
|
+
reactions: Reaction[];
|
824
839
|
/** The bot that created the comment. */
|
825
840
|
botActor?: ActorBot;
|
826
841
|
/** The document content that the comment is associated with. */
|
@@ -1383,6 +1398,8 @@ export declare class Document extends Request {
|
|
1383
1398
|
sortOrder: number;
|
1384
1399
|
/** The document title. */
|
1385
1400
|
title: string;
|
1401
|
+
/** A flag that indicates whether the document is in the trash bin. */
|
1402
|
+
trashed?: boolean;
|
1386
1403
|
/**
|
1387
1404
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
1388
1405
|
* 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
|
@@ -1401,11 +1418,29 @@ export declare class Document extends Request {
|
|
1401
1418
|
get updatedBy(): LinearFetch<User> | undefined;
|
1402
1419
|
/** Creates a new document. */
|
1403
1420
|
create(input: L.DocumentCreateInput): LinearFetch<DocumentPayload>;
|
1404
|
-
/** Deletes a document. */
|
1405
|
-
delete(): LinearFetch<
|
1421
|
+
/** Deletes (trashes) a document. */
|
1422
|
+
delete(): LinearFetch<DocumentArchivePayload>;
|
1423
|
+
/** Restores a document. */
|
1424
|
+
unarchive(): LinearFetch<DocumentArchivePayload>;
|
1406
1425
|
/** Updates a document. */
|
1407
1426
|
update(input: L.DocumentUpdateInput): LinearFetch<DocumentPayload>;
|
1408
1427
|
}
|
1428
|
+
/**
|
1429
|
+
* A generic payload return from entity archive mutations.
|
1430
|
+
*
|
1431
|
+
* @param request - function to call the graphql client
|
1432
|
+
* @param data - L.DocumentArchivePayloadFragment response data
|
1433
|
+
*/
|
1434
|
+
export declare class DocumentArchivePayload extends Request {
|
1435
|
+
private _entity?;
|
1436
|
+
constructor(request: LinearRequest, data: L.DocumentArchivePayloadFragment);
|
1437
|
+
/** The identifier of the last sync operation. */
|
1438
|
+
lastSyncId: number;
|
1439
|
+
/** Whether the operation was successful. */
|
1440
|
+
success: boolean;
|
1441
|
+
/** The archived/unarchived entity. Null if entity was deleted. */
|
1442
|
+
get entity(): LinearFetch<Document> | undefined;
|
1443
|
+
}
|
1409
1444
|
/**
|
1410
1445
|
* DocumentConnection model
|
1411
1446
|
*
|
@@ -1493,7 +1528,7 @@ export declare class DocumentContentHistoryPayload extends Request {
|
|
1493
1528
|
/** Whether the operation was successful. */
|
1494
1529
|
success: boolean;
|
1495
1530
|
/** The document content history entries. */
|
1496
|
-
history
|
1531
|
+
history: DocumentContentHistoryType[];
|
1497
1532
|
}
|
1498
1533
|
/**
|
1499
1534
|
* DocumentContentHistoryType model
|
@@ -1622,6 +1657,8 @@ export declare class DocumentSearchResult extends Request {
|
|
1622
1657
|
sortOrder: number;
|
1623
1658
|
/** The document title. */
|
1624
1659
|
title: string;
|
1660
|
+
/** A flag that indicates whether the document is in the trash bin. */
|
1661
|
+
trashed?: boolean;
|
1625
1662
|
/**
|
1626
1663
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
1627
1664
|
* 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
|
@@ -1925,6 +1962,9 @@ export declare class ExternalUserConnection extends Connection<ExternalUser> {
|
|
1925
1962
|
* @param data - L.FacetFragment response data
|
1926
1963
|
*/
|
1927
1964
|
export declare class Facet extends Request {
|
1965
|
+
private _sourceProject?;
|
1966
|
+
private _sourceTeam?;
|
1967
|
+
private _targetCustomView?;
|
1928
1968
|
constructor(request: LinearRequest, data: L.FacetFragment);
|
1929
1969
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
1930
1970
|
archivedAt?: Date;
|
@@ -1940,6 +1980,16 @@ export declare class Facet extends Request {
|
|
1940
1980
|
* been updated after creation.
|
1941
1981
|
*/
|
1942
1982
|
updatedAt: Date;
|
1983
|
+
/** The owning page. */
|
1984
|
+
sourcePage?: L.FacetPageSource;
|
1985
|
+
/** The owning organization. */
|
1986
|
+
get sourceOrganization(): LinearFetch<Organization>;
|
1987
|
+
/** The owning project. */
|
1988
|
+
get sourceProject(): LinearFetch<Project> | undefined;
|
1989
|
+
/** The owning team. */
|
1990
|
+
get sourceTeam(): LinearFetch<Team> | undefined;
|
1991
|
+
/** The targeted custom view. */
|
1992
|
+
get targetCustomView(): LinearFetch<CustomView> | undefined;
|
1943
1993
|
}
|
1944
1994
|
/**
|
1945
1995
|
* FacetConnection model
|
@@ -2052,6 +2102,113 @@ export declare class FavoritePayload extends Request {
|
|
2052
2102
|
/** The object that was added as a favorite. */
|
2053
2103
|
get favorite(): LinearFetch<Favorite> | undefined;
|
2054
2104
|
}
|
2105
|
+
/**
|
2106
|
+
* A feature flag for a project.
|
2107
|
+
*
|
2108
|
+
* @param request - function to call the graphql client
|
2109
|
+
* @param data - L.FeatureFlagFragment response data
|
2110
|
+
*/
|
2111
|
+
export declare class FeatureFlag extends Request {
|
2112
|
+
private _creator?;
|
2113
|
+
private _integration;
|
2114
|
+
private _lastStageUpdatedBy?;
|
2115
|
+
private _project?;
|
2116
|
+
constructor(request: LinearRequest, data: L.FeatureFlagFragment);
|
2117
|
+
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
2118
|
+
archivedAt?: Date;
|
2119
|
+
/** The time at which the entity was created. */
|
2120
|
+
createdAt: Date;
|
2121
|
+
/** The description of the feature flag. */
|
2122
|
+
description?: string;
|
2123
|
+
/** Url to the feature flag provider's page about the feature flag. */
|
2124
|
+
externalUrl: string;
|
2125
|
+
/** The unique identifier of the entity. */
|
2126
|
+
id: string;
|
2127
|
+
/** Whether the feature flag is enabled. */
|
2128
|
+
isEnabled: boolean;
|
2129
|
+
/** The unique key as defined by the feature flag provider. */
|
2130
|
+
key: string;
|
2131
|
+
/** The description of the feature flag. */
|
2132
|
+
lastStageUpdatedAt?: Date;
|
2133
|
+
/** The status of the feature flag. */
|
2134
|
+
status: string;
|
2135
|
+
/**
|
2136
|
+
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
2137
|
+
* 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
|
2138
|
+
* been updated after creation.
|
2139
|
+
*/
|
2140
|
+
updatedAt: Date;
|
2141
|
+
/** The pending rollout stage for the feature flag. */
|
2142
|
+
pendingRolloutStage?: FeatureFlagRolloutStage;
|
2143
|
+
/** The rollout stage of the feature flag, should be defined for all feature flags in use. */
|
2144
|
+
rolloutStage: FeatureFlagRolloutStage;
|
2145
|
+
/** The user who created the feature flag. */
|
2146
|
+
get creator(): LinearFetch<User> | undefined;
|
2147
|
+
/** The integration providing the feature flag. */
|
2148
|
+
get integration(): LinearFetch<Integration> | undefined;
|
2149
|
+
/** The user who last changed the stage of the feature flag. */
|
2150
|
+
get lastStageUpdatedBy(): LinearFetch<User> | undefined;
|
2151
|
+
/** The organization of the feature flag. */
|
2152
|
+
get organization(): LinearFetch<Organization>;
|
2153
|
+
/** The project the feature flag is associated with. */
|
2154
|
+
get project(): LinearFetch<Project> | undefined;
|
2155
|
+
}
|
2156
|
+
/**
|
2157
|
+
* FeatureFlagConnection model
|
2158
|
+
*
|
2159
|
+
* @param request - function to call the graphql client
|
2160
|
+
* @param fetch - function to trigger a refetch of this FeatureFlagConnection model
|
2161
|
+
* @param data - FeatureFlagConnection response data
|
2162
|
+
*/
|
2163
|
+
export declare class FeatureFlagConnection extends Connection<FeatureFlag> {
|
2164
|
+
constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<FeatureFlag> | undefined>, data: L.FeatureFlagConnectionFragment);
|
2165
|
+
}
|
2166
|
+
/**
|
2167
|
+
* A rollout stage for a feature flag.
|
2168
|
+
*
|
2169
|
+
* @param request - function to call the graphql client
|
2170
|
+
* @param data - L.FeatureFlagRolloutStageFragment response data
|
2171
|
+
*/
|
2172
|
+
export declare class FeatureFlagRolloutStage extends Request {
|
2173
|
+
private _integration;
|
2174
|
+
constructor(request: LinearRequest, data: L.FeatureFlagRolloutStageFragment);
|
2175
|
+
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
2176
|
+
archivedAt?: Date;
|
2177
|
+
/** The time at which the entity was created. */
|
2178
|
+
createdAt: Date;
|
2179
|
+
/** The description of the rollout stage. */
|
2180
|
+
description?: string;
|
2181
|
+
/** The unique identifier of the entity. */
|
2182
|
+
id: string;
|
2183
|
+
/** The name of the rollout stage. */
|
2184
|
+
name: string;
|
2185
|
+
/** Which feature flag provider segments this rollout stage is associated with. */
|
2186
|
+
segmentKeys: string[];
|
2187
|
+
/** The order of the rollout stages within an organization. */
|
2188
|
+
sortOrder: number;
|
2189
|
+
/**
|
2190
|
+
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
2191
|
+
* 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
|
2192
|
+
* been updated after creation.
|
2193
|
+
*/
|
2194
|
+
updatedAt: Date;
|
2195
|
+
/** The type of the feature flag rollout stage. */
|
2196
|
+
type: L.FeatureFlagRolloutStageType;
|
2197
|
+
/** The integration providing the feature flag. */
|
2198
|
+
get integration(): LinearFetch<Integration> | undefined;
|
2199
|
+
/** The organization of the feature flag rollout stage. */
|
2200
|
+
get organization(): LinearFetch<Organization>;
|
2201
|
+
}
|
2202
|
+
/**
|
2203
|
+
* FeatureFlagRolloutStageConnection model
|
2204
|
+
*
|
2205
|
+
* @param request - function to call the graphql client
|
2206
|
+
* @param fetch - function to trigger a refetch of this FeatureFlagRolloutStageConnection model
|
2207
|
+
* @param data - FeatureFlagRolloutStageConnection response data
|
2208
|
+
*/
|
2209
|
+
export declare class FeatureFlagRolloutStageConnection extends Connection<FeatureFlagRolloutStage> {
|
2210
|
+
constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<FeatureFlagRolloutStage> | undefined>, data: L.FeatureFlagRolloutStageConnectionFragment);
|
2211
|
+
}
|
2055
2212
|
/**
|
2056
2213
|
* FrontAttachmentPayload model
|
2057
2214
|
*
|
@@ -2301,7 +2458,7 @@ export declare class GoogleSheetsSettings extends Request {
|
|
2301
2458
|
sheetId: number;
|
2302
2459
|
spreadsheetId: string;
|
2303
2460
|
spreadsheetUrl: string;
|
2304
|
-
updatedIssuesAt
|
2461
|
+
updatedIssuesAt?: Date;
|
2305
2462
|
}
|
2306
2463
|
/**
|
2307
2464
|
* ImageUploadFromUrlPayload model
|
@@ -2478,6 +2635,7 @@ export declare class IntegrationSettings extends Request {
|
|
2478
2635
|
intercom?: IntercomSettings;
|
2479
2636
|
jira?: JiraSettings;
|
2480
2637
|
jiraPersonal?: JiraPersonalSettings;
|
2638
|
+
launchDarkly?: LaunchDarklySettings;
|
2481
2639
|
notion?: NotionSettings;
|
2482
2640
|
opsgenie?: OpsgenieSettings;
|
2483
2641
|
pagerDuty?: PagerDutySettings;
|
@@ -2567,6 +2725,8 @@ export declare class IntegrationsSettings extends Request {
|
|
2567
2725
|
id: string;
|
2568
2726
|
/** Whether to send a Slack message when a new issue is added to triage. */
|
2569
2727
|
slackIssueAddedToTriage?: boolean;
|
2728
|
+
/** Whether to send a Slack message when an issue is added to the custom view. */
|
2729
|
+
slackIssueAddedToView?: boolean;
|
2570
2730
|
/** Whether to send a Slack message when a new issue is created for the project or the team. */
|
2571
2731
|
slackIssueCreated?: boolean;
|
2572
2732
|
/** Whether to send a Slack message when a comment is created on any of the project or team's issues. */
|
@@ -2704,6 +2864,8 @@ export declare class Issue extends Request {
|
|
2704
2864
|
priority: number;
|
2705
2865
|
/** Label for the priority. */
|
2706
2866
|
priorityLabel: string;
|
2867
|
+
/** Emoji reaction summary, grouped by emoji type. */
|
2868
|
+
reactionData: L.Scalars["JSONObject"];
|
2707
2869
|
/** The time at which the issue's SLA will breach. */
|
2708
2870
|
slaBreachesAt?: Date;
|
2709
2871
|
/** The time at which the issue's SLA began. */
|
@@ -2732,6 +2894,8 @@ export declare class Issue extends Request {
|
|
2732
2894
|
updatedAt: Date;
|
2733
2895
|
/** Issue URL. */
|
2734
2896
|
url: string;
|
2897
|
+
/** Reactions associated with the issue. */
|
2898
|
+
reactions: Reaction[];
|
2735
2899
|
/** The bot that created the issue, if applicable. */
|
2736
2900
|
botActor?: ActorBot;
|
2737
2901
|
/** Integration type that created this issue, if applicable. */
|
@@ -2951,37 +3115,37 @@ export declare class IssueHistory extends Request {
|
|
2951
3115
|
botActor?: ActorBot;
|
2952
3116
|
/** The import record. */
|
2953
3117
|
issueImport?: IssueImport;
|
2954
|
-
/** The
|
3118
|
+
/** The actor that performed the actions. This field may be empty in the case of integrations or automations. */
|
2955
3119
|
get actor(): LinearFetch<User> | undefined;
|
2956
3120
|
/** The linked attachment. */
|
2957
3121
|
get attachment(): LinearFetch<Attachment> | undefined;
|
2958
|
-
/** The user from
|
3122
|
+
/** The user that was unassigned from the issue. */
|
2959
3123
|
get fromAssignee(): LinearFetch<User> | undefined;
|
2960
|
-
/** The
|
3124
|
+
/** The cycle that the issue was moved from. */
|
2961
3125
|
get fromCycle(): LinearFetch<Cycle> | undefined;
|
2962
|
-
/** The
|
3126
|
+
/** The parent issue that the issue was moved from. */
|
2963
3127
|
get fromParent(): LinearFetch<Issue> | undefined;
|
2964
|
-
/** The
|
3128
|
+
/** The project that the issue was moved from. */
|
2965
3129
|
get fromProject(): LinearFetch<Project> | undefined;
|
2966
|
-
/** The
|
3130
|
+
/** The state that the issue was moved from. */
|
2967
3131
|
get fromState(): LinearFetch<WorkflowState> | undefined;
|
2968
|
-
/** The team
|
3132
|
+
/** The team that the issue was moved from. */
|
2969
3133
|
get fromTeam(): LinearFetch<Team> | undefined;
|
2970
3134
|
/** The issue that was changed. */
|
2971
3135
|
get issue(): LinearFetch<Issue> | undefined;
|
2972
|
-
/** The user
|
3136
|
+
/** The user that was assigned to the issue. */
|
2973
3137
|
get toAssignee(): LinearFetch<User> | undefined;
|
2974
3138
|
/** The new project created from the issue. */
|
2975
3139
|
get toConvertedProject(): LinearFetch<Project> | undefined;
|
2976
|
-
/** The
|
3140
|
+
/** The cycle that the issue was moved to. */
|
2977
3141
|
get toCycle(): LinearFetch<Cycle> | undefined;
|
2978
|
-
/** The
|
3142
|
+
/** The parent issue that the issue was moved to. */
|
2979
3143
|
get toParent(): LinearFetch<Issue> | undefined;
|
2980
|
-
/** The
|
3144
|
+
/** The project that the issue was moved to. */
|
2981
3145
|
get toProject(): LinearFetch<Project> | undefined;
|
2982
|
-
/** The
|
3146
|
+
/** The state that the issue was moved to. */
|
2983
3147
|
get toState(): LinearFetch<WorkflowState> | undefined;
|
2984
|
-
/** The team
|
3148
|
+
/** The team that the issue was moved to. */
|
2985
3149
|
get toTeam(): LinearFetch<Team> | undefined;
|
2986
3150
|
}
|
2987
3151
|
/**
|
@@ -3405,6 +3569,8 @@ export declare class IssueSearchResult extends Request {
|
|
3405
3569
|
priority: number;
|
3406
3570
|
/** Label for the priority. */
|
3407
3571
|
priorityLabel: string;
|
3572
|
+
/** Emoji reaction summary, grouped by emoji type. */
|
3573
|
+
reactionData: L.Scalars["JSONObject"];
|
3408
3574
|
/** The time at which the issue's SLA will breach. */
|
3409
3575
|
slaBreachesAt?: Date;
|
3410
3576
|
/** The time at which the issue's SLA began. */
|
@@ -3433,6 +3599,8 @@ export declare class IssueSearchResult extends Request {
|
|
3433
3599
|
updatedAt: Date;
|
3434
3600
|
/** Issue URL. */
|
3435
3601
|
url: string;
|
3602
|
+
/** Reactions associated with the issue. */
|
3603
|
+
reactions: Reaction[];
|
3436
3604
|
/** The bot that created the issue, if applicable. */
|
3437
3605
|
botActor?: ActorBot;
|
3438
3606
|
/** Integration type that created this issue, if applicable. */
|
@@ -3586,6 +3754,19 @@ export declare class LabelNotificationSubscription extends Request {
|
|
3586
3754
|
/** The user view associated with the notification subscription. */
|
3587
3755
|
get user(): LinearFetch<User> | undefined;
|
3588
3756
|
}
|
3757
|
+
/**
|
3758
|
+
* LaunchDarkly specific settings.
|
3759
|
+
*
|
3760
|
+
* @param request - function to call the graphql client
|
3761
|
+
* @param data - L.LaunchDarklySettingsFragment response data
|
3762
|
+
*/
|
3763
|
+
export declare class LaunchDarklySettings extends Request {
|
3764
|
+
constructor(request: LinearRequest, data: L.LaunchDarklySettingsFragment);
|
3765
|
+
/** The environment of the LaunchDarkly integration. */
|
3766
|
+
environment: string;
|
3767
|
+
/** The project key of the LaunchDarkly integration. */
|
3768
|
+
projectKey: string;
|
3769
|
+
}
|
3589
3770
|
/**
|
3590
3771
|
* LogoutResponse model
|
3591
3772
|
*
|
@@ -3719,7 +3900,7 @@ export declare class NotificationDeliveryPreferencesChannel extends Request {
|
|
3719
3900
|
/** Whether notifications are enabled for this channel. */
|
3720
3901
|
notificationsDisabled?: boolean;
|
3721
3902
|
/** The schedule for notifications on this channel. */
|
3722
|
-
schedule
|
3903
|
+
schedule?: NotificationDeliveryPreferencesSchedule;
|
3723
3904
|
}
|
3724
3905
|
/**
|
3725
3906
|
* A user's notification delivery schedule for a particular day.
|
@@ -4034,7 +4215,7 @@ export declare class OauthToken extends Request {
|
|
4034
4215
|
export declare class OpsgenieSettings extends Request {
|
4035
4216
|
constructor(request: LinearRequest, data: L.OpsgenieSettingsFragment);
|
4036
4217
|
/** The date when the Opsgenie API failed with an unauthorized error. */
|
4037
|
-
apiFailedWithUnauthorizedErrorAt
|
4218
|
+
apiFailedWithUnauthorizedErrorAt?: Date;
|
4038
4219
|
}
|
4039
4220
|
/**
|
4040
4221
|
* An organization. Organizations are root-level objects that contain user accounts and teams.
|
@@ -4094,6 +4275,8 @@ export declare class Organization extends Request {
|
|
4094
4275
|
urlKey: string;
|
4095
4276
|
/** Number of active users in the organization. */
|
4096
4277
|
userCount: number;
|
4278
|
+
/** IP restriction configurations. */
|
4279
|
+
ipRestrictions?: OrganizationIpRestriction[];
|
4097
4280
|
/** The organization's project statuses. */
|
4098
4281
|
projectStatuses: ProjectStatus[];
|
4099
4282
|
/** The organization's subscription to a paid plan. */
|
@@ -4230,7 +4413,7 @@ export declare class OrganizationInvite extends Request {
|
|
4230
4413
|
/** The unique identifier of the entity. */
|
4231
4414
|
id: string;
|
4232
4415
|
/** Extra metadata associated with the organization invite. */
|
4233
|
-
metadata
|
4416
|
+
metadata?: L.Scalars["JSONObject"];
|
4234
4417
|
/**
|
4235
4418
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
4236
4419
|
* 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
|
@@ -4330,6 +4513,23 @@ export declare class OrganizationInvitePayload extends Request {
|
|
4330
4513
|
/** The organization invite that was created or updated. */
|
4331
4514
|
get organizationInvite(): LinearFetch<OrganizationInvite> | undefined;
|
4332
4515
|
}
|
4516
|
+
/**
|
4517
|
+
* OrganizationIpRestriction model
|
4518
|
+
*
|
4519
|
+
* @param request - function to call the graphql client
|
4520
|
+
* @param data - L.OrganizationIpRestrictionFragment response data
|
4521
|
+
*/
|
4522
|
+
export declare class OrganizationIpRestriction extends Request {
|
4523
|
+
constructor(request: LinearRequest, data: L.OrganizationIpRestrictionFragment);
|
4524
|
+
/** Optional restriction description. */
|
4525
|
+
description?: string;
|
4526
|
+
/** Whether the restriction is enabled. */
|
4527
|
+
enabled: boolean;
|
4528
|
+
/** IP range in CIDR format. */
|
4529
|
+
range: string;
|
4530
|
+
/** Restriction type. */
|
4531
|
+
type: string;
|
4532
|
+
}
|
4333
4533
|
/**
|
4334
4534
|
* OrganizationMeta model
|
4335
4535
|
*
|
@@ -4408,7 +4608,7 @@ export declare class PageInfo extends Request {
|
|
4408
4608
|
export declare class PagerDutySettings extends Request {
|
4409
4609
|
constructor(request: LinearRequest, data: L.PagerDutySettingsFragment);
|
4410
4610
|
/** The date when the PagerDuty API failed with an unauthorized error. */
|
4411
|
-
apiFailedWithUnauthorizedErrorAt
|
4611
|
+
apiFailedWithUnauthorizedErrorAt?: Date;
|
4412
4612
|
}
|
4413
4613
|
/**
|
4414
4614
|
* The paid subscription of an organization.
|
@@ -4424,7 +4624,7 @@ export declare class PaidSubscription extends Request {
|
|
4424
4624
|
/** The date the subscription was canceled, if any. */
|
4425
4625
|
canceledAt?: Date;
|
4426
4626
|
/** The collection method for this subscription, either automatically charged or invoiced. */
|
4427
|
-
collectionMethod
|
4627
|
+
collectionMethod: string;
|
4428
4628
|
/** The time at which the entity was created. */
|
4429
4629
|
createdAt: Date;
|
4430
4630
|
/** The unique identifier of the entity. */
|
@@ -4643,19 +4843,6 @@ export declare class ProjectArchivePayload extends Request {
|
|
4643
4843
|
export declare class ProjectConnection extends Connection<Project> {
|
4644
4844
|
constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<Project> | undefined>, data: L.ProjectConnectionFragment);
|
4645
4845
|
}
|
4646
|
-
/**
|
4647
|
-
* ProjectDetailSuggestionPayload model
|
4648
|
-
*
|
4649
|
-
* @param request - function to call the graphql client
|
4650
|
-
* @param data - L.ProjectDetailSuggestionPayloadFragment response data
|
4651
|
-
*/
|
4652
|
-
export declare class ProjectDetailSuggestionPayload extends Request {
|
4653
|
-
constructor(request: LinearRequest, data: L.ProjectDetailSuggestionPayloadFragment);
|
4654
|
-
/** The suggested project color. */
|
4655
|
-
color?: string;
|
4656
|
-
/** The suggested view icon. */
|
4657
|
-
icon?: string;
|
4658
|
-
}
|
4659
4846
|
/**
|
4660
4847
|
* ProjectFilterSuggestionPayload model
|
4661
4848
|
*
|
@@ -5181,6 +5368,8 @@ export declare class ProjectUpdate extends Request {
|
|
5181
5368
|
updatedAt: Date;
|
5182
5369
|
/** The URL to the project update. */
|
5183
5370
|
url: string;
|
5371
|
+
/** Reactions associated with the project update. */
|
5372
|
+
reactions: Reaction[];
|
5184
5373
|
/** The health of the project at the time of the update. */
|
5185
5374
|
health: L.ProjectUpdateHealthType;
|
5186
5375
|
/** The project that the update is associated with. */
|
@@ -6076,7 +6265,7 @@ export declare class TeamMembership extends Request {
|
|
6076
6265
|
/** The unique identifier of the entity. */
|
6077
6266
|
id: string;
|
6078
6267
|
/** Whether the user is the owner of the team. */
|
6079
|
-
owner
|
6268
|
+
owner: boolean;
|
6080
6269
|
/** The order of the item in the users team list. */
|
6081
6270
|
sortOrder: number;
|
6082
6271
|
/**
|
@@ -6347,7 +6536,7 @@ export declare class TimeSchedule extends Request {
|
|
6347
6536
|
*/
|
6348
6537
|
updatedAt: Date;
|
6349
6538
|
/** The schedule entries. */
|
6350
|
-
entries
|
6539
|
+
entries?: TimeScheduleEntry[];
|
6351
6540
|
/** The identifier of the Linear integration populating the schedule. */
|
6352
6541
|
get integration(): LinearFetch<Integration> | undefined;
|
6353
6542
|
/** The organization of the schedule. */
|
@@ -6799,13 +6988,13 @@ export declare class UserSettings extends Request {
|
|
6799
6988
|
export declare class UserSettingsFlagPayload extends Request {
|
6800
6989
|
constructor(request: LinearRequest, data: L.UserSettingsFlagPayloadFragment);
|
6801
6990
|
/** The flag key which was updated. */
|
6802
|
-
flag
|
6991
|
+
flag?: string;
|
6803
6992
|
/** The identifier of the last sync operation. */
|
6804
6993
|
lastSyncId: number;
|
6805
6994
|
/** Whether the operation was successful. */
|
6806
6995
|
success: boolean;
|
6807
6996
|
/** The flag value after update. */
|
6808
|
-
value
|
6997
|
+
value?: number;
|
6809
6998
|
}
|
6810
6999
|
/**
|
6811
7000
|
* UserSettingsFlagsResetPayload model
|
@@ -7037,7 +7226,7 @@ export declare class WorkflowDefinition extends Request {
|
|
7037
7226
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
7038
7227
|
archivedAt?: Date;
|
7039
7228
|
/** The conditions that need to be match for the workflow to be triggered. */
|
7040
|
-
conditions
|
7229
|
+
conditions?: L.Scalars["JSONObject"];
|
7041
7230
|
/** The time at which the entity was created. */
|
7042
7231
|
createdAt: Date;
|
7043
7232
|
/** The description of the workflow. */
|
@@ -9267,12 +9456,27 @@ export declare class CreateDocumentMutation extends Request {
|
|
9267
9456
|
export declare class DeleteDocumentMutation extends Request {
|
9268
9457
|
constructor(request: LinearRequest);
|
9269
9458
|
/**
|
9270
|
-
* Call the DeleteDocument mutation and return a
|
9459
|
+
* Call the DeleteDocument mutation and return a DocumentArchivePayload
|
9271
9460
|
*
|
9272
9461
|
* @param id - required id to pass to deleteDocument
|
9273
9462
|
* @returns parsed response from DeleteDocumentMutation
|
9274
9463
|
*/
|
9275
|
-
fetch(id: string): LinearFetch<
|
9464
|
+
fetch(id: string): LinearFetch<DocumentArchivePayload>;
|
9465
|
+
}
|
9466
|
+
/**
|
9467
|
+
* A fetchable UnarchiveDocument Mutation
|
9468
|
+
*
|
9469
|
+
* @param request - function to call the graphql client
|
9470
|
+
*/
|
9471
|
+
export declare class UnarchiveDocumentMutation extends Request {
|
9472
|
+
constructor(request: LinearRequest);
|
9473
|
+
/**
|
9474
|
+
* Call the UnarchiveDocument mutation and return a DocumentArchivePayload
|
9475
|
+
*
|
9476
|
+
* @param id - required id to pass to unarchiveDocument
|
9477
|
+
* @returns parsed response from UnarchiveDocumentMutation
|
9478
|
+
*/
|
9479
|
+
fetch(id: string): LinearFetch<DocumentArchivePayload>;
|
9276
9480
|
}
|
9277
9481
|
/**
|
9278
9482
|
* A fetchable UpdateDocument Mutation
|
@@ -11873,21 +12077,6 @@ export declare class UserPromoteMemberMutation extends Request {
|
|
11873
12077
|
*/
|
11874
12078
|
fetch(id: string): LinearFetch<UserAdminPayload>;
|
11875
12079
|
}
|
11876
|
-
/**
|
11877
|
-
* A fetchable UserSettingsFlagIncrement Mutation
|
11878
|
-
*
|
11879
|
-
* @param request - function to call the graphql client
|
11880
|
-
*/
|
11881
|
-
export declare class UserSettingsFlagIncrementMutation extends Request {
|
11882
|
-
constructor(request: LinearRequest);
|
11883
|
-
/**
|
11884
|
-
* Call the UserSettingsFlagIncrement mutation and return a UserSettingsFlagPayload
|
11885
|
-
*
|
11886
|
-
* @param flag - required flag to pass to userSettingsFlagIncrement
|
11887
|
-
* @returns parsed response from UserSettingsFlagIncrementMutation
|
11888
|
-
*/
|
11889
|
-
fetch(flag: string): LinearFetch<UserSettingsFlagPayload>;
|
11890
|
-
}
|
11891
12080
|
/**
|
11892
12081
|
* A fetchable UserSettingsFlagsReset Mutation
|
11893
12082
|
*
|
@@ -14731,12 +14920,19 @@ export declare class LinearSdk extends Request {
|
|
14731
14920
|
*/
|
14732
14921
|
createDocument(input: L.DocumentCreateInput): LinearFetch<DocumentPayload>;
|
14733
14922
|
/**
|
14734
|
-
* Deletes a document.
|
14923
|
+
* Deletes (trashes) a document.
|
14735
14924
|
*
|
14736
14925
|
* @param id - required id to pass to deleteDocument
|
14737
|
-
* @returns
|
14926
|
+
* @returns DocumentArchivePayload
|
14927
|
+
*/
|
14928
|
+
deleteDocument(id: string): LinearFetch<DocumentArchivePayload>;
|
14929
|
+
/**
|
14930
|
+
* Restores a document.
|
14931
|
+
*
|
14932
|
+
* @param id - required id to pass to unarchiveDocument
|
14933
|
+
* @returns DocumentArchivePayload
|
14738
14934
|
*/
|
14739
|
-
|
14935
|
+
unarchiveDocument(id: string): LinearFetch<DocumentArchivePayload>;
|
14740
14936
|
/**
|
14741
14937
|
* Updates a document.
|
14742
14938
|
*
|
@@ -15992,13 +16188,6 @@ export declare class LinearSdk extends Request {
|
|
15992
16188
|
* @returns UserAdminPayload
|
15993
16189
|
*/
|
15994
16190
|
userPromoteMember(id: string): LinearFetch<UserAdminPayload>;
|
15995
|
-
/**
|
15996
|
-
* [Deprecated] Updates a user's settings flag.
|
15997
|
-
*
|
15998
|
-
* @param flag - required flag to pass to userSettingsFlagIncrement
|
15999
|
-
* @returns UserSettingsFlagPayload
|
16000
|
-
*/
|
16001
|
-
userSettingsFlagIncrement(flag: string): LinearFetch<UserSettingsFlagPayload>;
|
16002
16191
|
/**
|
16003
16192
|
* Resets user's setting flags.
|
16004
16193
|
*
|