Latest generation

This commit is contained in:
ci core model
2025-05-19 09:58:49 +00:00
parent 756481da7c
commit 5e9252744e
3 changed files with 52 additions and 68 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.11.0-SNAPSHOT-250516084929",
"version": "1.11.0-SNAPSHOT-250519095807",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

View File

@@ -765,10 +765,10 @@ class CreateSiteRequest$Type extends MessageType<CreateSiteRequest> {
constructor() {
super("api.CreateSiteRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", email: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header,SiteID,Emails"] } } });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header,SiteID,Emails,SiteName"] } } });
}
create(value?: PartialMessage<CreateSiteRequest>): CreateSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));

View File

@@ -431,15 +431,15 @@ export interface ProjectAuthorisation {
* TODO Do we need explicit flags to show if receipt / ship is allowed / forbidden ?
* Constraints applied for reception appointment
*
* @generated from protobuf field: api.ProjectConstraints InConstraints = 3 [json_name = "InConstraints"];
* @generated from protobuf field: api.ProjectConstraints UnloadingConstraints = 3 [json_name = "UnloadingConstraints"];
*/
InConstraints?: ProjectConstraints;
UnloadingConstraints?: ProjectConstraints;
/**
* Constraints applied for expedition appointment
*
* @generated from protobuf field: api.ProjectConstraints OutConstraints = 4 [json_name = "OutConstraints"];
* @generated from protobuf field: api.ProjectConstraints LoadingConstraints = 4 [json_name = "LoadingConstraints"];
*/
OutConstraints?: ProjectConstraints;
LoadingConstraints?: ProjectConstraints;
}
/**
* @generated from protobuf message api.ProjectConstraints
@@ -477,9 +477,9 @@ export interface SegmentationConstraint {
/**
* If some Segmentation values are restricted, define here the identifiers to keep
*
* @generated from protobuf field: repeated int64 RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];
* @generated from protobuf field: repeated string RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];
*/
RestrictedValueIDs: bigint[];
RestrictedValueIDs: string[];
/**
* Set to not apply Segmentation value restriction and keep all the values
*
@@ -496,15 +496,15 @@ export interface ActorAuthorisation {
/**
* Constraints applied for reception appointment
*
* @generated from protobuf field: api.ActorConstraints InConstraints = 3 [json_name = "InConstraints"];
* @generated from protobuf field: api.ActorConstraints UnloadingConstraints = 3 [json_name = "UnloadingConstraints"];
*/
InConstraints?: ActorConstraints;
UnloadingConstraints?: ActorConstraints;
/**
* Constraints applied for expedition appointment
*
* @generated from protobuf field: api.ActorConstraints OutConstraints = 4 [json_name = "OutConstraints"];
* @generated from protobuf field: api.ActorConstraints LoadingConstraints = 4 [json_name = "LoadingConstraints"];
*/
OutConstraints?: ActorConstraints;
LoadingConstraints?: ActorConstraints;
}
/**
* @generated from protobuf message api.ActorConstraints
@@ -539,9 +539,9 @@ export interface SegmentationActorConstraint {
/**
* If some Segmentation values are restricted, define here the identifiers to keep
*
* @generated from protobuf field: repeated int64 RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];
* @generated from protobuf field: repeated string RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];
*/
RestrictedValueIDs: bigint[];
RestrictedValueIDs: string[];
/**
* In case of user value choice, to restrict Segmentation values
*
@@ -1826,8 +1826,8 @@ class ProjectAuthorisation$Type extends MessageType<ProjectAuthorisation> {
super("api.ProjectAuthorisation", [
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "InConstraints", kind: "message", localName: "InConstraints", jsonName: "InConstraints", T: () => ProjectConstraints },
{ no: 4, name: "OutConstraints", kind: "message", localName: "OutConstraints", jsonName: "OutConstraints", T: () => ProjectConstraints }
{ no: 3, name: "UnloadingConstraints", kind: "message", localName: "UnloadingConstraints", jsonName: "UnloadingConstraints", T: () => ProjectConstraints },
{ no: 4, name: "LoadingConstraints", kind: "message", localName: "LoadingConstraints", jsonName: "LoadingConstraints", T: () => ProjectConstraints }
]);
}
create(value?: PartialMessage<ProjectAuthorisation>): ProjectAuthorisation {
@@ -1849,11 +1849,11 @@ class ProjectAuthorisation$Type extends MessageType<ProjectAuthorisation> {
case /* string ProjectID = 2 [json_name = "ProjectID"];*/ 2:
message.ProjectID = reader.string();
break;
case /* api.ProjectConstraints InConstraints = 3 [json_name = "InConstraints"];*/ 3:
message.InConstraints = ProjectConstraints.internalBinaryRead(reader, reader.uint32(), options, message.InConstraints);
case /* api.ProjectConstraints UnloadingConstraints = 3 [json_name = "UnloadingConstraints"];*/ 3:
message.UnloadingConstraints = ProjectConstraints.internalBinaryRead(reader, reader.uint32(), options, message.UnloadingConstraints);
break;
case /* api.ProjectConstraints OutConstraints = 4 [json_name = "OutConstraints"];*/ 4:
message.OutConstraints = ProjectConstraints.internalBinaryRead(reader, reader.uint32(), options, message.OutConstraints);
case /* api.ProjectConstraints LoadingConstraints = 4 [json_name = "LoadingConstraints"];*/ 4:
message.LoadingConstraints = ProjectConstraints.internalBinaryRead(reader, reader.uint32(), options, message.LoadingConstraints);
break;
default:
let u = options.readUnknownField;
@@ -1873,12 +1873,12 @@ class ProjectAuthorisation$Type extends MessageType<ProjectAuthorisation> {
/* string ProjectID = 2 [json_name = "ProjectID"]; */
if (message.ProjectID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ProjectID);
/* api.ProjectConstraints InConstraints = 3 [json_name = "InConstraints"]; */
if (message.InConstraints)
ProjectConstraints.internalBinaryWrite(message.InConstraints, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.ProjectConstraints OutConstraints = 4 [json_name = "OutConstraints"]; */
if (message.OutConstraints)
ProjectConstraints.internalBinaryWrite(message.OutConstraints, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.ProjectConstraints UnloadingConstraints = 3 [json_name = "UnloadingConstraints"]; */
if (message.UnloadingConstraints)
ProjectConstraints.internalBinaryWrite(message.UnloadingConstraints, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.ProjectConstraints LoadingConstraints = 4 [json_name = "LoadingConstraints"]; */
if (message.LoadingConstraints)
ProjectConstraints.internalBinaryWrite(message.LoadingConstraints, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1955,7 +1955,7 @@ class SegmentationConstraint$Type extends MessageType<SegmentationConstraint> {
constructor() {
super("api.SegmentationConstraint", [
{ no: 1, name: "SegmentationID", kind: "scalar", localName: "SegmentationID", jsonName: "SegmentationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "RestrictedValueIDs", kind: "scalar", localName: "RestrictedValueIDs", jsonName: "RestrictedValueIDs", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 2, name: "RestrictedValueIDs", kind: "scalar", localName: "RestrictedValueIDs", jsonName: "RestrictedValueIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "AllValues", kind: "scalar", localName: "AllValues", jsonName: "AllValues", T: 8 /*ScalarType.BOOL*/ }
]);
}
@@ -1976,12 +1976,8 @@ class SegmentationConstraint$Type extends MessageType<SegmentationConstraint> {
case /* string SegmentationID = 1 [json_name = "SegmentationID"];*/ 1:
message.SegmentationID = reader.string();
break;
case /* repeated int64 RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];*/ 2:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.RestrictedValueIDs.push(reader.int64().toBigInt());
else
message.RestrictedValueIDs.push(reader.int64().toBigInt());
case /* repeated string RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];*/ 2:
message.RestrictedValueIDs.push(reader.string());
break;
case /* bool AllValues = 3 [json_name = "AllValues"];*/ 3:
message.AllValues = reader.bool();
@@ -2001,13 +1997,9 @@ class SegmentationConstraint$Type extends MessageType<SegmentationConstraint> {
/* string SegmentationID = 1 [json_name = "SegmentationID"]; */
if (message.SegmentationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SegmentationID);
/* repeated int64 RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"]; */
if (message.RestrictedValueIDs.length) {
writer.tag(2, WireType.LengthDelimited).fork();
for (let i = 0; i < message.RestrictedValueIDs.length; i++)
writer.int64(message.RestrictedValueIDs[i]);
writer.join();
}
/* repeated string RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"]; */
for (let i = 0; i < message.RestrictedValueIDs.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.RestrictedValueIDs[i]);
/* bool AllValues = 3 [json_name = "AllValues"]; */
if (message.AllValues !== false)
writer.tag(3, WireType.Varint).bool(message.AllValues);
@@ -2025,8 +2017,8 @@ export const SegmentationConstraint = new SegmentationConstraint$Type();
class ActorAuthorisation$Type extends MessageType<ActorAuthorisation> {
constructor() {
super("api.ActorAuthorisation", [
{ no: 3, name: "InConstraints", kind: "message", localName: "InConstraints", jsonName: "InConstraints", T: () => ActorConstraints },
{ no: 4, name: "OutConstraints", kind: "message", localName: "OutConstraints", jsonName: "OutConstraints", T: () => ActorConstraints }
{ no: 3, name: "UnloadingConstraints", kind: "message", localName: "UnloadingConstraints", jsonName: "UnloadingConstraints", T: () => ActorConstraints },
{ no: 4, name: "LoadingConstraints", kind: "message", localName: "LoadingConstraints", jsonName: "LoadingConstraints", T: () => ActorConstraints }
]);
}
create(value?: PartialMessage<ActorAuthorisation>): ActorAuthorisation {
@@ -2040,11 +2032,11 @@ class ActorAuthorisation$Type extends MessageType<ActorAuthorisation> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ActorConstraints InConstraints = 3 [json_name = "InConstraints"];*/ 3:
message.InConstraints = ActorConstraints.internalBinaryRead(reader, reader.uint32(), options, message.InConstraints);
case /* api.ActorConstraints UnloadingConstraints = 3 [json_name = "UnloadingConstraints"];*/ 3:
message.UnloadingConstraints = ActorConstraints.internalBinaryRead(reader, reader.uint32(), options, message.UnloadingConstraints);
break;
case /* api.ActorConstraints OutConstraints = 4 [json_name = "OutConstraints"];*/ 4:
message.OutConstraints = ActorConstraints.internalBinaryRead(reader, reader.uint32(), options, message.OutConstraints);
case /* api.ActorConstraints LoadingConstraints = 4 [json_name = "LoadingConstraints"];*/ 4:
message.LoadingConstraints = ActorConstraints.internalBinaryRead(reader, reader.uint32(), options, message.LoadingConstraints);
break;
default:
let u = options.readUnknownField;
@@ -2058,12 +2050,12 @@ class ActorAuthorisation$Type extends MessageType<ActorAuthorisation> {
return message;
}
internalBinaryWrite(message: ActorAuthorisation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ActorConstraints InConstraints = 3 [json_name = "InConstraints"]; */
if (message.InConstraints)
ActorConstraints.internalBinaryWrite(message.InConstraints, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.ActorConstraints OutConstraints = 4 [json_name = "OutConstraints"]; */
if (message.OutConstraints)
ActorConstraints.internalBinaryWrite(message.OutConstraints, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.ActorConstraints UnloadingConstraints = 3 [json_name = "UnloadingConstraints"]; */
if (message.UnloadingConstraints)
ActorConstraints.internalBinaryWrite(message.UnloadingConstraints, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.ActorConstraints LoadingConstraints = 4 [json_name = "LoadingConstraints"]; */
if (message.LoadingConstraints)
ActorConstraints.internalBinaryWrite(message.LoadingConstraints, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2133,7 +2125,7 @@ class SegmentationActorConstraint$Type extends MessageType<SegmentationActorCons
constructor() {
super("api.SegmentationActorConstraint", [
{ no: 1, name: "SegmentationID", kind: "scalar", localName: "SegmentationID", jsonName: "SegmentationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "RestrictedValueIDs", kind: "scalar", localName: "RestrictedValueIDs", jsonName: "RestrictedValueIDs", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 2, name: "RestrictedValueIDs", kind: "scalar", localName: "RestrictedValueIDs", jsonName: "RestrictedValueIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "AllValues", kind: "scalar", localName: "AllValues", jsonName: "AllValues", T: 8 /*ScalarType.BOOL*/ },
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.SegmentationConstraintType", SegmentationConstraintType] },
{ no: 5, name: "AttributePath", kind: "scalar", localName: "AttributePath", jsonName: "AttributePath", T: 9 /*ScalarType.STRING*/ }
@@ -2158,12 +2150,8 @@ class SegmentationActorConstraint$Type extends MessageType<SegmentationActorCons
case /* string SegmentationID = 1 [json_name = "SegmentationID"];*/ 1:
message.SegmentationID = reader.string();
break;
case /* repeated int64 RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];*/ 2:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.RestrictedValueIDs.push(reader.int64().toBigInt());
else
message.RestrictedValueIDs.push(reader.int64().toBigInt());
case /* repeated string RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"];*/ 2:
message.RestrictedValueIDs.push(reader.string());
break;
case /* bool AllValues = 3 [json_name = "AllValues"];*/ 3:
message.AllValues = reader.bool();
@@ -2189,13 +2177,9 @@ class SegmentationActorConstraint$Type extends MessageType<SegmentationActorCons
/* string SegmentationID = 1 [json_name = "SegmentationID"]; */
if (message.SegmentationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SegmentationID);
/* repeated int64 RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"]; */
if (message.RestrictedValueIDs.length) {
writer.tag(2, WireType.LengthDelimited).fork();
for (let i = 0; i < message.RestrictedValueIDs.length; i++)
writer.int64(message.RestrictedValueIDs[i]);
writer.join();
}
/* repeated string RestrictedValueIDs = 2 [json_name = "RestrictedValueIDs"]; */
for (let i = 0; i < message.RestrictedValueIDs.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.RestrictedValueIDs[i]);
/* bool AllValues = 3 [json_name = "AllValues"]; */
if (message.AllValues !== false)
writer.tag(3, WireType.Varint).bool(message.AllValues);