@gitkraken/provider-apis 0.28.1 → 0.28.2

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.
@@ -22,6 +22,7 @@ export declare const makeGitHubGraphQLRequest: <T>(config: ProviderConfig, data:
22
22
  export declare const hasEmailScope: (scopes: string[]) => boolean;
23
23
  export declare const getAccountFields: (withAvatarSizeVar?: boolean, includeEmail?: boolean, fields?: FieldMap<Account>) => string;
24
24
  export declare const getBotFields: (withAvatarSizeVar?: boolean) => string;
25
+ export declare const getEnterpriseUserAccountFields: (withAvatarSizeVar?: boolean) => string;
25
26
  export declare const getPullRequestFields: (isDraftPullRequestSupported: boolean, includeEmail: boolean | undefined, enterpriseVersion: [number, number, number] | null) => string;
26
27
  export declare const getIssueFields: (includeEmail: boolean | undefined, enterpriseVersion: [number, number, number] | null) => string;
27
28
  export declare const GithubSearchSyntaxQualifiers: Record<string, string>;
@@ -94,6 +94,13 @@ export interface GraphQLBot {
94
94
  avatarUrl: string;
95
95
  url: string;
96
96
  }
97
+ export type GraphQLEnterpriseUserAccount = {
98
+ __typename: 'EnterpriseUserAccount';
99
+ id: string;
100
+ login: string;
101
+ avatarUrl: string;
102
+ url: string;
103
+ };
97
104
  export interface GraphQLOrganization {
98
105
  id: string;
99
106
  databaseId: number;
@@ -144,6 +151,7 @@ export interface GraphQLContext {
144
151
  state: GitHubStatusState;
145
152
  targetUrl: string;
146
153
  }
154
+ export type GraphQLLatestReviewAuthorType = GraphQLUser | GraphQLEnterpriseUserAccount | Record<string, never> | null;
147
155
  type GraphQLPullRequestBase = {
148
156
  id: string;
149
157
  title: string;
@@ -165,7 +173,7 @@ type GraphQLPullRequestBase = {
165
173
  assignees: {
166
174
  nodes: (GraphQLUser | null)[] | null;
167
175
  };
168
- author: GraphQLUser | GraphQLBot | Record<string, never> | null;
176
+ author: GraphQLUser | GraphQLBot | GraphQLEnterpriseUserAccount | Record<string, never> | null;
169
177
  commits: {
170
178
  nodes: ({
171
179
  commit: {
@@ -221,7 +229,7 @@ type GraphQLPullRequestBase = {
221
229
  } | null;
222
230
  latestReviews?: {
223
231
  nodes: ({
224
- author: GraphQLUser;
232
+ author: GraphQLLatestReviewAuthorType;
225
233
  state: GitHubPullRequestReviewState;
226
234
  } | null)[] | null;
227
235
  } | null;
@@ -261,7 +269,7 @@ type GraphQLIssueBase = {
261
269
  assignees: {
262
270
  nodes: (GraphQLUser | null)[] | null;
263
271
  };
264
- author: GraphQLUser | GraphQLBot | Record<string, never> | null;
272
+ author: GraphQLUser | GraphQLBot | GraphQLEnterpriseUserAccount | Record<string, never> | null;
265
273
  closedAt: string | null;
266
274
  createdAt: string;
267
275
  updatedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "An SDK around different third-party APIs that accepts and returns data in a common format.",
5
5
  "author": "Axosoft, LLC dba GitKraken",
6
6
  "license": "SEE LICENSE IN LICENSE",