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

View File

@@ -11,8 +11,6 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ResponseSiteHeader } from "./shared";
import { RequestSiteHeader } from "./shared";
import { ResponseHeader } from "./shared";
import { EntityType } from "./shared";
import { RequestProjectHeader } from "./shared";
@@ -246,38 +244,6 @@ export interface ListAttachmentsV2Response {
*/
Attachments: Attachment[];
}
/**
* @generated from protobuf message api.ListAttachmentsOnSiteV2Request
*/
export interface ListAttachmentsOnSiteV2Request {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
/**
* @generated from protobuf field: api.EntityType EntityType = 4
*/
EntityType: EntityType;
}
/**
* @generated from protobuf message api.ListAttachmentsOnSiteV2Response
*/
export interface ListAttachmentsOnSiteV2Response {
/**
* Header of the response
*
* @generated from protobuf field: api.ResponseSiteHeader Header = 2
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: repeated api.Attachment Attachments = 1
*/
Attachments: Attachment[];
}
/**
* Share
*
@@ -321,15 +287,6 @@ export interface DeleteAllAttachmentsV2Request {
*/
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.DeleteAllAttachmentsOnSiteV2Request
*/
export interface DeleteAllAttachmentsOnSiteV2Request {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
}
/**
* @generated from protobuf message api.DeleteAllAttachmentsV2Response
*/
@@ -1047,122 +1004,6 @@ class ListAttachmentsV2Response$Type extends MessageType<ListAttachmentsV2Respon
*/
export const ListAttachmentsV2Response = new ListAttachmentsV2Response$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAttachmentsOnSiteV2Request$Type extends MessageType<ListAttachmentsOnSiteV2Request> {
constructor() {
super("api.ListAttachmentsOnSiteV2Request", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Identifier of the entity where the attachment is located" } } },
{ no: 4, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Type of the entity where the attachment is located" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListAttachmentsOnSiteV2Request>): ListAttachmentsOnSiteV2Request {
const message = globalThis.Object.create((this.messagePrototype!));
message.EntityRefID = "";
message.EntityType = 0;
if (value !== undefined)
reflectionMergePartial<ListAttachmentsOnSiteV2Request>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAttachmentsOnSiteV2Request): ListAttachmentsOnSiteV2Request {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
case /* api.EntityType EntityType */ 4:
message.EntityType = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListAttachmentsOnSiteV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
/* api.EntityType EntityType = 4; */
if (message.EntityType !== 0)
writer.tag(4, WireType.Varint).int32(message.EntityType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListAttachmentsOnSiteV2Request
*/
export const ListAttachmentsOnSiteV2Request = new ListAttachmentsOnSiteV2Request$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAttachmentsOnSiteV2Response$Type extends MessageType<ListAttachmentsOnSiteV2Response> {
constructor() {
super("api.ListAttachmentsOnSiteV2Response", [
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the response" } } },
{ no: 1, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Attachment, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of attachments matching to the request" } } }
]);
}
create(value?: PartialMessage<ListAttachmentsOnSiteV2Response>): ListAttachmentsOnSiteV2Response {
const message = globalThis.Object.create((this.messagePrototype!));
message.Attachments = [];
if (value !== undefined)
reflectionMergePartial<ListAttachmentsOnSiteV2Response>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAttachmentsOnSiteV2Response): ListAttachmentsOnSiteV2Response {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 2:
message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.Attachment Attachments */ 1:
message.Attachments.push(Attachment.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListAttachmentsOnSiteV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Attachment Attachments = 1; */
for (let i = 0; i < message.Attachments.length; i++)
Attachment.internalBinaryWrite(message.Attachments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.ResponseSiteHeader Header = 2; */
if (message.Header)
ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListAttachmentsOnSiteV2Response
*/
export const ListAttachmentsOnSiteV2Response = new ListAttachmentsOnSiteV2Response$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ShareAttachmentV2Request$Type extends MessageType<ShareAttachmentV2Request> {
constructor() {
super("api.ShareAttachmentV2Request", [
@@ -1325,52 +1166,6 @@ class DeleteAllAttachmentsV2Request$Type extends MessageType<DeleteAllAttachment
*/
export const DeleteAllAttachmentsV2Request = new DeleteAllAttachmentsV2Request$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAllAttachmentsOnSiteV2Request$Type extends MessageType<DeleteAllAttachmentsOnSiteV2Request> {
constructor() {
super("api.DeleteAllAttachmentsOnSiteV2Request", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<DeleteAllAttachmentsOnSiteV2Request>): DeleteAllAttachmentsOnSiteV2Request {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteAllAttachmentsOnSiteV2Request>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllAttachmentsOnSiteV2Request): DeleteAllAttachmentsOnSiteV2Request {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: DeleteAllAttachmentsOnSiteV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteAllAttachmentsOnSiteV2Request
*/
export const DeleteAllAttachmentsOnSiteV2Request = new DeleteAllAttachmentsOnSiteV2Request$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAllAttachmentsV2Response$Type extends MessageType<DeleteAllAttachmentsV2Response> {
constructor() {
super("api.DeleteAllAttachmentsV2Response", []);
@@ -1418,7 +1213,5 @@ export const AttachmentServiceV2 = new ServiceType("api.AttachmentServiceV2", [
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Attachment"], description: "Delete a document attached to an entity" }, "api.rscType": "AttachmentType", "api.roles": "AttachmentType.Writer", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteAttachmentV2Request, O: DeleteAttachmentV2Response },
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Attachment"], description: "List all documents attached to an entity" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListAttachmentsV2Request, O: ListAttachmentsV2Response },
{ name: "Share", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Attachment"], description: "Share a document attached to an entity" }, "api.rscType": "AttachmentType", "api.roles": "AttachmentType.Writer", "google.api.method_visibility": { restriction: "SDK" } }, I: ShareAttachmentV2Request, O: ShareAttachmentV2Response },
{ name: "DeleteAll", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Attachment"], description: "Delete all documents attached to entities within the project" }, "api.rscType": "Project", "api.roles": "Platform.Project-Deletion", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteAllAttachmentsV2Request, O: DeleteAllAttachmentsV2Response },
{ name: "ListOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Attachment"], description: "List all documents attached to an entity" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListAttachmentsOnSiteV2Request, O: ListAttachmentsOnSiteV2Response },
{ name: "DeleteAllSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Attachment"], description: "Delete all documents attached to entities within the site" }, "api.rscType": "Site", "api.roles": "Platform.Site-Deletion", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteAllAttachmentsOnSiteV2Request, O: DeleteAllAttachmentsV2Response }
{ name: "DeleteAll", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Attachment"], description: "Delete all documents attached to entities within the project" }, "api.rscType": "Project", "api.roles": "Platform.Project-Deletion", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteAllAttachmentsV2Request, O: DeleteAllAttachmentsV2Response }
], { "api.k8sService": "attachment-server" });