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.12.0-SNAPSHOT-251015083055",
|
||||
"version": "1.12.0-SNAPSHOT-251015143156",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
185
site.ts
185
site.ts
@@ -12,6 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { SegmentationFilter } from "./slotbooking";
|
||||
import { Period } from "./shared";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
@@ -1097,14 +1098,62 @@ export interface SetSiteAliasRequest {
|
||||
*/
|
||||
SiteActor?: SiteActor;
|
||||
}
|
||||
/**
|
||||
* Authorisation
|
||||
*
|
||||
* @generated from protobuf message api.ProjectAuthorisationWithValue
|
||||
*/
|
||||
export interface ProjectAuthorisationWithValue {
|
||||
/**
|
||||
* Identifier of the project.
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* Constraints applied for reception appointment.
|
||||
*
|
||||
* @generated from protobuf field: api.ProjectConstraintWithValue UnloadingConstraint = 2
|
||||
*/
|
||||
UnloadingConstraint?: ProjectConstraintWithValue;
|
||||
/**
|
||||
* Constraints applied for expedition appointment.
|
||||
*
|
||||
* @generated from protobuf field: api.ProjectConstraintWithValue LoadingConstraint = 3
|
||||
*/
|
||||
LoadingConstraint?: ProjectConstraintWithValue;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ProjectConstraintWithValue
|
||||
*/
|
||||
export interface ProjectConstraintWithValue {
|
||||
/**
|
||||
* Specific Segmentation constraints applicable for the project.
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Segmentation SegmentationFilters = 1
|
||||
*/
|
||||
SegmentationFilters: Segmentation[];
|
||||
/**
|
||||
* Minimal notice delay to book or cancel an appointment.
|
||||
*
|
||||
* @generated from protobuf field: api.Period MinNoticePeriod = 2
|
||||
*/
|
||||
MinNoticePeriod?: Period;
|
||||
/**
|
||||
* Maximal delay to book an appointment.
|
||||
*
|
||||
* @generated from protobuf field: api.Period MaxBookingPeriod = 3
|
||||
*/
|
||||
MaxBookingPeriod?: Period;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SegmentationsSetting
|
||||
*/
|
||||
export interface SegmentationsSetting {
|
||||
/**
|
||||
* @generated from protobuf field: api.ProjectAuthorisation Authorisation = 1
|
||||
* @generated from protobuf field: api.ProjectAuthorisationWithValue Authorisation = 1
|
||||
*/
|
||||
Authorisation?: ProjectAuthorisation;
|
||||
Authorisation?: ProjectAuthorisationWithValue;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2
|
||||
*/
|
||||
@@ -4109,10 +4158,132 @@ class SetSiteAliasRequest$Type extends MessageType<SetSiteAliasRequest> {
|
||||
*/
|
||||
export const SetSiteAliasRequest = new SetSiteAliasRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ProjectAuthorisationWithValue$Type extends MessageType<ProjectAuthorisationWithValue> {
|
||||
constructor() {
|
||||
super("api.ProjectAuthorisationWithValue", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "UnloadingConstraint", kind: "message", localName: "UnloadingConstraint", jsonName: "UnloadingConstraint", T: () => ProjectConstraintWithValue },
|
||||
{ no: 3, name: "LoadingConstraint", kind: "message", localName: "LoadingConstraint", jsonName: "LoadingConstraint", T: () => ProjectConstraintWithValue }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ProjectAuthorisationWithValue>): ProjectAuthorisationWithValue {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ProjectAuthorisationWithValue>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectAuthorisationWithValue): ProjectAuthorisationWithValue {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* api.ProjectConstraintWithValue UnloadingConstraint */ 2:
|
||||
message.UnloadingConstraint = ProjectConstraintWithValue.internalBinaryRead(reader, reader.uint32(), options, message.UnloadingConstraint);
|
||||
break;
|
||||
case /* api.ProjectConstraintWithValue LoadingConstraint */ 3:
|
||||
message.LoadingConstraint = ProjectConstraintWithValue.internalBinaryRead(reader, reader.uint32(), options, message.LoadingConstraint);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ProjectAuthorisationWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* api.ProjectConstraintWithValue UnloadingConstraint = 2; */
|
||||
if (message.UnloadingConstraint)
|
||||
ProjectConstraintWithValue.internalBinaryWrite(message.UnloadingConstraint, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ProjectConstraintWithValue LoadingConstraint = 3; */
|
||||
if (message.LoadingConstraint)
|
||||
ProjectConstraintWithValue.internalBinaryWrite(message.LoadingConstraint, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ProjectAuthorisationWithValue
|
||||
*/
|
||||
export const ProjectAuthorisationWithValue = new ProjectAuthorisationWithValue$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ProjectConstraintWithValue$Type extends MessageType<ProjectConstraintWithValue> {
|
||||
constructor() {
|
||||
super("api.ProjectConstraintWithValue", [
|
||||
{ no: 1, name: "SegmentationFilters", kind: "message", localName: "SegmentationFilters", jsonName: "SegmentationFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation, options: { "api.aggKey": "SegmentationID" } },
|
||||
{ no: 2, name: "MinNoticePeriod", kind: "message", localName: "MinNoticePeriod", jsonName: "MinNoticePeriod", T: () => Period },
|
||||
{ no: 3, name: "MaxBookingPeriod", kind: "message", localName: "MaxBookingPeriod", jsonName: "MaxBookingPeriod", T: () => Period }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ProjectConstraintWithValue>): ProjectConstraintWithValue {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SegmentationFilters = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ProjectConstraintWithValue>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectConstraintWithValue): ProjectConstraintWithValue {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Segmentation SegmentationFilters */ 1:
|
||||
message.SegmentationFilters.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.Period MinNoticePeriod */ 2:
|
||||
message.MinNoticePeriod = Period.internalBinaryRead(reader, reader.uint32(), options, message.MinNoticePeriod);
|
||||
break;
|
||||
case /* api.Period MaxBookingPeriod */ 3:
|
||||
message.MaxBookingPeriod = Period.internalBinaryRead(reader, reader.uint32(), options, message.MaxBookingPeriod);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ProjectConstraintWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Segmentation SegmentationFilters = 1; */
|
||||
for (let i = 0; i < message.SegmentationFilters.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.SegmentationFilters[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Period MinNoticePeriod = 2; */
|
||||
if (message.MinNoticePeriod)
|
||||
Period.internalBinaryWrite(message.MinNoticePeriod, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Period MaxBookingPeriod = 3; */
|
||||
if (message.MaxBookingPeriod)
|
||||
Period.internalBinaryWrite(message.MaxBookingPeriod, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ProjectConstraintWithValue
|
||||
*/
|
||||
export const ProjectConstraintWithValue = new ProjectConstraintWithValue$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SegmentationsSetting$Type extends MessageType<SegmentationsSetting> {
|
||||
constructor() {
|
||||
super("api.SegmentationsSetting", [
|
||||
{ no: 1, name: "Authorisation", kind: "message", localName: "Authorisation", jsonName: "Authorisation", T: () => ProjectAuthorisation },
|
||||
{ no: 1, name: "Authorisation", kind: "message", localName: "Authorisation", jsonName: "Authorisation", T: () => ProjectAuthorisationWithValue },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
@@ -4130,8 +4301,8 @@ class SegmentationsSetting$Type extends MessageType<SegmentationsSetting> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ProjectAuthorisation Authorisation */ 1:
|
||||
message.Authorisation = ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options, message.Authorisation);
|
||||
case /* api.ProjectAuthorisationWithValue Authorisation */ 1:
|
||||
message.Authorisation = ProjectAuthorisationWithValue.internalBinaryRead(reader, reader.uint32(), options, message.Authorisation);
|
||||
break;
|
||||
case /* string Name */ 2:
|
||||
message.Name = reader.string();
|
||||
@@ -4151,9 +4322,9 @@ class SegmentationsSetting$Type extends MessageType<SegmentationsSetting> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: SegmentationsSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ProjectAuthorisation Authorisation = 1; */
|
||||
/* api.ProjectAuthorisationWithValue Authorisation = 1; */
|
||||
if (message.Authorisation)
|
||||
ProjectAuthorisation.internalBinaryWrite(message.Authorisation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
ProjectAuthorisationWithValue.internalBinaryWrite(message.Authorisation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Name = 2; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
|
||||
Reference in New Issue
Block a user