@cesar-richard/git-connector-sdk 1.16.0 → 1.18.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +459 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -92,8 +92,95 @@ export interface components {
92
92
  updatedAt: string;
93
93
  mergedAt: string | null;
94
94
  reviewRequestedAt: string | null;
95
+ volume: {
96
+ additions: string | number;
97
+ deletions: string | number;
98
+ changedFiles: string | number;
99
+ commits: string | number;
100
+ } | null;
101
+ statusHistory: {
102
+ label: {
103
+ name: string;
104
+ color: string | null;
105
+ };
106
+ action: "added" | "removed";
107
+ changedAt: string;
108
+ changedBy: string | null;
109
+ }[];
110
+ reviews: {
111
+ approvedCount: string | number;
112
+ changesRequestedCount: string | number;
113
+ commentedCount: string | number;
114
+ dismissedCount: string | number;
115
+ entries: {
116
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
117
+ reviewer: string;
118
+ submittedAt: string;
119
+ url: string | null;
120
+ }[];
121
+ };
122
+ unresolvedThreads: {
123
+ count: string | number;
124
+ digest: {
125
+ id: string;
126
+ firstNoteAuthor: string | null;
127
+ firstNoteBody: string;
128
+ firstNoteCreatedAt: string;
129
+ url: string | null;
130
+ }[];
131
+ } | null;
95
132
  };
96
133
  Provider: "github" | "gitlab";
134
+ Review: {
135
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
136
+ reviewer: string;
137
+ submittedAt: string;
138
+ url: string | null;
139
+ };
140
+ ReviewsSummary: {
141
+ approvedCount: string | number;
142
+ changesRequestedCount: string | number;
143
+ commentedCount: string | number;
144
+ dismissedCount: string | number;
145
+ entries: {
146
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
147
+ reviewer: string;
148
+ submittedAt: string;
149
+ url: string | null;
150
+ }[];
151
+ };
152
+ StatusEvent: {
153
+ label: {
154
+ name: string;
155
+ color: string | null;
156
+ };
157
+ action: "added" | "removed";
158
+ changedAt: string;
159
+ changedBy: string | null;
160
+ };
161
+ ThreadDigest: {
162
+ id: string;
163
+ firstNoteAuthor: string | null;
164
+ firstNoteBody: string;
165
+ firstNoteCreatedAt: string;
166
+ url: string | null;
167
+ };
168
+ UnresolvedThreads: {
169
+ count: string | number;
170
+ digest: {
171
+ id: string;
172
+ firstNoteAuthor: string | null;
173
+ firstNoteBody: string;
174
+ firstNoteCreatedAt: string;
175
+ url: string | null;
176
+ }[];
177
+ };
178
+ Volume: {
179
+ additions: string | number;
180
+ deletions: string | number;
181
+ changedFiles: string | number;
182
+ commits: string | number;
183
+ };
97
184
  WorkItem: {
98
185
  id: string;
99
186
  source: "github" | "gitlab";
@@ -132,6 +219,52 @@ export interface components {
132
219
  updatedAt: string;
133
220
  mergedAt: string | null;
134
221
  reviewRequestedAt: string | null;
222
+ volume: {
223
+ additions: string | number;
224
+ deletions: string | number;
225
+ changedFiles: string | number;
226
+ commits: string | number;
227
+ } | null;
228
+ statusHistory: {
229
+ label: {
230
+ name: string;
231
+ color: string | null;
232
+ };
233
+ action: "added" | "removed";
234
+ changedAt: string;
235
+ changedBy: string | null;
236
+ }[];
237
+ reviews: {
238
+ approvedCount: string | number;
239
+ changesRequestedCount: string | number;
240
+ commentedCount: string | number;
241
+ dismissedCount: string | number;
242
+ entries: {
243
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
244
+ reviewer: string;
245
+ submittedAt: string;
246
+ url: string | null;
247
+ }[];
248
+ };
249
+ unresolvedThreads: {
250
+ count: string | number;
251
+ digest: {
252
+ id: string;
253
+ firstNoteAuthor: string | null;
254
+ firstNoteBody: string;
255
+ firstNoteCreatedAt: string;
256
+ url: string | null;
257
+ }[];
258
+ } | null;
259
+ }[];
260
+ statusHistory: {
261
+ label: {
262
+ name: string;
263
+ color: string | null;
264
+ };
265
+ action: "added" | "removed";
266
+ changedAt: string;
267
+ changedBy: string | null;
135
268
  }[];
136
269
  };
