Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 5022dba

Browse files
Remove the code-commit related code
1 parent 78b8656 commit 5022dba

7 files changed

+23
-51
lines changed

lib/bootstrap.ts

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ $injector.require("nsCloudServerBuildService", path.join(__dirname, "services",
4747
$injector.require("nsCloudServerServicesProxy", path.join(__dirname, "services", "server", "server-services-proxy"));
4848
$injector.require("nsCloudServerRequestService", path.join(__dirname, "services", "server", "server-request-service"));
4949
$injector.require("nsCloudServerEmulatorsService", path.join(__dirname, "services", "server", "server-emulators-service"));
50-
$injector.require("nsCloudServerCodeCommitService", path.join(__dirname, "services", "server", "server-code-commit-service"));
5150
$injector.require("nsCloudServerAccountsService", path.join(__dirname, "services", "server", "server-accounts-service"));
5251
$injector.require("nsCloudServerProjectService", path.join(__dirname, "services", "server", "server-project-service"));
5352
$injector.require("nsCloudKinveyRequestService", path.join(__dirname, "services", "server", "mbaas", "kinvey-request-service"));

lib/constants.ts

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const PROVISION_TYPES = {
2222
export const AUTH_SERVICE_NAME = "auth-service";
2323
export const BUILD_SERVICE_NAME = "build-service";
2424
export const EMULATORS_SERVICE_NAME = "emulators-service";
25-
export const CODE_COMMIT_SERVICE_NAME = "code-commit-service";
2625
export const MISC_SERVICE_NAME = "misc-service";
2726
export const ACCOUNTS_SERVICE_NAME = "accounts-service";
2827
export const PROJECT_SERVICE_NAME = "project-service";

lib/definitions/cloud-project-service.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ interface ICleanupProjectResult {
55
cleanupTaskResults: ICleanupTaskResult[];
66
}
77

8+
interface IDeleteRepositoryResponse {
9+
repositoryId: string;
10+
}
11+
812
/**
913
* Defines the properties of single cleanup task.
1014
*/

lib/definitions/git-service.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
interface ICodeCommitCredentials {
2+
accessKeyId: string;
3+
expiration: string;
4+
secretAccessKey: string;
5+
sessionToken: string;
6+
}
7+
8+
interface IRemoteUrl {
9+
httpRemoteUrl: string;
10+
}
11+
112
interface IGitService {
213
gitPushChanges(projectSettings: INSCloudProjectSettings, remoteUrl: IRemoteUrl, codeCommitCredential: ICodeCommitCredentials, repositoryState?: IRepositoryState): Promise<void>;
314
}

lib/definitions/server/server-build-service.d.ts

+8
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ interface IBuildCredentialRequest extends IAppId {
5858
fileNames: string[];
5959
}
6060

61+
interface IGetRepositoryResponse {
62+
cloneUrlHttp: string;
63+
cloneUrlSsh: string;
64+
repositoryName: string;
65+
credentials: ICodeCommitCredentials;
66+
isNewRepository: boolean;
67+
}
68+
6169
interface IBuildCredentialResponse {
6270
codeCommit: IGetRepositoryResponse;
6371
urls: IAmazonStorageEntry[];

lib/definitions/server/server-code-commit-service.d.ts

-27
This file was deleted.

lib/services/server/server-code-commit-service.ts

-22
This file was deleted.

0 commit comments

Comments
 (0)