@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/dist/index-cjs.js CHANGED
@@ -83461,6 +83461,14 @@ var PushSubscriptionType;
83461
83461
  PushSubscriptionType["Apple"] = "apple";
83462
83462
  PushSubscriptionType["Web"] = "web";
83463
83463
  })(PushSubscriptionType || (PushSubscriptionType = {}));
83464
+ /** Features release channel */
83465
+ var ReleaseChannel;
83466
+ (function (ReleaseChannel) {
83467
+ ReleaseChannel["Beta"] = "beta";
83468
+ ReleaseChannel["Internal"] = "internal";
83469
+ ReleaseChannel["PreRelease"] = "preRelease";
83470
+ ReleaseChannel["Public"] = "public";
83471
+ })(ReleaseChannel || (ReleaseChannel = {}));
83464
83472
  var SlaStatus;
83465
83473
  (function (SlaStatus) {
83466
83474
  SlaStatus["Breached"] = "Breached";
@@ -83541,7 +83549,6 @@ var ViewType;
83541
83549
  ViewType["MyIssuesActivity"] = "myIssuesActivity";
83542
83550
  ViewType["MyIssuesCreatedByMe"] = "myIssuesCreatedByMe";
83543
83551
  ViewType["MyIssuesSubscribedTo"] = "myIssuesSubscribedTo";
83544
- ViewType["MyIssuesTouchedByMe"] = "myIssuesTouchedByMe";
83545
83552
  ViewType["Project"] = "project";
83546
83553
  ViewType["Projects"] = "projects";
83547
83554
  ViewType["ProjectsAll"] = "projectsAll";
@@ -83559,7 +83566,6 @@ var ViewType;
83559
83566
  })(ViewType || (ViewType = {}));
83560
83567
  var WorkflowTrigger;
