88 lines
2.1 KiB
TypeScript
88 lines
2.1 KiB
TypeScript
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;
|
|
};
|
|
}
|