Skip to content

Commit e82f716

Browse files
committed
added compiled files
1 parent b34ea25 commit e82f716

File tree

6 files changed

+87
-45
lines changed

6 files changed

+87
-45
lines changed

dist/GithubDiscussionClient.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/generated/graphql.js

Lines changed: 12 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 49 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/types/GithubDiscussionClient.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export declare class GithubDiscussionClient {
1313
getTotalDiscussionCount(categoryID: string): Promise<number>;
1414
getDiscussionCommentCount(discussionNum: number): Promise<number>;
1515
getCommentsMetaData(discussionNum: number, commentCount: number): Promise<DiscussionCommentConnection>;
16-
getDiscussionsMetaData(categoryID: string): Promise<DiscussionConnection>;
16+
getDiscussionsMetaData(categoryID: string, pageSize: number, afterCursor: string): Promise<DiscussionConnection>;
1717
getAnswerableDiscussionCategoryIDs(): Promise<any>;
1818
closeDiscussionAsResolved(discussionId: string): Promise<void>;
1919
closeDiscussionAsOutdated(discussionId: string): Promise<void>;

dist/types/generated/graphql.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38983,14 +38983,20 @@ export type GetDiscussionDataQueryVariables = Exact<{
3898338983
owner: Scalars['String'];
3898438984
name: Scalars['String'];
3898538985
categoryID: Scalars['ID'];
38986-
count: Scalars['Int'];
38986+
after?: InputMaybe<Scalars['String']>;
38987+
pageSize: Scalars['Int'];
3898738988
}>;
3898838989
export type GetDiscussionDataQuery = {
3898938990
__typename?: 'Query';
3899038991
repository?: {
3899138992
__typename?: 'Repository';
3899238993
discussions: {
3899338994
__typename?: 'DiscussionConnection';
38995+
pageInfo: {
38996+
__typename?: 'PageInfo';
38997+
hasNextPage: boolean;
38998+
endCursor?: string | null;
38999+
};
3899439000
edges?: Array<{
3899539001
__typename?: 'DiscussionEdge';
3899639002
node?: {

src/generated/graphql.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41486,9 +41486,18 @@ export const GetDiscussionCount = gql`
4148641486
}
4148741487
`;
4148841488
export const GetDiscussionData = gql`
41489-
query GetDiscussionData($owner: String!, $name: String!, $categoryID: ID!, $count: Int!) {
41489+
query GetDiscussionData($owner: String!, $name: String!, $categoryID: ID!, $after: String, $pageSize: Int!) {
4149041490
repository(owner: $owner, name: $name) {
41491-
discussions(categoryId: $categoryID, last: $count) {
41491+
discussions(
41492+
categoryId: $categoryID
41493+
after: $after
41494+
first: $pageSize
41495+
orderBy: {field: UPDATED_AT, direction: DESC}
41496+
) {
41497+
pageInfo {
41498+
hasNextPage
41499+
endCursor
41500+
}
4149241501
edges {
4149341502
node {
4149441503
locked
@@ -41633,11 +41642,12 @@ export type GetDiscussionDataQueryVariables = Exact<{
4163341642
owner: Scalars['String'];
4163441643
name: Scalars['String'];
4163541644
categoryID: Scalars['ID'];
41636-
count: Scalars['Int'];
41645+
after?: InputMaybe<Scalars['String']>;
41646+
pageSize: Scalars['Int'];
4163741647
}>;
4163841648

4163941649

41640-
export type GetDiscussionDataQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', discussions: { __typename?: 'DiscussionConnection', edges?: Array<{ __typename?: 'DiscussionEdge', node?: { __typename?: 'Discussion', locked: boolean, id: string, bodyText: string, number: number, closed: boolean, author?: { __typename?: 'Bot', login: string } | { __typename?: 'EnterpriseUserAccount', login: string } | { __typename?: 'Mannequin', login: string } | { __typename?: 'Organization', login: string } | { __typename?: 'User', login: string } | null, answer?: { __typename?: 'DiscussionComment', id: string, bodyText: string } | null } | null } | null> | null } } | null };
41650+
export type GetDiscussionDataQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', discussions: { __typename?: 'DiscussionConnection', pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: string | null }, edges?: Array<{ __typename?: 'DiscussionEdge', node?: { __typename?: 'Discussion', locked: boolean, id: string, bodyText: string, number: number, closed: boolean, author?: { __typename?: 'Bot', login: string } | { __typename?: 'EnterpriseUserAccount', login: string } | { __typename?: 'Mannequin', login: string } | { __typename?: 'Organization', login: string } | { __typename?: 'User', login: string } | null, answer?: { __typename?: 'DiscussionComment', id: string, bodyText: string } | null } | null } | null> | null } } | null };
4164141651

4164241652
export type IsDiscussionLockedQueryVariables = Exact<{
4164341653
owner: Scalars['String'];

0 commit comments

Comments
 (0)