@linear/sdk 2.3.0 → 2.4.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 +38 -0
- package/dist/_generated_documents.d.ts +102 -8
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +50 -2
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +138 -8
- 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 +137 -9
- 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 +139 -9
- 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/index-umd.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
6
6
|
|
7
7
|
(function() {
|
8
|
-
const env = {"npm_package_name":"@linear/sdk","npm_package_version":"2.
|
8
|
+
const env = {"npm_package_name":"@linear/sdk","npm_package_version":"2.4.0"};
|
9
9
|
try {
|
10
10
|
if (process) {
|
11
11
|
process.env = Object.assign({}, process.env);
|
@@ -1433,6 +1433,14 @@
|
|
1433
1433
|
PushSubscriptionType["Apple"] = "apple";
|
1434
1434
|
PushSubscriptionType["Web"] = "web";
|
1435
1435
|
})(PushSubscriptionType || (PushSubscriptionType = {}));
|
1436
|
+
/** Features release channel */
|
1437
|
+
var ReleaseChannel;
|
1438
|
+
(function (ReleaseChannel) {
|
1439
|
+
ReleaseChannel["Beta"] = "beta";
|
1440
|
+
ReleaseChannel["Internal"] = "internal";
|
1441
|
+
ReleaseChannel["PreRelease"] = "preRelease";
|
1442
|
+
ReleaseChannel["Public"] = "public";
|
1443
|
+
})(ReleaseChannel || (ReleaseChannel = {}));
|
1436
1444
|
var SlaStatus;
|
1437
1445
|
(function (SlaStatus) {
|
1438
1446
|
SlaStatus["Breached"] = "Breached";
|
@@ -1513,7 +1521,6 @@
|
|
1513
1521
|
ViewType["MyIssuesActivity"] = "myIssuesActivity";
|
1514
1522
|
ViewType["MyIssuesCreatedByMe"] = "myIssuesCreatedByMe";
|
1515
1523
|
ViewType["MyIssuesSubscribedTo"] = "myIssuesSubscribedTo";
|
1516
|
-
ViewType["MyIssuesTouchedByMe"] = "myIssuesTouchedByMe";
|
1517
1524
|
ViewType["Project"] = "project";
|
1518
1525
|
ViewType["Projects"] = "projects";
|
1519
1526
|
ViewType["ProjectsAll"] = "projectsAll";
|
@@ -1531,7 +1538,6 @@
|
|
1531
1538
|
})(ViewType || (ViewType = {}));
|
1532
1539
|
var WorkflowTrigger;
|
1533
1540
|
(function (WorkflowTrigger) {
|
1534
|
-
WorkflowTrigger["Cron"] = "cron";
|
1535
1541
|
WorkflowTrigger["EntityCreated"] = "entityCreated";
|
1536
1542
|
WorkflowTrigger["EntityCreatedOrUpdated"] = "entityCreatedOrUpdated";
|
1537
1543
|
WorkflowTrigger["EntityRemoved"] = "entityRemoved";
|
@@ -1546,7 +1552,6 @@
|
|
1546
1552
|
var WorkflowType;
|
1547
1553
|
(function (WorkflowType) {
|
1548
1554
|
WorkflowType["Custom"] = "custom";
|
1549
|
-
WorkflowType["RecurringIssue"] = "recurringIssue";
|
1550
1555
|
WorkflowType["Sla"] = "sla";
|
1551
1556
|
})(WorkflowType || (WorkflowType = {}));
|
1552
1557
|
const EntityFragmentDoc = {
|
@@ -5744,6 +5749,7 @@
|
|
5744
5749
|
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
5745
5750
|
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
5746
5751
|
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
5752
|
+
{ kind: "Field", name: { kind: "Name", value: "sortOrder" } },
|
5747
5753
|
{ kind: "Field", name: { kind: "Name", value: "targetDate" } },
|
5748
5754
|
{
|
5749
5755
|
kind: "Field",
|
@@ -7268,6 +7274,82 @@
|
|
7268
7274
|
},
|
7269
7275
|
],
|
7270
7276
|
};
|
7277
|
+
const WorkflowCronJobDefinitionFragmentDoc = {
|
7278
|
+
kind: "Document",
|
7279
|
+
definitions: [
|
7280
|
+
{
|
7281
|
+
kind: "FragmentDefinition",
|
7282
|
+
name: { kind: "Name", value: "WorkflowCronJobDefinition" },
|
7283
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinition" } },
|
7284
|
+
selectionSet: {
|
7285
|
+
kind: "SelectionSet",
|
7286
|
+
selections: [
|
7287
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
7288
|
+
{ kind: "Field", name: { kind: "Name", value: "activities" } },
|
7289
|
+
{ kind: "Field", name: { kind: "Name", value: "schedule" } },
|
7290
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
7291
|
+
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
7292
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
7293
|
+
{ kind: "Field", name: { kind: "Name", value: "sortOrder" } },
|
7294
|
+
{
|
7295
|
+
kind: "Field",
|
7296
|
+
name: { kind: "Name", value: "team" },
|
7297
|
+
selectionSet: {
|
7298
|
+
kind: "SelectionSet",
|
7299
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
7300
|
+
},
|
7301
|
+
},
|
7302
|
+
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
7303
|
+
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
7304
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
7305
|
+
{
|
7306
|
+
kind: "Field",
|
7307
|
+
name: { kind: "Name", value: "creator" },
|
7308
|
+
selectionSet: {
|
7309
|
+
kind: "SelectionSet",
|
7310
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
7311
|
+
},
|
7312
|
+
},
|
7313
|
+
{ kind: "Field", name: { kind: "Name", value: "enabled" } },
|
7314
|
+
],
|
7315
|
+
},
|
7316
|
+
},
|
7317
|
+
],
|
7318
|
+
};
|
7319
|
+
const WorkflowCronJobDefinitionConnectionFragmentDoc = {
|
7320
|
+
kind: "Document",
|
7321
|
+
definitions: [
|
7322
|
+
{
|
7323
|
+
kind: "FragmentDefinition",
|
7324
|
+
name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" },
|
7325
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" } },
|
7326
|
+
selectionSet: {
|
7327
|
+
kind: "SelectionSet",
|
7328
|
+
selections: [
|
7329
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
7330
|
+
{
|
7331
|
+
kind: "Field",
|
7332
|
+
name: { kind: "Name", value: "nodes" },
|
7333
|
+
selectionSet: {
|
7334
|
+
kind: "SelectionSet",
|
7335
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "WorkflowCronJobDefinition" } }],
|
7336
|
+
},
|
7337
|
+
},
|
7338
|
+
{
|
7339
|
+
kind: "Field",
|
7340
|
+
name: { kind: "Name", value: "pageInfo" },
|
7341
|
+
selectionSet: {
|
7342
|
+
kind: "SelectionSet",
|
7343
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
|
7344
|
+
},
|
7345
|
+
},
|
7346
|
+
],
|
7347
|
+
},
|
7348
|
+
},
|
7349
|
+
...WorkflowCronJobDefinitionFragmentDoc.definitions,
|
7350
|
+
...PageInfoFragmentDoc.definitions,
|
7351
|
+
],
|
7352
|
+
};
|
7271
7353
|
const WorkflowDefinitionFragmentDoc = {
|
7272
7354
|
kind: "Document",
|
7273
7355
|
definitions: [
|
@@ -7280,7 +7362,6 @@
|
|
7280
7362
|
selections: [
|
7281
7363
|
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
7282
7364
|
{ kind: "Field", name: { kind: "Name", value: "activities" } },
|
7283
|
-
{ kind: "Field", name: { kind: "Name", value: "schedule" } },
|
7284
7365
|
{ kind: "Field", name: { kind: "Name", value: "conditions" } },
|
7285
7366
|
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
7286
7367
|
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
@@ -26537,6 +26618,7 @@
|
|
26537
26618
|
get ProjectUpdateHealthType () { return ProjectUpdateHealthType; },
|
26538
26619
|
get ProjectUpdateReminderFrequency () { return ProjectUpdateReminderFrequency; },
|
26539
26620
|
get PushSubscriptionType () { return PushSubscriptionType; },
|
26621
|
+
get ReleaseChannel () { return ReleaseChannel; },
|
26540
26622
|
get SlaStatus () { return SlaStatus; },
|
26541
26623
|
get UserFlagType () { return UserFlagType; },
|
26542
26624
|
get UserFlagUpdateOperation () { return UserFlagUpdateOperation; },
|
@@ -26723,6 +26805,8 @@
|
|
26723
26805
|
WebhookFragmentDoc: WebhookFragmentDoc,
|
26724
26806
|
WebhookConnectionFragmentDoc: WebhookConnectionFragmentDoc,
|
26725
26807
|
WebhookPayloadFragmentDoc: WebhookPayloadFragmentDoc,
|
26808
|
+
WorkflowCronJobDefinitionFragmentDoc: WorkflowCronJobDefinitionFragmentDoc,
|
26809
|
+
WorkflowCronJobDefinitionConnectionFragmentDoc: WorkflowCronJobDefinitionConnectionFragmentDoc,
|
26726
26810
|
WorkflowDefinitionFragmentDoc: WorkflowDefinitionFragmentDoc,
|
26727
26811
|
WorkflowDefinitionConnectionFragmentDoc: WorkflowDefinitionConnectionFragmentDoc,
|
26728
26812
|
WorkflowStateFragmentDoc: WorkflowStateFragmentDoc,
|
@@ -29975,6 +30059,7 @@
|
|
29975
30059
|
this.description = (_c = data.description) !== null && _c !== void 0 ? _c : undefined;
|
29976
30060
|
this.id = data.id;
|
29977
30061
|
this.name = data.name;
|
30062
|
+
this.sortOrder = data.sortOrder;
|
29978
30063
|
this.targetDate = (_d = data.targetDate) !== null && _d !== void 0 ? _d : undefined;
|
29979
30064
|
this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
|
29980
30065
|
this._project = data.project;
|
@@ -31482,6 +31567,50 @@
|
|
31482
31567
|
return new WebhookQuery(this._request).fetch(this._webhook.id);
|
31483
31568
|
}
|
31484
31569
|
}
|
31570
|
+
/**
|
31571
|
+
* WorkflowCronJobDefinition model
|
31572
|
+
*
|
31573
|
+
* @param request - function to call the graphql client
|
31574
|
+
* @param data - L.WorkflowCronJobDefinitionFragment response data
|
31575
|
+
*/
|
31576
|
+
class WorkflowCronJobDefinition extends Request {
|
31577
|
+
constructor(request, data) {
|
31578
|
+
var _a, _b, _c, _d, _e, _f;
|
31579
|
+
super(request);
|
31580
|
+
this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
|
31581
|
+
this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
|
31582
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
31583
|
+
this.description = (_d = data.description) !== null && _d !== void 0 ? _d : undefined;
|
31584
|
+
this.enabled = data.enabled;
|
31585
|
+
this.id = data.id;
|
31586
|
+
this.name = data.name;
|
31587
|
+
this.schedule = (_e = parseJson(data.schedule)) !== null && _e !== void 0 ? _e : {};
|
31588
|
+
this.sortOrder = data.sortOrder;
|
31589
|
+
this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
|
31590
|
+
this._creator = data.creator;
|
31591
|
+
this._team = data.team;
|
31592
|
+
}
|
31593
|
+
/** The user who created the workflow cron job. */
|
31594
|
+
get creator() {
|
31595
|
+
return new UserQuery(this._request).fetch(this._creator.id);
|
31596
|
+
}
|
31597
|
+
/** The team associated with the workflow cron job. */
|
31598
|
+
get team() {
|
31599
|
+
return new TeamQuery(this._request).fetch(this._team.id);
|
31600
|
+
}
|
31601
|
+
}
|
31602
|
+
/**
|
31603
|
+
* WorkflowCronJobDefinitionConnection model
|
31604
|
+
*
|
31605
|
+
* @param request - function to call the graphql client
|
31606
|
+
* @param fetch - function to trigger a refetch of this WorkflowCronJobDefinitionConnection model
|
31607
|
+
* @param data - WorkflowCronJobDefinitionConnection response data
|
31608
|
+
*/
|
31609
|
+
class WorkflowCronJobDefinitionConnection extends Connection {
|
31610
|
+
constructor(request, fetch, data) {
|
31611
|
+
super(request, fetch, data.nodes.map(node => new WorkflowCronJobDefinition(request, node)), new PageInfo(request, data.pageInfo));
|
31612
|
+
}
|
31613
|
+
}
|
31485
31614
|
/**
|
31486
31615
|
* WorkflowDefinition model
|
31487
31616
|
*
|
@@ -31490,7 +31619,7 @@
|
|
31490
31619
|
*/
|
31491
31620
|
class WorkflowDefinition extends Request {
|
31492
31621
|
constructor(request, data) {
|
31493
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
31622
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
31494
31623
|
super(request);
|
31495
31624
|
this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
|
31496
31625
|
this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
|
@@ -31501,11 +31630,10 @@
|
|
31501
31630
|
this.groupName = (_f = data.groupName) !== null && _f !== void 0 ? _f : undefined;
|
31502
31631
|
this.id = data.id;
|
31503
31632
|
this.name = data.name;
|
31504
|
-
this.schedule = (_g = parseJson(data.schedule)) !== null && _g !== void 0 ? _g : {};
|
31505
31633
|
this.sortOrder = data.sortOrder;
|
31506
|
-
this.updatedAt = (
|
31634
|
+
this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
|
31507
31635
|
this._creator = data.creator;
|
31508
|
-
this._team = (
|
31636
|
+
this._team = (_h = data.team) !== null && _h !== void 0 ? _h : undefined;
|
31509
31637
|
}
|
31510
31638
|
/** The user who created the workflow. */
|
31511
31639
|
get creator() {
|
@@ -42321,6 +42449,8 @@
|
|
42321
42449
|
exports.WebhookPayload = WebhookPayload;
|
42322
42450
|
exports.WebhookQuery = WebhookQuery;
|
42323
42451
|
exports.WebhooksQuery = WebhooksQuery;
|
42452
|
+
exports.WorkflowCronJobDefinition = WorkflowCronJobDefinition;
|
42453
|
+
exports.WorkflowCronJobDefinitionConnection = WorkflowCronJobDefinitionConnection;
|
42324
42454
|
exports.WorkflowDefinition = WorkflowDefinition;
|
42325
42455
|
exports.WorkflowDefinitionConnection = WorkflowDefinitionConnection;
|
42326
42456
|
exports.WorkflowState = WorkflowState;
|