You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260224155732",
|
||||
"version": "1.13.0-SNAPSHOT-260225133635",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
64
shared.ts
64
shared.ts
@@ -2068,9 +2068,9 @@ export interface CrossFindByMatchQuery {
|
||||
*/
|
||||
export interface CrossFindElementByMatchQuery {
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1
|
||||
* @generated from protobuf field: api.QueryBasicHeader Header = 1
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
Header?: QueryBasicHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
|
||||
*
|
||||
@@ -2084,19 +2084,11 @@ export interface CrossFindElementByMatchQuery {
|
||||
*/
|
||||
MatchElementField?: MatchElementField;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 4
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 5
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 6
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 4
|
||||
*/
|
||||
SearchTagProjects: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 7
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 5
|
||||
*/
|
||||
SearchTagUsers: string[];
|
||||
}
|
||||
@@ -8571,7 +8563,7 @@ export const EntityDefinition = new EntityDefinition$Type();
|
||||
class CrossFindQuery$Type extends MessageType<CrossFindQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFindQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader },
|
||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 3, name: "LimitFilter", kind: "scalar", localName: "LimitFilter", jsonName: "LimitFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } },
|
||||
{ no: 4, name: "QueryContext", kind: "scalar", localName: "QueryContext", jsonName: "QueryContext", T: 9 /*ScalarType.STRING*/ },
|
||||
@@ -8657,10 +8649,10 @@ export const CrossFindQuery = new CrossFindQuery$Type();
|
||||
class CrossFindByMatchQuery$Type extends MessageType<CrossFindByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFindByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader },
|
||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 3, 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: 4, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 4, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"projectID1\", \"projectID2\"]" } } },
|
||||
{ no: 5, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
@@ -8735,20 +8727,16 @@ export const CrossFindByMatchQuery = new CrossFindByMatchQuery$Type();
|
||||
class CrossFindElementByMatchQuery$Type extends MessageType<CrossFindElementByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFindElementByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader },
|
||||
{ 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: 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)" } } },
|
||||
{ no: 6, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 7, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
{ no: 4, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 5, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CrossFindElementByMatchQuery>): CrossFindElementByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
message.SearchTagProjects = [];
|
||||
message.SearchTagUsers = [];
|
||||
if (value !== undefined)
|
||||
@@ -8760,8 +8748,8 @@ class CrossFindElementByMatchQuery$Type extends MessageType<CrossFindElementByMa
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.QueryProjectHeader Header */ 1:
|
||||
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
case /* api.QueryBasicHeader Header */ 1:
|
||||
message.Header = QueryBasicHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.BlockFilter BlockFilters */ 2:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -8769,16 +8757,10 @@ class CrossFindElementByMatchQuery$Type extends MessageType<CrossFindElementByMa
|
||||
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;
|
||||
case /* repeated string SearchTagProjects */ 6:
|
||||
case /* repeated string SearchTagProjects */ 4:
|
||||
message.SearchTagProjects.push(reader.string());
|
||||
break;
|
||||
case /* repeated string SearchTagUsers */ 7:
|
||||
case /* repeated string SearchTagUsers */ 5:
|
||||
message.SearchTagUsers.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
@@ -8793,27 +8775,21 @@ class CrossFindElementByMatchQuery$Type extends MessageType<CrossFindElementByMa
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CrossFindElementByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
/* api.QueryBasicHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
QueryBasicHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.BlockFilter BlockFilters = 2; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* 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);
|
||||
/* repeated string SearchTagProjects = 6; */
|
||||
/* repeated string SearchTagProjects = 4; */
|
||||
for (let i = 0; i < message.SearchTagProjects.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 7; */
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 5; */
|
||||
for (let i = 0; i < message.SearchTagUsers.length; i++)
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user