@commitspark/git-adapter-github 0.5.0 → 0.7.0

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/CHANGELOG.md CHANGED
@@ -1,57 +1,91 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7
 
8
+ ## [0.7.0] - 2024-08-23
9
+
10
+ ### Changed
11
+
12
+ - Rename Git repository option `personalAccessToken` to `accessToken` to better reflect range of usable tokens
13
+ - Upgrade dependencies
14
+
15
+ ## [0.6.0] - 2024-08-17
16
+
17
+ ### Changed
18
+
19
+ - Upgrade to `@commitspark/git-adapter` 0.13.0
20
+ - Upgrade dependencies
21
+
7
22
  ## [0.5.0] - 2023-12-12
23
+
8
24
  ### Changed
25
+
9
26
  - Add eslint
10
27
  - Upgrade to `@commitspark/git-adapter` 0.10.0 with new default directories
11
28
  - Reduce number of files included in NPM package
12
29
 
13
30
  ### Fixed
31
+
14
32
  - Switch to GraphQL query variables to prevent string escaping issues
15
33
  - Fix build process to include only relevant files
16
34
  - Refactor content entry instantiation to ignore non-blob objects
17
35
 
18
36
  ## [0.4.0] - 2023-05-12
37
+
19
38
  ### Changed
39
+
20
40
  - Rename organization
21
41
 
22
42
  ## [0.3.2] - 2023-05-11
43
+
23
44
  ### Fixed
