@cesar-richard/git-connector-sdk 1.18.1 → 1.20.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 +167 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -52,6 +52,22 @@ export interface paths {
52
52
  patch?: never;
53
53
  trace?: never;
54
54
  };
55
+ "/v1/events": {
56
+ parameters: {
57
+ query?: never;
58
+ header?: never;
59
+ path?: never;
60
+ cookie?: never;
61
+ };
62
+ get: operations["getV1Events"];
63
+ put?: never;
64
+ post?: never;
65
+ delete?: never;
66
+ options?: never;
67
+ head?: never;
68
+ patch?: never;
69
+ trace?: never;
70
+ };
55
71
  }
56
72
  export type webhooks = Record<string, never>;
57
73
  export interface components {
@@ -66,6 +82,44 @@ export interface components {
66
82
  ErrorResponse: {
67
83
  error: string;
68
84
  };
85
+ EventsListResponse: {
86
+ events: {
87
+ id: string;
88
+ source: "github" | "gitlab";
89
+ type: "commit" | "comment" | "review" | "state-transition" | "ci-run";
90
+ repo: string;
91
+ externalId: string;
92
+ day: string;
93
+ occurredAt: string;
94
+ author: string | null;
95
+ title: string;
96
+ url: string | null;
97
+ state: string | null;
98
+ parentActivityId: string | null;
99
+ meta: {
100
+ [key: string]: unknown;
101
+ } | null;
102
+ }[];
103
+ total: string | number;
104
+ nextCursor: string | null;
105
+ };
106
+ GitEvent: {
107
+ id: string;
108
+ source: "github" | "gitlab";
109
+ type: "commit" | "comment" | "review" | "state-transition" | "ci-run";
110
+ repo: string;
111
+ externalId: string;
112
+ day: string;
113
+ occurredAt: string;
114
+ author: string | null;
115
+ title: string;
116
+ url: string | null;
117
+ state: string | null;
118
+ parentActivityId: string | null;
119
+ meta: {
120
+ [key: string]: unknown;
121
+ } | null;
122
+ };
69
123
  IterationWithCount: {
70
124
  id: string | number;
71
125
  title: string;
@@ -1027,4 +1081,117 @@ export interface operations {
1027
1081
  };
1028
1082
  };
1029
1083
  };
1084
+ getV1Events: {
1085
+ parameters: {
1086
+ query?: {
1087
+ /** @description Inclusive lower bound, YYYY-MM-DD (Paris-TZ day). Required. */
1088
+ from?: string;
1089
+ /** @description Inclusive upper bound, YYYY-MM-DD (Paris-TZ day). Required. */
1090
+ to?: string;
1091
+ /** @description Filter by author (case-insensitive). */
1092
+ user?: string;
1093
+ repo?: string;
1094
+ /** @description CSV: commit,comment,review,state-transition */
1095
+ type?: string;
1096
+ /** @description github | gitlab */
1097
+ provider?: string;
1098
+ /** @description Default 500, max 1000. */
1099
+ limit?: string;
1100
+ /** @description Opaque cursor from previous nextCursor. */
1101
+ cursor?: string;
1102
+ };
1103
+ header?: never;
1104
+ path?: never;
1105
+ cookie?: never;
1106
+ };
1107
+ requestBody?: never;
1108
+ responses: {
1109
+ 200: {
1110
+ headers: {
1111
+ [name: string]: unknown;
1112
+ };
1113
+ content: {
1114
+ "application/json": {
1115
+ events: {
1116
+ id: string;
1117
+ source: "github" | "gitlab";
1118
+ type: "commit" | "comment" | "review" | "state-transition" | "ci-run";
1119
+ repo: string;
1120
+ externalId: string;
1121
+ day: string;
1122
+ occurredAt: string;
1123
+ author: string | null;
1124
+ title: string;
1125
+ url: string | null;
1126
+ state: string | null;
1127
+ parentActivityId: string | null;
1128
+ meta: {
1129
+ [key: string]: unknown;
1130
+ } | null;
1131
+ }[];
1132
+ total: string | number;
1133
+ nextCursor: string | null;
1134
+ };
1135
+ "multipart/form-data": {
1136
+ events: {
1137
+ id: string;
1138
+ source: "github" | "gitlab";
1139
+ type: "commit" | "comment" | "review" | "state-transition" | "ci-run";
1140
+ repo: string;
1141
+ externalId: string;
1142
+ day: string;
1143
+ occurredAt: string;
1144
+ author: string | null;
1145
+ title: string;
1146
+ url: string | null;
1147
+ state: string | null;
1148
+ parentActivityId: string | null;
1149
+ meta: {
1150
+ [key: string]: unknown;
1151
+ } | null;
1152
+ }[];
1153
+ total: string | number;
1154
+ nextCursor: string | null;
1155
+ };
1156
+ "text/plain": {
1157
+ events: {
1158
+ id: string;
1159
+ source: "github" | "gitlab";
1160
+ type: "commit" | "comment" | "review" | "state-transition" | "ci-run";
1161
+ repo: string;
1162
+ externalId: string;
1163
+ day: string;
1164
+ occurredAt: string;
1165
+ author: string | null;
1166
+ title: string;
1167
+ url: string | null;
1168
+ state: string | null;
1169
+ parentActivityId: string | null;
1170
+ meta: {
1171
+ [key: string]: unknown;
1172
+ } | null;
1173
+ }[];
1174
+ total: string | number;
1175
+ nextCursor: string | null;
1176
+ };
1177
+ };
1178
+ };
1179
+ 400: {
1180
+ headers: {
1181
+ [name: string]: unknown;
1182
+ };
1183
+ content: {
1184
+ "application/json": {
1185
+ error: string;
1186
+ };
1187
+ "multipart/form-data": {
1188
+ error: string;
1189
+ };
1190
+ "text/plain": {
1191
+ error: string;
1192
+ };
1193
+ };
1194
+ };
1195
+ };
1196
+ };
1030
1197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesar-richard/git-connector-sdk",
3
- "version": "1.18.1",
3
+ "version": "1.20.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": {