Latest generation

This commit is contained in:
ci core model
2025-11-28 09:26:59 +00:00
parent 60ae9aac84
commit 2fdfcea4ff
2 changed files with 87 additions and 2 deletions

View File

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

87
site.ts
View File

@@ -1287,6 +1287,36 @@ export interface SiteBookingContext {
* @generated from protobuf field: repeated api.SiteProjectBookingContext ByProjects = 2
*/
ByProjects: SiteProjectBookingContext[];
/**
* Name of the Site
*
* @generated from protobuf field: string Name = 3
*/
Name: string;
/**
* @generated from protobuf field: api.Address Address = 4
*/
Address?: Address; // address of the Site
/**
* @generated from protobuf field: repeated string Phones = 5
*/
Phones: string[];
/**
* @generated from protobuf field: string Fax = 6
*/
Fax: string;
/**
* @generated from protobuf field: repeated string Emails = 7
*/
Emails: string[];
/**
* @generated from protobuf field: string PhotoURI = 8
*/
PhotoURI: string;
/**
* @generated from protobuf field: string PrefixAppointmentID = 9
*/
PrefixAppointmentID: string;
}
/**
* @generated from protobuf message api.SiteProjectBookingContext
@@ -5311,13 +5341,26 @@ class SiteBookingContext$Type extends MessageType<SiteBookingContext> {
constructor() {
super("api.SiteBookingContext", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ByProjects", kind: "message", localName: "ByProjects", jsonName: "ByProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteProjectBookingContext }
{ no: 2, name: "ByProjects", kind: "message", localName: "ByProjects", jsonName: "ByProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteProjectBookingContext },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 5, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SiteBookingContext>): SiteBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
message.ByProjects = [];
message.Name = "";
message.Phones = [];
message.Fax = "";
message.Emails = [];
message.PhotoURI = "";
message.PrefixAppointmentID = "";
if (value !== undefined)
reflectionMergePartial<SiteBookingContext>(this, message, value);
return message;
@@ -5333,6 +5376,27 @@ class SiteBookingContext$Type extends MessageType<SiteBookingContext> {
case /* repeated api.SiteProjectBookingContext ByProjects */ 2:
message.ByProjects.push(SiteProjectBookingContext.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string Name */ 3:
message.Name = reader.string();
break;
case /* api.Address Address */ 4:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
case /* repeated string Phones */ 5:
message.Phones.push(reader.string());
break;
case /* string Fax */ 6:
message.Fax = reader.string();
break;
case /* repeated string Emails */ 7:
message.Emails.push(reader.string());
break;
case /* string PhotoURI */ 8:
message.PhotoURI = reader.string();
break;
case /* string PrefixAppointmentID */ 9:
message.PrefixAppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -5351,6 +5415,27 @@ class SiteBookingContext$Type extends MessageType<SiteBookingContext> {
/* repeated api.SiteProjectBookingContext ByProjects = 2; */
for (let i = 0; i < message.ByProjects.length; i++)
SiteProjectBookingContext.internalBinaryWrite(message.ByProjects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string Name = 3; */
if (message.Name !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Name);
/* api.Address Address = 4; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated string Phones = 5; */
for (let i = 0; i < message.Phones.length; i++)
writer.tag(5, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 6; */
if (message.Fax !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Fax);
/* repeated string Emails = 7; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
/* string PhotoURI = 8; */
if (message.PhotoURI !== "")
writer.tag(8, WireType.LengthDelimited).string(message.PhotoURI);
/* string PrefixAppointmentID = 9; */
if (message.PrefixAppointmentID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.PrefixAppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);