feat(opsserver,web): replace the Angular UI and REST management layer with a TypedRequest-based ops server and bundled web frontend
This commit is contained in:
87
ts_interfaces/requests/repositories.ts
Normal file
87
ts_interfaces/requests/repositories.ts
Normal file
@@ -0,0 +1,87 @@
|
||||
import * as plugins from '../plugins.ts';
|
||||
import * as data from '../data/index.ts';
|
||||
|
||||
// ============================================================================
|
||||
// Repository Requests
|
||||
// ============================================================================
|
||||
|
||||
export interface IReq_GetRepositories extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_GetRepositories
|
||||
> {
|
||||
method: 'getRepositories';
|
||||
request: {
|
||||
identity: data.IIdentity;
|
||||
organizationId: string;
|
||||
};
|
||||
response: {
|
||||
repositories: data.IRepository[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_GetRepository extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_GetRepository
|
||||
> {
|
||||
method: 'getRepository';
|
||||
request: {
|
||||
identity: data.IIdentity;
|
||||
repositoryId: string;
|
||||
};
|
||||
response: {
|
||||
repository: data.IRepository;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_CreateRepository extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_CreateRepository
|
||||
> {
|
||||
method: 'createRepository';
|
||||
request: {
|
||||
identity: data.IIdentity;
|
||||
organizationId: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
protocol?: data.TRegistryProtocol;
|
||||
visibility?: data.TRepositoryVisibility;
|
||||
};
|
||||
response: {
|
||||
repository: data.IRepository;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_UpdateRepository extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_UpdateRepository
|
||||
> {
|
||||
method: 'updateRepository';
|
||||
request: {
|
||||
identity: data.IIdentity;
|
||||
repositoryId: string;
|
||||
description?: string;
|
||||
visibility?: data.TRepositoryVisibility;
|
||||
};
|
||||
response: {
|
||||
repository: data.IRepository;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IReq_DeleteRepository extends
|
||||
plugins.typedrequestInterfaces.implementsTR<
|
||||
plugins.typedrequestInterfaces.ITypedRequest,
|
||||
IReq_DeleteRepository
|
||||
> {
|
||||
method: 'deleteRepository';
|
||||
request: {
|
||||
identity: data.IIdentity;
|
||||
repositoryId: string;
|
||||
};
|
||||
response: {
|
||||
message: string;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user