24
- - [#3](https://github.com/commitspark/git-adapter-github/issues/3) Fix text content is not UTF-8 encoded when executing mutations
45
+
46
+ - [#3](https://github.com/commitspark/git-adapter-github/issues/3) Fix text content is not UTF-8 encoded when executing
47
+ mutations
25
48
  - Update `yaml` library to address [security advisory](https://github.com/advisories/GHSA-f9xv-q969-pqx4)
26
49
 
27
50
  ## [0.3.1] - 2023-05-06
51
+
28
52
  ### Fixed
29
- - [#2](https://github.com/commitspark/git-adapter-github/issues/2) Fix error when querying repository without content entries
53
+
54
+ - [#2](https://github.com/commitspark/git-adapter-github/issues/2) Fix error when querying repository without content
55
+ entries
30
56
 
31
57
  ## [0.3.0] - 2023-04-28
58
+
32
59
  ### Changed
60
+
33
61
  - Replace constructor use with object literals to prevent polluting DTOs with prototype function
34
62
  - Update to Git Adapter interface 0.7.0
35
63
 
36
64
  ## [0.2.2] - 2023-03-15
65
+
37
66
  ### Changed
67
+
38
68
  - Remove dependency injection package to support bundling with webpack & co.
39
69
  - Upgrade dependencies
40
70
 
41
71
  ## [0.2.1] - 2023-03-12
42
72
 
43
73
  ### Added
74
+
44
75
  - Throw exception when repository not found when retrieving commit hash
45
76
 
46
77
  ### Fixed
78
+
47
79
  - Fix inadvertent use of HTTP cache for some requests
48
80
 
49
81
  ## [0.2.0] - 2022-12-13
50
82
 
51
83
  ### Added
84
+
52
85
  - Expose schema file path and entries folder path as repository options
53
86
 
54
87
  ## [0.1.0] - 2022-11-04
55
88
 
56
89
  ### Added
90
+
57
91
  - Initial release
package/README.md CHANGED
@@ -1,41 +1,58 @@
1
1
  # Introduction
2
2
 
3
- **[Commitspark](https://commitspark.com) is a workflow-first Content Management System based on Git and GraphQL.**
3
+ [Commitspark](https://commitspark.com) is a set of tools to manage structured data with Git through a GraphQL API.
4
4
 
5
- This repository holds code that implements access to Git repositories hosted on GitHub.
5
+ This repository holds code for a [Commitspark Git adapter](https://github.com/commitspark/git-adapter) that provides
6
+ access to Git repositories hosted on GitHub.
6
7
 
7
8
  # Usage
8
9
 
9
10
  Instantiate the adapter with `createAdapter()` and then call `setRepositoryOptions()` with `GitHubRepositoryOptions` on
10
11
  the instance. These options are as follows:
11
12
 
12
- | Option name | Required | Default value | Description |
13
- |-----------------------|----------|-------------------------------------|---------------------------------------------------|
14
- | `repositoryOwner` | True | | GitHub repository owner, e.g. `commitspark` |
15
- | `repositoryName` | True | | GitHub repository name, e.g. `git-adapter-github` |
16
- | `personalAccessToken` | True | | GitHub personal access token (see details below) |
17
- | `pathSchemaFile` | False | `commitspark/schema/schema.graphql` | Path to schema file in repository |
18
- | `pathEntryFolder` | False | `commitspark/entries/` | Path to folder for content entries |
13
+ | Option name | Required | Default value | Description |
14
+ |-------------------|----------|-------------------------------------|---------------------------------------------------|
15
+ | `repositoryOwner` | True | | GitHub repository owner, e.g. `commitspark` |
16
+ | `repositoryName` | True | | GitHub repository name, e.g. `git-adapter-github` |
17
+ | `accessToken` | True | | GitHub access token (see details below) |
18
+ | `pathSchemaFile` | False | `commitspark/schema/schema.graphql` | Path to schema file in repository |
19
+ | `pathEntryFolder` | False | `commitspark/entries/` | Path to folder for entries |
19
20
 
20
- ## Personal Access Token
21
+ ## Access Token
21
22
 
22
- Both "Tokens (classic)" and "Fine-grained tokens" are supported.
23
- See
24
- the [GitHub documentation](https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql).
23
+ An `accessToken` may be any one of the following types of tokens:
25
24
 
26
- ### Tokens (classic)
25
+ ### Personal Access Tokens (classic)
27
26
 
28
- A token with `repo` scope is required.
27
+ A [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
28
+ with `repo` scope is required.
29
29
 
30
- ### Fine-grained tokens
30
+ ### Fine-grained Personal Access Tokens
31
31
 
32
- A token with the following repository permissions is required for read-only access:
32
+ For read-only access,
33
+ a [fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
34
+ with the following repository permissions is sufficient:
33
35
 
34
36
  | Permission | Access |
35
37
  |------------|-----------|
36
38
  | Contents | Read-only |
37
39
  | Metadata | Read-only |
38
40
 
41
+ For write-access, permissions must be as follows:
42
+
43
+ | Permission | Access |
44
+ |------------|----------------|
45
+ | Contents | Read and write |
46
+ | Metadata | Read-only |
47
+
48
+ In both cases, ensure the fine-grained permissions you give actually apply to the repository you want to work with.
49
+
50
+ ### OAuth Tokens
51
+
52
+ Access tokens for a user obtained
53
+ from an [OAuth app](https://docs.github.com/en/apps/oauth-apps/using-oauth-apps/authorizing-oauth-apps) can be used in
54
+ the same way (including permissions) as fine-grained personal access tokens.
55
+
39
56
  # License
40
57
 
41
58
  The code in this repository is licensed under the permissive ISC license (see [LICENSE](LICENSE)).
package/dist/container.js CHANGED
@@ -4,20 +4,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.gitHubAdapterService = void 0;
7
- const content_entries_to_actions_converter_service_1 = require("./content-entries-to-actions-converter.service");
7
+ const entries_to_actions_converter_service_1 = require("./entries-to-actions-converter.service");
8
8
  const git_hub_adapter_service_1 = require("./git-hub-adapter.service");
9
9
  const graphql_query_factory_service_1 = require("./graphql-query-factory.service");
10
10
  const axios_1 = __importDefault(require("axios"));
11
11
  const axios_cache_interceptor_1 = require("axios-cache-interceptor");
12
12
  const path_factory_service_1 = require("./path-factory.service");
13
- const content_entry_factory_service_1 = require("./content-entry-factory.service");
13
+ const entry_factory_service_1 = require("./entry-factory.service");
14
14
  const cachedHttpAdapter = (0, axios_cache_interceptor_1.setupCache)(axios_1.default.create(), {
15
15
  ttl: git_hub_adapter_service_1.GitHubAdapterService.QUERY_CACHE_SECONDS * 1000,
16
16
  methods: ['get', 'post'],
17
17
  });
18
18
  const graphqlQueryFactoryService = new graphql_query_factory_service_1.GraphqlQueryFactoryService();
19
- const contentEntriesToActionsConverterService = new content_entries_to_actions_converter_service_1.ContentEntriesToActionsConverterService();
19
+ const entriesToActionsConverterService = new entries_to_actions_converter_service_1.EntriesToActionsConverterService();
20
20
  const pathFactoryService = new path_factory_service_1.PathFactoryService();
21
- const contentEntryFactoryService = new content_entry_factory_service_1.ContentEntryFactoryService();
22
- exports.gitHubAdapterService = new git_hub_adapter_service_1.GitHubAdapterService(cachedHttpAdapter, graphqlQueryFactoryService, contentEntriesToActionsConverterService, pathFactoryService, contentEntryFactoryService);
21
+ const entryFactoryService = new entry_factory_service_1.EntryFactoryService();
22
+ exports.gitHubAdapterService = new git_hub_adapter_service_1.GitHubAdapterService(cachedHttpAdapter, graphqlQueryFactoryService, entriesToActionsConverterService, pathFactoryService, entryFactoryService);
23
23
  //# sourceMappingURL=container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":";;;;;;AAAA,iHAAwG;AACxG,uEAAgE;AAChE,mFAA4E;AAC5E,kDAAyB;AACzB,qEAAoD;AACpD,iEAA2D;AAC3D,mFAA4E;AAE5E,MAAM,iBAAiB,GAAG,IAAA,oCAAU,EAAC,eAAK,CAAC,MAAM,EAAE,EAAE;IACnD,GAAG,EAAE,8CAAoB,CAAC,mBAAmB,GAAG,IAAI;IACpD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;CACzB,CAAC,CAAA;AAEF,MAAM,0BAA0B,GAAG,IAAI,0DAA0B,EAAE,CAAA;AACnE,MAAM,uCAAuC,GAC3C,IAAI,sFAAuC,EAAE,CAAA;AAC/C,MAAM,kBAAkB,GAAG,IAAI,yCAAkB,EAAE,CAAA;AACnD,MAAM,0BAA0B,GAAG,IAAI,0DAA0B,EAAE,CAAA;AAEtD,QAAA,oBAAoB,GAAG,IAAI,8CAAoB,CAC1D,iBAAiB,EACjB,0BAA0B,EAC1B,uCAAuC,EACvC,kBAAkB,EAClB,0BAA0B,CAC3B,CAAA"}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":";;;;;;AAAA,iGAAyF;AACzF,uEAAgE;AAChE,mFAA4E;AAC5E,kDAAyB;AACzB,qEAAoD;AACpD,iEAA2D;AAC3D,mEAA6D;AAE7D,MAAM,iBAAiB,GAAG,IAAA,oCAAU,EAAC,eAAK,CAAC,MAAM,EAAE,EAAE;IACnD,GAAG,EAAE,8CAAoB,CAAC,mBAAmB,GAAG,IAAI;IACpD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;CACzB,CAAC,CAAA;AAEF,MAAM,0BAA0B,GAAG,IAAI,0DAA0B,EAAE,CAAA;AACnE,MAAM,gCAAgC,GAAG,IAAI,uEAAgC,EAAE,CAAA;AAC/E,MAAM,kBAAkB,GAAG,IAAI,yCAAkB,EAAE,CAAA;AACnD,MAAM,mBAAmB,GAAG,IAAI,2CAAmB,EAAE,CAAA;AAExC,QAAA,oBAAoB,GAAG,IAAI,8CAAoB,CAC1D,iBAAiB,EACjB,0BAA0B,EAC1B,gCAAgC,EAChC,kBAAkB,EAClB,mBAAmB,CACpB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { EntryDraft } from '@commitspark/git-adapter';
2
+ import { AdditionModel } from './addition.model';
3
+ import { DeletionModel } from './deletion.model';
4
+ export declare class EntriesToActionsConverterService {
5
+ convert(entryDrafts: EntryDraft[], pathEntryFolder: string): {
6
+ additions: AdditionModel[];
7
+ deletions: DeletionModel[];
8
+ };
9
+ }
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentEntriesToActionsConverterService = void 0;
3
+ exports.EntriesToActionsConverterService = void 0;
4
4
  const git_adapter_1 = require("@commitspark/git-adapter");
5
5
  const yaml_1 = require("yaml");
6
6
  const addition_model_1 = require("./addition.model");
7
7
  const deletion_model_1 = require("./deletion.model");
8
- class ContentEntriesToActionsConverterService {
9
- convert(contentEntries, pathEntryFolder) {
8
+ class EntriesToActionsConverterService {
9
+ convert(entryDrafts, pathEntryFolder) {
10
10
  const additions = [];
11
11
  const deletions = [];
12
- contentEntries.forEach((contentEntry) => {
13
- const entryPath = `${pathEntryFolder}/${contentEntry.id}${git_adapter_1.ENTRY_EXTENSION}`;
14
- if (contentEntry.deletion) {
12
+ entryDrafts.forEach((entryDraft) => {
13
+ const entryPath = `${pathEntryFolder}/${entryDraft.id}${git_adapter_1.ENTRY_EXTENSION}`;
14
+ if (entryDraft.deletion) {
15
15
  deletions.push(new deletion_model_1.DeletionModel(entryPath));
16
16
  }
17
17
  else {
18
18
  additions.push(new addition_model_1.AdditionModel(entryPath, (0, yaml_1.stringify)({
19
- metadata: contentEntry.metadata,
20
- data: contentEntry.data,
19
+ metadata: entryDraft.metadata,
20
+ data: entryDraft.data,
21
21
  })));
22
22
  }
23
23
  });
@@ -27,5 +27,5 @@ class ContentEntriesToActionsConverterService {
27
27
  };
28
28
  }
29
29
  }
30
- exports.ContentEntriesToActionsConverterService = ContentEntriesToActionsConverterService;
31
- //# sourceMappingURL=content-entries-to-actions-converter.service.js.map
30
+ exports.EntriesToActionsConverterService = EntriesToActionsConverterService;
31
+ //# sourceMappingURL=entries-to-actions-converter.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entries-to-actions-converter.service.js","sourceRoot":"","sources":["../src/entries-to-actions-converter.service.ts"],"names":[],"mappings":";;;AAAA,0DAAsE;AACtE,+BAAgC;AAChC,qDAAgD;AAChD,qDAAgD;AAEhD,MAAa,gCAAgC;IAC3C,OAAO,CACL,WAAyB,EACzB,eAAuB;QAKvB,MAAM,SAAS,GAAoB,EAAE,CAAA;QACrC,MAAM,SAAS,GAAoB,EAAE,CAAA;QACrC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YACjC,MAAM,SAAS,GAAG,GAAG,eAAe,IAAI,UAAU,CAAC,EAAE,GAAG,6BAAe,EAAE,CAAA;YACzE,IAAI,UAAU,CAAC,QAAQ,EAAE;gBACvB,SAAS,CAAC,IAAI,CAAC,IAAI,8BAAa,CAAC,SAAS,CAAC,CAAC,CAAA;aAC7C;iBAAM;gBACL,SAAS,CAAC,IAAI,CACZ,IAAI,8BAAa,CACf,SAAS,EACT,IAAA,gBAAS,EAAC;oBACR,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,IAAI,EAAE,UAAU,CAAC,IAAI;iBACtB,CAAC,CACH,CACF,CAAA;aACF;QACH,CAAC,CAAC,CAAA;QACF,OAAO;YACL,SAAS;YACT,SAAS;SACV,CAAA;IACH,CAAC;CACF;AA/BD,4EA+BC"}
@@ -0,0 +1,12 @@
1
+ import { Entry } from '@commitspark/git-adapter';
2
+ interface TreeEntry {
3
+ name: string;
4
+ object: {
5
+ __typename: string;
6
+ text: string;
7
+ };
8
+ }
9
+ export declare class EntryFactoryService {
10
+ createFromBlobsQueryResponseData(entries: TreeEntry[]): Entry[];
11
+ }
12
+ export {};
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentEntryFactoryService = void 0;
3
+ exports.EntryFactoryService = void 0;
4
4
  const yaml_1 = require("yaml");
5
5
  const git_adapter_1 = require("@commitspark/git-adapter");
6
- class ContentEntryFactoryService {
6
+ class EntryFactoryService {
7
7
  createFromBlobsQueryResponseData(entries) {
8
8
  {
9
9
  return entries
10
10
  .filter((entry) => entry.name.endsWith(git_adapter_1.ENTRY_EXTENSION) &&
11
11
  entry.object['__typename'] === 'Blob')
12
12
  .map((entry) => {
13
- const content = (0, yaml_1.parse)(entry.object.text);
13
+ const fileContent = (0, yaml_1.parse)(entry.object.text);
14
14
  const id = entry.name.substring(0, entry.name.length - git_adapter_1.ENTRY_EXTENSION.length);
15
15
  return {
16
16
  id: id,
17
- metadata: content.metadata,
18
- data: content.data,
17
+ metadata: fileContent.metadata,
18
+ data: fileContent.data,
19
19
  };
20
20
  });
21
21
  }
22
22
  }
23
23
  }
24
- exports.ContentEntryFactoryService = ContentEntryFactoryService;
25
- //# sourceMappingURL=content-entry-factory.service.js.map
24
+ exports.EntryFactoryService = EntryFactoryService;
25
+ //# sourceMappingURL=entry-factory.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-factory.service.js","sourceRoot":"","sources":["../src/entry-factory.service.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAC5B,0DAAiE;AAUjE,MAAa,mBAAmB;IACvB,gCAAgC,CAAC,OAAoB;QAC1D;YACE,OAAO,OAAO;iBACX,MAAM,CACL,CAAC,KAAgB,EAAE,EAAE,CACnB,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,6BAAe,CAAC;gBACpC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,MAAM,CACxC;iBACA,GAAG,CAAC,CAAC,KAAgB,EAAE,EAAE;gBACxB,MAAM,WAAW,GAAG,IAAA,YAAK,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;gBAC5C,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAC7B,CAAC,EACD,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,6BAAe,CAAC,MAAM,CAC3C,CAAA;gBACD,OAAO;oBACL,EAAE,EAAE,EAAE;oBACN,QAAQ,EAAE,WAAW,CAAC,QAAQ;oBAC9B,IAAI,EAAE,WAAW,CAAC,IAAI;iBACd,CAAA;YACZ,CAAC,CAAC,CAAA;SACL;IACH,CAAC;CACF;AAvBD,kDAuBC"}
@@ -1,22 +1,22 @@
1
1
  import { GraphqlQueryFactoryService } from './graphql-query-factory.service';
2
- import { Commit, CommitDraft, ContentEntry, GitAdapter } from '@commitspark/git-adapter';
3
- import { ContentEntriesToActionsConverterService } from './content-entries-to-actions-converter.service';
2
+ import { Commit, CommitDraft, Entry, GitAdapter } from '@commitspark/git-adapter';
3
+ import { EntriesToActionsConverterService } from './entries-to-actions-converter.service';
4
4
  import { AxiosCacheInstance } from 'axios-cache-interceptor';
5
5
  import { GitHubRepositoryOptions } from './index';
6
6
  import { PathFactoryService } from './path-factory.service';
7
- import { ContentEntryFactoryService } from './content-entry-factory.service';
7
+ import { EntryFactoryService } from './entry-factory.service';
8
8
  export declare class GitHubAdapterService implements GitAdapter {
9
9
  private readonly cachedHttpAdapter;
10
10
  private graphqlQueryFactory;
11
- private contentEntriesToActionsConverter;
11
+ private entriesToActionsConverter;
12
12
  private pathFactory;
13
- private contentEntryFactory;
13
+ private entryFactory;
14
14
  static readonly QUERY_CACHE_SECONDS: number;
15
15
  static readonly API_URL = "https://api.github.com/graphql";
16
16
  private gitRepositoryOptions;
17
- constructor(cachedHttpAdapter: AxiosCacheInstance, graphqlQueryFactory: GraphqlQueryFactoryService, contentEntriesToActionsConverter: ContentEntriesToActionsConverterService, pathFactory: PathFactoryService, contentEntryFactory: ContentEntryFactoryService);
17
+ constructor(cachedHttpAdapter: AxiosCacheInstance, graphqlQueryFactory: GraphqlQueryFactoryService, entriesToActionsConverter: EntriesToActionsConverterService, pathFactory: PathFactoryService, entryFactory: EntryFactoryService);
18
18
  setRepositoryOptions(repositoryOptions: GitHubRepositoryOptions): Promise<void>;
19
- getContentEntries(commitHash: string): Promise<ContentEntry[]>;
19
+ getEntries(commitHash: string): Promise<Entry[]>;
20
20
  getSchema(commitHash: string): Promise<string>;
21
21
  getLatestCommitHash(ref: string): Promise<string>;
22
22
  createCommit(commitDraft: CommitDraft): Promise<Commit>;
@@ -2,22 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GitHubAdapterService = void 0;
4
4
  class GitHubAdapterService {
5
- constructor(cachedHttpAdapter, graphqlQueryFactory, contentEntriesToActionsConverter, pathFactory, contentEntryFactory) {
5
+ constructor(cachedHttpAdapter, graphqlQueryFactory, entriesToActionsConverter, pathFactory, entryFactory) {
6
6
  this.cachedHttpAdapter = cachedHttpAdapter;
7
7
  this.graphqlQueryFactory = graphqlQueryFactory;
8
- this.contentEntriesToActionsConverter = contentEntriesToActionsConverter;
8
+ this.entriesToActionsConverter = entriesToActionsConverter;
9
9
  this.pathFactory = pathFactory;
10
- this.contentEntryFactory = contentEntryFactory;
10
+ this.entryFactory = entryFactory;
11
11
  }
12
12
  async setRepositoryOptions(repositoryOptions) {
13
13
  this.gitRepositoryOptions = repositoryOptions;
14
14
  }
15
- async getContentEntries(commitHash) {
15
+ async getEntries(commitHash) {
16
16
  var _a, _b;
17
17
  if (this.gitRepositoryOptions === undefined) {
18
18
  throw new Error('Repository options must be set before reading');
19
19
  }
20
- const token = this.gitRepositoryOptions.personalAccessToken;
20
+ const token = this.gitRepositoryOptions.accessToken;
21
21
  const pathEntryFolder = this.pathFactory.getPathEntryFolder(this.gitRepositoryOptions);
22
22
  const queryFilesContent = this.graphqlQueryFactory.createBlobsContentQuery();
23
23
  const filesContentResponse = await this.cachedHttpAdapter.post(GitHubAdapterService.API_URL, {
@@ -35,7 +35,7 @@ class GitHubAdapterService {
35
35
  if (!((_b = (_a = filesContentResponse.data.data.repository) === null || _a === void 0 ? void 0 : _a.object) === null || _b === void 0 ? void 0 : _b.entries)) {
36
36
  return [];
37
37
  }
38
- return this.contentEntryFactory.createFromBlobsQueryResponseData(filesContentResponse.data.data.repository.object.entries);
38
+ return this.entryFactory.createFromBlobsQueryResponseData(filesContentResponse.data.data.repository.object.entries);
39
39
  }
40
40
  async getSchema(commitHash) {
41
41
  var _a, _b, _c, _d;
@@ -44,7 +44,7 @@ class GitHubAdapterService {
44
44
  }
45
45
  const repositoryOwner = this.gitRepositoryOptions.repositoryOwner;
46
46
  const repositoryName = this.gitRepositoryOptions.repositoryName;
47
- const token = this.gitRepositoryOptions.personalAccessToken;
47
+ const token = this.gitRepositoryOptions.accessToken;
48
48
  const schemaFilePath = this.pathFactory.getPathSchema(this.gitRepositoryOptions);
49
49
  const queryContent = this.graphqlQueryFactory.createBlobContentQuery();
50
50
  const response = await this.cachedHttpAdapter.post(GitHubAdapterService.API_URL, {
@@ -70,7 +70,7 @@ class GitHubAdapterService {
70
70
  if (this.gitRepositoryOptions === undefined) {
71
71
  throw new Error('Repository options must be set before reading');
72
72
  }
73
- const token = this.gitRepositoryOptions.personalAccessToken;
73
+ const token = this.gitRepositoryOptions.accessToken;
74
74
  const queryLatestCommit = this.graphqlQueryFactory.createLatestCommitQuery();
75
75
  const response = await this.cachedHttpAdapter.post(GitHubAdapterService.API_URL, {
76
76
  query: queryLatestCommit,
@@ -99,9 +99,9 @@ class GitHubAdapterService {
99
99
  if (this.gitRepositoryOptions === undefined) {
100
100
  throw new Error('Repository options must be set before committing');
101
101
  }
102
- const token = this.gitRepositoryOptions.personalAccessToken;
102
+ const token = this.gitRepositoryOptions.accessToken;
103
103
  const pathEntryFolder = this.pathFactory.getPathEntryFolder(this.gitRepositoryOptions);
104
- const { additions, deletions } = this.contentEntriesToActionsConverter.convert(commitDraft.contentEntries, pathEntryFolder);
104
+ const { additions, deletions } = this.entriesToActionsConverter.convert(commitDraft.entries, pathEntryFolder);
105
105
  const mutateCommit = this.graphqlQueryFactory.createCommitMutation();
106
106
  const response = await this.cachedHttpAdapter.post(GitHubAdapterService.API_URL, {
107
107
  query: mutateCommit,
@@ -1 +1 @@
1
- {"version":3,"file":"git-hub-adapter.service.js","sourceRoot":"","sources":["../src/git-hub-adapter.service.ts"],"names":[],"mappings":";;;AAaA,MAAa,oBAAoB;IAO/B,YACmB,iBAAqC,EAC9C,mBAA+C,EAC/C,gCAAyE,EACzE,WAA+B,EAC/B,mBAA+C;QAJtC,sBAAiB,GAAjB,iBAAiB,CAAoB;QAC9C,wBAAmB,GAAnB,mBAAmB,CAA4B;QAC/C,qCAAgC,GAAhC,gCAAgC,CAAyC;QACzE,gBAAW,GAAX,WAAW,CAAoB;QAC/B,wBAAmB,GAAnB,mBAAmB,CAA4B;IACtD,CAAC;IAEG,KAAK,CAAC,oBAAoB,CAC/B,iBAA0C;QAE1C,IAAI,CAAC,oBAAoB,GAAG,iBAAiB,CAAA;IAC/C,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,UAAkB;;QAC/C,IAAI,IAAI,CAAC,oBAAoB,KAAK,SAAS,EAAE;YAC3C,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAA;QAC3D,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,kBAAkB,CACzD,IAAI,CAAC,oBAAoB,CAC1B,CAAA;QAED,MAAM,iBAAiB,GAAG,IAAI,CAAC,mBAAmB,CAAC,uBAAuB,EAAE,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IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;SACvD;QAED,OAAO,EAAE,GAAG,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IAC3C,CAAC;;AA9LH,oDA+LC;AA9LiB,wCAAmB,GAAG,EAAE,GAAG,EAAE,CAAA;AAE7B,4BAAO,GAAG,gCAAgC,CAAA"}
@@ -70,7 +70,7 @@ class GraphqlQueryFactoryService {
70
70
  }
71
71
  createLatestCommitQuery() {
72
72
  return `
73
- query Content ($repositoryOwner: String!, $repositoryName: String!, $ref: String!) {
73
+ query ($repositoryOwner: String!, $repositoryName: String!, $ref: String!) {
74
74
  repository(owner: $repositoryOwner, name: $repositoryName) {
75
75
  ref(qualifiedName: $ref) {
76
76
  target {
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { GitHubAdapterService } from './git-hub-adapter.service';
3
3
  export interface GitHubRepositoryOptions extends GitRepositoryOptions {
4
4
  repositoryOwner: string;
5
5
  repositoryName: string;
6
- personalAccessToken: string;
6
+ accessToken: string;
7
7
  pathSchemaFile?: string;
8
8
  pathEntryFolder?: string;
9
9
  }
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2017.full.d.ts","../node_modules/buffer/index.d.ts","../src/addition.model.ts","../node_modules/@commitspark/git-adapter/dist/model/content-entry-metadata.d.ts","../node_modules/@commitspark/git-adapter/dist/model/content-entry.d.ts","../node_modules/@commitspark/git-adapter/dist/model/content-entry-draft.d.ts","../node_modules/@commitspark/git-adapter/dist/model/commit-draft.d.ts","../node_modules/@commitspark/git-adapter/dist/model/commit.d.ts","../node_modules/@commitspark/git-adapter/dist/git-adapter.d.ts","../node_modules/@commitspark/git-adapter/dist/index.d.ts","../node_modules/yaml/dist/parse/line-counter.d.ts","../node_modules/yaml/dist/errors.d.ts","../node_modules/yaml/dist/doc/applyReviver.d.ts","../node_modules/yaml/dist/log.d.ts","../node_modules/yaml/dist/nodes/toJS.d.ts","../node_modules/yaml/dist/nodes/Scalar.d.ts","../node_modules/yaml/dist/nodes/Collection.d.ts","../node_modules/yaml/dist/nodes/YAMLMap.d.ts","../node_modules/yaml/dist/nodes/YAMLSeq.d.ts","../node_modules/yaml/dist/schema/types.d.ts","../node_modules/yaml/dist/schema/Schema.d.ts","../node_modules/yaml/dist/doc/createNode.d.ts","../node_modules/yaml/dist/nodes/addPairToJSMap.d.ts","../node_modules/yaml/dist/nodes/Pair.d.ts","../node_modules/yaml/dist/schema/tags.d.ts","../node_modules/yaml/dist/options.d.ts","../node_modules/yaml/dist/stringify/stringify.d.ts","../node_modules/yaml/dist/nodes/Node.d.ts","../node_modules/yaml/dist/parse/cst-scalar.d.ts","../node_modules/yaml/dist/parse/cst-stringify.d.ts","../node_modules/yaml/dist/parse/cst-visit.d.ts","../node_modules/yaml/dist/parse/cst.d.ts","../node_modules/yaml/dist/nodes/Alias.d.ts","../node_modules/yaml/dist/doc/Document.d.ts","../node_modules/yaml/dist/doc/directives.d.ts","../node_modules/yaml/dist/compose/composer.d.ts","../node_modules/yaml/dist/parse/lexer.d.ts","../node_modules/yaml/dist/parse/parser.d.ts","../node_modules/yaml/dist/public-api.d.ts","../node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts","../node_modules/yaml/dist/schema/yaml-1.1/set.d.ts","../node_modules/yaml/dist/visit.d.ts","../node_modules/yaml/dist/index.d.ts","../src/deletion.model.ts","../src/content-entries-to-actions-converter.service.ts","../src/graphql-query-factory.service.ts","../node_modules/axios/index.d.ts","../node_modules/fast-defer/dist/deferred.d.ts","../node_modules/fast-defer/dist/create-deferred.d.ts","../node_modules/fast-defer/dist/is-deferred.d.ts","../node_modules/fast-defer/dist/index.d.ts","../node_modules/axios-cache-interceptor/dist/header/types.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/build.d.ts","../node_modules/axios-cache-interceptor/dist/util/types.d.ts","../node_modules/axios-cache-interceptor/dist/storage/types.d.ts","../node_modules/axios-cache-interceptor/dist/cache/cache.d.ts","../node_modules/axios-cache-interceptor/dist/cache/axios.d.ts","../node_modules/axios-cache-interceptor/dist/cache/create.d.ts","../node_modules/axios-cache-interceptor/dist/header/headers.d.ts","../node_modules/axios-cache-interceptor/dist/header/interpreter.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/request.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/response.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/util.d.ts","../node_modules/axios-cache-interceptor/dist/storage/build.d.ts","../node_modules/axios-cache-interceptor/dist/storage/memory.d.ts","../node_modules/axios-cache-interceptor/dist/storage/web-api.d.ts","../node_modules/axios-cache-interceptor/dist/util/cache-predicate.d.ts","../node_modules/axios-cache-interceptor/dist/util/key-generator.d.ts","../node_modules/axios-cache-interceptor/dist/util/update-cache.d.ts","../node_modules/axios-cache-interceptor/dist/index.d.ts","../src/index.ts","../src/path-factory.service.ts","../src/content-entry-factory.service.ts","../src/git-hub-adapter.service.ts","../src/container.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},"d2f31f19e1ba6ed59be9259d660a239d9a3fcbbc8e038c6b2009bde34b175fed","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188",{"version":"2920b3f53f1b941d78c4a308c76cdbea75a3bd4b1e5a650916665b41a5791809","signature":"89b04f42a9291feb49cfac8dc5b99e792bdde7462097d217b3f8318127ad8bd2"},"3525e7fa64365bf44ba82bf79b13a10ce1e78b3a92cb22fd98377e4663dcf7da","a0bdd2fd60487e6233d39964606158ac12a931bf8fde64ca1a3d816f306d8b86","2b3e9d284e89738cc7e256be71923592720ae463fb5488206482633acc27f18b","888e6eb5d13e636bdbe51357ce34fa7a14e41ebb3442944e0e7a31c02cf13d2c","fdf1c0f508657d404ee8a65540f71610ca29645e38c9175df70c05b6293affdb","7d4a25e31c888ce3c8796064e667d7607b794c2a0bf27ad75bf6c77809ea5c5a","ba3ce8962a91b70735056413855d6b08150b775bef48a9b0eed857e6162db6a0","3dfcd0a3bfa70b53135db3cf2e4ddcb7eccc3e4418ce833ae24eecd06928328f","b26f93d773cf3aa4dc421c45323adccaead92598594a56f4a84d77910ee4f510","bc41a8e33caf4d193b0c49ec70d1e8db5ce3312eafe5447c6c1d5a2084fece12","7c33f11a56ba4e79efc4ddae85f8a4a888e216d2bf66c863f344d403437ffc74","2bb86e343b4109c784b11070735fa881af5c870a409a3b87b13800ca2afef421","fc9d4e784c9e7569911d8a6a01e1de90617942639c7c260beffdef1548b1ce06","37c1aeea4ec8df37bbe5d96bda46831acab3f70b2001ec9f51cb3146a101de89","5ac83af1a323158abc8627462fe987f7c67f957f88cdcf2237ae4dddc26677a8","df486e591f21d229d75df323fb9cf34f4b5cdbccee6a9b42227be738a13755d6","69ebf923204206eecef4310dc8bf28ab07feddaa3542066cdafbe67adf45f811","ae8189514ed306971ac9aa7d917487ee51dc3590aa5735f23c1d71811c373ea6","6de9d8858034d3197c1525e1c29c942cf7912f807d4d7f14dea247b7c05b59b0","394b4927dcc6eda44eb759f395da17b6e07f4daf272216b5cfc92eb32239f561","1adcc285d2d477ec6c51d0282d891fdf9d04a5fa8dfa479eab153ae17376f1b4","0ad294cdc42fb1f99cc94db8f77364ddc516643d9c69d4e66942f2cfd783213b","3956f34170e48abf902bc81055fb35a7e8b87109dbf3ca272d096d6d42cf7b84","f3acf8cff186f71a3a9b2da63f1378de6fe68a8578cb47d097776143cc84cd7d","1db170e5dad144b639ddf3d32710491c583f48c6e522580c8d5a8c249a611338","960923ce078ecfef6e5c34468cdba5c552b064c0db7cb0fdd3eafd1bb9d3d7e9","42f034630b3a866d4a88b37cf0f8357b36af2f7298b319d536b7413ba99f979b","33d1d46d7789bebdf9b78cd54f39022aad5d7d1d03a58bdad4fe98658acfef06","b3956ba310c0bcd45b1c77455a9754a35b49642be91bfbb412e04d378fad83a1","052854468e3d8142f440fa9a0da1d743abef903dff09597025d07703c25b601e","284147c679272283a4bea7ccaecbbab198bb1854e19269b2e59d4b5cedd5894a","325994b6f6c7598c73bbd0294bf1e3f1e229772669b3c8a08fe3170442f600b8","581656e45b2555b764e2880a39859e25ac6c0c9a74cff83dd22d3859b2231982","843563f951d16e850a0be806010f630a4a71f0a55810bb9aced67c6d7774bf2f","9af1c478e5403b39b922df9132d779bc6e1ef88cafec17fcecf26356d90ecbd6","a95a6135f2d195c93d930ba01049c33579328e55612477c0ae5652429d3974ad","24ead5861f4400218aeaafa477082022f244e3df46d18831411f3a47fc3ff515","65ce9342063fcf793e7baea7526a5a9a2f6ce05dea0cf4ae726d02eae2b98fa3","b932682e049f41e294a3429aca3b0adb4d2eed8047b4c22f91565e9353d6940c","5a1755f317ac2c0d708fbf7c1dbf076ba3a31f624c534b44275c9c43033fdc2e",{"version":"2c96494b4ab2834248a1c71e0798e39a1754b57e3d5bdc87a2c15f8748f0fddd","signature":"c326042e25ba027385f0501a483ca939438bec254481190c4f3a26498b2da588"},{"version":"376dfde1b187f4e8494b87dfb2f5fab5ffea6fee37452751d3f98baed9d35e12","signature":"6f05188756ad21b77a4f6c0d3f5555fe236453336ccf8d1981d5a6c82151df3c"},{"version":"d53ab7c0e4fe4734ae99ff2af62a29fdc92344e5d7814e0b387112fb54e477d0","signature":"9746e17659173db1db1ff2aacee80454d9ab852ae863a47de42ee8e0b71c147e"},"17affcd8cc646e7f05e4b96d325b893d22542dd2c2c63ead572ca1bea346ebc9","20cfd3f265de121245f4e303186d4f9ac99694b5165059d43c92bf494e368fcb","32d782ffe891896f5507e5c0a459335a909085b0bd5d01f665217ac88e39061d","7843485677d4ecddf4c4a9af063bb174704c2524b89cc9baf31acba340cf5883","17035f33da424f147f9b71a485bcedc69259fa57da28d6b47d303270a56ae586","d1c5ae708ca53712e7f761aa5aef56613cea2a12649ba236d8e01a38158f20a1","0d874f837f0e757b7430cda012c2449f028d885857ab6bfb9260cb504f3dc526","08d5d34963c74cb25debac21053d4da99869447ac20d391348c8f614ed8c9125","8de0643adef9da014f2de936aa5bb26df21b5fa86fc5457c71fa8622369a7d82","0738e4b13b9c4f30e3b24866a6c450afe4b50ccd8285c865c0b1ba778160cf86","0d40edf4cd60571d4b61972768efc4832748a1d0370c96cec59fca22461f6f49","0dcc2de7ff7064735fa2619f142c6c3b182b8df27b3718f91dc0c12c2256252a","8698e5c166b98b0d75c0fb06553df6a27df69275b238fd3c4f3f534e03415523","b219d61f40f34e45a01f7c4cb3afac27e486b1672053ab7f9c8a5b2063ce95fb","e799e3e58dcefa1fbf7204883f0b5954055875287359289200da0b189420757f","e531dda5cfd2ca46af492cb98af92ecc0339f6f8c770d8d7afdf033b77d8fae6","86f0f8aa0aacb5f24a03922cfad0732c59dc703a52a38056229a6b373f47978f","9c963300aa9f0b8c0d61152d06d84a773a7f478b6c3e31c3678a3e81e974bb63","b856b895bdb28b396b5cf9b940c723de61afbf6dda0792afc9b716c5205d24ac","1be81084e824d6a9fc0fe5a9650998ff43548bce063d8bd265593ec3bc2ac3a0","e1c12ab2708279a56dc8cdb870647b384e6a60c1c056e7db87fd6071a92f438b","c0554fdfc7885397d22ad0a383575fd77e2cea5b1b59761bccd8b46c88bdd8dc","86f337397a07a8d851c6eda0de144eec0947501cd41b4ea4a301ab07b569b41f","c80d91e26836b6257433362adec238b0cf407b52944a5cf103d6149c997fa144",{"version":"97e4dc41c01c8112e10d5e5ecf7a4e8b0b618203218a4d7d33893d261012b717","signature":"6c23344ab224a6a6368c0c48f083a78d66cf871efa9138fd34a871c7af8b81e3"},{"version":"f89df8ba2ff223c5cedd3673f589cda88af660fc67bc4b1a11a92ef77a83ba7b","signature":"527c3f7678bf6b88a77bf107aca0b128bc89a8f7f57a31d304c007866e30a045"},{"version":"733976588f093cc3d32c39c1a733c4821cb3bde5be53128e66d449e471160927","signature":"7bc6bd5149f094c5653f9e2d5da255a6b6136587c26b376bf965c10dfa790fef"},{"version":"588ed3b961f295bc0c25e9d4c26d94dbe1834ef1feb9357cd3ed5f6201cd8048","signature":"4fb7ae912092c78ba5ce7f0378b1206d580078be0f0eda71ff84dec08196da36"},{"version":"78972f90fe72db47fe02096bce9fd4707b7aedfe3355e9e3897393a67b83b7b7","signature":"a0743ad1a06bff9fbd877124d3f6ecd9241c1e083bb81bb81a3c02d79a3789ab"},"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","5b5337f28573ffdbc95c3653c4a7961d0f02fdf4788888253bf74a3b5a05443e","9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","85f8ebd7f245e8bf29da270e8b53dcdd17528826ffd27176c5fc7e426213ef5a"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":4},"fileIdsList":[[28,30,31],[27,28,29,30,31,32],[29],[28],[27],[100,139],[100,124,139],[139],[100],[100,125,139],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138],[125,139],[70,79],[70,74,75,76,77,78,80],[70,79,80],[75],[70],[75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],[80],[76,80],[70,78,79,80],[77,78,80],[78],[70,77,80],[77,80],[78,80],[71],[71,72,73],[35,49,51,55,57,58],[35,39,41,42,44,47,49,51,56,58],[43,44,51,57],[57],[34],[34,35,39,41,42,43,44,47,48,49,51,55,56,57,59,60,61,62,63,64,65],[38,39,41,42,50,51,55,57],[44,51],[39,41,42,47,50,55,56,57],[38,39,41,42,44,45,46,50,51,55,56],[38,51,55],[38,39,40,44,47,50,51,55],[38,41,47],[50,51,57],[34,36,37,39,43,44,47,48,51,58],[35,39,51,55],[55],[52,53,54],[36,49,51,57,59],[43,47,49,51],[43,49],[39,41,42,44,45,49,50,51],[38,42,43,66],[38,39,41,43,44,47,50],[49,56,57],[39,41,42,47,51,56,57],[25],[68,69,70,93,95,96,97],[26,33,66,67],[33,66],[33,68,69,93,94,95,96],[33,97,98],[33,94],[97],[26,33,67],[33],[33,97],[94]],"referencedMap":[[32,1],[33,2],[30,3],[29,4],[28,5],[124,6],[125,7],[100,8],[103,8],[122,6],[123,6],[113,6],[112,9],[110,6],[105,6],[118,6],[116,6],[120,6],[104,6],[117,6],[121,6],[106,6],[107,6],[119,6],[101,6],[108,6],[109,6],[111,6],[115,6],[126,10],[114,6],[102,6],[139,11],[133,10],[135,12],[134,10],[127,10],[128,10],[130,10],[132,10],[136,12],[137,12],[129,12],[131,12],[80,13],[79,14],[81,15],[83,16],[75,17],[93,18],[76,19],[84,19],[85,20],[86,21],[87,22],[88,23],[78,24],[89,23],[90,25],[91,25],[77,26],[92,22],[72,27],[74,28],[73,27],[59,29],[57,30],[45,31],[58,32],[35,33],[66,34],[56,35],[40,36],[51,37],[47,38],[39,39],[41,40],[42,40],[46,41],[38,42],[49,43],[52,44],[53,45],[54,45],[55,46],[61,45],[62,47],[44,48],[48,49],[43,50],[63,51],[64,52],[50,53],[65,54],[26,55],[98,56],[68,57],[96,58],[97,59],[94,60],[95,61]],"exportedModulesMap":[[32,1],[33,2],[30,3],[29,4],[28,5],[124,6],[125,7],[100,8],[103,8],[122,6],[123,6],[113,6],[112,9],[110,6],[105,6],[118,6],[116,6],[120,6],[104,6],[117,6],[121,6],[106,6],[107,6],[119,6],[101,6],[108,6],[109,6],[111,6],[115,6],[126,10],[114,6],[102,6],[139,11],[133,10],[135,12],[134,10],[127,10],[128,10],[130,10],[132,10],[136,12],[137,12],[129,12],[131,12],[80,13],[79,14],[81,15],[83,16],[75,17],[93,18],[76,19],[84,19],[85,20],[86,21],[87,22],[88,23],[78,24],[89,23],[90,25],[91,25],[77,26],[92,22],[72,27],[74,28],[73,27],[59,29],[57,30],[45,31],[58,32],[35,33],[66,34],[56,35],[40,36],[51,37],[47,38],[39,39],[41,40],[42,40],[46,41],[38,42],[49,43],[52,44],[53,45],[54,45],[55,46],[61,45],[62,47],[44,48],[48,49],[43,50],[63,51],[64,52],[50,53],[65,54],[98,62],[68,63],[96,64],[97,59],[94,65],[95,66]],"semanticDiagnosticsPerFile":[32,33,30,31,29,27,28,99,124,125,100,103,122,123,113,112,110,105,118,116,120,104,117,121,106,107,119,101,108,109,111,115,126,114,102,139,138,133,135,134,127,128,130,132,136,137,129,131,80,79,81,82,83,75,93,76,84,85,86,87,88,78,89,90,91,77,92,70,25,72,71,74,73,5,6,10,9,2,11,12,13,14,15,16,17,18,3,4,24,22,19,20,21,23,1,8,7,59,57,36,45,58,35,66,37,56,40,51,47,39,41,42,46,38,49,52,53,54,55,60,34,61,62,44,48,43,63,64,50,65,26,98,68,96,67,97,69,94,95]},"version":"4.8.4"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2017.full.d.ts","../node_modules/buffer/index.d.ts","../src/addition.model.ts","../node_modules/@commitspark/git-adapter/dist/model/entry.d.ts","../node_modules/@commitspark/git-adapter/dist/model/entry-draft.d.ts","../node_modules/@commitspark/git-adapter/dist/model/commit-draft.d.ts","../node_modules/@commitspark/git-adapter/dist/model/commit.d.ts","../node_modules/@commitspark/git-adapter/dist/git-adapter.d.ts","../node_modules/@commitspark/git-adapter/dist/index.d.ts","../node_modules/yaml/dist/parse/line-counter.d.ts","../node_modules/yaml/dist/errors.d.ts","../node_modules/yaml/dist/doc/applyReviver.d.ts","../node_modules/yaml/dist/log.d.ts","../node_modules/yaml/dist/nodes/toJS.d.ts","../node_modules/yaml/dist/nodes/Scalar.d.ts","../node_modules/yaml/dist/stringify/stringify.d.ts","../node_modules/yaml/dist/nodes/Collection.d.ts","../node_modules/yaml/dist/nodes/YAMLSeq.d.ts","../node_modules/yaml/dist/schema/types.d.ts","../node_modules/yaml/dist/schema/common/map.d.ts","../node_modules/yaml/dist/schema/common/seq.d.ts","../node_modules/yaml/dist/schema/common/string.d.ts","../node_modules/yaml/dist/stringify/foldFlowLines.d.ts","../node_modules/yaml/dist/stringify/stringifyNumber.d.ts","../node_modules/yaml/dist/stringify/stringifyString.d.ts","../node_modules/yaml/dist/util.d.ts","../node_modules/yaml/dist/nodes/YAMLMap.d.ts","../node_modules/yaml/dist/nodes/identity.d.ts","../node_modules/yaml/dist/schema/Schema.d.ts","../node_modules/yaml/dist/doc/createNode.d.ts","../node_modules/yaml/dist/nodes/addPairToJSMap.d.ts","../node_modules/yaml/dist/nodes/Pair.d.ts","../node_modules/yaml/dist/schema/tags.d.ts","../node_modules/yaml/dist/options.d.ts","../node_modules/yaml/dist/nodes/Node.d.ts","../node_modules/yaml/dist/parse/cst-scalar.d.ts","../node_modules/yaml/dist/parse/cst-stringify.d.ts","../node_modules/yaml/dist/parse/cst-visit.d.ts","../node_modules/yaml/dist/parse/cst.d.ts","../node_modules/yaml/dist/nodes/Alias.d.ts","../node_modules/yaml/dist/doc/Document.d.ts","../node_modules/yaml/dist/doc/directives.d.ts","../node_modules/yaml/dist/compose/composer.d.ts","../node_modules/yaml/dist/parse/lexer.d.ts","../node_modules/yaml/dist/parse/parser.d.ts","../node_modules/yaml/dist/public-api.d.ts","../node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts","../node_modules/yaml/dist/schema/yaml-1.1/set.d.ts","../node_modules/yaml/dist/visit.d.ts","../node_modules/yaml/dist/index.d.ts","../src/deletion.model.ts","../src/entries-to-actions-converter.service.ts","../src/graphql-query-factory.service.ts","../node_modules/axios/index.d.ts","../node_modules/fast-defer/dist/deferred.d.ts","../node_modules/fast-defer/dist/create-deferred.d.ts","../node_modules/fast-defer/dist/is-deferred.d.ts","../node_modules/fast-defer/dist/index.d.ts","../node_modules/axios-cache-interceptor/dist/header/types.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/build.d.ts","../node_modules/axios-cache-interceptor/dist/util/types.d.ts","../node_modules/axios-cache-interceptor/dist/storage/types.d.ts","../node_modules/axios-cache-interceptor/dist/cache/cache.d.ts","../node_modules/axios-cache-interceptor/dist/cache/axios.d.ts","../node_modules/axios-cache-interceptor/dist/cache/create.d.ts","../node_modules/axios-cache-interceptor/dist/header/headers.d.ts","../node_modules/axios-cache-interceptor/dist/header/interpreter.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/request.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/response.d.ts","../node_modules/axios-cache-interceptor/dist/interceptors/util.d.ts","../node_modules/axios-cache-interceptor/dist/storage/build.d.ts","../node_modules/axios-cache-interceptor/dist/storage/memory.d.ts","../node_modules/axios-cache-interceptor/dist/storage/web-api.d.ts","../node_modules/axios-cache-interceptor/dist/util/cache-predicate.d.ts","../node_modules/axios-cache-interceptor/dist/util/key-generator.d.ts","../node_modules/axios-cache-interceptor/dist/util/update-cache.d.ts","../node_modules/axios-cache-interceptor/dist/index.d.ts","../src/index.ts","../src/path-factory.service.ts","../src/entry-factory.service.ts","../src/git-hub-adapter.service.ts","../src/container.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},"d2f31f19e1ba6ed59be9259d660a239d9a3fcbbc8e038c6b2009bde34b175fed","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188",{"version":"2920b3f53f1b941d78c4a308c76cdbea75a3bd4b1e5a650916665b41a5791809","signature":"89b04f42a9291feb49cfac8dc5b99e792bdde7462097d217b3f8318127ad8bd2"},"c4f9f53678258c4f166e3032f10cb2fc910d76e5299006012eb3b09aaf4942b9","4fc87352d3aa14810ce6cf9f4cf260e6ec0211c6f39b7f54f950a8ff4628545c","c8eb5e8aadf53eb626bc92c241e683b37ac87218fce45f4f44e70c209ccc9cc5","fdf1c0f508657d404ee8a65540f71610ca29645e38c9175df70c05b6293affdb","b500be12d34dcb4ebe774b6b5156f237ac3e5d88904fb01b836c540351c8e76f","9262c8e0166e977f16a03e8d29c11847ea8fd80a460c146b1bf583adac649e6b","3dfcd0a3bfa70b53135db3cf2e4ddcb7eccc3e4418ce833ae24eecd06928328f","5c0948b942f2e4d15bf7425e927967bf7b7013060b39286d01789d748e3df721","bc41a8e33caf4d193b0c49ec70d1e8db5ce3312eafe5447c6c1d5a2084fece12","7c33f11a56ba4e79efc4ddae85f8a4a888e216d2bf66c863f344d403437ffc74","d147404d24705b7dfcc196012d20d9622ed042c04a160d641baf2af0f462ed77","fc9d4e784c9e7569911d8a6a01e1de90617942639c7c260beffdef1548b1ce06","f3acf8cff186f71a3a9b2da63f1378de6fe68a8578cb47d097776143cc84cd7d","38dae864fcfe7fc6037e112a428fe0829693950f6181e4f6c0457198c4256f65","5743243334c97d149ebb6093de9060ddaff7158ea093e99062737cbcfc8e5ca5","aa9456d4df880022cac314c906f232cd3911052e114aa77c41dae2ce42e4bcf0","585b6a3e27da0624e1d7d370aa56de47405f63443557d05fc1628a65684f2db6","d2bce192bfd015f614ed990644618ca6d9d58e1d17eaf427f943d03d823be7a3","c2be5af341b5c92d4c26e1d4451394c7ac3d7db081d9e08d99ba4abf67fed2e1","e27605c8932e75b14e742558a4c3101d9f4fdd32e7e9a056b2ca83f37f973945","3771cb36b62e2fa4a9e381816c75bad9595ba12a1b513d8ccdca05d8b9a6f081","f3daf1c3dccf7f6f6611cfc327526735a747a28a4a86f1c9e75a7d89ac406cad","4d56463740ea85ab77709af57f97c8a412c6ceac031c7de6b08b183bd924fb60","dc6b37790a3e06a31d2bfec7d926f472da80c212df13d668d2c1335c757357e0","b04dbf1968a78def981059e3c9e10c52791105c2e9384ef892b52c529e02a699","3f5d5691e167b4df74f8e700d79facf33d6054178d5902fb4311943b7ba14dd3","4965752112e0dd55f695c547b2ec8beb9ecc4b98962ef19b6302c330c35d2f42","394b4927dcc6eda44eb759f395da17b6e07f4daf272216b5cfc92eb32239f561","171c555cae7fb14e62a760eac187e74381c4b1a7e1e6e0834a0ace1f434dfb66","66c57d7932ffcfb7ab9573825e45029c0a7f39c94b742b283f19f8bf301ce7d9","3956f34170e48abf902bc81055fb35a7e8b87109dbf3ca272d096d6d42cf7b84","7777a3f34cef7a7cabd0fa03a662cb6968cccadb111af18098d7eb302c892253","960923ce078ecfef6e5c34468cdba5c552b064c0db7cb0fdd3eafd1bb9d3d7e9","42f034630b3a866d4a88b37cf0f8357b36af2f7298b319d536b7413ba99f979b","33d1d46d7789bebdf9b78cd54f39022aad5d7d1d03a58bdad4fe98658acfef06","1a7798efd1c35de3827d78e7ea3ae26dd5ce7730f6520d4f811e5c0058150e91","0b2b568e213ec5b02f35ee84ebf4c3218ff66fd4dad8acb1ac19001ca96e34f2","b19ff018419b54a2da6d73e289995ee46d6124de0beaf0d0b9b49e072efc6f46","325994b6f6c7598c73bbd0294bf1e3f1e229772669b3c8a08fe3170442f600b8","6710a28c1184ef61c21173c7cbf64cdc07d7cecd5982e9c8469052a2d7380b6c","843563f951d16e850a0be806010f630a4a71f0a55810bb9aced67c6d7774bf2f","9af1c478e5403b39b922df9132d779bc6e1ef88cafec17fcecf26356d90ecbd6","454e856b3762d7b57bfb0fd8f321b5a95c4f369a3506f631bddba5c186d70eb1","09f2eabe28e8cfb314b849841fcbfcfb027d166dc7886122d6567168da724f9c","02b1caff09358768da68691fd5bdb7c60b6682371ef987cfcfb329e860996673","b932682e049f41e294a3429aca3b0adb4d2eed8047b4c22f91565e9353d6940c","989b451e0ad386e24883d8939e1ba39f3446c91dd2bfac0862d76e5e73711da4",{"version":"2c96494b4ab2834248a1c71e0798e39a1754b57e3d5bdc87a2c15f8748f0fddd","signature":"c326042e25ba027385f0501a483ca939438bec254481190c4f3a26498b2da588"},{"version":"e6cea404e8906c793cd8182e0b3dabf16b05b2d5949ed5526112fd38f9fb4fff","signature":"0602159fa4ee353e24b602d6493328587050f95431f06bd02c0205547ff94140"},{"version":"81a4173f701481b3b5bcb9c7cb24dd489cc341dcda859dbdce283800cbc91aed","signature":"9746e17659173db1db1ff2aacee80454d9ab852ae863a47de42ee8e0b71c147e"},"01ba761ce6d75a4142858a053f45d64d255e057049ab1cc4d9a93e76b8b5c444","db7bf75342e8de775cc2db9b4a9f9aad9774bfc0fae131ac07070053f5499172","19f61ae6863c0241bab617bb57eecbcc5e89528a7012728296f69cf70d02d3bc","3c7de13b0db0c7255ebeb17dfb89012b3b3d3827ac33871451e4c03cfa3cb31b","16796e017e93f4a2387c016c2a424dca9e6e36d0f87dacabb5b2186d5e6664d7","d1c5ae708ca53712e7f761aa5aef56613cea2a12649ba236d8e01a38158f20a1","0d874f837f0e757b7430cda012c2449f028d885857ab6bfb9260cb504f3dc526","08d5d34963c74cb25debac21053d4da99869447ac20d391348c8f614ed8c9125","8de0643adef9da014f2de936aa5bb26df21b5fa86fc5457c71fa8622369a7d82","0738e4b13b9c4f30e3b24866a6c450afe4b50ccd8285c865c0b1ba778160cf86","0d40edf4cd60571d4b61972768efc4832748a1d0370c96cec59fca22461f6f49","0dcc2de7ff7064735fa2619f142c6c3b182b8df27b3718f91dc0c12c2256252a","8698e5c166b98b0d75c0fb06553df6a27df69275b238fd3c4f3f534e03415523","b219d61f40f34e45a01f7c4cb3afac27e486b1672053ab7f9c8a5b2063ce95fb","e799e3e58dcefa1fbf7204883f0b5954055875287359289200da0b189420757f","e531dda5cfd2ca46af492cb98af92ecc0339f6f8c770d8d7afdf033b77d8fae6","86f0f8aa0aacb5f24a03922cfad0732c59dc703a52a38056229a6b373f47978f","9c963300aa9f0b8c0d61152d06d84a773a7f478b6c3e31c3678a3e81e974bb63","b856b895bdb28b396b5cf9b940c723de61afbf6dda0792afc9b716c5205d24ac","1be81084e824d6a9fc0fe5a9650998ff43548bce063d8bd265593ec3bc2ac3a0","e1c12ab2708279a56dc8cdb870647b384e6a60c1c056e7db87fd6071a92f438b","c0554fdfc7885397d22ad0a383575fd77e2cea5b1b59761bccd8b46c88bdd8dc","86f337397a07a8d851c6eda0de144eec0947501cd41b4ea4a301ab07b569b41f","c80d91e26836b6257433362adec238b0cf407b52944a5cf103d6149c997fa144",{"version":"e3cfea60b4cda63971f91977f87645d1cf320b8568e535f3888237d4552eadd7","signature":"85d18cbe19975a386d37ce4f0142713907a2dec9703cfe1e338850924040c10c"},{"version":"f89df8ba2ff223c5cedd3673f589cda88af660fc67bc4b1a11a92ef77a83ba7b","signature":"527c3f7678bf6b88a77bf107aca0b128bc89a8f7f57a31d304c007866e30a045"},{"version":"b868a92285eefb9a0b393aefba096ff50a0efbbe724514a52cda14879d94ea01","signature":"a57cdb78b8c9d37c03dad865f926da66a6eba1b74371dba4384ef68b8e91bcba"},{"version":"a87e9802126c08bd8f638c72ff066754d300df5e8bec387243b1f4c08c7c08d8","signature":"93e8ae872d620e3b1aa637cafdbb749eca8accca5c87e1f255b6ce654823b8e1"},{"version":"d9adcbc876ecb1bdeac5e5210d78e33045b39b576f042311c022d53f43aacaaa","signature":"a0743ad1a06bff9fbd877124d3f6ecd9241c1e083bb81bb81a3c02d79a3789ab"},"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","cf3d384d082b933d987c4e2fe7bfb8710adfd9dc8155190056ed6695a25a559e","9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","7d8ddf0f021c53099e34ee831a06c394d50371816caa98684812f089b4c6b3d4"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":4},"fileIdsList":[[27,29,30],[27,28,29,30,31],[28],[27],[107,146],[107,131,146],[146],[107],[107,132,146],[107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145],[132,146],[77,86],[77,81,82,83,84,85,87],[77,86,87],[82],[77],[82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99],[87],[83,87],[77,85,86,87],[84,85,87],[85],[77,84,87],[84,87],[85,87],[78],[78,79,80],[34,57,58,62,64,65],[34,38,41,50,51,52,55,57,58,63,65],[42,52,58,64],[64],[33],[33,34,38,41,42,50,51,52,55,56,57,58,62,63,64,66,67,68,69,70,71,72],[37,38,39,41,50,58,62,64],[51,52,58],[38,39,41,50,51,57,62,63,64],[37,38,39,41,50,51,52,53,54,58,62,63],[37,58,62],[37,38,39,40,49,52,55,58,62],[37,38,39,40,52,53,55,58,62],[37,50,55],[38,41,50,55,58,63,64],[58,64],[33,35,36,38,42,52,55,56,58,65],[34,38,58,62],[62],[59,60,61],[35,57,58,64,66],[42,51,55,57],[42],[42,57],[38,39,41,50,52,53,57,58],[37,41,42,49,52,73],[37,38,39,42,49,50,52,55],[57,63,64],[38],[38,39],[36,37,39,43,44,45,46,47,48,50,53,55],[25],[75,76,77,100,102,103,104],[26,32,73,74],[32,73],[32,75,76,100,101,102,103],[32,104,105],[32,101],[104],[26,32,74],[32],[32,104],[101]],"referencedMap":[[31,1],[32,2],[29,3],[28,4],[131,5],[132,6],[107,7],[110,7],[129,5],[130,5],[120,5],[119,8],[117,5],[112,5],[125,5],[123,5],[127,5],[111,5],[124,5],[128,5],[113,5],[114,5],[126,5],[108,5],[115,5],[116,5],[118,5],[122,5],[133,9],[121,5],[109,5],[146,10],[140,9],[142,11],[141,9],[134,9],[135,9],[137,9],[139,9],[143,11],[144,11],[136,11],[138,11],[87,12],[86,13],[88,14],[90,15],[82,16],[100,17],[83,18],[91,18],[92,19],[93,20],[94,21],[95,22],[85,23],[96,22],[97,24],[98,24],[84,25],[99,21],[79,26],[81,27],[80,26],[66,28],[64,29],[53,30],[65,31],[34,32],[73,33],[63,34],[40,35],[58,36],[55,37],[38,38],[50,39],[41,40],[54,41],[51,42],[37,43],[57,44],[59,45],[60,46],[61,46],[62,47],[68,46],[69,48],[52,49],[43,50],[44,50],[45,50],[56,51],[42,52],[70,53],[71,54],[39,55],[47,56],[48,57],[49,58],[72,42],[26,59],[105,60],[75,61],[103,62],[104,63],[101,64],[102,65]],"exportedModulesMap":[[31,1],[32,2],[29,3],[28,4],[131,5],[132,6],[107,7],[110,7],[129,5],[130,5],[120,5],[119,8],[117,5],[112,5],[125,5],[123,5],[127,5],[111,5],[124,5],[128,5],[113,5],[114,5],[126,5],[108,5],[115,5],[116,5],[118,5],[122,5],[133,9],[121,5],[109,5],[146,10],[140,9],[142,11],[141,9],[134,9],[135,9],[137,9],[139,9],[143,11],[144,11],[136,11],[138,11],[87,12],[86,13],[88,14],[90,15],[82,16],[100,17],[83,18],[91,18],[92,19],[93,20],[94,21],[95,22],[85,23],[96,22],[97,24],[98,24],[84,25],[99,21],[79,26],[81,27],[80,26],[66,28],[64,29],[53,30],[65,31],[34,32],[73,33],[63,34],[40,35],[58,36],[55,37],[38,38],[50,39],[41,40],[54,41],[51,42],[37,43],[57,44],[59,45],[60,46],[61,46],[62,47],[68,46],[69,48],[52,49],[43,50],[44,50],[45,50],[56,51],[42,52],[70,53],[71,54],[39,55],[47,56],[48,57],[49,58],[72,42],[105,66],[75,67],[103,68],[104,63],[101,69],[102,70]],"semanticDiagnosticsPerFile":[31,32,29,30,28,27,106,131,132,107,110,129,130,120,119,117,112,125,123,127,111,124,128,113,114,126,108,115,116,118,122,133,121,109,146,145,140,142,141,134,135,137,139,143,144,136,138,87,86,88,89,90,82,100,83,91,92,93,94,95,85,96,97,98,84,99,77,25,79,78,81,80,5,6,10,9,2,11,12,13,14,15,16,17,18,3,4,24,22,19,20,21,23,1,8,7,66,64,35,53,65,34,73,36,63,40,58,55,38,50,41,54,51,37,57,59,60,61,62,67,33,68,69,52,43,44,45,56,42,70,71,46,39,47,48,49,72,26,105,74,75,103,104,76,101,102]},"version":"4.9.5"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commitspark/git-adapter-github",
3
3
  "description": "Adapter that provides GitHub repository access to Commitspark",
4
- "version": "0.5.0",
4
+ "version": "0.7.0",
5
5
  "license": "ISC",
6
6
  "private": false,
7
7
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "lint": "eslint \"{src,tests}/**/*.ts\""
20
20
  },
21
21
  "dependencies": {
22
- "@commitspark/git-adapter": "^0.10.0",
22
+ "@commitspark/git-adapter": "^0.13.0",
23
23
  "axios": "^1.1.3",
24
24
  "axios-cache-interceptor": "^0.10.7",
25
25
  "buffer": "^6.0.3",
package/src/container.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { ContentEntriesToActionsConverterService } from './content-entries-to-actions-converter.service'
1
+ import { EntriesToActionsConverterService } from './entries-to-actions-converter.service'
2
2
  import { GitHubAdapterService } from './git-hub-adapter.service'
3
3
  import { GraphqlQueryFactoryService } from './graphql-query-factory.service'
4
4
  import axios from 'axios'
5
5
  import { setupCache } from 'axios-cache-interceptor'
6
6
  import { PathFactoryService } from './path-factory.service'
7
- import { ContentEntryFactoryService } from './content-entry-factory.service'
7
+ import { EntryFactoryService } from './entry-factory.service'
8
8
 
9
9
  const cachedHttpAdapter = setupCache(axios.create(), {
10
10
  ttl: GitHubAdapterService.QUERY_CACHE_SECONDS * 1000, // milliseconds
@@ -12,15 +12,14 @@ const cachedHttpAdapter = setupCache(axios.create(), {
12
12
  })
13
13
 
14
14
  const graphqlQueryFactoryService = new GraphqlQueryFactoryService()
15
- const contentEntriesToActionsConverterService =
16
- new ContentEntriesToActionsConverterService()
15
+ const entriesToActionsConverterService = new EntriesToActionsConverterService()
17
16
  const pathFactoryService = new PathFactoryService()
18
- const contentEntryFactoryService = new ContentEntryFactoryService()
17
+ const entryFactoryService = new EntryFactoryService()
19
18
 
20
19
  export const gitHubAdapterService = new GitHubAdapterService(
21
20
  cachedHttpAdapter,
22
21
  graphqlQueryFactoryService,
23
- contentEntriesToActionsConverterService,
22
+ entriesToActionsConverterService,
24
23
  pathFactoryService,
25
- contentEntryFactoryService,
24
+ entryFactoryService,
26
25
  )
@@ -1,11 +1,11 @@
1
- import { ContentEntryDraft, ENTRY_EXTENSION } from '@commitspark/git-adapter'
1
+ import { EntryDraft, ENTRY_EXTENSION } from '@commitspark/git-adapter'
2
2
  import { stringify } from 'yaml'
3
3
  import { AdditionModel } from './addition.model'
4
4
  import { DeletionModel } from './deletion.model'
5
5
 
6
- export class ContentEntriesToActionsConverterService {
6
+ export class EntriesToActionsConverterService {
7
7
  convert(
8
- contentEntries: ContentEntryDraft[],
8
+ entryDrafts: EntryDraft[],
9
9
  pathEntryFolder: string,
10
10
  ): {
11
11
  additions: AdditionModel[]
@@ -13,17 +13,17 @@ export class ContentEntriesToActionsConverterService {
13
13
  } {
14
14
  const additions: AdditionModel[] = []
15
15
  const deletions: DeletionModel[] = []
16
- contentEntries.forEach((contentEntry) => {
17
- const entryPath = `${pathEntryFolder}/${contentEntry.id}${ENTRY_EXTENSION}`
18
- if (contentEntry.deletion) {
16
+ entryDrafts.forEach((entryDraft) => {
17
+ const entryPath = `${pathEntryFolder}/${entryDraft.id}${ENTRY_EXTENSION}`
18
+ if (entryDraft.deletion) {
19
19
  deletions.push(new DeletionModel(entryPath))
20
20
  } else {
21
21
  additions.push(
22
22
  new AdditionModel(
23
23
  entryPath,
24
24
  stringify({
25
- metadata: contentEntry.metadata,
26
- data: contentEntry.data,
25
+ metadata: entryDraft.metadata,
26
+ data: entryDraft.data,
27
27
  }),
28
28
  ),
29
29
  )
@@ -1,5 +1,5 @@
1
1
  import { parse } from 'yaml'
2
- import { ContentEntry, ENTRY_EXTENSION } from '@commitspark/git-adapter'
2
+ import { Entry, ENTRY_EXTENSION } from '@commitspark/git-adapter'
3
3
 
4
4
  interface TreeEntry {
5
5
  name: string
@@ -9,10 +9,8 @@ interface TreeEntry {
9
9
  }
10
10
  }
11
11
 
12
- export class ContentEntryFactoryService {
13
- public createFromBlobsQueryResponseData(
14
- entries: TreeEntry[],
15
- ): ContentEntry[] {
12
+ export class EntryFactoryService {
13
+ public createFromBlobsQueryResponseData(entries: TreeEntry[]): Entry[] {
16
14
  {
17
15
  return entries
18
16
  .filter(
@@ -21,16 +19,16 @@ export class ContentEntryFactoryService {
21
19
  entry.object['__typename'] === 'Blob',
22
20
  )
23
21
  .map((entry: TreeEntry) => {
24
- const content = parse(entry.object.text)
22
+ const fileContent = parse(entry.object.text)
25
23
  const id = entry.name.substring(
26
24
  0,
27
25
  entry.name.length - ENTRY_EXTENSION.length,
28
26
  )
29
27
  return {
30
28
  id: id,
31
- metadata: content.metadata,
32
- data: content.data,
33
- } as ContentEntry
29
+ metadata: fileContent.metadata,
30
+ data: fileContent.data,
31
+ } as Entry
34
32
  })
35
33
  }
36
34
  }
@@ -2,14 +2,14 @@ import { GraphqlQueryFactoryService } from './graphql-query-factory.service'
2
2
  import {
3
3
  Commit,
4
4
  CommitDraft,
5
- ContentEntry,
5
+ Entry,
6
6
  GitAdapter,
7
7
  } from '@commitspark/git-adapter'
8
- import { ContentEntriesToActionsConverterService } from './content-entries-to-actions-converter.service'
8
+ import { EntriesToActionsConverterService } from './entries-to-actions-converter.service'
9
9
  import { AxiosCacheInstance } from 'axios-cache-interceptor'
10
10
  import { GitHubRepositoryOptions } from './index'
11
11
  import { PathFactoryService } from './path-factory.service'
12
- import { ContentEntryFactoryService } from './content-entry-factory.service'
12
+ import { EntryFactoryService } from './entry-factory.service'
13
13
 
14
14
  export class GitHubAdapterService implements GitAdapter {
15
15
  static readonly QUERY_CACHE_SECONDS = 10 * 60
@@ -21,9 +21,9 @@ export class GitHubAdapterService implements GitAdapter {
21
21
  constructor(
22
22
  private readonly cachedHttpAdapter: AxiosCacheInstance,
23
23
  private graphqlQueryFactory: GraphqlQueryFactoryService,
24
- private contentEntriesToActionsConverter: ContentEntriesToActionsConverterService,
24
+ private entriesToActionsConverter: EntriesToActionsConverterService,
25
25
  private pathFactory: PathFactoryService,
26
- private contentEntryFactory: ContentEntryFactoryService,
26
+ private entryFactory: EntryFactoryService,
27
27
  ) {}
28
28
 
29
29
  public async setRepositoryOptions(
@@ -32,12 +32,12 @@ export class GitHubAdapterService implements GitAdapter {
32
32
  this.gitRepositoryOptions = repositoryOptions
33
33
  }
34
34
 
35
- public async getContentEntries(commitHash: string): Promise<ContentEntry[]> {
35
+ public async getEntries(commitHash: string): Promise<Entry[]> {
36
36
  if (this.gitRepositoryOptions === undefined) {
37
37
  throw new Error('Repository options must be set before reading')
38
38
  }
39
39
 
40
- const token = this.gitRepositoryOptions.personalAccessToken
40
+ const token = this.gitRepositoryOptions.accessToken
41
41
  const pathEntryFolder = this.pathFactory.getPathEntryFolder(
42
42
  this.gitRepositoryOptions,
43
43
  )
@@ -64,7 +64,7 @@ export class GitHubAdapterService implements GitAdapter {
64
64
  return []
65
65
  }
66
66
 
67
- return this.contentEntryFactory.createFromBlobsQueryResponseData(
67
+ return this.entryFactory.createFromBlobsQueryResponseData(
68
68
  filesContentResponse.data.data.repository.object.entries,
69
69
  )
70
70
  }
@@ -76,7 +76,7 @@ export class GitHubAdapterService implements GitAdapter {
76
76
 
77
77
  const repositoryOwner = this.gitRepositoryOptions.repositoryOwner
78
78
  const repositoryName = this.gitRepositoryOptions.repositoryName
79
- const token = this.gitRepositoryOptions.personalAccessToken
79
+ const token = this.gitRepositoryOptions.accessToken
80
80
  const schemaFilePath = this.pathFactory.getPathSchema(
81
81
  this.gitRepositoryOptions,
82
82
  )
@@ -114,7 +114,7 @@ export class GitHubAdapterService implements GitAdapter {
114
114
  throw new Error('Repository options must be set before reading')
115
115
  }
116
116
 
117
- const token = this.gitRepositoryOptions.personalAccessToken
117
+ const token = this.gitRepositoryOptions.accessToken
118
118
 
119
119
  const queryLatestCommit = this.graphqlQueryFactory.createLatestCommitQuery()
120
120
 
@@ -158,16 +158,15 @@ export class GitHubAdapterService implements GitAdapter {
158
158
  throw new Error('Repository options must be set before committing')
159
159
  }
160
160
 
161
- const token = this.gitRepositoryOptions.personalAccessToken
161
+ const token = this.gitRepositoryOptions.accessToken
162
162
  const pathEntryFolder = this.pathFactory.getPathEntryFolder(
163
163
  this.gitRepositoryOptions,
164
164
  )
165
165
 
166
- const { additions, deletions } =
167
- this.contentEntriesToActionsConverter.convert(
168
- commitDraft.contentEntries,
169
- pathEntryFolder,
170
- )
166
+ const { additions, deletions } = this.entriesToActionsConverter.convert(
167
+ commitDraft.entries,
168
+ pathEntryFolder,
169
+ )
171
170
 
172
171
  const mutateCommit = this.graphqlQueryFactory.createCommitMutation()
173
172
  const response: any = await this.cachedHttpAdapter.post(
@@ -70,7 +70,7 @@ export class GraphqlQueryFactoryService {
70
70
 
71
71
  public createLatestCommitQuery(): string {
72
72
  return `
73
- query Content ($repositoryOwner: String!, $repositoryName: String!, $ref: String!) {
73
+ query ($repositoryOwner: String!, $repositoryName: String!, $ref: String!) {
74
74
  repository(owner: $repositoryOwner, name: $repositoryName) {
75
75
  ref(qualifiedName: $ref) {
76
76
  target {
package/src/index.ts CHANGED
@@ -6,7 +6,7 @@ export { GitHubAdapterService } from './git-hub-adapter.service'
6
6
  export interface GitHubRepositoryOptions extends GitRepositoryOptions {
7
7
  repositoryOwner: string
8
8
  repositoryName: string
9
- personalAccessToken: string
9
+ accessToken: string
10
10
  pathSchemaFile?: string
11
11
  pathEntryFolder?: string
12
12
  }
@@ -1,9 +0,0 @@
1
- import { ContentEntryDraft } from '@commitspark/git-adapter';
2
- import { AdditionModel } from './addition.model';
3
- import { DeletionModel } from './deletion.model';
4
- export declare class ContentEntriesToActionsConverterService {
5
- convert(contentEntries: ContentEntryDraft[], pathEntryFolder: string): {
6
- additions: AdditionModel[];
7
- deletions: DeletionModel[];
8
- };
9
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-entries-to-actions-converter.service.js","sourceRoot":"","sources":["../src/content-entries-to-actions-converter.service.ts"],"names":[],"mappings":";;;AAAA,0DAA6E;AAC7E,+BAAgC;AAChC,qDAAgD;AAChD,qDAAgD;AAEhD,MAAa,uCAAuC;IAClD,OAAO,CACL,cAAmC,EACnC,eAAuB;QAKvB,MAAM,SAAS,GAAoB,EAAE,CAAA;QACrC,MAAM,SAAS,GAAoB,EAAE,CAAA;QACrC,cAAc,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;YACtC,MAAM,SAAS,GAAG,GAAG,eAAe,IAAI,YAAY,CAAC,EAAE,GAAG,6BAAe,EAAE,CAAA;YAC3E,IAAI,YAAY,CAAC,QAAQ,EAAE;gBACzB,SAAS,CAAC,IAAI,CAAC,IAAI,8BAAa,CAAC,SAAS,CAAC,CAAC,CAAA;aAC7C;iBAAM;gBACL,SAAS,CAAC,IAAI,CACZ,IAAI,8BAAa,CACf,SAAS,EACT,IAAA,gBAAS,EAAC;oBACR,QAAQ,EAAE,YAAY,CAAC,QAAQ;oBAC/B,IAAI,EAAE,YAAY,CAAC,IAAI;iBACxB,CAAC,CACH,CACF,CAAA;aACF;QACH,CAAC,CAAC,CAAA;QACF,OAAO;YACL,SAAS;YACT,SAAS;SACV,CAAA;IACH,CAAC;CACF;AA/BD,0FA+BC"}
@@ -1,12 +0,0 @@
1
- import { ContentEntry } from '@commitspark/git-adapter';
2
- interface TreeEntry {
3
- name: string;
4
- object: {
5
- __typename: string;
6
- text: string;
7
- };
8
- }
9
- export declare class ContentEntryFactoryService {
10
- createFromBlobsQueryResponseData(entries: TreeEntry[]): ContentEntry[];
11
- }
12
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-entry-factory.service.js","sourceRoot":"","sources":["../src/content-entry-factory.service.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAC5B,0DAAwE;AAUxE,MAAa,0BAA0B;IAC9B,gCAAgC,CACrC,OAAoB;QAEpB;YACE,OAAO,OAAO;iBACX,MAAM,CACL,CAAC,KAAgB,EAAE,EAAE,CACnB,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,6BAAe,CAAC;gBACpC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,MAAM,CACxC;iBACA,GAAG,CAAC,CAAC,KAAgB,EAAE,EAAE;gBACxB,MAAM,OAAO,GAAG,IAAA,YAAK,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;gBACxC,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAC7B,CAAC,EACD,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,6BAAe,CAAC,MAAM,CAC3C,CAAA;gBACD,OAAO;oBACL,EAAE,EAAE,EAAE;oBACN,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,IAAI,EAAE,OAAO,CAAC,IAAI;iBACH,CAAA;YACnB,CAAC,CAAC,CAAA;SACL;IACH,CAAC;CACF;AAzBD,gEAyBC"}