faros-airbyte-common 0.10.7 → 0.10.8
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.
- package/lib/github/generated/index.d.ts +41 -0
- package/lib/github/queries.d.ts +1 -0
- package/lib/github/queries.js +3 -1
- package/lib/github/queries.js.map +1 -1
- package/lib/github/types.d.ts +9 -1
- package/lib/github/types.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7887,6 +7887,47 @@ export type PullRequestsQuery = {
|
|
|
7887
7887
|
};
|
|
7888
7888
|
} | null;
|
|
7889
7889
|
};
|
|
7890
|
+
export type RepoTagsQueryVariables = Exact<{
|
|
7891
|
+
owner: Scalars['String']['input'];
|
|
7892
|
+
repo: Scalars['String']['input'];
|
|
7893
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
7894
|
+
page_size?: InputMaybe<Scalars['Int']['input']>;
|
|
7895
|
+
}>;
|
|
7896
|
+
export type RepoTagsQuery = {
|
|
7897
|
+
repository?: {
|
|
7898
|
+
refs?: {
|
|
7899
|
+
nodes?: Array<{
|
|
7900
|
+
name: string;
|
|
7901
|
+
target?: {
|
|
7902
|
+
type: 'Blob';
|
|
7903
|
+
} | {
|
|
7904
|
+
committedDate: string;
|
|
7905
|
+
sha: string;
|
|
7906
|
+
type: 'Commit';
|
|
7907
|
+
} | {
|
|
7908
|
+
type: 'Tag';
|
|
7909
|
+
target: {
|
|
7910
|
+
type: 'Blob';
|
|
7911
|
+
} | {
|
|
7912
|
+
committedDate: string;
|
|
7913
|
+
sha: string;
|
|
7914
|
+
type: 'Commit';
|
|
7915
|
+
} | {
|
|
7916
|
+
type: 'Tag';
|
|
7917
|
+
} | {
|
|
7918
|
+
type: 'Tree';
|
|
7919
|
+
};
|
|
7920
|
+
} | {
|
|
7921
|
+
type: 'Tree';
|
|
7922
|
+
} | null;
|
|
7923
|
+
} | null> | null;
|
|
7924
|
+
pageInfo: {
|
|
7925
|
+
hasNextPage: boolean;
|
|
7926
|
+
endCursor?: string | null;
|
|
7927
|
+
};
|
|
7928
|
+
} | null;
|
|
7929
|
+
} | null;
|
|
7930
|
+
};
|
|
7890
7931
|
export type ReviewFieldsFragment = {
|
|
7891
7932
|
state: PullRequestReviewState;
|
|
7892
7933
|
submittedAt?: string | null;
|
package/lib/github/queries.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export declare const ORG_MEMBERS_QUERY: string;
|
|
|
10
10
|
export declare const COMMITS_QUERY: string;
|
|
11
11
|
export declare const COMMITS_CHANGED_FILES_IF_AVAILABLE_QUERY: string;
|
|
12
12
|
export declare const COMMITS_CHANGED_FILES_QUERY: string;
|
|
13
|
+
export declare const REPOSITORY_TAGS_QUERY: string;
|
package/lib/github/queries.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.COMMITS_CHANGED_FILES_QUERY = exports.COMMITS_CHANGED_FILES_IF_AVAILABLE_QUERY = exports.COMMITS_QUERY = exports.ORG_MEMBERS_QUERY = exports.LABELS_QUERY = exports.PULL_REQUEST_REVIEW_REQUESTS_QUERY = exports.PULL_REQUEST_REVIEWS_QUERY = exports.PULL_REQUESTS_QUERY = exports.REVIEW_REQUESTS_FRAGMENT = exports.REVIEWS_FRAGMENT = exports.FILES_FRAGMENT = exports.LABELS_FRAGMENT = void 0;
|
|
6
|
+
exports.REPOSITORY_TAGS_QUERY = exports.COMMITS_CHANGED_FILES_QUERY = exports.COMMITS_CHANGED_FILES_IF_AVAILABLE_QUERY = exports.COMMITS_QUERY = exports.ORG_MEMBERS_QUERY = exports.LABELS_QUERY = exports.PULL_REQUEST_REVIEW_REQUESTS_QUERY = exports.PULL_REQUEST_REVIEWS_QUERY = exports.PULL_REQUESTS_QUERY = exports.REVIEW_REQUESTS_FRAGMENT = exports.REVIEWS_FRAGMENT = exports.FILES_FRAGMENT = exports.LABELS_FRAGMENT = void 0;
|
|
7
7
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
exports.LABELS_FRAGMENT = loadQuery('labels-fragment.gql');
|
|
@@ -29,6 +29,8 @@ exports.COMMITS_CHANGED_FILES_IF_AVAILABLE_QUERY = COMMIT_FIELDS_FRAGMENT +
|
|
|
29
29
|
loadQuery('commits-changed-files-if-available-query.gql');
|
|
30
30
|
// GraphQL query used to get commits from repository with changedFiles
|
|
31
31
|
exports.COMMITS_CHANGED_FILES_QUERY = COMMIT_FIELDS_FRAGMENT + loadQuery('commits-changed-files-query.gql');
|
|
32
|
+
// Graphql query used to get tags by repository
|
|
33
|
+
exports.REPOSITORY_TAGS_QUERY = loadQuery('repository-tags-query.gql');
|
|
32
34
|
/**
|
|
33
35
|
* Load query file from resources
|
|
34
36
|
* @param query query file name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/github/queries.ts"],"names":[],"mappings":";;;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AAEX,QAAA,eAAe,GAAG,SAAS,CAAC,qBAAqB,CAAC,CAAC;AAEnD,QAAA,cAAc,GAAG,SAAS,CAAC,oBAAoB,CAAC,CAAC;AAE9D,MAAM,sBAAsB,GAAG,SAAS,CAAC,4BAA4B,CAAC,CAAC;AAE1D,QAAA,gBAAgB,GAC3B,sBAAsB,GAAG,SAAS,CAAC,sBAAsB,CAAC,CAAC;AAE7D,MAAM,8BAA8B,GAAG,SAAS,CAC9C,oCAAoC,CACrC,CAAC;AAEW,QAAA,wBAAwB,GACnC,8BAA8B,GAAG,SAAS,CAAC,8BAA8B,CAAC,CAAC;AAE7E,MAAM,sBAAsB,GAAG,SAAS,CAAC,4BAA4B,CAAC,CAAC;AAEvE,0CAA0C;AAC7B,QA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'@octokit/types';
|
|
3
|
-
import { CommitsQuery, LabelsQuery, ListMembersQuery, PullRequestsQuery } from './generated';
|
|
3
|
+
import { CommitsQuery, LabelsQuery, ListMembersQuery, PullRequestsQuery, RepoTagsQuery } from './generated';
|
|
4
4
|
declare const octokit: Octokit;
|
|
5
5
|
export type AppInstallation = GetResponseDataTypeFromEndpointMethod<typeof octokit.apps.listInstallations>[0];
|
|
6
6
|
export type Organization = Pick<GetResponseDataTypeFromEndpointMethod<typeof octokit.orgs.get>, 'login' | 'name' | 'type' | 'html_url' | 'created_at' | 'updated_at'>;
|
|
@@ -56,6 +56,14 @@ export type TeamMembership = {
|
|
|
56
56
|
export type OutsideCollaborator = {
|
|
57
57
|
org: string;
|
|
58
58
|
} & Pick<GetResponseDataTypeFromEndpointMethod<typeof octokit.orgs.listOutsideCollaborators>[0], 'name' | 'login' | 'email' | 'type' | 'html_url'>;
|
|
59
|
+
export type Tag = {
|
|
60
|
+
repository: string;
|
|
61
|
+
name: string;
|
|
62
|
+
commit: TagsQueryCommitNode;
|
|
63
|
+
};
|
|
64
|
+
export type TagsQueryCommitNode = Extract<RepoTagsQuery['repository']['refs']['nodes'][0]['target'], {
|
|
65
|
+
type: 'Commit';
|
|
66
|
+
}>;
|
|
59
67
|
export type CopilotSeatsStreamRecord = CopilotSeat | CopilotSeatEnded | CopilotSeatsEmpty;
|
|
60
68
|
export type CopilotSeat = {
|
|
61
69
|
empty?: never;
|
package/lib/github/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/github/types.ts"],"names":[],"mappings":";;;AAAA,wCAAsC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/github/types.ts"],"names":[],"mappings":";;;AAAA,wCAAsC;AAWtC,MAAM,OAAO,GAAY,IAAI,cAAO,EAAE,CAAC;AA6JvC,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,uCAAyB,CAAA;AAC3B,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB"}
|