137
270
  WorkItemListResponse: {
@@ -173,6 +306,52 @@ export interface components {
173
306
  updatedAt: string;
174
307
  mergedAt: string | null;
175
308
  reviewRequestedAt: string | null;
309
+ volume: {
310
+ additions: string | number;
311
+ deletions: string | number;
312
+ changedFiles: string | number;
313
+ commits: string | number;
314
+ } | null;
315
+ statusHistory: {
316
+ label: {
317
+ name: string;
318
+ color: string | null;
319
+ };
320
+ action: "added" | "removed";
321
+ changedAt: string;
322
+ changedBy: string | null;
323
+ }[];
324
+ reviews: {
325
+ approvedCount: string | number;
326
+ changesRequestedCount: string | number;
327
+ commentedCount: string | number;
328
+ dismissedCount: string | number;
329
+ entries: {
330
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
331
+ reviewer: string;
332
+ submittedAt: string;
333
+ url: string | null;
334
+ }[];
335
+ };
336
+ unresolvedThreads: {
337
+ count: string | number;
338
+ digest: {
339
+ id: string;
340
+ firstNoteAuthor: string | null;
341
+ firstNoteBody: string;
342
+ firstNoteCreatedAt: string;
343
+ url: string | null;
344
+ }[];
345
+ } | null;
346
+ }[];
347
+ statusHistory: {
348
+ label: {
349
+ name: string;
350
+ color: string | null;
351
+ };
352
+ action: "added" | "removed";
353
+ changedAt: string;
354
+ changedBy: string | null;
176
355
  }[];
177
356
  }[];
178
357
  total: string | number;
@@ -202,6 +381,10 @@ export interface operations {
202
381
  limit?: string;
203
382
  updatedSince?: string;
204
383
  updatedBefore?: string;
384
+ /** @description If 'true', returns only work items where AT LEAST ONE linked open PR/MR has reviews.approvedCount === 0. Useful for dashboards showing pending review work. */
385
+ withoutApproval?: string;
386
+ /** @description Returns only work items where AT LEAST ONE linked PR/MR has been reviewed by the given username (case-insensitive, any state). */
387
+ reviewerIs?: string;
205
388
  };
206
389
  header?: never;
207
390
  path?: never;
@@ -253,6 +436,52 @@ export interface operations {
253
436
  updatedAt: string;
254
437
  mergedAt: string | null;
255
438
  reviewRequestedAt: string | null;
439
+ volume: {
440
+ additions: string | number;
441
+ deletions: string | number;
442
+ changedFiles: string | number;
443
+ commits: string | number;
444
+ } | null;
445
+ statusHistory: {
446
+ label: {
447
+ name: string;
448
+ color: string | null;
449
+ };
450
+ action: "added" | "removed";
451
+ changedAt: string;
452
+ changedBy: string | null;
453
+ }[];
454
+ reviews: {
455
+ approvedCount: string | number;
456
+ changesRequestedCount: string | number;
457
+ commentedCount: string | number;
458
+ dismissedCount: string | number;
459
+ entries: {
460
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
461
+ reviewer: string;
462
+ submittedAt: string;
463
+ url: string | null;
464
+ }[];
465
+ };
466
+ unresolvedThreads: {
467
+ count: string | number;
468
+ digest: {
469
+ id: string;
470
+ firstNoteAuthor: string | null;
471
+ firstNoteBody: string;
472
+ firstNoteCreatedAt: string;
473
+ url: string | null;
474
+ }[];
475
+ } | null;
476
+ }[];
477
+ statusHistory: {
478
+ label: {
479
+ name: string;
480
+ color: string | null;
481
+ };
482
+ action: "added" | "removed";
483
+ changedAt: string;
484
+ changedBy: string | null;
256
485
  }[];
