Latest generation

This commit is contained in:
ci core model
2025-05-22 14:37:25 +00:00
parent 54568fbb6d
commit ad4b070125
4 changed files with 84 additions and 84 deletions

View File

@@ -10,10 +10,9 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ValueType } from "./shared";
import { CarrierInformation } from "./slotbooking";
import { AppointmentStatusStruct } from "./collabShared";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { Segmentation } from "./slotbooking";
import { QuantityByUnit } from "./slotbooking";
import { Commission } from "./collabShared";
@@ -121,19 +120,6 @@ export interface AppointmentTriplet {
*/
LastEvent?: Appointment;
}
/**
* @generated from protobuf message api.CarrierInformationWithValue
*/
export interface CarrierInformationWithValue {
/**
* @generated from protobuf field: api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];
*/
CarrierInformation?: CarrierInformation;
/**
* @generated from protobuf field: api.ValueType Value = 2 [json_name = "Value"];
*/
Value?: ValueType;
}
// @generated message type with reflection information, may provide speed optimized methods
class Appointment$Type extends MessageType<Appointment> {
constructor() {
@@ -363,56 +349,3 @@ class AppointmentTriplet$Type extends MessageType<AppointmentTriplet> {
* @generated MessageType for protobuf message api.AppointmentTriplet
*/
export const AppointmentTriplet = new AppointmentTriplet$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CarrierInformationWithValue$Type extends MessageType<CarrierInformationWithValue> {
constructor() {
super("api.CarrierInformationWithValue", [
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", T: () => CarrierInformation },
{ no: 2, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType }
]);
}
create(value?: PartialMessage<CarrierInformationWithValue>): CarrierInformationWithValue {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<CarrierInformationWithValue>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierInformationWithValue): CarrierInformationWithValue {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1:
message.CarrierInformation = CarrierInformation.internalBinaryRead(reader, reader.uint32(), options, message.CarrierInformation);
break;
case /* api.ValueType Value = 2 [json_name = "Value"];*/ 2:
message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value);
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: CarrierInformationWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"]; */
if (message.CarrierInformation)
CarrierInformation.internalBinaryWrite(message.CarrierInformation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.ValueType Value = 2 [json_name = "Value"]; */
if (message.Value)
ValueType.internalBinaryWrite(message.Value, writer.tag(2, 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.CarrierInformationWithValue
*/
export const CarrierInformationWithValue = new CarrierInformationWithValue$Type();

View File

@@ -16,7 +16,7 @@ import { RequestSiteHeader } from "./shared";
import { EntityID } from "./shared";
import { EventHeader } from "./shared";
import { Slot } from "./slotbooking";
import { CarrierInformation } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { Segmentation } from "./slotbooking";
import { QuantityByUnit } from "./slotbooking";
import { Commission } from "./collabShared";
@@ -58,9 +58,9 @@ export interface AppointmentCreatedPayload {
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"];
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5 [json_name = "CarrierInformation"];
*/
CarrierInformation: CarrierInformation[];
CarrierInformation: CarrierInformationWithValue[];
/**
* The slot booked for the appointment
*
@@ -203,9 +203,9 @@ export interface AppointmentCarrierInformationUpdatedPayload {
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 1 [json_name = "CarrierInformation"];
*/
CarrierInformation: CarrierInformation[];
CarrierInformation: CarrierInformationWithValue[];
}
/**
* Event message
@@ -709,7 +709,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 3, name: "QuantitiesByUnits", kind: "message", localName: "QuantitiesByUnits", jsonName: "QuantitiesByUnits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } } });
@@ -743,8 +743,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
case /* repeated api.Segmentation Segmentations = 4 [json_name = "Segmentations"];*/ 4:
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"];*/ 5:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.CarrierInformationWithValue CarrierInformation = 5 [json_name = "CarrierInformation"];*/ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Slot Slot = 6 [json_name = "Slot"];*/ 6:
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
@@ -776,9 +776,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
/* repeated api.Segmentation Segmentations = 4 [json_name = "Segmentations"]; */
for (let i = 0; i < message.Segmentations.length; i++)
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"]; */
/* repeated api.CarrierInformationWithValue CarrierInformation = 5 [json_name = "CarrierInformation"]; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.Slot Slot = 6 [json_name = "Slot"]; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -1183,7 +1183,7 @@ export const AppointmentCanceledResponse = new AppointmentCanceledResponse$Type(
class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType<AppointmentCarrierInformationUpdatedPayload> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedPayload", [
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation }
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue }
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierInformationUpdated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } });
}
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedPayload>): AppointmentCarrierInformationUpdatedPayload {
@@ -1198,8 +1198,8 @@ class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType<Appoi
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.CarrierInformationWithValue CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
@@ -1213,9 +1213,9 @@ class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType<Appoi
return message;
}
internalBinaryWrite(message: AppointmentCarrierInformationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"]; */
/* repeated api.CarrierInformationWithValue CarrierInformation = 1 [json_name = "CarrierInformation"]; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

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

View File

@@ -10,6 +10,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ValueType } from "./shared";
import { TimeRange } from "./shared";
import { WeekDay } from "./shared";
import { LabelByLanguage } from "./shared";
@@ -380,6 +381,19 @@ export interface CarrierInformation {
*/
FormatCheck: boolean;
}
/**
* @generated from protobuf message api.CarrierInformationWithValue
*/
export interface CarrierInformationWithValue {
/**
* @generated from protobuf field: api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];
*/
CarrierInformation?: CarrierInformation;
/**
* @generated from protobuf field: api.ValueType Value = 2 [json_name = "Value"];
*/
Value?: ValueType;
}
/**
* Document
* We anticipate that they want to put several but if they only have one with all the language, it should still work
@@ -1698,6 +1712,59 @@ class CarrierInformation$Type extends MessageType<CarrierInformation> {
*/
export const CarrierInformation = new CarrierInformation$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CarrierInformationWithValue$Type extends MessageType<CarrierInformationWithValue> {
constructor() {
super("api.CarrierInformationWithValue", [
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", T: () => CarrierInformation },
{ no: 2, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType }
]);
}
create(value?: PartialMessage<CarrierInformationWithValue>): CarrierInformationWithValue {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<CarrierInformationWithValue>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierInformationWithValue): CarrierInformationWithValue {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1:
message.CarrierInformation = CarrierInformation.internalBinaryRead(reader, reader.uint32(), options, message.CarrierInformation);
break;
case /* api.ValueType Value = 2 [json_name = "Value"];*/ 2:
message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value);
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: CarrierInformationWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"]; */
if (message.CarrierInformation)
CarrierInformation.internalBinaryWrite(message.CarrierInformation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.ValueType Value = 2 [json_name = "Value"]; */
if (message.Value)
ValueType.internalBinaryWrite(message.Value, writer.tag(2, 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.CarrierInformationWithValue
*/
export const CarrierInformationWithValue = new CarrierInformationWithValue$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Document$Type extends MessageType<Document> {
constructor() {
super("api.Document", [