@eclipse-che/che-devworkspace-generator 0.0.1-ea73e8b → 7.69.0-8717dbc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bitbucket/bitbucket-module.d.ts +12 -0
- package/lib/bitbucket/bitbucket-module.js +21 -0
- package/lib/bitbucket/bitbucket-module.js.map +1 -0
- package/lib/bitbucket/bitbucket-resolver.d.ts +17 -0
- package/lib/bitbucket/bitbucket-resolver.js +56 -0
- package/lib/bitbucket/bitbucket-resolver.js.map +1 -0
- package/lib/bitbucket/bitbucket-url.d.ts +22 -0
- package/lib/bitbucket/bitbucket-url.js +38 -0
- package/lib/bitbucket/bitbucket-url.js.map +1 -0
- package/lib/bitbucket-server/bitbucket-server-module.d.ts +12 -0
- package/lib/bitbucket-server/bitbucket-server-module.js +21 -0
- package/lib/bitbucket-server/bitbucket-server-module.js.map +1 -0
- package/lib/bitbucket-server/bitbucket-server-resolver.d.ts +17 -0
- package/lib/bitbucket-server/bitbucket-server-resolver.js +64 -0
- package/lib/bitbucket-server/bitbucket-server-resolver.js.map +1 -0
- package/lib/bitbucket-server/bitbucket-server-url.d.ts +24 -0
- package/lib/bitbucket-server/bitbucket-server-url.js +43 -0
- package/lib/bitbucket-server/bitbucket-server-url.js.map +1 -0
- package/lib/github/github-module.js +3 -1
- package/lib/github/github-module.js.map +1 -1
- package/lib/github/github-resolver.d.ts +6 -7
- package/lib/github/github-resolver.js +6 -3
- package/lib/github/github-resolver.js.map +1 -1
- package/lib/github/github-url.d.ts +2 -4
- package/lib/github/github-url.js +0 -3
- package/lib/github/github-url.js.map +1 -1
- package/lib/inversify/inversify-binding.js +6 -0
- package/lib/inversify/inversify-binding.js.map +1 -1
- package/lib/main.js +8 -8
- package/lib/main.js.map +1 -1
- package/lib/resolve/git-url-resolver.d.ts +5 -0
- package/lib/resolve/git-url-resolver.js +43 -0
- package/lib/resolve/git-url-resolver.js.map +1 -0
- package/lib/resolve/resolve-module.d.ts +12 -0
- package/lib/resolve/resolve-module.js +19 -0
- package/lib/resolve/resolve-module.js.map +1 -0
- package/lib/resolve/resolver.d.ts +22 -0
- package/lib/resolve/resolver.js +12 -0
- package/lib/resolve/resolver.js.map +1 -0
- package/lib/resolve/url.d.ts +35 -0
- package/lib/resolve/url.js +12 -0
- package/lib/resolve/url.js.map +1 -0
- package/lib/types.d.ts +13 -0
- package/lib/types.js +17 -0
- package/lib/types.js.map +1 -0
- package/package.json +1 -1
- package/src/bitbucket/bitbucket-module.ts +21 -0
- package/src/bitbucket/bitbucket-resolver.ts +46 -0
- package/src/bitbucket/bitbucket-url.ts +41 -0
- package/src/bitbucket-server/bitbucket-server-module.ts +21 -0
- package/src/bitbucket-server/bitbucket-server-resolver.ts +53 -0
- package/src/bitbucket-server/bitbucket-server-url.ts +51 -0
- package/src/github/github-module.ts +4 -1
- package/src/github/github-resolver.ts +13 -7
- package/src/github/github-url.ts +3 -4
- package/src/inversify/inversify-binding.ts +6 -0
- package/src/main.ts +8 -8
- package/src/resolve/git-url-resolver.ts +30 -0
- package/src/resolve/resolve-module.ts +18 -0
- package/src/resolve/resolver.ts +25 -0
- package/src/resolve/url.ts +40 -0
- package/src/types.ts +14 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**********************************************************************
|
|
2
|
+
* Copyright (c) 2023 Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
***********************************************************************/
|
|
10
|
+
|
|
11
|
+
import { Url } from './url';
|
|
12
|
+
|
|
13
|
+
export interface Resolver {
|
|
14
|
+
/**
|
|
15
|
+
* Validates the string url for belonging to a specific Git provider.
|
|
16
|
+
* @param url string representation of Url.
|
|
17
|
+
*/
|
|
18
|
+
isValid(url: string): boolean;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Resolves repository string URL to a {@class Url} object.
|
|
22
|
+
* @param url string representation of Url.
|
|
23
|
+
*/
|
|
24
|
+
resolve(url: string): Url;
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**********************************************************************
|
|
2
|
+
* Copyright (c) 2023 Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
***********************************************************************/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Url object
|
|
13
|
+
*/
|
|
14
|
+
export interface Url {
|
|
15
|
+
/**
|
|
16
|
+
* Provides RAW file content url
|
|
17
|
+
* @param path file path
|
|
18
|
+
*/
|
|
19
|
+
getContentUrl(path: string);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Provides repositories Url
|
|
23
|
+
*/
|
|
24
|
+
getUrl(): string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Provides Git clone url
|
|
28
|
+
*/
|
|
29
|
+
getCloneUrl(): string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Provides repository name
|
|
33
|
+
*/
|
|
34
|
+
getRepoName(): string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Provides branch name if initialised.
|
|
38
|
+
*/
|
|
39
|
+
getBranchName(): string;
|
|
40
|
+
}
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**********************************************************************
|
|
2
|
+
* Copyright (c) 2023 Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
***********************************************************************/
|
|
10
|
+
const TYPES = {
|
|
11
|
+
Resolver: Symbol.for('Resolver'),
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { TYPES };
|