You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -137,6 +137,14 @@ export interface ActorByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 7
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 8
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ActorByMatchResult
|
||||
@@ -461,13 +469,17 @@ class ActorByMatchQuery$Type extends MessageType<ActorByMatchQuery> {
|
||||
super("api.ActorByMatchQuery", [
|
||||
{ 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: 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: "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: 8, 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<ActorByMatchQuery>): ActorByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ActorByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -486,6 +498,12 @@ class ActorByMatchQuery$Type extends MessageType<ActorByMatchQuery> {
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 7:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 8:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -507,6 +525,12 @@ class ActorByMatchQuery$Type extends MessageType<ActorByMatchQuery> {
|
||||
/* repeated api.MatchField MatchFields = 6; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 7; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 8; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -139,6 +139,14 @@ export interface AppointmentByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 7
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 8
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentByMatchResult
|
||||
@@ -463,13 +471,17 @@ class AppointmentByMatchQuery$Type extends MessageType<AppointmentByMatchQuery>
|
||||
super("api.AppointmentByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, 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: 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: "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: 8, 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<AppointmentByMatchQuery>): AppointmentByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -488,6 +500,12 @@ class AppointmentByMatchQuery$Type extends MessageType<AppointmentByMatchQuery>
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 7:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 8:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -509,6 +527,12 @@ class AppointmentByMatchQuery$Type extends MessageType<AppointmentByMatchQuery>
|
||||
/* repeated api.MatchField MatchFields = 6; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 7; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 8; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -141,6 +141,14 @@ export interface ClaimByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 7
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 8
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ClaimByMatchResult
|
||||
@@ -513,13 +521,17 @@ class ClaimByMatchQuery$Type extends MessageType<ClaimByMatchQuery> {
|
||||
super("api.ClaimByMatchQuery", [
|
||||
{ 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: 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: "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: 8, 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<ClaimByMatchQuery>): ClaimByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClaimByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -538,6 +550,12 @@ class ClaimByMatchQuery$Type extends MessageType<ClaimByMatchQuery> {
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 7:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 8:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -559,6 +577,12 @@ class ClaimByMatchQuery$Type extends MessageType<ClaimByMatchQuery> {
|
||||
/* repeated api.MatchField MatchFields = 6; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 7; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 8; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -137,6 +137,14 @@ export interface HandlingunitByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 7
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 8
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.HandlingunitByMatchResult
|
||||
@@ -461,13 +469,17 @@ class HandlingunitByMatchQuery$Type extends MessageType<HandlingunitByMatchQuery
|
||||
super("api.HandlingunitByMatchQuery", [
|
||||
{ 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: 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: "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: 8, 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<HandlingunitByMatchQuery>): HandlingunitByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<HandlingunitByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -486,6 +498,12 @@ class HandlingunitByMatchQuery$Type extends MessageType<HandlingunitByMatchQuery
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 7:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 8:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -507,6 +525,12 @@ class HandlingunitByMatchQuery$Type extends MessageType<HandlingunitByMatchQuery
|
||||
/* repeated api.MatchField MatchFields = 6; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 7; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 8; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
26
itemQuery.ts
26
itemQuery.ts
@@ -140,6 +140,14 @@ export interface ItemByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 7
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 8
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ItemByMatchResult
|
||||
@@ -498,13 +506,17 @@ class ItemByMatchQuery$Type extends MessageType<ItemByMatchQuery> {
|
||||
super("api.ItemByMatchQuery", [
|
||||
{ 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: 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: "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: 8, 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<ItemByMatchQuery>): ItemByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ItemByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -523,6 +535,12 @@ class ItemByMatchQuery$Type extends MessageType<ItemByMatchQuery> {
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 7:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 8:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -544,6 +562,12 @@ class ItemByMatchQuery$Type extends MessageType<ItemByMatchQuery> {
|
||||
/* repeated api.MatchField MatchFields = 6; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 7; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 8; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -139,6 +139,14 @@ export interface MovementByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 7
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 8
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.MovementByMatchResult
|
||||
@@ -493,13 +501,17 @@ class MovementByMatchQuery$Type extends MessageType<MovementByMatchQuery> {
|
||||
super("api.MovementByMatchQuery", [
|
||||
{ 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: 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: "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: 8, 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<MovementByMatchQuery>): MovementByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MovementByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -518,6 +530,12 @@ class MovementByMatchQuery$Type extends MessageType<MovementByMatchQuery> {
|
||||
case /* repeated api.MatchField MatchFields */ 6:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 7:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 8:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -539,6 +557,12 @@ class MovementByMatchQuery$Type extends MessageType<MovementByMatchQuery> {
|
||||
/* repeated api.MatchField MatchFields = 6; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 7; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(7, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 8; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -141,6 +141,14 @@ export interface OrderByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 8
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 9
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 10
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.OrderByMatchResult
|
||||
@@ -474,13 +482,17 @@ class OrderByMatchQuery$Type extends MessageType<OrderByMatchQuery> {
|
||||
super("api.OrderByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 8, 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: 8, 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: 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<OrderByMatchQuery>): OrderByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrderByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -499,6 +511,12 @@ class OrderByMatchQuery$Type extends MessageType<OrderByMatchQuery> {
|
||||
case /* repeated api.MatchField MatchFields */ 8:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), 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")
|
||||
@@ -520,6 +538,12 @@ class OrderByMatchQuery$Type extends MessageType<OrderByMatchQuery> {
|
||||
/* repeated api.MatchField MatchFields = 8; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], 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);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-250926075750",
|
||||
"version": "1.12.0-SNAPSHOT-250929082951",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -137,6 +137,14 @@ export interface PartnerByMatchQuery {
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 8
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 9
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 10
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.PartnerByMatchResult
|
||||
@@ -461,13 +469,17 @@ class PartnerByMatchQuery$Type extends MessageType<PartnerByMatchQuery> {
|
||||
super("api.PartnerByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 8, 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: 8, 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: 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<PartnerByMatchQuery>): PartnerByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<PartnerByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -486,6 +498,12 @@ class PartnerByMatchQuery$Type extends MessageType<PartnerByMatchQuery> {
|
||||
case /* repeated api.MatchField MatchFields */ 8:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), 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")
|
||||
@@ -507,6 +525,12 @@ class PartnerByMatchQuery$Type extends MessageType<PartnerByMatchQuery> {
|
||||
/* repeated api.MatchField MatchFields = 8; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], 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);
|
||||
|
||||
52
shared.ts
52
shared.ts
@@ -1897,6 +1897,14 @@ export interface ElementByMatchQuery {
|
||||
* @generated from protobuf field: api.MatchElementField MatchElementField = 3
|
||||
*/
|
||||
MatchElementField?: MatchElementField;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 4
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 5
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ElementByMatchSiteQuery
|
||||
@@ -1918,6 +1926,14 @@ export interface ElementByMatchSiteQuery {
|
||||
* @generated from protobuf field: api.MatchElementField MatchElementField = 3
|
||||
*/
|
||||
MatchElementField?: MatchElementField;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 4
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 5
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ElementByMatchResult
|
||||
@@ -7988,12 +8004,16 @@ class ElementByMatchQuery$Type extends MessageType<ElementByMatchQuery> {
|
||||
super("api.ElementByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 4, 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: 5, 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<ElementByMatchQuery>): ElementByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ElementByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -8012,6 +8032,12 @@ class ElementByMatchQuery$Type extends MessageType<ElementByMatchQuery> {
|
||||
case /* api.MatchElementField MatchElementField */ 3:
|
||||
message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField);
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 4:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 5:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -8033,6 +8059,12 @@ class ElementByMatchQuery$Type extends MessageType<ElementByMatchQuery> {
|
||||
/* api.MatchElementField MatchElementField = 3; */
|
||||
if (message.MatchElementField)
|
||||
MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 4; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 5; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -8049,12 +8081,16 @@ class ElementByMatchSiteQuery$Type extends MessageType<ElementByMatchSiteQuery>
|
||||
super("api.ElementByMatchSiteQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 4, 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: 5, 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<ElementByMatchSiteQuery>): ElementByMatchSiteQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ElementByMatchSiteQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -8073,6 +8109,12 @@ class ElementByMatchSiteQuery$Type extends MessageType<ElementByMatchSiteQuery>
|
||||
case /* api.MatchElementField MatchElementField */ 3:
|
||||
message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField);
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 4:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 5:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -8094,6 +8136,12 @@ class ElementByMatchSiteQuery$Type extends MessageType<ElementByMatchSiteQuery>
|
||||
/* api.MatchElementField MatchElementField = 3; */
|
||||
if (message.MatchElementField)
|
||||
MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 4; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 5; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user