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

@@ -21,6 +21,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 { Appointment } from "./appointment";
import { ResultHeader } from "./shared";
@@ -87,6 +88,14 @@ export interface AppointmentByFilterQuery {
* @generated from protobuf field: api.AppointmentQueryOptions Options = 7
*/
Options?: AppointmentQueryOptions;
/**
* @generated from protobuf field: api.EntityType UsageContextEntity = 8
*/
UsageContextEntity: EntityType;
/**
* @generated from protobuf field: string UsageContextPath = 9
*/
UsageContextPath: string;
}
/**
* @generated from protobuf message api.AppointmentByFilterResult
@@ -263,7 +272,9 @@ class AppointmentByFilterQuery$Type extends MessageType<AppointmentByFilterQuery
{ 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: () => AppointmentQueryOptions }
{ no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => AppointmentQueryOptions },
{ 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<AppointmentByFilterQuery>): AppointmentByFilterQuery {
@@ -271,6 +282,8 @@ class AppointmentByFilterQuery$Type extends MessageType<AppointmentByFilterQuery
message.limitFilter = "";
message.queryContext = "";
message.BlockFilters = [];
message.UsageContextEntity = 0;
message.UsageContextPath = "";
if (value !== undefined)
reflectionMergePartial<AppointmentByFilterQuery>(this, message, value);
return message;
@@ -295,6 +308,12 @@ class AppointmentByFilterQuery$Type extends MessageType<AppointmentByFilterQuery
case /* api.AppointmentQueryOptions Options */ 7:
message.Options = AppointmentQueryOptions.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")
@@ -322,6 +341,12 @@ class AppointmentByFilterQuery$Type extends MessageType<AppointmentByFilterQuery
/* api.AppointmentQueryOptions Options = 7; */
if (message.Options)
AppointmentQueryOptions.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);