You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -17,8 +17,10 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { EntityType } from "./shared";
|
||||
import { BlockFilter } from "./shared";
|
||||
import { TruncatedObject } from "./shared";
|
||||
import { Executionflow } from "./executionflow";
|
||||
import { ResultHeader } from "./shared";
|
||||
import { QueryOptions } from "./shared";
|
||||
import { QueryEntityID } from "./shared";
|
||||
import { QueryProjectHeader } from "./shared";
|
||||
//
|
||||
@@ -37,9 +39,14 @@ export interface ExecutionflowByIdQuery {
|
||||
*/
|
||||
IDs: QueryEntityID[];
|
||||
/**
|
||||
* @generated from protobuf field: api.ExecutionflowQueryOptions Options = 3
|
||||
* @deprecated
|
||||
* @generated from protobuf field: api.ExecutionflowQueryOptions Options = 3 [deprecated = true]
|
||||
*/
|
||||
Options?: ExecutionflowQueryOptions;
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryOptions QueryOptions = 4
|
||||
*/
|
||||
QueryOptions?: QueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ExecutionflowByIdResult
|
||||
@@ -53,6 +60,10 @@ export interface ExecutionflowByIdResult {
|
||||
* @generated from protobuf field: repeated api.Executionflow Objects = 2
|
||||
*/
|
||||
Objects: Executionflow[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.TruncatedObject TruncatedObjects = 3
|
||||
*/
|
||||
TruncatedObjects: TruncatedObject[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ExecutionflowByFilterQuery
|
||||
@@ -79,7 +90,8 @@ export interface ExecutionflowByFilterQuery {
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* @generated from protobuf field: api.ExecutionflowQueryOptions Options = 7
|
||||
* @deprecated
|
||||
* @generated from protobuf field: api.ExecutionflowQueryOptions Options = 7 [deprecated = true]
|
||||
*/
|
||||
Options?: ExecutionflowQueryOptions;
|
||||
/**
|
||||
@@ -90,6 +102,10 @@ export interface ExecutionflowByFilterQuery {
|
||||
* @generated from protobuf field: string UsageContextPath = 9
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryOptions QueryOptions = 10
|
||||
*/
|
||||
QueryOptions?: QueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ExecutionflowByFilterResult
|
||||
@@ -107,6 +123,10 @@ export interface ExecutionflowByFilterResult {
|
||||
* @generated from protobuf field: string queryContext = 3
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.TruncatedObject TruncatedObjects = 4
|
||||
*/
|
||||
TruncatedObjects: TruncatedObject[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ExecutionflowQueryOptions
|
||||
@@ -127,7 +147,8 @@ class ExecutionflowByIdQuery$Type extends MessageType<ExecutionflowByIdQuery> {
|
||||
super("api.ExecutionflowByIdQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ExecutionflowQueryOptions }
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ExecutionflowQueryOptions },
|
||||
{ no: 4, name: "QueryOptions", kind: "message", localName: "QueryOptions", jsonName: "QueryOptions", T: () => QueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
||||
}
|
||||
create(value?: PartialMessage<ExecutionflowByIdQuery>): ExecutionflowByIdQuery {
|
||||
@@ -148,9 +169,12 @@ class ExecutionflowByIdQuery$Type extends MessageType<ExecutionflowByIdQuery> {
|
||||
case /* repeated api.QueryEntityID IDs */ 2:
|
||||
message.IDs.push(QueryEntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.ExecutionflowQueryOptions Options */ 3:
|
||||
case /* api.ExecutionflowQueryOptions Options = 3 [deprecated = true] */ 3:
|
||||
message.Options = ExecutionflowQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
case /* api.QueryOptions QueryOptions */ 4:
|
||||
message.QueryOptions = QueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.QueryOptions);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -169,9 +193,12 @@ class ExecutionflowByIdQuery$Type extends MessageType<ExecutionflowByIdQuery> {
|
||||
/* repeated api.QueryEntityID IDs = 2; */
|
||||
for (let i = 0; i < message.IDs.length; i++)
|
||||
QueryEntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ExecutionflowQueryOptions Options = 3; */
|
||||
/* api.ExecutionflowQueryOptions Options = 3 [deprecated = true]; */
|
||||
if (message.Options)
|
||||
ExecutionflowQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.QueryOptions QueryOptions = 4; */
|
||||
if (message.QueryOptions)
|
||||
QueryOptions.internalBinaryWrite(message.QueryOptions, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -187,12 +214,14 @@ class ExecutionflowByIdResult$Type extends MessageType<ExecutionflowByIdResult>
|
||||
constructor() {
|
||||
super("api.ExecutionflowByIdResult", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResultHeader },
|
||||
{ no: 2, name: "Objects", kind: "message", localName: "Objects", jsonName: "Objects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Executionflow }
|
||||
{ no: 2, name: "Objects", kind: "message", localName: "Objects", jsonName: "Objects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Executionflow },
|
||||
{ no: 3, name: "TruncatedObjects", kind: "message", localName: "TruncatedObjects", jsonName: "TruncatedObjects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TruncatedObject }
|
||||
], { "api.messageType": "Result" });
|
||||
}
|
||||
create(value?: PartialMessage<ExecutionflowByIdResult>): ExecutionflowByIdResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Objects = [];
|
||||
message.TruncatedObjects = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ExecutionflowByIdResult>(this, message, value);
|
||||
return message;
|
||||
@@ -208,6 +237,9 @@ class ExecutionflowByIdResult$Type extends MessageType<ExecutionflowByIdResult>
|
||||
case /* repeated api.Executionflow Objects */ 2:
|
||||
message.Objects.push(Executionflow.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.TruncatedObject TruncatedObjects */ 3:
|
||||
message.TruncatedObjects.push(TruncatedObject.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -226,6 +258,9 @@ class ExecutionflowByIdResult$Type extends MessageType<ExecutionflowByIdResult>
|
||||
/* repeated api.Executionflow Objects = 2; */
|
||||
for (let i = 0; i < message.Objects.length; i++)
|
||||
Executionflow.internalBinaryWrite(message.Objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.TruncatedObject TruncatedObjects = 3; */
|
||||
for (let i = 0; i < message.TruncatedObjects.length; i++)
|
||||
TruncatedObject.internalBinaryWrite(message.TruncatedObjects[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -246,7 +281,8 @@ class ExecutionflowByFilterQuery$Type extends MessageType<ExecutionflowByFilterQ
|
||||
{ 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: () => ExecutionflowQueryOptions },
|
||||
{ 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)" } } }
|
||||
{ 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)" } } },
|
||||
{ no: 10, name: "QueryOptions", kind: "message", localName: "QueryOptions", jsonName: "QueryOptions", T: () => QueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ExecutionflowByFilterQuery>): ExecutionflowByFilterQuery {
|
||||
@@ -277,7 +313,7 @@ class ExecutionflowByFilterQuery$Type extends MessageType<ExecutionflowByFilterQ
|
||||
case /* repeated api.BlockFilter BlockFilters */ 6:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.ExecutionflowQueryOptions Options */ 7:
|
||||
case /* api.ExecutionflowQueryOptions Options = 7 [deprecated = true] */ 7:
|
||||
message.Options = ExecutionflowQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 8:
|
||||
@@ -286,6 +322,9 @@ class ExecutionflowByFilterQuery$Type extends MessageType<ExecutionflowByFilterQ
|
||||
case /* string UsageContextPath */ 9:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
case /* api.QueryOptions QueryOptions */ 10:
|
||||
message.QueryOptions = QueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.QueryOptions);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -310,7 +349,7 @@ class ExecutionflowByFilterQuery$Type extends MessageType<ExecutionflowByFilterQ
|
||||
/* repeated api.BlockFilter BlockFilters = 6; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ExecutionflowQueryOptions Options = 7; */
|
||||
/* api.ExecutionflowQueryOptions Options = 7 [deprecated = true]; */
|
||||
if (message.Options)
|
||||
ExecutionflowQueryOptions.internalBinaryWrite(message.Options, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 8; */
|
||||
@@ -319,6 +358,9 @@ class ExecutionflowByFilterQuery$Type extends MessageType<ExecutionflowByFilterQ
|
||||
/* string UsageContextPath = 9; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
/* api.QueryOptions QueryOptions = 10; */
|
||||
if (message.QueryOptions)
|
||||
QueryOptions.internalBinaryWrite(message.QueryOptions, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -335,13 +377,15 @@ class ExecutionflowByFilterResult$Type extends MessageType<ExecutionflowByFilter
|
||||
super("api.ExecutionflowByFilterResult", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResultHeader },
|
||||
{ no: 2, name: "Objects", kind: "message", localName: "Objects", jsonName: "Objects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Executionflow },
|
||||
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "TruncatedObjects", kind: "message", localName: "TruncatedObjects", jsonName: "TruncatedObjects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TruncatedObject }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ExecutionflowByFilterResult>): ExecutionflowByFilterResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Objects = [];
|
||||
message.queryContext = "";
|
||||
message.TruncatedObjects = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ExecutionflowByFilterResult>(this, message, value);
|
||||
return message;
|
||||
@@ -360,6 +404,9 @@ class ExecutionflowByFilterResult$Type extends MessageType<ExecutionflowByFilter
|
||||
case /* string queryContext */ 3:
|
||||
message.queryContext = reader.string();
|
||||
break;
|
||||
case /* repeated api.TruncatedObject TruncatedObjects */ 4:
|
||||
message.TruncatedObjects.push(TruncatedObject.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -381,6 +428,9 @@ class ExecutionflowByFilterResult$Type extends MessageType<ExecutionflowByFilter
|
||||
/* string queryContext = 3; */
|
||||
if (message.queryContext !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.queryContext);
|
||||
/* repeated api.TruncatedObject TruncatedObjects = 4; */
|
||||
for (let i = 0; i < message.TruncatedObjects.length; i++)
|
||||
TruncatedObject.internalBinaryWrite(message.TruncatedObjects[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user