faros-airbyte-common 0.10.18 → 0.10.20

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.
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bitbucket/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -0,0 +1,672 @@
1
+ interface CalculatedActivity {
2
+ commitCount: number;
3
+ mergedAt: string;
4
+ }
5
+ export interface Branch {
6
+ readonly name: string;
7
+ readonly links: {
8
+ readonly htmlUrl: string;
9
+ };
10
+ readonly defaultMergeStrategy: string;
11
+ readonly mergeStrategies: string[];
12
+ readonly type: string;
13
+ readonly target: {
14
+ readonly hash: string;
15
+ repository: {
16
+ readonly links: {
17
+ readonly htmlUrl: string;
18
+ };
19
+ readonly type: string;
20
+ readonly name: string;
21
+ fullName: string;
22
+ readonly uuid: string;
23
+ };
24
+ readonly links: {
25
+ readonly htmlUrl: string;
26
+ };
27
+ readonly author: {
28
+ readonly raw: string;
29
+ readonly type: string;
30
+ readonly user: {
31
+ readonly displayName: string;
32
+ readonly uuid: string;
33
+ readonly links: {
34
+ readonly htmlUrl: string;
35
+ };
36
+ readonly type: string;
37
+ readonly nickname: string;
38
+ readonly accountId: string;
39
+ };
40
+ };
41
+ readonly parents: {
42
+ readonly hash: string;
43
+ readonly links: {
44
+ readonly htmlUrl: string;
45
+ };
46
+ }[];
47
+ readonly date: string;
48
+ readonly message: string;
49
+ readonly type: string;
50
+ };
51
+ }
52
+ export interface Commit {
53
+ readonly hash: string;
54
+ readonly date: string;
55
+ readonly message: string;
56
+ readonly type: string;
57
+ readonly rendered: {
58
+ readonly message: {
59
+ readonly raw: string;
60
+ readonly markup: string;
61
+ readonly html: string;
62
+ readonly type: string;
63
+ };
64
+ };
65
+ readonly repository: {
66
+ readonly type: string;
67
+ readonly name: string;
68
+ readonly fullName: string;
69
+ readonly uuid: string;
70
+ readonly links: {
71
+ readonly htmlUrl: string;
72
+ };
73
+ };
74
+ readonly links: {
75
+ readonly commentsUrl: string;
76
+ readonly htmlUrl: string;
77
+ readonly diffUrl: string;
78
+ readonly approveUrl: string;
79
+ readonly statusesUrl: string;
80
+ };
81
+ readonly author: {
82
+ readonly raw: string;
83
+ readonly type: string;
84
+ readonly user?: {
85
+ readonly displayName: string;
86
+ readonly uuid: string;
87
+ readonly type: string;
88
+ readonly nickname: string;
89
+ readonly accountId: string;
90
+ readonly links: {
91
+ readonly htmlUrl: string;
92
+ };
93
+ };
94
+ };
95
+ readonly summary: {
96
+ readonly raw: string;
97
+ readonly markup: string;
98
+ readonly html: string;
99
+ readonly type: string;
100
+ };
101
+ parents: {
102
+ readonly hash: string;
103
+ readonly type: string;
104
+ readonly links: {
105
+ readonly htmlUrl: string;
106
+ };
107
+ }[];
108
+ }
109
+ export interface Deployment {
110
+ readonly type: string;
111
+ readonly uuid: string;
112
+ readonly name?: string;
113
+ readonly key: string;
114
+ readonly version: number;
115
+ readonly lastUpdateTime?: string;
116
+ readonly environment: {
117
+ readonly uuid: string;
118
+ readonly name?: string;
119
+ readonly slug?: string;
120
+ readonly rank?: number;
121
+ readonly type?: string;
122
+ };
123
+ readonly fullEnvironment?: Environment;
124
+ readonly step: {
125
+ readonly uuid: string;
126
+ readonly type: string;
127
+ };
128
+ readonly commit: {
129
+ readonly type: string;
130
+ readonly hash: string;
131
+ readonly links: {
132
+ readonly htmlUrl: string;
133
+ };
134
+ };
135
+ readonly state: DeploymentsState;
136
+ readonly deployable: {
137
+ readonly type: string;
138
+ readonly uuid: string;
139
+ readonly key: string;
140
+ readonly name: string;
141
+ readonly url: string;
142
+ readonly createdOn: string;
143
+ readonly pipeline: {
144
+ readonly uuid: string;
145
+ readonly type: string;
146
+ };
147
+ readonly commit: {
148
+ readonly type: string;
149
+ readonly hash: string;
150
+ readonly links: {
151
+ readonly htmlUrl: string;
152
+ };
153
+ };
154
+ };
155
+ readonly release: {
156
+ readonly type: string;
157
+ readonly uuid: string;
158
+ readonly key: string;
159
+ readonly name: string;
160
+ readonly url: string;
161
+ readonly createdOnn: string;
162
+ readonly pipeline: {
163
+ readonly uuid: string;
164
+ readonly type: string;
165
+ };
166
+ readonly commit: {
167
+ readonly type: string;
168
+ readonly hash: string;
169
+ readonly links: {
170
+ readonly htmlUrl: string;
171
+ };
172
+ };
173
+ };
174
+ }
175
+ export interface DeploymentsState {
176
+ readonly type: string;
177
+ readonly name: string;
178
+ readonly url: string;
179
+ readonly startedOn: string;
180
+ readonly completedOn: string;
181
+ readonly status?: {
182
+ readonly type: string;
183
+ readonly name: string;
184
+ };
185
+ }
186
+ export interface DiffStat {
187
+ readonly linesAdded: number;
188
+ readonly linesDeleted: number;
189
+ readonly filesChanged: number;
190
+ }
191
+ export interface Environment {
192
+ readonly name: string;
193
+ readonly environmentLockEnabled: boolean;
194
+ readonly deploymentGateEnabled: boolean;
195
+ readonly rank: number;
196
+ readonly hidden: boolean;
197
+ readonly type: string;
198
+ readonly slug: string;
199
+ readonly uuid: string;
200
+ readonly category: {
201
+ readonly name: string;
202
+ };
203
+ readonly restrictions: {
204
+ readonly adminOnly: boolean;
205
+ readonly type: string;
206
+ };
207
+ readonly lock: {
208
+ readonly type: string;
209
+ readonly name: string;
210
+ };
211
+ readonly environmentType: {
212
+ readonly type: string;
213
+ readonly name: string;
214
+ readonly rank: number;
215
+ };
216
+ }
217
+ export interface Issue {
218
+ readonly priority: string;
219
+ readonly kind: string;
220
+ readonly title: string;
221
+ readonly state: string;
222
+ readonly createdOn: string;
223
+ readonly updatedOn: string;
224
+ readonly type: string;
225
+ readonly votes: number;
226
+ readonly watches: number;
227
+ readonly id: number;
228
+ readonly component: any;
229
+ readonly version: any;
230
+ readonly editedOn: any;
231
+ readonly milestone: any;
232
+ readonly repository: {
233
+ readonly type: string;
234
+ readonly name: string;
235
+ readonly fullName: string;
236
+ readonly uuid: string;
237
+ readonly links: {
238
+ readonly htmlUrl: string;
239
+ };
240
+ };
241
+ readonly links: {
242
+ readonly attachmentsUrl: string;
243
+ readonly watchUrl: string;
244
+ readonly commentsUrl: string;
245
+ readonly htmlUrl: string;
246
+ readonly voteUrl: string;
247
+ };
248
+ readonly reporter: {
249
+ readonly displayName: string;
250
+ readonly uuid: string;
251
+ readonly type: string;
252
+ readonly nickname: string;
253
+ readonly accountId: string;
254
+ readonly links: {
255
+ readonly htmlUrl: string;
256
+ };
257
+ };
258
+ readonly content: {
259
+ readonly raw: string;
260
+ readonly markup: string;
261
+ readonly html: string;
262
+ readonly type: string;
263
+ };
264
+ assignee: User;
265
+ }
266
+ export interface User {
267
+ readonly displayName: string;
268
+ readonly emailAddress?: string;
269
+ readonly uuid: string;
270
+ readonly type: string;
271
+ readonly nickname: string;
272
+ readonly accountId: string;
273
+ readonly links: {
274
+ readonly htmlUrl: string;
275
+ };
276
+ }
277
+ export interface Pipeline {
278
+ readonly type: string;
279
+ readonly uuid: string;
280
+ readonly buildNumber: number;
281
+ readonly createdOn: string;
282
+ readonly completedOn?: string;
283
+ readonly runNumber: number;
284
+ readonly durationInSeconds: number;
285
+ readonly buildSecondsUsed: number;
286
+ readonly firstSuccessful: boolean;
287
+ readonly expired: boolean;
288
+ readonly hasVariables: boolean;
289
+ readonly repository: {
290
+ readonly name: string;
291
+ readonly type: string;
292
+ readonly fullName: string;
293
+ readonly uuid: string;
294
+ readonly links: {
295
+ readonly htmlUrl: string;
296
+ };
297
+ };
298
+ readonly state: PipelineState;
299
+ readonly creator: {
300
+ readonly displayName: string;
301
+ readonly accountId: string;
302
+ readonly nickname: string;
303
+ readonly type: string;
304
+ readonly uuid: string;
305
+ readonly links: {
306
+ readonly htmlUrl: string;
307
+ };
308
+ };
309
+ readonly target: {
310
+ readonly type: string;
311
+ readonly refType: string;
312
+ readonly refName: string;
313
+ readonly selector: {
314
+ readonly type: string;
315
+ };
316
+ readonly commit?: {
317
+ readonly type: string;
318
+ readonly hash: string;
319
+ readonly links: {
320
+ readonly htmlUrl: string;
321
+ };
322
+ };
323
+ };
324
+ readonly trigger: {
325
+ readonly name: string;
326
+ readonly type: string;
327
+ };
328
+ readonly links: {
329
+ readonly htmlUrl: string;
330
+ };
331
+ }
332
+ export interface PipelineState {
333
+ readonly name: string;
334
+ readonly type: string;
335
+ readonly stage?: {
336
+ readonly name: string;
337
+ readonly type: string;
338
+ };
339
+ }
340
+ export interface PipelineStep {
341
+ readonly uuid: string;
342
+ readonly startedOn: string;
343
+ readonly completedOn?: string;
344
+ readonly type: string;
345
+ readonly name: string;
346
+ readonly runNumber: number;
347
+ readonly maxTime: number;
348
+ readonly buildSecondsUsed: number;
349
+ readonly durationInSeconds: number;
350
+ readonly pipeline: {
351
+ readonly type: string;
352
+ readonly uuid: string;
353
+ };
354
+ readonly image: {
355
+ readonly name: string;
356
+ };
357
+ readonly scriptCommands: {
358
+ readonly commandType: string;
359
+ readonly command: string;
360
+ readonly name: string;
361
+ }[];
362
+ readonly state: PipelineStepState;
363
+ readonly trigger: {
364
+ readonly type: string;
365
+ };
366
+ readonly teardownCommands: {
367
+ readonly commandType: string;
368
+ readonly action: string;
369
+ readonly command: string;
370
+ readonly name: string;
371
+ }[];
372
+ readonly setupCommands: {
373
+ readonly commandType: string;
374
+ readonly command: string;
375
+ readonly name: string;
376
+ }[];
377
+ }
378
+ export interface PipelineStepState {
379
+ readonly type: string;
380
+ readonly name: string;
381
+ readonly result: {
382
+ readonly type: string;
383
+ readonly name: string;
384
+ };
385
+ }
386
+ export interface PullRequest {
387
+ readonly description: string;
388
+ readonly title: string;
389
+ readonly type: string;
390
+ readonly createdOn: string;
391
+ readonly state: string;
392
+ readonly reason: string;
393
+ readonly updatedOn: string;
394
+ readonly closeSourceBranch: boolean;
395
+ readonly id: number;
396
+ readonly commentCount: number;
397
+ readonly taskCount: number;
398
+ readonly diffStat?: DiffStat;
399
+ readonly calculatedActivity?: CalculatedActivity;
400
+ readonly links: {
401
+ readonly declineUrl: string;
402
+ readonly diffstatUrl: string;
403
+ readonly commitsUrl: string;
404
+ readonly commentsUrl: string;
405
+ readonly mergeUrl: string;
406
+ readonly htmlUrl: string;
407
+ readonly activityUrl: string;
408
+ readonly diffUrl: string;
409
+ readonly approveUrl: string;
410
+ readonly statusesUrl: string;
411
+ };
412
+ readonly destination: {
413
+ readonly commit: {
414
+ readonly hash: string;
415
+ readonly type: string;
416
+ readonly links: {
417
+ readonly htmlUrl: string;
418
+ };
419
+ };
420
+ repository: {
421
+ readonly type: string;
422
+ readonly name: string;
423
+ readonly fullName: string;
424
+ readonly uuid: string;
425
+ readonly links: {
426
+ readonly htmlUrl: string;
427
+ };
428
+ };
429
+ readonly branch: {
430
+ readonly name: string;
431
+ };
432
+ };
433
+ readonly summary: {
434
+ readonly raw: string;
435
+ readonly markup: string;
436
+ readonly html: string;
437
+ readonly type: string;
438
+ };
439
+ readonly source: {
440
+ readonly commit: {
441
+ readonly hash: string;
442
+ readonly type: string;
443
+ readonly links: {
444
+ readonly htmlUrl: string;
445
+ };
446
+ };
447
+ readonly repository: {
448
+ readonly links: {
449
+ readonly htmlUrl: string;
450
+ };
451
+ readonly type: string;
452
+ readonly name: string;
453
+ readonly fullName: string;
454
+ readonly uuid: string;
455
+ };
456
+ readonly branch: {
457
+ readonly name: string;
458
+ };
459
+ };
460
+ readonly author: User;
461
+ readonly mergeCommit: null | {
462
+ readonly hash: string;
463
+ readonly type: string;
464
+ readonly links: {
465
+ readonly htmlUrl: string;
466
+ };
467
+ };
468
+ readonly closedBy: null | User;
469
+ }
470
+ export interface PRActivity {
471
+ readonly changes_requested?: any;
472
+ readonly approval?: {
473
+ readonly date: string;
474
+ readonly pullrequest: {
475
+ readonly type: string;
476
+ readonly id: number;
477
+ readonly title: string;
478
+ readonly links: {
479
+ readonly htmlUrl: string;
480
+ };
481
+ };
482
+ readonly user: {
483
+ readonly display_name: string;
484
+ readonly uuid: string;
485
+ readonly type: string;
486
+ readonly nickname: string;
487
+ readonly account_id: string;
488
+ readonly links: {
489
+ readonly htmlUrl: string;
490
+ };
491
+ };
492
+ };
493
+ readonly update?: {
494
+ readonly description: string;
495
+ readonly title: string;
496
+ readonly state: string;
497
+ readonly reason: string;
498
+ readonly date: string;
499
+ readonly reviewers: any[];
500
+ readonly destination: {
501
+ readonly commit: {
502
+ readonly hash: string;
503
+ readonly type: string;
504
+ readonly links: {
505
+ readonly htmlUrl: string;
506
+ };
507
+ };
508
+ readonly repository: {
509
+ readonly type: string;
510
+ readonly name: string;
511
+ readonly fullName: string;
512
+ readonly uuid: string;
513
+ readonly links: {
514
+ readonly htmlUrl: string;
515
+ };
516
+ };
517
+ readonly branch: {
518
+ readonly name: string;
519
+ };
520
+ };
521
+ readonly source: {
522
+ readonly commit: {
523
+ readonly hash: string;
524
+ readonly type: string;
525
+ readonly links: {
526
+ readonly htmlUrl: string;
527
+ };
528
+ };
529
+ readonly repository: {
530
+ readonly type: string;
531
+ readonly name: string;
532
+ readonly fullName: string;
533
+ readonly uuid: string;
534
+ readonly links: {
535
+ readonly htmlUrl: string;
536
+ };
537
+ };
538
+ readonly branch: {
539
+ readonly name: string;
540
+ };
541
+ };
542
+ readonly author: User;
543
+ readonly changes: {
544
+ readonly status?: {
545
+ readonly new: string;
546
+ readonly old: string;
547
+ };
548
+ };
549
+ };
550
+ readonly pullRequest: {
551
+ readonly type: string;
552
+ readonly title: string;
553
+ readonly id: number;
554
+ readonly repositorySlug?: string;
555
+ readonly workspace?: string;
556
+ readonly links: {
557
+ readonly htmlUrl: string;
558
+ };
559
+ };
560
+ readonly comment?: {
561
+ readonly deleted: boolean;
562
+ readonly created_on: string;
563
+ readonly updated_on: string;
564
+ readonly type: string;
565
+ readonly id: number;
566
+ readonly links: {
567
+ readonly htmlUrl: string;
568
+ };
569
+ readonly content: {
570
+ readonly raw: string;
571
+ readonly markup: string;
572
+ readonly html: string;
573
+ readonly type: string;
574
+ };
575
+ readonly user: User;
576
+ };
577
+ }
578
+ export interface PRDiffStat {
579
+ readonly status: string;
580
+ readonly old: any;
581
+ readonly linesRemoved: number;
582
+ readonly linesAdded: number;
583
+ readonly type: string;
584
+ readonly new: {
585
+ readonly path: string;
586
+ readonly escapedPath: string;
587
+ readonly type: string;
588
+ };
589
+ }
590
+ export interface Repository {
591
+ readonly scm: string;
592
+ readonly website: string;
593
+ readonly hasWiki: boolean;
594
+ readonly uuid: string;
595
+ readonly forkPolicy: string;
596
+ readonly fullName: string;
597
+ readonly name: string;
598
+ readonly language: string;
599
+ readonly createdOn: string;
600
+ readonly hasIssues: boolean;
601
+ readonly updatedOn: string;
602
+ readonly size: number;
603
+ readonly type: string;
604
+ readonly slug: string;
605
+ readonly isPrivate: boolean;
606
+ readonly description: string;
607
+ readonly links: {
608
+ readonly branchesUrl: string;
609
+ readonly htmlUrl: string;
610
+ };
611
+ readonly project: {
612
+ readonly type: string;
613
+ readonly name: string;
614
+ readonly slug: string;
615
+ readonly key: string;
616
+ readonly uuid: string;
617
+ readonly links: {
618
+ readonly htmlUrl: string;
619
+ };
620
+ };
621
+ readonly mainBranch: {
622
+ readonly type: string;
623
+ readonly name: string;
624
+ };
625
+ readonly workspace: {
626
+ readonly type: string;
627
+ readonly name: string;
628
+ readonly slug: string;
629
+ readonly uuid: string;
630
+ readonly links: {
631
+ readonly htmlUrl: string;
632
+ };
633
+ };
634
+ readonly owner: {
635
+ readonly displayName: string;
636
+ readonly type: string;
637
+ readonly uuid: string;
638
+ readonly links: {
639
+ readonly htmlUrl: string;
640
+ };
641
+ };
642
+ }
643
+ export interface WorkspaceUser {
644
+ readonly type: string;
645
+ readonly user: User;
646
+ readonly workspace: {
647
+ readonly slug: string;
648
+ readonly type: string;
649
+ readonly name: string;
650
+ readonly uuid: string;
651
+ readonly links: {
652
+ readonly htmlUrl: string;
653
+ };
654
+ };
655
+ readonly links: {
656
+ readonly htmlUrl: string;
657
+ };
658
+ }
659
+ export interface Workspace {
660
+ readonly uuid: string;
661
+ readonly createdOn: string;
662
+ readonly type: string;
663
+ readonly slug: string;
664
+ readonly isPrivate: boolean;
665
+ readonly name: string;
666
+ readonly links: {
667
+ readonly ownersUrl: string;
668
+ readonly repositoriesUrl: string;
669
+ readonly htmlUrl: string;
670
+ };
671
+ }
672
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/bitbucket/types.ts"],"names":[],"mappings":""}
@@ -17,3 +17,4 @@ export declare function calculateDateRange(options: {
17
17
  startDate: Date;
18
18
  endDate: Date;
19
19
  };
20
+ export declare function collectReposByOrg(reposByOrg: Map<string, Set<string>>, repos: ReadonlyArray<string>): void;