83561
83568
  (function (WorkflowTrigger) {
83562
- WorkflowTrigger["Cron"] = "cron";
83563
83569
  WorkflowTrigger["EntityCreated"] = "entityCreated";
83564
83570
  WorkflowTrigger["EntityCreatedOrUpdated"] = "entityCreatedOrUpdated";
83565
83571
  WorkflowTrigger["EntityRemoved"] = "entityRemoved";
@@ -83574,7 +83580,6 @@ var WorkflowTriggerType;
83574
83580
  var WorkflowType;
83575
83581
  (function (WorkflowType) {
83576
83582
  WorkflowType["Custom"] = "custom";
83577
- WorkflowType["RecurringIssue"] = "recurringIssue";
83578
83583
  WorkflowType["Sla"] = "sla";
83579
83584
  })(WorkflowType || (WorkflowType = {}));
83580
83585
  const EntityFragmentDoc = {
@@ -87772,6 +87777,7 @@ const ProjectMilestoneFragmentDoc = {
87772
87777
  { kind: "Field", name: { kind: "Name", value: "description" } },
87773
87778
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
87774
87779
  { kind: "Field", name: { kind: "Name", value: "name" } },
87780
+ { kind: "Field", name: { kind: "Name", value: "sortOrder" } },
87775
87781
  { kind: "Field", name: { kind: "Name", value: "targetDate" } },
87776
87782
  {
87777
87783
  kind: "Field",
@@ -89296,6 +89302,82 @@ const WebhookPayloadFragmentDoc = {
89296
89302
  },
89297
89303
  ],
89298
89304
  };
89305
+ const WorkflowCronJobDefinitionFragmentDoc = {
89306
+ kind: "Document",
89307
+ definitions: [
89308
+ {
89309
+ kind: "FragmentDefinition",
89310
+ name: { kind: "Name", value: "WorkflowCronJobDefinition" },
89311
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinition" } },
89312
+ selectionSet: {
89313
+ kind: "SelectionSet",
89314
+ selections: [
89315
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
89316
+ { kind: "Field", name: { kind: "Name", value: "activities" } },
89317
+ { kind: "Field", name: { kind: "Name", value: "schedule" } },
89318
+ { kind: "Field", name: { kind: "Name", value: "description" } },
89319
+ { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
89320
+ { kind: "Field", name: { kind: "Name", value: "name" } },
89321
+ { kind: "Field", name: { kind: "Name", value: "sortOrder" } },
89322
+ {
89323
+ kind: "Field",
89324
+ name: { kind: "Name", value: "team" },
89325
+ selectionSet: {
89326
+ kind: "SelectionSet",
89327
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
89328
+ },
89329
+ },
89330
+ { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
89331
+ { kind: "Field", name: { kind: "Name", value: "createdAt" } },
89332
+ { kind: "Field", name: { kind: "Name", value: "id" } },
89333
+ {
89334
+ kind: "Field",
89335
+ name: { kind: "Name", value: "creator" },
89336
+ selectionSet: {
89337
+ kind: "SelectionSet",
89338
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
89339
+ },
89340
+ },
89341
+ { kind: "Field", name: { kind: "Name", value: "enabled" } },
89342
+ ],
89343
+ },
89344
+ },
89345
+ ],
89346
+ };
89347
+ const WorkflowCronJobDefinitionConnectionFragmentDoc = {
89348
+ kind: "Document",
89349
+ definitions: [
89350
+ {
89351
+ kind: "FragmentDefinition",
89352
+ name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" },
89353
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "WorkflowCronJobDefinitionConnection" } },
89354
+ selectionSet: {
89355
+ kind: "SelectionSet",
89356
+ selections: [
89357
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
89358
+ {
89359
+ kind: "Field",
89360
+ name: { kind: "Name", value: "nodes" },
89361
+ selectionSet: {
89362
+ kind: "SelectionSet",
89363
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "WorkflowCronJobDefinition" } }],
89364
+ },
89365
+ },
89366
+ {
89367
+ kind: "Field",
89368
+ name: { kind: "Name", value: "pageInfo" },
89369
+ selectionSet: {
89370
+ kind: "SelectionSet",
89371
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
89372
+ },
89373
+ },
89374
+ ],
89375
+ },
89376
+ },
89377
+ ...WorkflowCronJobDefinitionFragmentDoc.definitions,
89378
+ ...PageInfoFragmentDoc.definitions,
89379
+ ],
89380
+ };
89299
89381
  const WorkflowDefinitionFragmentDoc = {
89300
89382
  kind: "Document",
89301
89383
  definitions: [
@@ -89308,7 +89390,6 @@ const WorkflowDefinitionFragmentDoc = {
89308
89390
  selections: [
89309
89391
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
89310
89392
  { kind: "Field", name: { kind: "Name", value: "activities" } },
89311
- { kind: "Field", name: { kind: "Name", value: "schedule" } },
89312
89393
  { kind: "Field", name: { kind: "Name", value: "conditions" } },
89313
89394
  { kind: "Field", name: { kind: "Name", value: "description" } },
89314
89395
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
@@ -108565,6 +108646,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108565
108646
  get ProjectUpdateHealthType () { return ProjectUpdateHealthType; },
108566
108647
  get ProjectUpdateReminderFrequency () { return ProjectUpdateReminderFrequency; },
108567
108648
  get PushSubscriptionType () { return PushSubscriptionType; },
108649
+ get ReleaseChannel () { return ReleaseChannel; },
108568
108650
  get SlaStatus () { return SlaStatus; },
108569
108651
  get UserFlagType () { return UserFlagType; },
108570
108652
  get UserFlagUpdateOperation () { return UserFlagUpdateOperation; },
@@ -108751,6 +108833,8 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108751
108833
  WebhookFragmentDoc: WebhookFragmentDoc,
108752
108834
  WebhookConnectionFragmentDoc: WebhookConnectionFragmentDoc,
108753
108835
  WebhookPayloadFragmentDoc: WebhookPayloadFragmentDoc,
108836
+ WorkflowCronJobDefinitionFragmentDoc: WorkflowCronJobDefinitionFragmentDoc,
108837
+ WorkflowCronJobDefinitionConnectionFragmentDoc: WorkflowCronJobDefinitionConnectionFragmentDoc,
108754
108838
  WorkflowDefinitionFragmentDoc: WorkflowDefinitionFragmentDoc,
108755
108839
  WorkflowDefinitionConnectionFragmentDoc: WorkflowDefinitionConnectionFragmentDoc,
108756
108840
  WorkflowStateFragmentDoc: WorkflowStateFragmentDoc,
@@ -112003,6 +112087,7 @@ class ProjectMilestone extends Request {
112003
112087
  this.description = (_c = data.description) !== null && _c !== void 0 ? _c : undefined;
112004
112088
  this.id = data.id;
112005
112089
  this.name = data.name;
112090
+ this.sortOrder = data.sortOrder;
112006
112091
  this.targetDate = (_d = data.targetDate) !== null && _d !== void 0 ? _d : undefined;
112007
112092
  this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
112008
112093
  this._project = data.project;
@@ -113510,6 +113595,50 @@ class WebhookPayload extends Request {
113510
113595
  return new WebhookQuery(this._request).fetch(this._webhook.id);
113511
113596
  }
113512
113597
  }
113598
+ /**
113599
+ * WorkflowCronJobDefinition model
113600
+ *
113601
+ * @param request - function to call the graphql client
113602
+ * @param data - L.WorkflowCronJobDefinitionFragment response data
113603
+ */
113604
+ class WorkflowCronJobDefinition extends Request {
113605
+ constructor(request, data) {
113606
+ var _a, _b, _c, _d, _e, _f;
113607
+ super(request);
113608
+ this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
113609
+ this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
113610
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
113611
+ this.description = (_d = data.description) !== null && _d !== void 0 ? _d : undefined;
113612
+ this.enabled = data.enabled;
113613
+ this.id = data.id;
113614
+ this.name = data.name;
113615
+ this.schedule = (_e = parseJson(data.schedule)) !== null && _e !== void 0 ? _e : {};
113616
+ this.sortOrder = data.sortOrder;
113617
+ this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
113618
+ this._creator = data.creator;
113619
+ this._team = data.team;
113620
+ }
113621
+ /** The user who created the workflow cron job. */
113622
+ get creator() {
113623
+ return new UserQuery(this._request).fetch(this._creator.id);
113624
+ }
113625
+ /** The team associated with the workflow cron job. */
113626
+ get team() {
113627
+ return new TeamQuery(this._request).fetch(this._team.id);
113628
+ }
113629
+ }
113630
+ /**
113631
+ * WorkflowCronJobDefinitionConnection model
113632
+ *
113633
+ * @param request - function to call the graphql client
113634
+ * @param fetch - function to trigger a refetch of this WorkflowCronJobDefinitionConnection model
113635
+ * @param data - WorkflowCronJobDefinitionConnection response data
113636
+ */
113637
+ class WorkflowCronJobDefinitionConnection extends Connection {
113638
+ constructor(request, fetch, data) {
113639
+ super(request, fetch, data.nodes.map(node => new WorkflowCronJobDefinition(request, node)), new PageInfo(request, data.pageInfo));
113640
+ }
113641
+ }
113513
113642
  /**
113514
113643
  * WorkflowDefinition model
113515
113644
  *
@@ -113518,7 +113647,7 @@ class WebhookPayload extends Request {
113518
113647
  */
113519
113648
  class WorkflowDefinition extends Request {
113520
113649
  constructor(request, data) {
113521
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
113650
+ var _a, _b, _c, _d, _e, _f, _g, _h;
113522
113651
  super(request);
113523
113652
  this.activities = (_a = parseJson(data.activities)) !== null && _a !== void 0 ? _a : {};
113524
113653
  this.archivedAt = (_b = parseDate(data.archivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -113529,11 +113658,10 @@ class WorkflowDefinition extends Request {
113529
113658
  this.groupName = (_f = data.groupName) !== null && _f !== void 0 ? _f : undefined;
113530
113659
  this.id = data.id;
113531
113660
  this.name = data.name;
113532
- this.schedule = (_g = parseJson(data.schedule)) !== null && _g !== void 0 ? _g : {};
113533
113661
  this.sortOrder = data.sortOrder;
113534
- this.updatedAt = (_h = parseDate(data.updatedAt)) !== null && _h !== void 0 ? _h : new Date();
113662
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
113535
113663
  this._creator = data.creator;
113536
- this._team = (_j = data.team) !== null && _j !== void 0 ? _j : undefined;
113664
+ this._team = (_h = data.team) !== null && _h !== void 0 ? _h : undefined;
113537
113665
  }
113538
113666
  /** The user who created the workflow. */
113539
113667
  get creator() {
@@ -124349,6 +124477,8 @@ exports.WebhookConnection = WebhookConnection;
124349
124477
  exports.WebhookPayload = WebhookPayload;
124350
124478
  exports.WebhookQuery = WebhookQuery;
124351
124479
  exports.WebhooksQuery = WebhooksQuery;
124480
+ exports.WorkflowCronJobDefinition = WorkflowCronJobDefinition;
124481
+ exports.WorkflowCronJobDefinitionConnection = WorkflowCronJobDefinitionConnection;
124352
124482
  exports.WorkflowDefinition = WorkflowDefinition;
124353
124483
  exports.WorkflowDefinitionConnection = WorkflowDefinitionConnection;
124354
124484
  exports.WorkflowState = WorkflowState;