You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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 { Movement } from "./movement";
|
||||
import { ResultHeader } from "./shared";
|
||||
@@ -87,6 +88,14 @@ export interface MovementByFilterQuery {
|
||||
* @generated from protobuf field: api.MovementQueryOptions Options = 8
|
||||
*/
|
||||
Options?: MovementQueryOptions;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 9
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 10
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.MovementByFilterResult
|
||||
@@ -293,7 +302,9 @@ class MovementByFilterQuery$Type extends MessageType<MovementByFilterQuery> {
|
||||
{ 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: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 8, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => MovementQueryOptions }
|
||||
{ no: 8, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => MovementQueryOptions },
|
||||
{ no: 9, 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: 10, 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<MovementByFilterQuery>): MovementByFilterQuery {
|
||||
@@ -301,6 +312,8 @@ class MovementByFilterQuery$Type extends MessageType<MovementByFilterQuery> {
|
||||
message.limitFilter = "";
|
||||
message.queryContext = "";
|
||||
message.BlockFilters = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MovementByFilterQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -325,6 +338,12 @@ class MovementByFilterQuery$Type extends MessageType<MovementByFilterQuery> {
|
||||
case /* api.MovementQueryOptions Options */ 8:
|
||||
message.Options = MovementQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 9:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 10:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -352,6 +371,12 @@ class MovementByFilterQuery$Type extends MessageType<MovementByFilterQuery> {
|
||||
/* api.MovementQueryOptions Options = 8; */
|
||||
if (message.Options)
|
||||
MovementQueryOptions.internalBinaryWrite(message.Options, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 9; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(9, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 10; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user