Latest generation

This commit is contained in:
ci core model
2025-09-25 14:34:25 +00:00
parent cc4b60c5e7
commit d20afe10f1
11 changed files with 261 additions and 11 deletions

View File

@@ -19,6 +19,7 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { MatchFieldResult } from "./shared";
import { MatchField } from "./shared";
import { EntityType } from "./shared";
import { BlockFilter } from "./shared";
import { Actor } from "./actor";
import { ResultHeader } from "./shared";
@@ -85,6 +86,14 @@ export interface ActorByFilterQuery {
* @generated from protobuf field: api.ActorQueryOptions Options = 7
*/
Options?: ActorQueryOptions;
/**
* @generated from protobuf field: api.EntityType UsageContextEntity = 8
*/
UsageContextEntity: EntityType;
/**
* @generated from protobuf field: string UsageContextPath = 9
*/
UsageContextPath: string;
}
/**
* @generated from protobuf message api.ActorByFilterResult
@@ -261,7 +270,9 @@ class ActorByFilterQuery$Type extends MessageType<ActorByFilterQuery> {
{ no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } },
{ no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ActorQueryOptions }
{ no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ActorQueryOptions },
{ no: 8, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath", example: "For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom" } } },
{ no: 9, name: "UsageContextPath", kind: "scalar", localName: "UsageContextPath", jsonName: "UsageContextPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Path of restriction rule to apply (UsageContextEntity should be defined)" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ActorByFilterQuery>): ActorByFilterQuery {
@@ -269,6 +280,8 @@ class ActorByFilterQuery$Type extends MessageType<ActorByFilterQuery> {
message.limitFilter = "";
message.queryContext = "";
message.BlockFilters = [];
message.UsageContextEntity = 0;
message.UsageContextPath = "";
if (value !== undefined)
reflectionMergePartial<ActorByFilterQuery>(this, message, value);
return message;
@@ -293,6 +306,12 @@ class ActorByFilterQuery$Type extends MessageType<ActorByFilterQuery> {
case /* api.ActorQueryOptions Options */ 7:
message.Options = ActorQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
break;
case /* api.EntityType UsageContextEntity */ 8:
message.UsageContextEntity = reader.int32();
break;
case /* string UsageContextPath */ 9:
message.UsageContextPath = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -320,6 +339,12 @@ class ActorByFilterQuery$Type extends MessageType<ActorByFilterQuery> {
/* api.ActorQueryOptions Options = 7; */
if (message.Options)
ActorQueryOptions.internalBinaryWrite(message.Options, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* api.EntityType UsageContextEntity = 8; */
if (message.UsageContextEntity !== 0)
writer.tag(8, WireType.Varint).int32(message.UsageContextEntity);
/* string UsageContextPath = 9; */
if (message.UsageContextPath !== "")
writer.tag(9, WireType.LengthDelimited).string(message.UsageContextPath);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);