Latest generation

This commit is contained in:
ci core model
2025-10-03 14:29:18 +00:00
parent 49115fd1f1
commit 97566d4520
35 changed files with 1176 additions and 7397 deletions

87
proj.ts
View File

@@ -36,6 +36,10 @@ export interface ProjectCreation {
* @generated from protobuf field: repeated api.Module Modules = 3
*/
Modules: Module[];
/**
* @generated from protobuf field: api.ProjectType Type = 4
*/
Type: ProjectType;
}
/**
* @generated from protobuf message api.Project
@@ -61,6 +65,10 @@ export interface Project {
* @generated from protobuf field: repeated api.Module Modules = 5
*/
Modules: Module[];
/**
* @generated from protobuf field: api.ProjectType Type = 6
*/
Type: ProjectType;
}
/**
* @generated from protobuf message api.DeleteProjectRequest
@@ -100,6 +108,10 @@ export interface ListProjectRequest {
* @generated from protobuf field: bool ShowInactiveProjects = 5
*/
ShowInactiveProjects: boolean;
/**
* @generated from protobuf field: api.ProjectType Type = 6
*/
Type: ProjectType;
}
/**
* @generated from protobuf message api.ListAllProjectRequest
@@ -109,6 +121,10 @@ export interface ListAllProjectRequest {
* @generated from protobuf field: bool ShowInactiveProjects = 1
*/
ShowInactiveProjects: boolean;
/**
* @generated from protobuf field: api.ProjectType Type = 2
*/
Type: ProjectType;
}
/**
* @generated from protobuf message api.ListAllProjectResultElement
@@ -170,6 +186,10 @@ export interface UpdateProjectRequest {
* @generated from protobuf field: string Name = 3
*/
Name: string;
/**
* @generated from protobuf field: api.ProjectType Type = 4
*/
Type: ProjectType;
}
/**
* @generated from protobuf message api.SetModulesProjectRequest
@@ -409,13 +429,31 @@ export enum ProjectStatusEnum {
*/
PROJECT_STATUS_ERROR = 5
}
/**
* @generated from protobuf enum api.ProjectType
*/
export enum ProjectType {
/**
* @generated from protobuf enum value: PROJECT_TYPE_UNKNOWN = 0;
*/
PROJECT_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: PROJECT_TYPE_ACTIVITY = 1;
*/
PROJECT_TYPE_ACTIVITY = 1,
/**
* @generated from protobuf enum value: PROJECT_TYPE_SITE = 2;
*/
PROJECT_TYPE_SITE = 2
}
// @generated message type with reflection information, may provide speed optimized methods
class ProjectCreation$Type extends MessageType<ProjectCreation> {
constructor() {
super("api.ProjectCreation", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } },
{ no: 3, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }
{ no: 3, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module },
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
}
create(value?: PartialMessage<ProjectCreation>): ProjectCreation {
@@ -423,6 +461,7 @@ class ProjectCreation$Type extends MessageType<ProjectCreation> {
message.ID = "";
message.Name = "";
message.Modules = [];
message.Type = 0;
if (value !== undefined)
reflectionMergePartial<ProjectCreation>(this, message, value);
return message;
@@ -441,6 +480,9 @@ class ProjectCreation$Type extends MessageType<ProjectCreation> {
case /* repeated api.Module Modules */ 3:
message.Modules.push(Module.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.ProjectType Type */ 4:
message.Type = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -462,6 +504,9 @@ class ProjectCreation$Type extends MessageType<ProjectCreation> {
/* repeated api.Module Modules = 3; */
for (let i = 0; i < message.Modules.length; i++)
Module.internalBinaryWrite(message.Modules[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.ProjectType Type = 4; */
if (message.Type !== 0)
writer.tag(4, WireType.Varint).int32(message.Type);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -480,7 +525,8 @@ class Project$Type extends MessageType<Project> {
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "status", kind: "enum", T: () => ["api.ProjectStatusEnum", ProjectStatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 5, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }
{ no: 5, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Name", "OrganisationID"] } } });
}
create(value?: PartialMessage<Project>): Project {
@@ -490,6 +536,7 @@ class Project$Type extends MessageType<Project> {
message.OrganisationID = "";
message.status = 0;
message.Modules = [];
message.Type = 0;
if (value !== undefined)
reflectionMergePartial<Project>(this, message, value);
return message;
@@ -514,6 +561,9 @@ class Project$Type extends MessageType<Project> {
case /* repeated api.Module Modules */ 5:
message.Modules.push(Module.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.ProjectType Type */ 6:
message.Type = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -541,6 +591,9 @@ class Project$Type extends MessageType<Project> {
/* repeated api.Module Modules = 5; */
for (let i = 0; i < message.Modules.length; i++)
Module.internalBinaryWrite(message.Modules[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.ProjectType Type = 6; */
if (message.Type !== 0)
writer.tag(6, WireType.Varint).int32(message.Type);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -657,12 +710,14 @@ class ListProjectRequest$Type extends MessageType<ListProjectRequest> {
super("api.ListProjectRequest", [
{ no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging },
{ no: 5, name: "ShowInactiveProjects", kind: "scalar", localName: "ShowInactiveProjects", jsonName: "ShowInactiveProjects", T: 8 /*ScalarType.BOOL*/ }
{ no: 5, name: "ShowInactiveProjects", kind: "scalar", localName: "ShowInactiveProjects", jsonName: "ShowInactiveProjects", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListProjectRequest>): ListProjectRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ShowInactiveProjects = false;
message.Type = 0;
if (value !== undefined)
reflectionMergePartial<ListProjectRequest>(this, message, value);
return message;
@@ -681,6 +736,9 @@ class ListProjectRequest$Type extends MessageType<ListProjectRequest> {
case /* bool ShowInactiveProjects */ 5:
message.ShowInactiveProjects = reader.bool();
break;
case /* api.ProjectType Type */ 6:
message.Type = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -702,6 +760,9 @@ class ListProjectRequest$Type extends MessageType<ListProjectRequest> {
/* bool ShowInactiveProjects = 5; */
if (message.ShowInactiveProjects !== false)
writer.tag(5, WireType.Varint).bool(message.ShowInactiveProjects);
/* api.ProjectType Type = 6; */
if (message.Type !== 0)
writer.tag(6, WireType.Varint).int32(message.Type);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -716,12 +777,14 @@ export const ListProjectRequest = new ListProjectRequest$Type();
class ListAllProjectRequest$Type extends MessageType<ListAllProjectRequest> {
constructor() {
super("api.ListAllProjectRequest", [
{ no: 1, name: "ShowInactiveProjects", kind: "scalar", localName: "ShowInactiveProjects", jsonName: "ShowInactiveProjects", T: 8 /*ScalarType.BOOL*/ }
{ no: 1, name: "ShowInactiveProjects", kind: "scalar", localName: "ShowInactiveProjects", jsonName: "ShowInactiveProjects", T: 8 /*ScalarType.BOOL*/ },
{ no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } }
]);
}
create(value?: PartialMessage<ListAllProjectRequest>): ListAllProjectRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ShowInactiveProjects = false;
message.Type = 0;
if (value !== undefined)
reflectionMergePartial<ListAllProjectRequest>(this, message, value);
return message;
@@ -734,6 +797,9 @@ class ListAllProjectRequest$Type extends MessageType<ListAllProjectRequest> {
case /* bool ShowInactiveProjects */ 1:
message.ShowInactiveProjects = reader.bool();
break;
case /* api.ProjectType Type */ 2:
message.Type = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -749,6 +815,9 @@ class ListAllProjectRequest$Type extends MessageType<ListAllProjectRequest> {
/* bool ShowInactiveProjects = 1; */
if (message.ShowInactiveProjects !== false)
writer.tag(1, WireType.Varint).bool(message.ShowInactiveProjects);
/* api.ProjectType Type = 2; */
if (message.Type !== 0)
writer.tag(2, WireType.Varint).int32(message.Type);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -934,12 +1003,14 @@ class UpdateProjectRequest$Type extends MessageType<UpdateProjectRequest> {
constructor() {
super("api.UpdateProjectRequest", [
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<UpdateProjectRequest>): UpdateProjectRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Type = 0;
if (value !== undefined)
reflectionMergePartial<UpdateProjectRequest>(this, message, value);
return message;
@@ -955,6 +1026,9 @@ class UpdateProjectRequest$Type extends MessageType<UpdateProjectRequest> {
case /* string Name */ 3:
message.Name = reader.string();
break;
case /* api.ProjectType Type */ 4:
message.Type = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -973,6 +1047,9 @@ class UpdateProjectRequest$Type extends MessageType<UpdateProjectRequest> {
/* string Name = 3; */
if (message.Name !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Name);
/* api.ProjectType Type = 4; */
if (message.Type !== 0)
writer.tag(4, WireType.Varint).int32(message.Type);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);