@cesar-richard/git-connector-sdk 2.5.0 → 2.6.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 +892 -27
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -266,6 +266,35 @@ export interface components {
266
266
  provider: "github" | "gitlab";
267
267
  login: string;
268
268
  };
269
+ CiPipelineEventMeta: {
270
+ runId?: (string | number) | null;
271
+ sha?: string | null;
272
+ branch?: string | null;
273
+ status?: string | null;
274
+ conclusion?: string | null;
275
+ startedAt?: string | null;
276
+ completedAt?: string | null;
277
+ durationSec?: number | null;
278
+ } & {
279
+ [key: string]: unknown;
280
+ };
281
+ CiRunEventMeta: {
282
+ runId?: (string | number) | null;
283
+ workflowName?: string | null;
284
+ jobName?: string | null;
285
+ conclusion?: string | null;
286
+ status?: string | null;
287
+ startedAt?: string | null;
288
+ completedAt?: string | null;
289
+ durationSec?: number | null;
290
+ runnerOs?: string | null;
291
+ runnerName?: string | null;
292
+ sha?: string | null;
293
+ branch?: string | null;
294
+ attempts?: (string | number) | null;
295
+ } & {
296
+ [key: string]: unknown;
297
+ };
269
298
  Comment: {
270
299
  id: string;
271
300
  source: "github" | "gitlab";
@@ -276,6 +305,19 @@ export interface components {
276
305
  parentType: "issue" | "pr" | "mr";
277
306
  parentNumber: string | number;
278
307
  };
308
+ CommentEventMeta: {
309
+ body?: string;
310
+ /** @constant */
311
+ commentKind?: "commit";
312
+ } & {
313
+ [key: string]: unknown;
314
+ };
315
+ CommitEventMeta: {
316
+ fullMessage?: string;
317
+ commitAuthorName?: string | null;
318
+ } & {
319
+ [key: string]: unknown;
320
+ };
279
321
  DeliverableAttribution: {
280
322
  isAssignee: boolean;
281
323
  hasOwnCommit: boolean;
@@ -728,10 +770,68 @@ export interface components {
728
770
  error: string;
729
771
  };
730
772
  EventsListResponse: {
731
- events: {
773
+ events: ({
774
+ id: string;
775
+ source: "github" | "gitlab";
776
+ repo: string;
777
+ externalId: string;
778
+ day: string;
779
+ occurredAt: string;
780
+ author: string | null;
781
+ title: string;
782
+ url: string | null;
783
+ state: string | null;
784
+ parentActivityId: string | null;
785
+ authorResolved?: {
786
+ login: string | null;
787
+ name: string | null;
788
+ email: string | null;
789
+ };
790
+ authorIdentity?: {
791
+ id: string | number;
792
+ displayName: string;
793
+ } | null;
794
+ /** @constant */
795
+ type: "commit";
796
+ meta: ({
797
+ fullMessage?: string;
798
+ commitAuthorName?: string | null;
799
+ } & {
800
+ [key: string]: unknown;
801
+ }) | null;
802
+ } | {
803
+ id: string;
804
+ source: "github" | "gitlab";
805
+ repo: string;
806
+ externalId: string;
807
+ day: string;
808
+ occurredAt: string;
809
+ author: string | null;
810
+ title: string;
811
+ url: string | null;
812
+ state: string | null;
813
+ parentActivityId: string | null;
814
+ authorResolved?: {
815
+ login: string | null;
816
+ name: string | null;
817
+ email: string | null;
818
+ };
819
+ authorIdentity?: {
820
+ id: string | number;
821
+ displayName: string;
822
+ } | null;
823
+ /** @constant */
824
+ type: "comment";
825
+ meta: ({
826
+ body?: string;
827
+ /** @constant */
828
+ commentKind?: "commit";
829
+ } & {
830
+ [key: string]: unknown;
831
+ }) | null;
832
+ } | {
732
833
  id: string;
733
834
  source: "github" | "gitlab";
734
- type: "commit" | "comment" | "review" | "state-transition" | "ci-run" | "ci-pipeline";
735
835
  repo: string;
736
836
  externalId: string;
737
837
  day: string;
@@ -741,9 +841,100 @@ export interface components {
741
841
  url: string | null;
742
842
  state: string | null;
743
843
  parentActivityId: string | null;
844
+ authorResolved?: {
845
+ login: string | null;
846
+ name: string | null;
847
+ email: string | null;
848
+ };
849
+ authorIdentity?: {
850
+ id: string | number;
851
+ displayName: string;
852
+ } | null;
853
+ /** @constant */
854
+ type: "review";
744
855
  meta: {
745
856
  [key: string]: unknown;
746
857
  } | null;
858
+ } | {
859
+ id: string;
860
+ source: "github" | "gitlab";
861
+ repo: string;
862
+ externalId: string;
863
+ day: string;
864
+ occurredAt: string;
865
+ author: string | null;
866
+ title: string;
867
+ url: string | null;
868
+ state: string | null;
869
+ parentActivityId: string | null;
870
+ authorResolved?: {
871
+ login: string | null;
872
+ name: string | null;
873
+ email: string | null;
874
+ };
875
+ authorIdentity?: {
876
+ id: string | number;
877
+ displayName: string;
878
+ } | null;
879
+ /** @constant */
880
+ type: "state-transition";
881
+ meta: ({
882
+ prevState?: string | null;
883
+ } & {
884
+ [key: string]: unknown;
885
+ }) | null;
886
+ } | {
887
+ id: string;
888
+ source: "github" | "gitlab";
889
+ repo: string;
890
+ externalId: string;
891
+ day: string;
892
+ occurredAt: string;
893
+ author: string | null;
894
+ title: string;
895
+ url: string | null;
896
+ state: string | null;
897
+ parentActivityId: string | null;
898
+ authorResolved?: {
899
+ login: string | null;
900
+ name: string | null;
901
+ email: string | null;
902
+ };
903
+ authorIdentity?: {
904
+ id: string | number;
905
+ displayName: string;
906
+ } | null;
907
+ /** @constant */
908
+ type: "ci-run";
909
+ meta: ({
910
+ runId?: (string | number) | null;
911
+ workflowName?: string | null;
912
+ jobName?: string | null;
913
+ conclusion?: string | null;
914
+ status?: string | null;
915
+ startedAt?: string | null;
916
+ completedAt?: string | null;
917
+ durationSec?: number | null;
918
+ runnerOs?: string | null;
919
+ runnerName?: string | null;
920
+ sha?: string | null;
921
+ branch?: string | null;
922
+ attempts?: (string | number) | null;
923
+ } & {
924
+ [key: string]: unknown;
925
+ }) | null;
926
+ } | {
927
+ id: string;
928
+ source: "github" | "gitlab";
929
+ repo: string;
930
+ externalId: string;
931
+ day: string;
932
+ occurredAt: string;
933
+ author: string | null;
934
+ title: string;
935
+ url: string | null;
936
+ state: string | null;
937
+ parentActivityId: string | null;
747
938
  authorResolved?: {
748
939
  login: string | null;
749
940
  name: string | null;
@@ -753,14 +944,27 @@ export interface components {
753
944
  id: string | number;
754
945
  displayName: string;
755
946
  } | null;
756
- }[];
947
+ /** @constant */
948
+ type: "ci-pipeline";
949
+ meta: ({
950
+ runId?: (string | number) | null;
951
+ sha?: string | null;
952
+ branch?: string | null;
953
+ status?: string | null;
954
+ conclusion?: string | null;
955
+ startedAt?: string | null;
956
+ completedAt?: string | null;
957
+ durationSec?: number | null;
958
+ } & {
959
+ [key: string]: unknown;
960
+ }) | null;
961
+ })[];
757
962
  total: string | number;
758
963
  nextCursor: string | null;
759
964
  };
760
965
  GitEvent: {
761
966
  id: string;
762
967
  source: "github" | "gitlab";
763
- type: "commit" | "comment" | "review" | "state-transition" | "ci-run" | "ci-pipeline";
764
968
  repo: string;
765
969
  externalId: string;
766
970
  day: string;
@@ -770,9 +974,159 @@ export interface components {
770
974
  url: string | null;
771
975
  state: string | null;
772
976
  parentActivityId: string | null;
977
+ authorResolved?: {
978
+ login: string | null;
979
+ name: string | null;
980
+ email: string | null;
981
+ };
982
+ authorIdentity?: {
983
+ id: string | number;
984
+ displayName: string;
985
+ } | null;
986
+ /** @constant */
987
+ type: "commit";
988
+ meta: ({
989
+ fullMessage?: string;
990
+ commitAuthorName?: string | null;
991
+ } & {
992
+ [key: string]: unknown;
993
+ }) | null;
994
+ } | {
995
+ id: string;
996
+ source: "github" | "gitlab";
997
+ repo: string;
998
+ externalId: string;
999
+ day: string;
1000
+ occurredAt: string;
1001
+ author: string | null;
1002
+ title: string;
1003
+ url: string | null;
1004
+ state: string | null;
1005
+ parentActivityId: string | null;
1006
+ authorResolved?: {
1007
+ login: string | null;
1008
+ name: string | null;
1009
+ email: string | null;
1010
+ };
1011
+ authorIdentity?: {
1012
+ id: string | number;
1013
+ displayName: string;
1014
+ } | null;
1015
+ /** @constant */
1016
+ type: "comment";
1017
+ meta: ({
1018
+ body?: string;
1019
+ /** @constant */
1020
+ commentKind?: "commit";
1021
+ } & {
1022
+ [key: string]: unknown;
1023
+ }) | null;
1024
+ } | {
1025
+ id: string;
1026
+ source: "github" | "gitlab";
1027
+ repo: string;
1028
+ externalId: string;
1029
+ day: string;
1030
+ occurredAt: string;
1031
+ author: string | null;
1032
+ title: string;
1033
+ url: string | null;
1034
+ state: string | null;
1035
+ parentActivityId: string | null;
1036
+ authorResolved?: {
1037
+ login: string | null;
1038
+ name: string | null;
1039
+ email: string | null;
1040
+ };
1041
+ authorIdentity?: {
1042
+ id: string | number;
1043
+ displayName: string;
1044
+ } | null;
1045
+ /** @constant */
1046
+ type: "review";
773
1047
  meta: {
774
1048
  [key: string]: unknown;
775
1049
  } | null;
1050
+ } | {
1051
+ id: string;
1052
+ source: "github" | "gitlab";
1053
+ repo: string;
1054
+ externalId: string;
1055
+ day: string;
1056
+ occurredAt: string;
1057
+ author: string | null;
1058
+ title: string;
1059
+ url: string | null;
1060
+ state: string | null;
1061
+ parentActivityId: string | null;
1062
+ authorResolved?: {
1063
+ login: string | null;
1064
+ name: string | null;
1065
+ email: string | null;
1066
+ };
1067
+ authorIdentity?: {
1068
+ id: string | number;
1069
+ displayName: string;
1070
+ } | null;
1071
+ /** @constant */
1072
+ type: "state-transition";
1073
+ meta: ({
1074
+ prevState?: string | null;
1075
+ } & {
1076
+ [key: string]: unknown;
1077
+ }) | null;
1078
+ } | {
1079
+ id: string;
1080
+ source: "github" | "gitlab";
1081
+ repo: string;
1082
+ externalId: string;
1083
+ day: string;
1084
+ occurredAt: string;
1085
+ author: string | null;
1086
+ title: string;
1087
+ url: string | null;
1088
+ state: string | null;
1089
+ parentActivityId: string | null;
1090
+ authorResolved?: {
1091
+ login: string | null;
1092
+ name: string | null;
1093
+ email: string | null;
1094
+ };
1095
+ authorIdentity?: {
1096
+ id: string | number;
1097
+ displayName: string;
1098
+ } | null;
1099
+ /** @constant */
1100
+ type: "ci-run";
1101
+ meta: ({
1102
+ runId?: (string | number) | null;
1103
+ workflowName?: string | null;
1104
+ jobName?: string | null;
1105
+ conclusion?: string | null;
1106
+ status?: string | null;
1107
+ startedAt?: string | null;
1108
+ completedAt?: string | null;
1109
+ durationSec?: number | null;
1110
+ runnerOs?: string | null;
1111
+ runnerName?: string | null;
1112
+ sha?: string | null;
1113
+ branch?: string | null;
1114
+ attempts?: (string | number) | null;
1115
+ } & {
1116
+ [key: string]: unknown;
1117
+ }) | null;
1118
+ } | {
1119
+ id: string;
1120
+ source: "github" | "gitlab";
1121
+ repo: string;
1122
+ externalId: string;
1123
+ day: string;
1124
+ occurredAt: string;
1125
+ author: string | null;
1126
+ title: string;
1127
+ url: string | null;
1128
+ state: string | null;
1129
+ parentActivityId: string | null;
776
1130
  authorResolved?: {
777
1131
  login: string | null;
778
1132
  name: string | null;
@@ -782,6 +1136,20 @@ export interface components {
782
1136
  id: string | number;
783
1137
  displayName: string;
784
1138
  } | null;
1139
+ /** @constant */
1140
+ type: "ci-pipeline";
1141
+ meta: ({
1142
+ runId?: (string | number) | null;
1143
+ sha?: string | null;
1144
+ branch?: string | null;
1145
+ status?: string | null;
1146
+ conclusion?: string | null;
1147
+ startedAt?: string | null;
1148
+ completedAt?: string | null;
1149
+ durationSec?: number | null;
1150
+ } & {
1151
+ [key: string]: unknown;
1152
+ }) | null;
785
1153
  };
786
1154
  IdentitiesListResponse: {
787
1155
  identities: {
@@ -1017,6 +1385,9 @@ export interface components {
1017
1385
  submittedAt: string;
1018
1386
  url: string | null;
1019
1387
  };
1388
+ ReviewEventMeta: {
1389
+ [key: string]: unknown;
1390
+ };
1020
1391
  ReviewStatus: "draft" | "open-no-review" | "open-awaiting-my-review" | "open-awaiting-other-review" | "open-changes-requested" | "open-approved" | "merged" | "closed";
1021
1392
  ReviewsSummary: {
1022
1393
  approvedCount: string | number;
@@ -1036,6 +1407,11 @@ export interface components {
1036
1407
  url: string | null;
1037
1408
  }[];
1038
1409
  };
1410
+ StateTransitionEventMeta: {
1411
+ prevState?: string | null;
1412
+ } & {
1413
+ [key: string]: unknown;
1414
+ };
1039
1415
  StatusEvent: {
1040
1416
  label: {
1041
1417
  name: string;
@@ -2639,10 +3015,9 @@ export interface operations {
2639
3015
  };
2640
3016
  content: {
2641
3017
  "application/json": {
2642
- events: {
3018
+ events: ({
2643
3019
  id: string;
2644
3020
  source: "github" | "gitlab";
2645
- type: "commit" | "comment" | "review" | "state-transition" | "ci-run" | "ci-pipeline";
2646
3021
  repo: string;
2647
3022
  externalId: string;
2648
3023
  day: string;
@@ -2652,9 +3027,6 @@ export interface operations {
2652
3027
  url: string | null;
2653
3028
  state: string | null;
2654
3029
  parentActivityId: string | null;
2655
- meta: {
2656
- [key: string]: unknown;
2657
- } | null;
2658
3030
  authorResolved?: {
2659
3031
  login: string | null;
2660
3032
  name: string | null;
@@ -2664,15 +3036,17 @@ export interface operations {
2664
3036
  id: string | number;
2665
3037
  displayName: string;
2666
3038
  } | null;
2667
- }[];
2668
- total: string | number;
2669
- nextCursor: string | null;
2670
- };
2671
- "multipart/form-data": {
2672
- events: {
3039
+ /** @constant */
3040
+ type: "commit";
3041
+ meta: ({
3042
+ fullMessage?: string;
3043
+ commitAuthorName?: string | null;
3044
+ } & {
3045
+ [key: string]: unknown;
3046
+ }) | null;
3047
+ } | {
2673
3048
  id: string;
2674
3049
  source: "github" | "gitlab";
2675
- type: "commit" | "comment" | "review" | "state-transition" | "ci-run" | "ci-pipeline";
2676
3050
  repo: string;
2677
3051
  externalId: string;
2678
3052
  day: string;
@@ -2682,9 +3056,6 @@ export interface operations {
2682
3056
  url: string | null;
2683
3057
  state: string | null;
2684
3058
  parentActivityId: string | null;
2685
- meta: {
2686
- [key: string]: unknown;
2687
- } | null;
2688
3059
  authorResolved?: {
2689
3060
  login: string | null;
2690
3061
  name: string | null;
@@ -2694,15 +3065,18 @@ export interface operations {
2694
3065
  id: string | number;
2695
3066
  displayName: string;
2696
3067
  } | null;
2697
- }[];
2698
- total: string | number;
2699
- nextCursor: string | null;
2700
- };
2701
- "text/plain": {
2702
- events: {
3068
+ /** @constant */
3069
+ type: "comment";
3070
+ meta: ({
3071
+ body?: string;
3072
+ /** @constant */
3073
+ commentKind?: "commit";
3074
+ } & {
3075
+ [key: string]: unknown;
3076
+ }) | null;
3077
+ } | {
2703
3078
  id: string;
2704
3079
  source: "github" | "gitlab";
2705
- type: "commit" | "comment" | "review" | "state-transition" | "ci-run" | "ci-pipeline";
2706
3080
  repo: string;
2707
3081
  externalId: string;
2708
3082
  day: string;
@@ -2712,9 +3086,32 @@ export interface operations {
2712
3086
  url: string | null;
2713
3087
  state: string | null;
2714
3088
  parentActivityId: string | null;
3089
+ authorResolved?: {
3090
+ login: string | null;
3091
+ name: string | null;
3092
+ email: string | null;
3093
+ };
3094
+ authorIdentity?: {
3095
+ id: string | number;
3096
+ displayName: string;
3097
+ } | null;
3098
+ /** @constant */
3099
+ type: "review";
2715
3100
  meta: {
2716
3101
  [key: string]: unknown;
2717
3102
  } | null;
3103
+ } | {
3104
+ id: string;
3105
+ source: "github" | "gitlab";
3106
+ repo: string;
3107
+ externalId: string;
3108
+ day: string;
3109
+ occurredAt: string;
3110
+ author: string | null;
3111
+ title: string;
3112
+ url: string | null;
3113
+ state: string | null;
3114
+ parentActivityId: string | null;
2718
3115
  authorResolved?: {
2719
3116
  login: string | null;
2720
3117
  name: string | null;
@@ -2724,7 +3121,475 @@ export interface operations {
2724
3121
  id: string | number;
2725
3122
  displayName: string;
2726
3123
  } | null;
2727
- }[];
3124
+ /** @constant */
3125
+ type: "state-transition";
3126
+ meta: ({
3127
+ prevState?: string | null;
3128
+ } & {
3129
+ [key: string]: unknown;
3130
+ }) | null;
3131
+ } | {
3132
+ id: string;
3133
+ source: "github" | "gitlab";
3134
+ repo: string;
3135
+ externalId: string;
3136
+ day: string;
3137
+ occurredAt: string;
3138
+ author: string | null;
3139
+ title: string;
3140
+ url: string | null;
3141
+ state: string | null;
3142
+ parentActivityId: string | null;
3143
+ authorResolved?: {
3144
+ login: string | null;
3145
+ name: string | null;
3146
+ email: string | null;
3147
+ };
3148
+ authorIdentity?: {
3149
+ id: string | number;
3150
+ displayName: string;
3151
+ } | null;
3152
+ /** @constant */
3153
+ type: "ci-run";
3154
+ meta: ({
3155
+ runId?: (string | number) | null;
3156
+ workflowName?: string | null;
3157
+ jobName?: string | null;
3158
+ conclusion?: string | null;
3159
+ status?: string | null;
3160
+ startedAt?: string | null;
3161
+ completedAt?: string | null;
3162
+ durationSec?: number | null;
3163
+ runnerOs?: string | null;
3164
+ runnerName?: string | null;
3165
+ sha?: string | null;
3166
+ branch?: string | null;
3167
+ attempts?: (string | number) | null;
3168
+ } & {
3169
+ [key: string]: unknown;
3170
+ }) | null;
3171
+ } | {
3172
+ id: string;
3173
+ source: "github" | "gitlab";
3174
+ repo: string;
3175
+ externalId: string;
3176
+ day: string;
3177
+ occurredAt: string;
3178
+ author: string | null;
3179
+ title: string;
3180
+ url: string | null;
3181
+ state: string | null;
3182
+ parentActivityId: string | null;
3183
+ authorResolved?: {
3184
+ login: string | null;
3185
+ name: string | null;
3186
+ email: string | null;
3187
+ };
3188
+ authorIdentity?: {
3189
+ id: string | number;
3190
+ displayName: string;
3191
+ } | null;
3192
+ /** @constant */
3193
+ type: "ci-pipeline";
3194
+ meta: ({
3195
+ runId?: (string | number) | null;
3196
+ sha?: string | null;
3197
+ branch?: string | null;
3198
+ status?: string | null;
3199
+ conclusion?: string | null;
3200
+ startedAt?: string | null;
3201
+ completedAt?: string | null;
3202
+ durationSec?: number | null;
3203
+ } & {
3204
+ [key: string]: unknown;
3205
+ }) | null;
3206
+ })[];
3207
+ total: string | number;
3208
+ nextCursor: string | null;
3209
+ };
3210
+ "multipart/form-data": {
3211
+ events: ({
3212
+ id: string;
3213
+ source: "github" | "gitlab";
3214
+ repo: string;
3215
+ externalId: string;
3216
+ day: string;
3217
+ occurredAt: string;
3218
+ author: string | null;
3219
+ title: string;
3220
+ url: string | null;
3221
+ state: string | null;
3222
+ parentActivityId: string | null;
3223
+ authorResolved?: {
3224
+ login: string | null;
3225
+ name: string | null;
3226
+ email: string | null;
3227
+ };
3228
+ authorIdentity?: {
3229
+ id: string | number;
3230
+ displayName: string;
3231
+ } | null;
3232
+ /** @constant */
3233
+ type: "commit";
3234
+ meta: ({
3235
+ fullMessage?: string;
3236
+ commitAuthorName?: string | null;
3237
+ } & {
3238
+ [key: string]: unknown;
3239
+ }) | null;
3240
+ } | {
3241
+ id: string;
3242
+ source: "github" | "gitlab";
3243
+ repo: string;
3244
+ externalId: string;
3245
+ day: string;
3246
+ occurredAt: string;
3247
+ author: string | null;
3248
+ title: string;
3249
+ url: string | null;
3250
+ state: string | null;
3251
+ parentActivityId: string | null;
3252
+ authorResolved?: {
3253
+ login: string | null;
3254
+ name: string | null;
3255
+ email: string | null;
3256
+ };
3257
+ authorIdentity?: {
3258
+ id: string | number;
3259
+ displayName: string;
3260
+ } | null;
3261
+ /** @constant */
3262
+ type: "comment";
3263
+ meta: ({
3264
+ body?: string;
3265
+ /** @constant */
3266
+ commentKind?: "commit";
3267
+ } & {
3268
+ [key: string]: unknown;
3269
+ }) | null;
3270
+ } | {
3271
+ id: string;
3272
+ source: "github" | "gitlab";
3273
+ repo: string;
3274
+ externalId: string;
3275
+ day: string;
3276
+ occurredAt: string;
3277
+ author: string | null;
3278
+ title: string;
3279
+ url: string | null;
3280
+ state: string | null;
3281
+ parentActivityId: string | null;
3282
+ authorResolved?: {
3283
+ login: string | null;
3284
+ name: string | null;
3285
+ email: string | null;
3286
+ };
3287
+ authorIdentity?: {
3288
+ id: string | number;
3289
+ displayName: string;
3290
+ } | null;
3291
+ /** @constant */
3292
+ type: "review";
3293
+ meta: {
3294
+ [key: string]: unknown;
3295
+ } | null;
3296
+ } | {
3297
+ id: string;
3298
+ source: "github" | "gitlab";
3299
+ repo: string;
3300
+ externalId: string;
3301
+ day: string;
3302
+ occurredAt: string;
3303
+ author: string | null;
3304
+ title: string;
3305
+ url: string | null;
3306
+ state: string | null;
3307
+ parentActivityId: string | null;
3308
+ authorResolved?: {
3309
+ login: string | null;
3310
+ name: string | null;
3311
+ email: string | null;
3312
+ };
3313
+ authorIdentity?: {
3314
+ id: string | number;
3315
+ displayName: string;
3316
+ } | null;
3317
+ /** @constant */
3318
+ type: "state-transition";
3319
+ meta: ({
3320
+ prevState?: string | null;
3321
+ } & {
3322
+ [key: string]: unknown;
3323
+ }) | null;
3324
+ } | {
3325
+ id: string;
3326
+ source: "github" | "gitlab";
3327
+ repo: string;
3328
+ externalId: string;
3329
+ day: string;
3330
+ occurredAt: string;
3331
+ author: string | null;
3332
+ title: string;
3333
+ url: string | null;
3334
+ state: string | null;
3335
+ parentActivityId: string | null;
3336
+ authorResolved?: {
3337
+ login: string | null;
3338
+ name: string | null;
3339
+ email: string | null;
3340
+ };
3341
+ authorIdentity?: {
3342
+ id: string | number;
3343
+ displayName: string;
3344
+ } | null;
3345
+ /** @constant */
3346
+ type: "ci-run";
3347
+ meta: ({
3348
+ runId?: (string | number) | null;
3349
+ workflowName?: string | null;
3350
+ jobName?: string | null;
3351
+ conclusion?: string | null;
3352
+ status?: string | null;
3353
+ startedAt?: string | null;
3354
+ completedAt?: string | null;
3355
+ durationSec?: number | null;
3356
+ runnerOs?: string | null;
3357
+ runnerName?: string | null;
3358
+ sha?: string | null;
3359
+ branch?: string | null;
3360
+ attempts?: (string | number) | null;
3361
+ } & {
3362
+ [key: string]: unknown;
3363
+ }) | null;
3364
+ } | {
3365
+ id: string;
3366
+ source: "github" | "gitlab";
3367
+ repo: string;
3368
+ externalId: string;
3369
+ day: string;
3370
+ occurredAt: string;
3371
+ author: string | null;
3372
+ title: string;
3373
+ url: string | null;
3374
+ state: string | null;
3375
+ parentActivityId: string | null;
3376
+ authorResolved?: {
3377
+ login: string | null;
3378
+ name: string | null;
3379
+ email: string | null;
3380
+ };
3381
+ authorIdentity?: {
3382
+ id: string | number;
3383
+ displayName: string;
3384
+ } | null;
3385
+ /** @constant */
3386
+ type: "ci-pipeline";
3387
+ meta: ({
3388
+ runId?: (string | number) | null;
3389
+ sha?: string | null;
3390
+ branch?: string | null;
3391
+ status?: string | null;
3392
+ conclusion?: string | null;
3393
+ startedAt?: string | null;
3394
+ completedAt?: string | null;
3395
+ durationSec?: number | null;
3396
+ } & {
3397
+ [key: string]: unknown;
3398
+ }) | null;
3399
+ })[];
3400
+ total: string | number;
3401
+ nextCursor: string | null;
3402
+ };
3403
+ "text/plain": {
3404
+ events: ({
3405
+ id: string;
3406
+ source: "github" | "gitlab";
3407
+ repo: string;
3408
+ externalId: string;
3409
+ day: string;
3410
+ occurredAt: string;
3411
+ author: string | null;
3412
+ title: string;
3413
+ url: string | null;
3414
+ state: string | null;
3415
+ parentActivityId: string | null;
3416
+ authorResolved?: {
3417
+ login: string | null;
3418
+ name: string | null;
3419
+ email: string | null;
3420
+ };
3421
+ authorIdentity?: {
3422
+ id: string | number;
3423
+ displayName: string;
3424
+ } | null;
3425
+ /** @constant */
3426
+ type: "commit";
3427
+ meta: ({
3428
+ fullMessage?: string;
3429
+ commitAuthorName?: string | null;
3430
+ } & {
3431
+ [key: string]: unknown;
3432
+ }) | null;
3433
+ } | {
3434
+ id: string;
3435
+ source: "github" | "gitlab";
3436
+ repo: string;
3437
+ externalId: string;
3438
+ day: string;
3439
+ occurredAt: string;
3440
+ author: string | null;
3441
+ title: string;
3442
+ url: string | null;
3443
+ state: string | null;
3444
+ parentActivityId: string | null;
3445
+ authorResolved?: {
3446
+ login: string | null;
3447
+ name: string | null;
3448
+ email: string | null;
3449
+ };
3450
+ authorIdentity?: {
3451
+ id: string | number;
3452
+ displayName: string;
3453
+ } | null;
3454
+ /** @constant */
3455
+ type: "comment";
3456
+ meta: ({
3457
+ body?: string;
3458
+ /** @constant */
3459
+ commentKind?: "commit";
3460
+ } & {
3461
+ [key: string]: unknown;
3462
+ }) | null;
3463
+ } | {
3464
+ id: string;
3465
+ source: "github" | "gitlab";
3466
+ repo: string;
3467
+ externalId: string;
3468
+ day: string;
3469
+ occurredAt: string;
3470
+ author: string | null;
3471
+ title: string;
3472
+ url: string | null;
3473
+ state: string | null;
3474
+ parentActivityId: string | null;
3475
+ authorResolved?: {
3476
+ login: string | null;
3477
+ name: string | null;
3478
+ email: string | null;
3479
+ };
3480
+ authorIdentity?: {
3481
+ id: string | number;
3482
+ displayName: string;
3483
+ } | null;
3484
+ /** @constant */
3485
+ type: "review";
3486
+ meta: {
3487
+ [key: string]: unknown;
3488
+ } | null;
3489
+ } | {
3490
+ id: string;
3491
+ source: "github" | "gitlab";
3492
+ repo: string;
3493
+ externalId: string;
3494
+ day: string;
3495
+ occurredAt: string;
3496
+ author: string | null;
3497
+ title: string;
3498
+ url: string | null;
3499
+ state: string | null;
3500
+ parentActivityId: string | null;
3501
+ authorResolved?: {
3502
+ login: string | null;
3503
+ name: string | null;
3504
+ email: string | null;
3505
+ };
3506
+ authorIdentity?: {
3507
+ id: string | number;
3508
+ displayName: string;
3509
+ } | null;
3510
+ /** @constant */
3511
+ type: "state-transition";
3512
+ meta: ({
3513
+ prevState?: string | null;
3514
+ } & {
3515
+ [key: string]: unknown;
3516
+ }) | null;
3517
+ } | {
3518
+ id: string;
3519
+ source: "github" | "gitlab";
3520
+ repo: string;
3521
+ externalId: string;
3522
+ day: string;
3523
+ occurredAt: string;
3524
+ author: string | null;
3525
+ title: string;
3526
+ url: string | null;
3527
+ state: string | null;
3528
+ parentActivityId: string | null;
3529
+ authorResolved?: {
3530
+ login: string | null;
3531
+ name: string | null;
3532
+ email: string | null;
3533
+ };
3534
+ authorIdentity?: {
3535
+ id: string | number;
3536
+ displayName: string;
3537
+ } | null;
3538
+ /** @constant */
3539
+ type: "ci-run";
3540
+ meta: ({
3541
+ runId?: (string | number) | null;
3542
+ workflowName?: string | null;
3543
+ jobName?: string | null;
3544
+ conclusion?: string | null;
3545
+ status?: string | null;
3546
+ startedAt?: string | null;
3547
+ completedAt?: string | null;
3548
+ durationSec?: number | null;
3549
+ runnerOs?: string | null;
3550
+ runnerName?: string | null;
3551
+ sha?: string | null;
3552
+ branch?: string | null;
3553
+ attempts?: (string | number) | null;
3554
+ } & {
3555
+ [key: string]: unknown;
3556
+ }) | null;
3557
+ } | {
3558
+ id: string;
3559
+ source: "github" | "gitlab";
3560
+ repo: string;
3561
+ externalId: string;
3562
+ day: string;
3563
+ occurredAt: string;
3564
+ author: string | null;
3565
+ title: string;
3566
+ url: string | null;
3567
+ state: string | null;
3568
+ parentActivityId: string | null;
3569
+ authorResolved?: {
3570
+ login: string | null;
3571
+ name: string | null;
3572
+ email: string | null;
3573
+ };
3574
+ authorIdentity?: {
3575
+ id: string | number;
3576
+ displayName: string;
3577
+ } | null;
3578
+ /** @constant */
3579
+ type: "ci-pipeline";
3580
+ meta: ({
3581
+ runId?: (string | number) | null;
3582
+ sha?: string | null;
3583
+ branch?: string | null;
3584
+ status?: string | null;
3585
+ conclusion?: string | null;
3586
+ startedAt?: string | null;
3587
+ completedAt?: string | null;
3588
+ durationSec?: number | null;
3589
+ } & {
3590
+ [key: string]: unknown;
3591
+ }) | null;
3592
+ })[];
2728
3593
  total: string | number;
2729
3594
  nextCursor: string | null;
2730
3595
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesar-richard/git-connector-sdk",
3
- "version": "2.5.0",
3
+ "version": "2.6.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": {