Latest generation

This commit is contained in:
ci core model
2025-07-29 07:45:59 +00:00
parent 190660049c
commit 7ac97a749b
4 changed files with 32 additions and 21 deletions

View File

@@ -114,7 +114,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
// message AppointmentEmailsAddedResponse { // message AppointmentEmailsAddedResponse {
// option (inputEvent) = "EmailsAdded"; // option (inputEvent) = "EmailsAdded";
// option (messageType) = "Response"; // option (messageType) = "Response";
// ResponseHeader Header = 1 ; // ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ; // EntityID ID = 2 ;
// } // }
@@ -197,7 +197,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
// message AppointmentEmailsRemovedResponse { // message AppointmentEmailsRemovedResponse {
// option (inputEvent) = "EmailsRemoved"; // option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Response"; // option (messageType) = "Response";
// ResponseHeader Header = 1 ; // ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ; // EntityID ID = 2 ;
// } // }
@@ -344,7 +344,7 @@ export interface IAppointmentInputAPIClient {
// message AppointmentEmailsAddedResponse { // message AppointmentEmailsAddedResponse {
// option (inputEvent) = "EmailsAdded"; // option (inputEvent) = "EmailsAdded";
// option (messageType) = "Response"; // option (messageType) = "Response";
// ResponseHeader Header = 1 ; // ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ; // EntityID ID = 2 ;
// } // }
@@ -427,7 +427,7 @@ export interface IAppointmentInputAPIClient {
// message AppointmentEmailsRemovedResponse { // message AppointmentEmailsRemovedResponse {
// option (inputEvent) = "EmailsRemoved"; // option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Response"; // option (messageType) = "Response";
// ResponseHeader Header = 1 ; // ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ; // EntityID ID = 2 ;
// } // }

View File

@@ -11,7 +11,6 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime";
import { ResponseHeader } from "./shared";
import { AttachmentSummary } from "./shared"; import { AttachmentSummary } from "./shared";
import { ResponseSiteHeader } from "./shared"; import { ResponseSiteHeader } from "./shared";
import { RequestSiteHeader } from "./shared"; import { RequestSiteHeader } from "./shared";
@@ -319,9 +318,9 @@ export interface AppointmentAttachmentAddedRequest {
*/ */
export interface AppointmentAttachmentAddedResponse { export interface AppointmentAttachmentAddedResponse {
/** /**
* @generated from protobuf field: api.ResponseHeader Header = 1 * @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/ */
Header?: ResponseHeader; Header?: ResponseSiteHeader;
/** /**
* @generated from protobuf field: api.EntityID ID = 2 * @generated from protobuf field: api.EntityID ID = 2
*/ */
@@ -378,9 +377,9 @@ export interface AppointmentAttachmentRemovedRequest {
*/ */
export interface AppointmentAttachmentRemovedResponse { export interface AppointmentAttachmentRemovedResponse {
/** /**
* @generated from protobuf field: api.ResponseHeader Header = 1 * @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/ */
Header?: ResponseHeader; Header?: ResponseSiteHeader;
/** /**
* @generated from protobuf field: api.EntityID ID = 2 * @generated from protobuf field: api.EntityID ID = 2
*/ */
@@ -1844,7 +1843,7 @@ export const AppointmentAttachmentAddedRequest = new AppointmentAttachmentAddedR
class AppointmentAttachmentAddedResponse$Type extends MessageType<AppointmentAttachmentAddedResponse> { class AppointmentAttachmentAddedResponse$Type extends MessageType<AppointmentAttachmentAddedResponse> {
constructor() { constructor() {
super("api.AppointmentAttachmentAddedResponse", [ super("api.AppointmentAttachmentAddedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "AttachmentAdded" }); ], { "api.messageType": "Response", "api.inputEvent": "AttachmentAdded" });
} }
@@ -1859,8 +1858,8 @@ class AppointmentAttachmentAddedResponse$Type extends MessageType<AppointmentAtt
while (reader.pos < end) { while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag(); let [fieldNo, wireType] = reader.tag();
switch (fieldNo) { switch (fieldNo) {
case /* api.ResponseHeader Header */ 1: case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break; break;
case /* api.EntityID ID */ 2: case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
@@ -1877,9 +1876,9 @@ class AppointmentAttachmentAddedResponse$Type extends MessageType<AppointmentAtt
return message; return message;
} }
internalBinaryWrite(message: AppointmentAttachmentAddedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { internalBinaryWrite(message: AppointmentAttachmentAddedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */ /* api.ResponseSiteHeader Header = 1; */
if (message.Header) if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */ /* api.EntityID ID = 2; */
if (message.ID) if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -2064,7 +2063,7 @@ export const AppointmentAttachmentRemovedRequest = new AppointmentAttachmentRemo
class AppointmentAttachmentRemovedResponse$Type extends MessageType<AppointmentAttachmentRemovedResponse> { class AppointmentAttachmentRemovedResponse$Type extends MessageType<AppointmentAttachmentRemovedResponse> {
constructor() { constructor() {
super("api.AppointmentAttachmentRemovedResponse", [ super("api.AppointmentAttachmentRemovedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "AttachmentRemoved" }); ], { "api.messageType": "Response", "api.inputEvent": "AttachmentRemoved" });
} }
@@ -2079,8 +2078,8 @@ class AppointmentAttachmentRemovedResponse$Type extends MessageType<AppointmentA
while (reader.pos < end) { while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag(); let [fieldNo, wireType] = reader.tag();
switch (fieldNo) { switch (fieldNo) {
case /* api.ResponseHeader Header */ 1: case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break; break;
case /* api.EntityID ID */ 2: case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
@@ -2097,9 +2096,9 @@ class AppointmentAttachmentRemovedResponse$Type extends MessageType<AppointmentA
return message; return message;
} }
internalBinaryWrite(message: AppointmentAttachmentRemovedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { internalBinaryWrite(message: AppointmentAttachmentRemovedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */ /* api.ResponseSiteHeader Header = 1; */
if (message.Header) if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */ /* api.EntityID ID = 2; */
if (message.ID) if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();

View File

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

14
site.ts
View File

@@ -154,6 +154,10 @@ export interface Site {
* @generated from protobuf field: api.SiteStatusEnum status = 22 * @generated from protobuf field: api.SiteStatusEnum status = 22
*/ */
status: SiteStatusEnum; status: SiteStatusEnum;
/**
* @generated from protobuf field: string PrefixAppointmentID = 23
*/
PrefixAppointmentID: string;
} }
// ========== REQUESTS & RESPONSE MESSAGES ========== // ========== REQUESTS & RESPONSE MESSAGES ==========
@@ -1043,7 +1047,8 @@ class Site$Type extends MessageType<Site> {
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } }, { no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, { no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }, { no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 22, name: "status", kind: "enum", T: () => ["api.SiteStatusEnum", SiteStatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } } { no: 22, name: "status", kind: "enum", T: () => ["api.SiteStatusEnum", SiteStatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } } } }
]); ]);
} }
create(value?: PartialMessage<Site>): Site { create(value?: PartialMessage<Site>): Site {
@@ -1068,6 +1073,7 @@ class Site$Type extends MessageType<Site> {
message.Emails = []; message.Emails = [];
message.DefaultSiteLanguageISO6391 = ""; message.DefaultSiteLanguageISO6391 = "";
message.status = 0; message.status = 0;
message.PrefixAppointmentID = "";
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<Site>(this, message, value); reflectionMergePartial<Site>(this, message, value);
return message; return message;
@@ -1143,6 +1149,9 @@ class Site$Type extends MessageType<Site> {
case /* api.SiteStatusEnum status */ 22: case /* api.SiteStatusEnum status */ 22:
message.status = reader.int32(); message.status = reader.int32();
break; break;
case /* string PrefixAppointmentID */ 23:
message.PrefixAppointmentID = reader.string();
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1221,6 +1230,9 @@ class Site$Type extends MessageType<Site> {
/* api.SiteStatusEnum status = 22; */ /* api.SiteStatusEnum status = 22; */
if (message.status !== 0) if (message.status !== 0)
writer.tag(22, WireType.Varint).int32(message.status); writer.tag(22, WireType.Varint).int32(message.status);
/* string PrefixAppointmentID = 23; */
if (message.PrefixAppointmentID !== "")
writer.tag(23, WireType.LengthDelimited).string(message.PrefixAppointmentID);
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);