faros-airbyte-common 0.16.37 → 0.16.39

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.
@@ -1,72 +1,51 @@
1
- export type GitLabToken = {
2
- type: 'token';
3
- personal_access_token: string;
4
- };
5
- export interface User {
6
- id: number;
7
- username: string;
8
- name?: string;
9
- email?: string;
10
- state: string;
11
- web_url: string;
12
- created_at?: string;
13
- updated_at?: string;
14
- group_id?: string;
15
- }
16
- export interface Group {
17
- id: string;
18
- parent_id: string | null;
19
- name: string;
20
- path: string;
21
- web_url: string;
22
- description: string | null;
23
- visibility: string;
24
- created_at: string;
25
- updated_at: string;
26
- }
27
- export interface Project {
1
+ import { Camelize, CommitSchema, EventSchema, GroupSchema, IssueSchema, MergeRequestSchema, NoteSchema, ProjectSchema, TagSchema, UserSchema } from '@gitbeaker/rest';
2
+ export type FarosProjectOutput = {
3
+ readonly __brand: 'FarosProject';
28
4
  id: string;
29
- name: string;
30
- path: string;
31
- path_with_namespace: string;
32
- web_url: string;
33
- description: string | null;
34
- visibility: string;
35
- created_at: string;
36
- updated_at: string;
37
- namespace: {
38
- id: string;
39
- name: string;
40
- path: string;
41
- kind: string;
42
- full_path: string;
43
- };
44
- default_branch: string;
45
- archived: boolean;
46
5
  group_id: string;
47
6
  syncRepoData?: boolean;
48
- }
49
- export interface Commit {
7
+ } & Pick<ProjectSchema, 'archived' | 'created_at' | 'default_branch' | 'description' | 'empty_repo' | 'name' | 'namespace' | 'owner' | 'path' | 'path_with_namespace' | 'updated_at' | 'visibility' | 'web_url'>;
8
+ export type FarosUserOutput = {
9
+ readonly __brand: 'FarosUser';
10
+ group_id?: string;
11
+ } & Pick<UserSchema, 'username'> & Partial<Pick<UserSchema, 'email' | 'name' | 'state' | 'web_url'>>;
12
+ export type FarosGroupOutput = {
13
+ readonly __brand: 'FarosGroup';
50
14
  id: string;
51
- short_id: string;
52
- created_at: string;
53
- parent_ids: string[];
54
- title: string;
55
- message: string;
56
- author_name: string;
57
- author_email: string;
58
- authored_date: string;
59
- committer_name: string;
60
- committer_email: string;
61
- committed_date: string;
62
- web_url: string;
15
+ parent_id: string | null;
16
+ } & Pick<GroupSchema, 'created_at' | 'description' | 'name' | 'path' | 'updated_at' | 'visibility' | 'web_url'>;
17
+ export type FarosCommitOutput = {
18
+ readonly __brand: 'FarosCommit';
19
+ author_username: string | null;
20
+ branch: string;
63
21
  group_id: string;
64
22
  project_path: string;
65
- branch: string;
66
- author_username?: string;
67
- }
68
- export interface Tag {
69
- name: string;
70
- title: string;
71
- commit_id: string;
72
- }
23
+ } & Pick<CommitSchema, 'id' | 'message' | 'created_at' | 'web_url'>;
24
+ export type FarosTagOutput = {
25
+ readonly __brand: 'FarosTag';
26
+ commit_id?: string;
27
+ group_id: string;
28
+ project_path: string;
29
+ } & Pick<TagSchema, 'name' | 'message' | 'target' | 'title'>;
30
+ export type FarosMergeRequestOutput = {
31
+ readonly __brand: 'FarosMergeRequest';
32
+ author_username: string;
33
+ group_id: string;
34
+ project_path: string;
35
+ labels: string[];
36
+ notes: ({
37
+ author_username: string;
38
+ } & Pick<NoteSchema, 'id' | 'body' | 'created_at' | 'updated_at'>)[];
39
+ } & Pick<Camelize<MergeRequestSchema>, 'iid' | 'title' | 'description' | 'state' | 'webUrl' | 'createdAt' | 'updatedAt' | 'mergedAt' | 'commitCount' | 'userNotesCount' | 'diffStatsSummary' | 'mergeCommitSha'>;
40
+ export type FarosMergeRequestReviewOutput = {
41
+ readonly __brand: 'FarosMergeRequestReview';
42
+ group_id: string;
43
+ project_path: string;
44
+ } & Pick<EventSchema, 'action_name' | 'author_username' | 'created_at' | 'id' | 'target_iid' | 'target_type'>;
45
+ export type FarosIssueOutput = {
46
+ readonly __brand: 'FarosIssue';
47
+ group_id: string;
48
+ project_path: string;
49
+ author_username: string;
50
+ assignee_usernames: string[];
51
+ } & Pick<IssueSchema, 'id' | 'title' | 'description' | 'state' | 'created_at' | 'updated_at' | 'labels'>;
@@ -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/googledrive/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -0,0 +1,4 @@
1
+ import { admin_directory_v1, driveactivity_v2 } from 'googleapis';
2
+ export type WorkspaceCustomer = admin_directory_v1.Schema$Customer;
3
+ export type WorkspaceUser = admin_directory_v1.Schema$User;
4
+ export type DriveActivityEvent = driveactivity_v2.Schema$DriveActivity;
@@ -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/googledrive/types.ts"],"names":[],"mappings":""}