257
486
  }[];
258
487
  total: string | number;
@@ -297,6 +526,52 @@ export interface operations {
297
526
  updatedAt: string;
298
527
  mergedAt: string | null;
299
528
  reviewRequestedAt: string | null;
529
+ volume: {
530
+ additions: string | number;
531
+ deletions: string | number;
532
+ changedFiles: string | number;
533
+ commits: string | number;
534
+ } | null;
535
+ statusHistory: {
536
+ label: {
537
+ name: string;
538
+ color: string | null;
539
+ };
540
+ action: "added" | "removed";
541
+ changedAt: string;
542
+ changedBy: string | null;
543
+ }[];
544
+ reviews: {
545
+ approvedCount: string | number;
546
+ changesRequestedCount: string | number;
547
+ commentedCount: string | number;
548
+ dismissedCount: string | number;
549
+ entries: {
550
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
551
+ reviewer: string;
552
+ submittedAt: string;
553
+ url: string | null;
554
+ }[];
555
+ };
556
+ unresolvedThreads: {
557
+ count: string | number;
558
+ digest: {
559
+ id: string;
560
+ firstNoteAuthor: string | null;
561
+ firstNoteBody: string;
562
+ firstNoteCreatedAt: string;
563
+ url: string | null;
564
+ }[];
565
+ } | null;
566
+ }[];
567
+ statusHistory: {
568
+ label: {
569
+ name: string;
570
+ color: string | null;
571
+ };
572
+ action: "added" | "removed";
573
+ changedAt: string;
574
+ changedBy: string | null;
300
575
  }[];
301
576
  }[];
302
577
  total: string | number;
@@ -341,6 +616,52 @@ export interface operations {
341
616
  updatedAt: string;
342
617
  mergedAt: string | null;
343
618
  reviewRequestedAt: string | null;
619
+ volume: {
620
+ additions: string | number;
621
+ deletions: string | number;
622
+ changedFiles: string | number;
623
+ commits: string | number;
624
+ } | null;
625
+ statusHistory: {
626
+ label: {
627
+ name: string;
628
+ color: string | null;
629
+ };
630
+ action: "added" | "removed";
631
+ changedAt: string;
632
+ changedBy: string | null;
633
+ }[];
634
+ reviews: {
635
+ approvedCount: string | number;
636
+ changesRequestedCount: string | number;
637
+ commentedCount: string | number;
638
+ dismissedCount: string | number;
639
+ entries: {
640
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
641
+ reviewer: string;
642
+ submittedAt: string;
643
+ url: string | null;
644
+ }[];
645
+ };
646
+ unresolvedThreads: {
647
+ count: string | number;
648
+ digest: {
649
+ id: string;
650
+ firstNoteAuthor: string | null;
651
+ firstNoteBody: string;
652
+ firstNoteCreatedAt: string;
653
+ url: string | null;
654
+ }[];
655
+ } | null;
656
+ }[];
657
+ statusHistory: {
658
+ label: {
659
+ name: string;
660
+ color: string | null;
661
+ };
662
+ action: "added" | "removed";
663
+ changedAt: string;
664
+ changedBy: string | null;
344
665
  }[];
345
666
  }[];
346
667
  total: string | number;
@@ -406,6 +727,52 @@ export interface operations {
406
727
  updatedAt: string;
407
728
  mergedAt: string | null;
408
729
  reviewRequestedAt: string | null;
730
+ volume: {
731
+ additions: string | number;
732
+ deletions: string | number;
733
+ changedFiles: string | number;
734
+ commits: string | number;
735
+ } | null;
736
+ statusHistory: {
737
+ label: {
738
+ name: string;
739
+ color: string | null;
740
+ };
741
+ action: "added" | "removed";
742
+ changedAt: string;
743
+ changedBy: string | null;
744
+ }[];
745
+ reviews: {
746
+ approvedCount: string | number;
747
+ changesRequestedCount: string | number;
748
+ commentedCount: string | number;
749
+ dismissedCount: string | number;
750
+ entries: {
751
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
752
+ reviewer: string;
753
+ submittedAt: string;
754
+ url: string | null;
755
+ }[];
756
+ };
757
+ unresolvedThreads: {
758
+ count: string | number;
759
+ digest: {
760
+ id: string;
761
+ firstNoteAuthor: string | null;
762
+ firstNoteBody: string;
763
+ firstNoteCreatedAt: string;
764
+ url: string | null;
765
+ }[];
766
+ } | null;
767
+ }[];
768
+ statusHistory: {
769
+ label: {
770
+ name: string;
771
+ color: string | null;
772
+ };
773
+ action: "added" | "removed";
774
+ changedAt: string;
775
+ changedBy: string | null;
409
776
  }[];
