Latest generation

This commit is contained in:
ci core model
2025-09-29 08:30:45 +00:00
parent b582597a8d
commit 3356cb863a
11 changed files with 276 additions and 12 deletions

View File

@@ -146,6 +146,14 @@ export interface StockByMatchQuery {
* @generated from protobuf field: api.StockQueryOptions Options = 7
*/
Options?: StockQueryOptions;
/**
* @generated from protobuf field: api.EntityType UsageContextEntity = 8
*/
UsageContextEntity: EntityType;
/**
* @generated from protobuf field: string UsageContextPath = 9
*/
UsageContextPath: string;
}
/**
* @generated from protobuf message api.StockByMatchResult
@@ -471,13 +479,17 @@ class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } },
{ no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions }
{ no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions },
{ 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<StockByMatchQuery>): StockByMatchQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.BlockFilters = [];
message.MatchFields = [];
message.UsageContextEntity = 0;
message.UsageContextPath = "";
if (value !== undefined)
reflectionMergePartial<StockByMatchQuery>(this, message, value);
return message;
@@ -499,6 +511,12 @@ class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
case /* api.StockQueryOptions Options */ 7:
message.Options = StockQueryOptions.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")
@@ -523,6 +541,12 @@ class StockByMatchQuery$Type extends MessageType<StockByMatchQuery> {
/* api.StockQueryOptions Options = 7; */
if (message.Options)
StockQueryOptions.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);