Latest generation

This commit is contained in:
ci core model
2025-11-27 10:11:26 +00:00
parent deb3dec4e4
commit 6bf96faceb
2 changed files with 41 additions and 4 deletions

View File

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

43
site.ts
View File

@@ -14,6 +14,7 @@ import { MessageType } from "@protobuf-ts/runtime";
import { Period } from "./shared"; import { Period } from "./shared";
import { PrjMetadata } from "./metadatadef"; import { PrjMetadata } from "./metadatadef";
import { SegmentationFilter } from "./slotbooking"; import { SegmentationFilter } from "./slotbooking";
import { CustomField } from "./shared";
import { Slot } from "./slotbooking"; import { Slot } from "./slotbooking";
import { MetadataElement } from "./shared"; import { MetadataElement } from "./shared";
import { ResponseHeader } from "./shared"; import { ResponseHeader } from "./shared";
@@ -683,6 +684,10 @@ export interface BookAppointmentRequest {
* @generated from protobuf field: string TimeZone = 17 * @generated from protobuf field: string TimeZone = 17
*/ */
TimeZone: string; TimeZone: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 18
*/
CustomFields: CustomField[];
} }
/** /**
* SiteActor: connection between an actor in a project and a Site * SiteActor: connection between an actor in a project and a Site
@@ -784,6 +789,10 @@ export interface CancelAppointmentRequest {
* @generated from protobuf field: string ActorID = 3 * @generated from protobuf field: string ActorID = 3
*/ */
ActorID: string; ActorID: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 4
*/
CustomFields: CustomField[];
} }
/** /**
* @generated from protobuf message api.CancelAppointmentResponse * @generated from protobuf message api.CancelAppointmentResponse
@@ -861,6 +870,10 @@ export interface UpdateAppointmentRequest {
* @generated from protobuf field: string TimeZone = 8 * @generated from protobuf field: string TimeZone = 8
*/ */
TimeZone: string; TimeZone: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 9
*/
CustomFields: CustomField[];
} }
/** /**
* ListUserSites * ListUserSites
@@ -2952,7 +2965,8 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
{ no: 13, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 13, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 15, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 15, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 16, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } }, { no: 16, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } },
{ no: 17, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } } { no: 17, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
{ no: 18, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Slots", "Commissions", "SegmentationSelections", "CarrierInformation", "ActorID", "Emails"] } } }); ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Slots", "Commissions", "SegmentationSelections", "CarrierInformation", "ActorID", "Emails"] } } });
} }
create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest { create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest {
@@ -2969,6 +2983,7 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
message.MetaData = []; message.MetaData = [];
message.Reason = ""; message.Reason = "";
message.TimeZone = ""; message.TimeZone = "";
message.CustomFields = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<BookAppointmentRequest>(this, message, value); reflectionMergePartial<BookAppointmentRequest>(this, message, value);
return message; return message;
@@ -3017,6 +3032,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
case /* string TimeZone */ 17: case /* string TimeZone */ 17:
message.TimeZone = reader.string(); message.TimeZone = reader.string();
break; break;
case /* repeated api.CustomField CustomFields */ 18:
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -3068,6 +3086,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
/* string TimeZone = 17; */ /* string TimeZone = 17; */
if (message.TimeZone !== "") if (message.TimeZone !== "")
writer.tag(17, WireType.LengthDelimited).string(message.TimeZone); writer.tag(17, WireType.LengthDelimited).string(message.TimeZone);
/* repeated api.CustomField CustomFields = 18; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(18, WireType.LengthDelimited).fork(), options).join();
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);
@@ -3357,13 +3378,15 @@ class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest
super("api.CancelAppointmentRequest", [ super("api.CancelAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" }, "validate.rules": { string: { minLen: "1", maxLen: "192" } } } }, { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" }, "validate.rules": { string: { minLen: "1", maxLen: "192" } } } },
{ no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } { no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } }); ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } });
} }
create(value?: PartialMessage<CancelAppointmentRequest>): CancelAppointmentRequest { create(value?: PartialMessage<CancelAppointmentRequest>): CancelAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!)); const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = ""; message.AppointmentID = "";
message.ActorID = ""; message.ActorID = "";
message.CustomFields = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<CancelAppointmentRequest>(this, message, value); reflectionMergePartial<CancelAppointmentRequest>(this, message, value);
return message; return message;
@@ -3382,6 +3405,9 @@ class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest
case /* string ActorID */ 3: case /* string ActorID */ 3:
message.ActorID = reader.string(); message.ActorID = reader.string();
break; break;
case /* repeated api.CustomField CustomFields */ 4:
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -3403,6 +3429,9 @@ class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest
/* string ActorID = 3; */ /* string ActorID = 3; */
if (message.ActorID !== "") if (message.ActorID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ActorID); writer.tag(3, WireType.LengthDelimited).string(message.ActorID);
/* repeated api.CustomField CustomFields = 4; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
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);
@@ -3540,7 +3569,8 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
{ no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } }, { no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } },
{ no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } }, { no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } },
{ no: 8, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } } { no: 8, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
{ no: 9, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions", "ActorID", "Emails"] } } }); ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions", "ActorID", "Emails"] } } });
} }
create(value?: PartialMessage<UpdateAppointmentRequest>): UpdateAppointmentRequest { create(value?: PartialMessage<UpdateAppointmentRequest>): UpdateAppointmentRequest {
@@ -3552,6 +3582,7 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
message.Emails = []; message.Emails = [];
message.Reason = ""; message.Reason = "";
message.TimeZone = ""; message.TimeZone = "";
message.CustomFields = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<UpdateAppointmentRequest>(this, message, value); reflectionMergePartial<UpdateAppointmentRequest>(this, message, value);
return message; return message;
@@ -3585,6 +3616,9 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
case /* string TimeZone */ 8: case /* string TimeZone */ 8:
message.TimeZone = reader.string(); message.TimeZone = reader.string();
break; break;
case /* repeated api.CustomField CustomFields */ 9:
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -3621,6 +3655,9 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
/* string TimeZone = 8; */ /* string TimeZone = 8; */
if (message.TimeZone !== "") if (message.TimeZone !== "")
writer.tag(8, WireType.LengthDelimited).string(message.TimeZone); writer.tag(8, WireType.LengthDelimited).string(message.TimeZone);
/* repeated api.CustomField CustomFields = 9; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
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);