410
777
  };
411
778
  "multipart/form-data": {
@@ -446,6 +813,52 @@ export interface operations {
446
813
  updatedAt: string;
447
814
  mergedAt: string | null;
448
815
  reviewRequestedAt: string | null;
816
+ volume: {
817
+ additions: string | number;
818
+ deletions: string | number;
819
+ changedFiles: string | number;
820
+ commits: string | number;
821
+ } | null;
822
+ statusHistory: {
823
+ label: {
824
+ name: string;
825
+ color: string | null;
826
+ };
827
+ action: "added" | "removed";
828
+ changedAt: string;
829
+ changedBy: string | null;
830
+ }[];
831
+ reviews: {
832
+ approvedCount: string | number;
833
+ changesRequestedCount: string | number;
834
+ commentedCount: string | number;
835
+ dismissedCount: string | number;
836
+ entries: {
837
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
838
+ reviewer: string;
839
+ submittedAt: string;
840
+ url: string | null;
841
+ }[];
842
+ };
843
+ unresolvedThreads: {
844
+ count: string | number;
845
+ digest: {
846
+ id: string;
847
+ firstNoteAuthor: string | null;
848
+ firstNoteBody: string;
849
+ firstNoteCreatedAt: string;
850
+ url: string | null;
851
+ }[];
852
+ } | null;
853
+ }[];
854
+ statusHistory: {
855
+ label: {
856
+ name: string;
857
+ color: string | null;
858
+ };
859
+ action: "added" | "removed";
860
+ changedAt: string;
861
+ changedBy: string | null;
449
862
  }[];
450
863
  };
451
864
  "text/plain": {
@@ -486,6 +899,52 @@ export interface operations {
486
899
  updatedAt: string;
487
900
  mergedAt: string | null;
488
901
  reviewRequestedAt: string | null;
902
+ volume: {
903
+ additions: string | number;
904
+ deletions: string | number;
905
+ changedFiles: string | number;
906
+ commits: string | number;
907
+ } | null;
908
+ statusHistory: {
909
+ label: {
910
+ name: string;
911
+ color: string | null;
912
+ };
913
+ action: "added" | "removed";
914
+ changedAt: string;
915
+ changedBy: string | null;
916
+ }[];
917
+ reviews: {
918
+ approvedCount: string | number;
919
+ changesRequestedCount: string | number;
920
+ commentedCount: string | number;
921
+ dismissedCount: string | number;
922
+ entries: {
923
+ state: "approved" | "changes_requested" | "commented" | "dismissed";
924
+ reviewer: string;
925
+ submittedAt: string;
926
+ url: string | null;
927
+ }[];
928
+ };
929
+ unresolvedThreads: {
930
+ count: string | number;
931
+ digest: {
932
+ id: string;
933
+ firstNoteAuthor: string | null;
934
+ firstNoteBody: string;
935
+ firstNoteCreatedAt: string;
936
+ url: string | null;
937
+ }[];
938
+ } | null;
939
+ }[];
940
+ statusHistory: {
941
+ label: {
942
+ name: string;
943
+ color: string | null;
944
+ };
945
+ action: "added" | "removed";
946
+ changedAt: string;
947
+ changedBy: string | null;
489
948
  }[];
490
949
  };
491
950
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesar-richard/git-connector-sdk",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "description": "TypeScript SDK for the git-connector v1 API (work items + iterations aggregated from GitHub/GitLab). Version published on npm tracks server releases.",
5
5
  "license": "MIT",
6
6
  "repository": {