faros-airbyte-common 0.10.10 → 0.10.12

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.
@@ -7266,6 +7266,29 @@ export type WorkflowsParametersInput = {
7266
7266
  /** Workflows that must pass for this rule to pass. */
7267
7267
  workflows: Array<WorkflowFileReferenceInput>;
7268
7268
  };
7269
+ type AssigneeFields_Bot_Fragment = {
7270
+ login: string;
7271
+ html_url: string;
7272
+ type: 'Bot';
7273
+ };
7274
+ type AssigneeFields_Mannequin_Fragment = {
7275
+ login: string;
7276
+ html_url: string;
7277
+ type: 'Mannequin';
7278
+ };
7279
+ type AssigneeFields_Organization_Fragment = {
7280
+ login: string;
7281
+ name?: string | null;
7282
+ html_url: string;
7283
+ type: 'Organization';
7284
+ };
7285
+ type AssigneeFields_User_Fragment = {
7286
+ login: string;
7287
+ name?: string | null;
7288
+ html_url: string;
7289
+ type: 'User';
7290
+ };
7291
+ export type AssigneeFieldsFragment = AssigneeFields_Bot_Fragment | AssigneeFields_Mannequin_Fragment | AssigneeFields_Organization_Fragment | AssigneeFields_User_Fragment;
7269
7292
  export type CommitFieldsFragment = {
7270
7293
  oid: string;
7271
7294
  message: string;
@@ -7291,6 +7314,7 @@ export type CommitsChangedFilesIfAvailableQueryVariables = Exact<{
7291
7314
  repo: Scalars['String']['input'];
7292
7315
  branch: Scalars['String']['input'];
7293
7316
  since?: InputMaybe<Scalars['GitTimestamp']['input']>;
7317
+ until?: InputMaybe<Scalars['GitTimestamp']['input']>;
7294
7318
  page_size?: InputMaybe<Scalars['Int']['input']>;
7295
7319
  cursor?: InputMaybe<Scalars['String']['input']>;
7296
7320
  }>;
@@ -7298,9 +7322,9 @@ export type CommitsChangedFilesIfAvailableQuery = {
7298
7322
  repository?: {
7299
7323
  ref?: {
7300
7324
  target?: {
7301
- __typename: 'Blob';
7325
+ type: 'Blob';
7302
7326
  } | {
7303
- __typename: 'Commit';
7327
+ type: 'Commit';
7304
7328
  history: {
7305
7329
  pageInfo: {
7306
7330
  endCursor?: string | null;
@@ -7329,9 +7353,9 @@ export type CommitsChangedFilesIfAvailableQuery = {
7329
7353
  } | null> | null;
7330
7354
  };
7331
7355
  } | {
7332
- __typename: 'Tag';
7356
+ type: 'Tag';
7333
7357
  } | {
7334
- __typename: 'Tree';
7358
+ type: 'Tree';
7335
7359
  } | null;
7336
7360
  } | null;
7337
7361
  } | null;
@@ -7341,6 +7365,7 @@ export type CommitsChangedFilesQueryVariables = Exact<{
7341
7365
  repo: Scalars['String']['input'];
7342
7366
  branch: Scalars['String']['input'];
7343
7367
  since?: InputMaybe<Scalars['GitTimestamp']['input']>;
7368
+ until?: InputMaybe<Scalars['GitTimestamp']['input']>;
7344
7369
  page_size?: InputMaybe<Scalars['Int']['input']>;
7345
7370
  cursor?: InputMaybe<Scalars['String']['input']>;
7346
7371
  }>;
@@ -7348,9 +7373,9 @@ export type CommitsChangedFilesQuery = {
7348
7373
  repository?: {
7349
7374
  ref?: {
7350
7375
  target?: {
7351
- __typename: 'Blob';
7376
+ type: 'Blob';
7352
7377
  } | {
7353
- __typename: 'Commit';
7378
+ type: 'Commit';
7354
7379
  history: {
7355
7380
  pageInfo: {
7356
7381
  endCursor?: string | null;
@@ -7379,9 +7404,9 @@ export type CommitsChangedFilesQuery = {
7379
7404
  } | null> | null;
7380
7405
  };
7381
7406
  } | {
7382
- __typename: 'Tag';
7407
+ type: 'Tag';
7383
7408
  } | {
7384
- __typename: 'Tree';
7409
+ type: 'Tree';
7385
7410
  } | null;
7386
7411
  } | null;
7387
7412
  } | null;
@@ -7391,6 +7416,7 @@ export type CommitsQueryVariables = Exact<{
7391
7416
  repo: Scalars['String']['input'];
7392
7417
  branch: Scalars['String']['input'];
7393
7418
  since?: InputMaybe<Scalars['GitTimestamp']['input']>;
7419
+ until?: InputMaybe<Scalars['GitTimestamp']['input']>;
7394
7420
  page_size?: InputMaybe<Scalars['Int']['input']>;
7395
7421
  cursor?: InputMaybe<Scalars['String']['input']>;
7396
7422
  }>;
@@ -7398,9 +7424,9 @@ export type CommitsQuery = {
7398
7424
  repository?: {
7399
7425
  ref?: {
7400
7426
  target?: {
7401
- __typename: 'Blob';
7427
+ type: 'Blob';
7402
7428
  } | {
7403
- __typename: 'Commit';
7429
+ type: 'Commit';
7404
7430
  history: {
7405
7431
  pageInfo: {
7406
7432
  endCursor?: string | null;
@@ -7428,9 +7454,9 @@ export type CommitsQuery = {
7428
7454
  } | null> | null;
7429
7455
  };
7430
7456
  } | {
7431
- __typename: 'Tag';
7457
+ type: 'Tag';
7432
7458
  } | {
7433
- __typename: 'Tree';
7459
+ type: 'Tree';
7434
7460
  } | null;
7435
7461
  } | null;
7436
7462
  } | null;
@@ -7448,6 +7474,165 @@ export type FilesFragment = {
7448
7474
  } | null> | null;
7449
7475
  } | null;
7450
7476
  };
7477
+ export type IssuesQueryVariables = Exact<{
7478
+ owner: Scalars['String']['input'];
7479
+ repo: Scalars['String']['input'];
7480
+ page_size?: InputMaybe<Scalars['Int']['input']>;
7481
+ cursor?: InputMaybe<Scalars['String']['input']>;
7482
+ }>;
7483
+ export type IssuesQuery = {
7484
+ repository?: {
7485
+ issues: {
7486
+ pageInfo: {
7487
+ endCursor?: string | null;
7488
+ hasNextPage: boolean;
7489
+ };
7490
+ nodes?: Array<{
7491
+ databaseId?: number | null;
7492
+ title: string;
7493
+ bodyText: string;
7494
+ state: IssueState;
7495
+ createdAt: string;
7496
+ updatedAt: string;
7497
+ closedAt?: string | null;
7498
+ author?: {
7499
+ login: string;
7500
+ html_url: string;
7501
+ type: 'Bot';
7502
+ } | {
7503
+ name?: string | null;
7504
+ login: string;
7505
+ html_url: string;
7506
+ type: 'EnterpriseUserAccount';
7507
+ } | {
7508
+ login: string;
7509
+ html_url: string;
7510
+ type: 'Mannequin';
7511
+ } | {
7512
+ name?: string | null;
7513
+ login: string;
7514
+ html_url: string;
7515
+ type: 'Organization';
7516
+ } | {
7517
+ name?: string | null;
7518
+ login: string;
7519
+ html_url: string;
7520
+ type: 'User';
7521
+ } | null;
7522
+ labels?: {
7523
+ nodes?: Array<{
7524
+ name: string;
7525
+ } | null> | null;
7526
+ } | null;
7527
+ assignments: {
7528
+ nodes?: Array<{
7529
+ type: 'AddedToProjectEvent';
7530
+ } | {
7531
+ createdAt: string;
7532
+ type: 'AssignedEvent';
7533
+ assignee?: {
7534
+ login: string;
7535
+ html_url: string;
7536
+ type: 'Bot';
7537
+ } | {
7538
+ login: string;
7539
+ html_url: string;
7540
+ type: 'Mannequin';
7541
+ } | {
7542
+ login: string;
7543
+ name?: string | null;
7544
+ html_url: string;
7545
+ type: 'Organization';
7546
+ } | {
7547
+ login: string;
7548
+ name?: string | null;
7549
+ html_url: string;
7550
+ type: 'User';
7551
+ } | null;
7552
+ } | {
7553
+ type: 'ClosedEvent';
7554
+ } | {
7555
+ type: 'CommentDeletedEvent';
7556
+ } | {
7557
+ type: 'ConnectedEvent';
7558
+ } | {
7559
+ type: 'ConvertedNoteToIssueEvent';
7560
+ } | {
7561
+ type: 'ConvertedToDiscussionEvent';
7562
+ } | {
7563
+ type: 'CrossReferencedEvent';
7564
+ } | {
7565
+ type: 'DemilestonedEvent';
7566
+ } | {
7567
+ type: 'DisconnectedEvent';
7568
+ } | {
7569
+ type: 'IssueComment';
7570
+ } | {
7571
+ type: 'LabeledEvent';
7572
+ } | {
7573
+ type: 'LockedEvent';
7574
+ } | {
7575
+ type: 'MarkedAsDuplicateEvent';
7576
+ } | {
7577
+ type: 'MentionedEvent';
7578
+ } | {
7579
+ type: 'MilestonedEvent';
7580
+ } | {
7581
+ type: 'MovedColumnsInProjectEvent';
7582
+ } | {
7583
+ type: 'PinnedEvent';
7584
+ } | {
7585
+ type: 'ReferencedEvent';
7586
+ } | {
7587
+ type: 'RemovedFromProjectEvent';
7588
+ } | {
7589
+ type: 'RenamedTitleEvent';
7590
+ } | {
7591
+ type: 'ReopenedEvent';
7592
+ } | {
7593
+ type: 'SubscribedEvent';
7594
+ } | {
7595
+ type: 'TransferredEvent';
7596
+ } | {
7597
+ createdAt: string;
7598
+ type: 'UnassignedEvent';
7599
+ assignee?: {
7600
+ login: string;
7601
+ html_url: string;
7602
+ type: 'Bot';
7603
+ } | {
7604
+ login: string;
7605
+ html_url: string;
7606
+ type: 'Mannequin';
7607
+ } | {
7608
+ login: string;
7609
+ name?: string | null;
7610
+ html_url: string;
7611
+ type: 'Organization';
7612
+ } | {
7613
+ login: string;
7614
+ name?: string | null;
7615
+ html_url: string;
7616
+ type: 'User';
7617
+ } | null;
7618
+ } | {
7619
+ type: 'UnlabeledEvent';
7620
+ } | {
7621
+ type: 'UnlockedEvent';
7622
+ } | {
7623
+ type: 'UnmarkedAsDuplicateEvent';
7624
+ } | {
7625
+ type: 'UnpinnedEvent';
7626
+ } | {
7627
+ type: 'UnsubscribedEvent';
7628
+ } | {
7629
+ type: 'UserBlockedEvent';
7630
+ } | null> | null;
7631
+ };
7632
+ } | null> | null;
7633
+ };
7634
+ } | null;
7635
+ };
7451
7636
  export type LabelsFragment = {
7452
7637
  labels?: {
7453
7638
  pageInfo: {
@@ -7500,6 +7685,55 @@ export type ListMembersQuery = {
7500
7685
  };
7501
7686
  } | null;
7502
7687
  };
7688
+ export type ListSamlSsoUsersQueryVariables = Exact<{
7689
+ login: Scalars['String']['input'];
7690
+ cursor?: InputMaybe<Scalars['String']['input']>;
7691
+ page_size?: InputMaybe<Scalars['Int']['input']>;
7692
+ }>;
7693
+ export type ListSamlSsoUsersQuery = {
7694
+ organization?: {
7695
+ samlIdentityProvider?: {
7696
+ externalIdentities: {
7697
+ nodes?: Array<{
7698
+ samlIdentity?: {
7699
+ nameId?: string | null;
7700
+ } | null;
7701
+ user?: {
7702
+ login: string;
7703
+ html_url: string;
7704
+ type: 'User';
7705
+ } | null;
7706
+ } | null> | null;
7707
+ pageInfo: {
7708
+ endCursor?: string | null;
7709
+ hasNextPage: boolean;
7710
+ };
7711
+ };
7712
+ } | null;
7713
+ } | null;
7714
+ };
7715
+ export type ProjectsQueryVariables = Exact<{
7716
+ login: Scalars['String']['input'];
7717
+ cursor?: InputMaybe<Scalars['String']['input']>;
7718
+ page_size?: InputMaybe<Scalars['Int']['input']>;
7719
+ }>;
7720
+ export type ProjectsQuery = {
7721
+ organization?: {
7722
+ projectsV2: {
7723
+ nodes?: Array<{
7724
+ id: string;
7725
+ name: string;
7726
+ body?: string | null;
7727
+ created_at: string;
7728
+ updated_at: string;
7729
+ } | null> | null;
7730
+ pageInfo: {
7731
+ hasNextPage: boolean;
7732
+ endCursor?: string | null;
7733
+ };
7734
+ };
7735
+ } | null;
7736
+ };
7503
7737
  export type PullRequestReviewRequestsQueryVariables = Exact<{
7504
7738
  org: Scalars['String']['input'];
7505
7739
  repo: Scalars['String']['input'];
@@ -7595,6 +7829,26 @@ export type PullRequestReviewsQuery = {
7595
7829
  } | null;
7596
7830
  } | null;
7597
7831
  };
7832
+ export type PullRequestsCursorQueryVariables = Exact<{
7833
+ owner: Scalars['String']['input'];
7834
+ repo: Scalars['String']['input'];
7835
+ cursor?: InputMaybe<Scalars['String']['input']>;
7836
+ page_size?: InputMaybe<Scalars['Int']['input']>;
7837
+ }>;
7838
+ export type PullRequestsCursorQuery = {
7839
+ repository?: {
7840
+ pullRequests: {
7841
+ pageInfo: {
7842
+ startCursor?: string | null;
7843
+ endCursor?: string | null;
7844
+ hasNextPage: boolean;
7845
+ };
7846
+ nodes?: Array<{
7847
+ updatedAt: string;
7848
+ } | null> | null;
7849
+ };
7850
+ } | null;
7851
+ };
7598
7852
  export type PullRequestsQueryVariables = Exact<{
7599
7853
  owner: Scalars['String']['input'];
7600
7854
  repo: Scalars['String']['input'];
@@ -8058,3 +8312,4 @@ export type ReviewsFragment = {
8058
8312
  } | null> | null;
8059
8313
  } | null;
8060
8314
  };
8315
+ export {};
@@ -3,11 +3,15 @@ export declare const FILES_FRAGMENT: string;
3
3
  export declare const REVIEWS_FRAGMENT: string;
4
4
  export declare const REVIEW_REQUESTS_FRAGMENT: string;
5
5
  export declare const PULL_REQUESTS_QUERY: string;
6
+ export declare const PULL_REQUESTS_CURSOR_QUERY: string;
6
7
  export declare const PULL_REQUEST_REVIEWS_QUERY: string;
7
8
  export declare const PULL_REQUEST_REVIEW_REQUESTS_QUERY: string;
8
9
  export declare const LABELS_QUERY: string;
9
10
  export declare const ORG_MEMBERS_QUERY: string;
11
+ export declare const LIST_SAML_SSO_USERS_QUERY: string;
10
12
  export declare const COMMITS_QUERY: string;
11
13
  export declare const COMMITS_CHANGED_FILES_IF_AVAILABLE_QUERY: string;
12
14
  export declare const COMMITS_CHANGED_FILES_QUERY: string;
13
15
  export declare const REPOSITORY_TAGS_QUERY: string;
16
+ export declare const PROJECTS_QUERY: string;
17
+ export declare const ISSUES_QUERY: string;
@@ -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.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;
6
+ exports.ISSUES_QUERY = exports.PROJECTS_QUERY = exports.REPOSITORY_TAGS_QUERY = exports.COMMITS_CHANGED_FILES_QUERY = exports.COMMITS_CHANGED_FILES_IF_AVAILABLE_QUERY = exports.COMMITS_QUERY = exports.LIST_SAML_SSO_USERS_QUERY = exports.ORG_MEMBERS_QUERY = exports.LABELS_QUERY = exports.PULL_REQUEST_REVIEW_REQUESTS_QUERY = exports.PULL_REQUEST_REVIEWS_QUERY = exports.PULL_REQUESTS_CURSOR_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');
@@ -13,8 +13,10 @@ exports.REVIEWS_FRAGMENT = REVIEW_FIELDS_FRAGMENT + loadQuery('reviews-fragment.
13
13
  const REVIEW_REQUEST_FIELDS_FRAGMENT = loadQuery('review-request-fields-fragment.gql');
14
14
  exports.REVIEW_REQUESTS_FRAGMENT = REVIEW_REQUEST_FIELDS_FRAGMENT + loadQuery('review-requests-fragment.gql');
15
15
  const COMMIT_FIELDS_FRAGMENT = loadQuery('commit-fields-fragment.gql');
16
+ const ASSIGNEE_FIELDS_FRAGMENT = loadQuery('assignee-fields-fragment.gql');
16
17
  // GraphQL query used to get pull requests
17
18
  exports.PULL_REQUESTS_QUERY = loadQuery('pull-requests-query.gql');
19
+ exports.PULL_REQUESTS_CURSOR_QUERY = loadQuery('pull-requests-cursor-query.gql');
18
20
  exports.PULL_REQUEST_REVIEWS_QUERY = REVIEW_FIELDS_FRAGMENT + loadQuery('pull-request-reviews-query.gql');
19
21
  exports.PULL_REQUEST_REVIEW_REQUESTS_QUERY = REVIEW_REQUEST_FIELDS_FRAGMENT +
20
22
  loadQuery('pull-request-review-requests-query.gql');
@@ -22,6 +24,8 @@ exports.PULL_REQUEST_REVIEW_REQUESTS_QUERY = REVIEW_REQUEST_FIELDS_FRAGMENT +
22
24
  exports.LABELS_QUERY = loadQuery('labels-query.gql');
23
25
  // GraphQL query used to get organization members
24
26
  exports.ORG_MEMBERS_QUERY = loadQuery('list-members-query.gql');
27
+ // GraphQL query used to get SAML SSO users when SAML SSO is enabled on organization level
28
+ exports.LIST_SAML_SSO_USERS_QUERY = loadQuery('list-saml-sso-users-query.gql');
25
29
  // GraphQL query used to get commits from repository
26
30
  exports.COMMITS_QUERY = COMMIT_FIELDS_FRAGMENT + loadQuery('commits-query.gql');
27
31
  // GraphQL query used to get commits from repository with changedFilesIfAvailable
@@ -31,6 +35,10 @@ exports.COMMITS_CHANGED_FILES_IF_AVAILABLE_QUERY = COMMIT_FIELDS_FRAGMENT +
31
35
  exports.COMMITS_CHANGED_FILES_QUERY = COMMIT_FIELDS_FRAGMENT + loadQuery('commits-changed-files-query.gql');
32
36
  // Graphql query used to get tags by repository
33
37
  exports.REPOSITORY_TAGS_QUERY = loadQuery('repository-tags-query.gql');
38
+ // Graphql query used to get organization projects
39
+ exports.PROJECTS_QUERY = loadQuery('projects-query.gql');
40
+ // Graphql query used to get repo issues
41
+ exports.ISSUES_QUERY = ASSIGNEE_FIELDS_FRAGMENT + loadQuery('issues-query.gql');
34
42
  /**
35
43
  * Load query file from resources
36
44
  * @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,QAAA,mBAAmB,GAAG,SAAS,CAAC,yBAAyB,CAAC,CAAC;AAE3D,QAAA,0BAA0B,GACrC,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AIG;AACH,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,kBAAE,CAAC,YAAY,CACpB,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC,EACzE,MAAM,CACP,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Octokit } from '@octokit/rest';
2
2
  import { GetResponseDataTypeFromEndpointMethod } from '@octokit/types';
3
- import { CommitsQuery, LabelsQuery, ListMembersQuery, PullRequestsQuery, RepoTagsQuery } from './generated';
3
+ import { CommitsQuery, IssuesQuery, LabelsQuery, ListMembersQuery, ListSamlSsoUsersQuery, ProjectsQuery, 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'>;
@@ -31,7 +31,7 @@ export type Label = {
31
31
  repo: string;
32
32
  } & LabelsQuery['repository']['labels']['nodes'][0];
33
33
  type CommitsQueryCommitNode = NonNullable<CommitsQuery['repository']['ref']['target'] & {
34
- __typename: 'Commit';
34
+ type: 'Commit';
35
35
  }>['history']['nodes'][0];
36
36
  export type Commit = {
37
37
  org: string;
@@ -55,6 +55,9 @@ export type TeamMembership = {
55
55
  export type OutsideCollaborator = {
56
56
  org: string;
57
57
  } & Pick<GetResponseDataTypeFromEndpointMethod<typeof octokit.orgs.listOutsideCollaborators>[0], 'name' | 'login' | 'email' | 'type' | 'html_url'>;
58
+ export type SamlSsoUser = {
59
+ org: string;
60
+ } & ListSamlSsoUsersQuery['organization']['samlIdentityProvider']['externalIdentities']['nodes'][0];
58
61
  export type Tag = {
59
62
  repository: string;
60
63
  name: string;
@@ -69,6 +72,15 @@ export type Release = {
69
72
  html_url: string;
70
73
  author: Pick<ReleaseNode['author'], 'login' | 'name' | 'email' | 'html_url' | 'type'>;
71
74
  } & Pick<ReleaseNode, 'id' | 'name' | 'body' | 'draft' | 'created_at' | 'published_at' | 'tag_name'>;
75
+ export type Project = {
76
+ org: string;
77
+ id: string;
78
+ } & Pick<ProjectsQuery['organization']['projectsV2']['nodes'][0], 'name' | 'body' | 'created_at' | 'updated_at'>;
79
+ export type Issue = {
80
+ org: string;
81
+ repo: string;
82
+ } & IssuesQuery['repository']['issues']['nodes'][0];
83
+ export type IssueAssignment = Issue['assignments']['nodes'][0];
72
84
  export type CopilotSeatsStreamRecord = CopilotSeat | CopilotSeatEnded | CopilotSeatsEmpty;
73
85
  export type CopilotSeat = {
74
86
  empty?: never;
@@ -101,4 +113,16 @@ export type CopilotUsageSummary = {
101
113
  org: string;
102
114
  } & GetResponseDataTypeFromEndpointMethod<typeof octokit.copilot.usageMetricsForOrg>[0];
103
115
  export type LanguageEditorBreakdown = CopilotUsageSummary['breakdown'][0];
116
+ export type ContributorStats = {
117
+ org: string;
118
+ repo: string;
119
+ user: string;
120
+ total: number;
121
+ weeks: {
122
+ w?: number;
123
+ a?: number;
124
+ d?: number;
125
+ c?: number;
126
+ }[];
127
+ };
104
128
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/github/types.ts"],"names":[],"mappings":";;;AAAA,wCAAsC;AAWtC,MAAM,OAAO,GAAY,IAAI,cAAO,EAAE,CAAC;AAkLvC,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,uCAAyB,CAAA;AAC3B,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/github/types.ts"],"names":[],"mappings":";;;AAAA,wCAAsC;AActC,MAAM,OAAO,GAAY,IAAI,cAAO,EAAE,CAAC;AAqMvC,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,uCAAyB,CAAA;AAC3B,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB"}