Latest generation

This commit is contained in:
ci core model
2025-05-15 07:49:42 +00:00
parent dcba10475c
commit 18942599e3
3 changed files with 75 additions and 75 deletions

View File

@@ -41,9 +41,9 @@ export interface WorkTimeDay {
TimeRanges: TimeRange[];
}
/**
* @generated from protobuf message api.ExceptionnalClosure
* @generated from protobuf message api.ExceptionalClosure
*/
export interface ExceptionnalClosure {
export interface ExceptionalClosure {
/**
* Name of the holiday
*
@@ -51,31 +51,31 @@ export interface ExceptionnalClosure {
*/
Label: LabelByLanguage[];
/**
* Start of the ExceptionnalClosure, format yyyy-mm-dd //TODO are we sure about the format
* Start of the ExceptionalClosure, format yyyy-mm-dd //TODO are we sure about the format
*
* @generated from protobuf field: string StartDate = 2 [json_name = "StartDate"];
*/
StartDate: string;
/**
* End of the ExceptionnalClosure, format yyyy-mm-dd //TODO are we sure about the format
* End of the ExceptionalClosure, format yyyy-mm-dd //TODO are we sure about the format
*
* @generated from protobuf field: string EndDate = 3 [json_name = "EndDate"];
*/
EndDate: string;
/**
* Set to true if the ExceptionnalClosure is a complete closure for the impacted days
* Set to true if the ExceptionalClosure is a complete closure for the impacted days
*
* @generated from protobuf field: bool FullDay = 4 [json_name = "FullDay"];
*/
FullDay: boolean;
/**
* Start of the ExceptionnalClosure hour if FullDay is set to false, format hh:mm
* Start of the ExceptionalClosure hour if FullDay is set to false, format hh:mm
*
* @generated from protobuf field: string StartHour = 5 [json_name = "StartHour"];
*/
StartHour: string;
/**
* End of the ExceptionnalClosure hour if FullDay is set to false, format hh:mm
* End of the ExceptionalClosure hour if FullDay is set to false, format hh:mm
*
* @generated from protobuf field: string EndHour = 6 [json_name = "EndHour"];
*/
@@ -114,11 +114,11 @@ export interface Calendar {
*/
Description: string;
/**
* List of exceptionnal closure
* List of Exceptional closure
*
* @generated from protobuf field: repeated api.ExceptionnalClosure ExceptionnalClosures = 6 [json_name = "ExceptionnalClosures"];
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 6 [json_name = "ExceptionalClosures"];
*/
ExceptionnalClosures: ExceptionnalClosure[];
ExceptionalClosures: ExceptionalClosure[];
/**
* Definition of the opening hours by week day
*
@@ -153,11 +153,11 @@ export interface CreateCalendarOnOrganisationRequest {
*/
Description: string;
/**
* List of exceptionnal closure
* List of Exceptional closure
*
* @generated from protobuf field: repeated api.ExceptionnalClosure ExceptionnalClosures = 4 [json_name = "ExceptionnalClosures"];
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 4 [json_name = "ExceptionalClosures"];
*/
ExceptionnalClosures: ExceptionnalClosure[];
ExceptionalClosures: ExceptionalClosure[];
/**
* Definition of the opening hours by week day
*
@@ -247,11 +247,11 @@ export interface UpdateCalendarOnOrganisationRequest {
*/
Description: string;
/**
* List of exceptionnal closure
* List of Exceptional closure
*
* @generated from protobuf field: repeated api.ExceptionnalClosure ExceptionnalClosures = 5 [json_name = "ExceptionnalClosures"];
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 5 [json_name = "ExceptionalClosures"];
*/
ExceptionnalClosures: ExceptionnalClosure[];
ExceptionalClosures: ExceptionalClosure[];
/**
* Definition of the opening hours by week day
*
@@ -373,11 +373,11 @@ export interface CreateCalendarOnSiteRequest {
*/
Description: string;
/**
* List of exceptionnal closure
* List of Exceptional closure
*
* @generated from protobuf field: repeated api.ExceptionnalClosure ExceptionnalClosures = 4 [json_name = "ExceptionnalClosures"];
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 4 [json_name = "ExceptionalClosures"];
*/
ExceptionnalClosures: ExceptionnalClosure[];
ExceptionalClosures: ExceptionalClosure[];
/**
* Definition of the opening hours by week day
*
@@ -469,11 +469,11 @@ export interface UpdateCalendarOnSiteRequest {
*/
Description: string;
/**
* List of exceptionnal closure
* List of Exceptional closure
*
* @generated from protobuf field: repeated api.ExceptionnalClosure ExceptionnalClosures = 5 [json_name = "ExceptionnalClosures"];
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 5 [json_name = "ExceptionalClosures"];
*/
ExceptionnalClosures: ExceptionnalClosure[];
ExceptionalClosures: ExceptionalClosure[];
/**
* Definition of the opening hours by week day
*
@@ -636,9 +636,9 @@ class WorkTimeDay$Type extends MessageType<WorkTimeDay> {
*/
export const WorkTimeDay = new WorkTimeDay$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ExceptionnalClosure$Type extends MessageType<ExceptionnalClosure> {
class ExceptionalClosure$Type extends MessageType<ExceptionalClosure> {
constructor() {
super("api.ExceptionnalClosure", [
super("api.ExceptionalClosure", [
{ no: 1, name: "Label", kind: "message", localName: "Label", jsonName: "Label", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage },
{ no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
@@ -647,7 +647,7 @@ class ExceptionnalClosure$Type extends MessageType<ExceptionnalClosure> {
{ no: 6, name: "EndHour", kind: "scalar", localName: "EndHour", jsonName: "EndHour", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } }
]);
}
create(value?: PartialMessage<ExceptionnalClosure>): ExceptionnalClosure {
create(value?: PartialMessage<ExceptionalClosure>): ExceptionalClosure {
const message = globalThis.Object.create((this.messagePrototype!));
message.Label = [];
message.StartDate = "";
@@ -656,10 +656,10 @@ class ExceptionnalClosure$Type extends MessageType<ExceptionnalClosure> {
message.StartHour = "";
message.EndHour = "";
if (value !== undefined)
reflectionMergePartial<ExceptionnalClosure>(this, message, value);
reflectionMergePartial<ExceptionalClosure>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExceptionnalClosure): ExceptionnalClosure {
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExceptionalClosure): ExceptionalClosure {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
@@ -693,7 +693,7 @@ class ExceptionnalClosure$Type extends MessageType<ExceptionnalClosure> {
}
return message;
}
internalBinaryWrite(message: ExceptionnalClosure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
internalBinaryWrite(message: ExceptionalClosure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.LabelByLanguage Label = 1 [json_name = "Label"]; */
for (let i = 0; i < message.Label.length; i++)
LabelByLanguage.internalBinaryWrite(message.Label[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -719,9 +719,9 @@ class ExceptionnalClosure$Type extends MessageType<ExceptionnalClosure> {
}
}
/**
* @generated MessageType for protobuf message api.ExceptionnalClosure
* @generated MessageType for protobuf message api.ExceptionalClosure
*/
export const ExceptionnalClosure = new ExceptionnalClosure$Type();
export const ExceptionalClosure = new ExceptionalClosure$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Calendar$Type extends MessageType<Calendar> {
constructor() {
@@ -731,7 +731,7 @@ class Calendar$Type extends MessageType<Calendar> {
{ no: 3, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 6, name: "ExceptionnalClosures", kind: "message", localName: "ExceptionnalClosures", jsonName: "ExceptionnalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionnalClosure },
{ no: 6, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure },
{ no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } }
]);
}
@@ -742,7 +742,7 @@ class Calendar$Type extends MessageType<Calendar> {
message.ResourceID = "";
message.Name = "";
message.Description = "";
message.ExceptionnalClosures = [];
message.ExceptionalClosures = [];
message.WorkTimeDays = [];
if (value !== undefined)
reflectionMergePartial<Calendar>(this, message, value);
@@ -768,8 +768,8 @@ class Calendar$Type extends MessageType<Calendar> {
case /* string Description = 5 [json_name = "Description"];*/ 5:
message.Description = reader.string();
break;
case /* repeated api.ExceptionnalClosure ExceptionnalClosures = 6 [json_name = "ExceptionnalClosures"];*/ 6:
message.ExceptionnalClosures.push(ExceptionnalClosure.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.ExceptionalClosure ExceptionalClosures = 6 [json_name = "ExceptionalClosures"];*/ 6:
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"];*/ 7:
message.WorkTimeDays.push(WorkTimeDay.internalBinaryRead(reader, reader.uint32(), options));
@@ -801,9 +801,9 @@ class Calendar$Type extends MessageType<Calendar> {
/* string Description = 5 [json_name = "Description"]; */
if (message.Description !== "")
writer.tag(5, WireType.LengthDelimited).string(message.Description);
/* repeated api.ExceptionnalClosure ExceptionnalClosures = 6 [json_name = "ExceptionnalClosures"]; */
for (let i = 0; i < message.ExceptionnalClosures.length; i++)
ExceptionnalClosure.internalBinaryWrite(message.ExceptionnalClosures[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ExceptionalClosure ExceptionalClosures = 6 [json_name = "ExceptionalClosures"]; */
for (let i = 0; i < message.ExceptionalClosures.length; i++)
ExceptionalClosure.internalBinaryWrite(message.ExceptionalClosures[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"]; */
for (let i = 0; i < message.WorkTimeDays.length; i++)
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
@@ -824,7 +824,7 @@ class CreateCalendarOnOrganisationRequest$Type extends MessageType<CreateCalenda
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "ExceptionnalClosures", kind: "message", localName: "ExceptionnalClosures", jsonName: "ExceptionnalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionnalClosure },
{ no: 4, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure },
{ no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
@@ -832,7 +832,7 @@ class CreateCalendarOnOrganisationRequest$Type extends MessageType<CreateCalenda
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Description = "";
message.ExceptionnalClosures = [];
message.ExceptionalClosures = [];
message.WorkTimeDays = [];
if (value !== undefined)
reflectionMergePartial<CreateCalendarOnOrganisationRequest>(this, message, value);
@@ -852,8 +852,8 @@ class CreateCalendarOnOrganisationRequest$Type extends MessageType<CreateCalenda
case /* string Description = 3 [json_name = "Description"];*/ 3:
message.Description = reader.string();
break;
case /* repeated api.ExceptionnalClosure ExceptionnalClosures = 4 [json_name = "ExceptionnalClosures"];*/ 4:
message.ExceptionnalClosures.push(ExceptionnalClosure.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.ExceptionalClosure ExceptionalClosures = 4 [json_name = "ExceptionalClosures"];*/ 4:
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"];*/ 7:
message.WorkTimeDays.push(WorkTimeDay.internalBinaryRead(reader, reader.uint32(), options));
@@ -879,9 +879,9 @@ class CreateCalendarOnOrganisationRequest$Type extends MessageType<CreateCalenda
/* string Description = 3 [json_name = "Description"]; */
if (message.Description !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Description);
/* repeated api.ExceptionnalClosure ExceptionnalClosures = 4 [json_name = "ExceptionnalClosures"]; */
for (let i = 0; i < message.ExceptionnalClosures.length; i++)
ExceptionnalClosure.internalBinaryWrite(message.ExceptionnalClosures[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ExceptionalClosure ExceptionalClosures = 4 [json_name = "ExceptionalClosures"]; */
for (let i = 0; i < message.ExceptionalClosures.length; i++)
ExceptionalClosure.internalBinaryWrite(message.ExceptionalClosures[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"]; */
for (let i = 0; i < message.WorkTimeDays.length; i++)
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
@@ -1142,7 +1142,7 @@ class UpdateCalendarOnOrganisationRequest$Type extends MessageType<UpdateCalenda
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 5, name: "ExceptionnalClosures", kind: "message", localName: "ExceptionnalClosures", jsonName: "ExceptionnalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionnalClosure },
{ no: 5, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure },
{ no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
@@ -1151,7 +1151,7 @@ class UpdateCalendarOnOrganisationRequest$Type extends MessageType<UpdateCalenda
message.ID = "";
message.Name = "";
message.Description = "";
message.ExceptionnalClosures = [];
message.ExceptionalClosures = [];
message.WorkTimeDays = [];
if (value !== undefined)
reflectionMergePartial<UpdateCalendarOnOrganisationRequest>(this, message, value);
@@ -1174,8 +1174,8 @@ class UpdateCalendarOnOrganisationRequest$Type extends MessageType<UpdateCalenda
case /* string Description = 4 [json_name = "Description"];*/ 4:
message.Description = reader.string();
break;
case /* repeated api.ExceptionnalClosure ExceptionnalClosures = 5 [json_name = "ExceptionnalClosures"];*/ 5:
message.ExceptionnalClosures.push(ExceptionnalClosure.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.ExceptionalClosure ExceptionalClosures = 5 [json_name = "ExceptionalClosures"];*/ 5:
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"];*/ 7:
message.WorkTimeDays.push(WorkTimeDay.internalBinaryRead(reader, reader.uint32(), options));
@@ -1204,9 +1204,9 @@ class UpdateCalendarOnOrganisationRequest$Type extends MessageType<UpdateCalenda
/* string Description = 4 [json_name = "Description"]; */
if (message.Description !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Description);
/* repeated api.ExceptionnalClosure ExceptionnalClosures = 5 [json_name = "ExceptionnalClosures"]; */
for (let i = 0; i < message.ExceptionnalClosures.length; i++)
ExceptionnalClosure.internalBinaryWrite(message.ExceptionnalClosures[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ExceptionalClosure ExceptionalClosures = 5 [json_name = "ExceptionalClosures"]; */
for (let i = 0; i < message.ExceptionalClosures.length; i++)
ExceptionalClosure.internalBinaryWrite(message.ExceptionalClosures[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"]; */
for (let i = 0; i < message.WorkTimeDays.length; i++)
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
@@ -1582,7 +1582,7 @@ class CreateCalendarOnSiteRequest$Type extends MessageType<CreateCalendarOnSiteR
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "ExceptionnalClosures", kind: "message", localName: "ExceptionnalClosures", jsonName: "ExceptionnalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionnalClosure },
{ no: 4, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure },
{ no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
@@ -1590,7 +1590,7 @@ class CreateCalendarOnSiteRequest$Type extends MessageType<CreateCalendarOnSiteR
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Description = "";
message.ExceptionnalClosures = [];
message.ExceptionalClosures = [];
message.WorkTimeDays = [];
if (value !== undefined)
reflectionMergePartial<CreateCalendarOnSiteRequest>(this, message, value);
@@ -1610,8 +1610,8 @@ class CreateCalendarOnSiteRequest$Type extends MessageType<CreateCalendarOnSiteR
case /* string Description = 3 [json_name = "Description"];*/ 3:
message.Description = reader.string();
break;
case /* repeated api.ExceptionnalClosure ExceptionnalClosures = 4 [json_name = "ExceptionnalClosures"];*/ 4:
message.ExceptionnalClosures.push(ExceptionnalClosure.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.ExceptionalClosure ExceptionalClosures = 4 [json_name = "ExceptionalClosures"];*/ 4:
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"];*/ 7:
message.WorkTimeDays.push(WorkTimeDay.internalBinaryRead(reader, reader.uint32(), options));
@@ -1637,9 +1637,9 @@ class CreateCalendarOnSiteRequest$Type extends MessageType<CreateCalendarOnSiteR
/* string Description = 3 [json_name = "Description"]; */
if (message.Description !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Description);
/* repeated api.ExceptionnalClosure ExceptionnalClosures = 4 [json_name = "ExceptionnalClosures"]; */
for (let i = 0; i < message.ExceptionnalClosures.length; i++)
ExceptionnalClosure.internalBinaryWrite(message.ExceptionnalClosures[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ExceptionalClosure ExceptionalClosures = 4 [json_name = "ExceptionalClosures"]; */
for (let i = 0; i < message.ExceptionalClosures.length; i++)
ExceptionalClosure.internalBinaryWrite(message.ExceptionalClosures[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"]; */
for (let i = 0; i < message.WorkTimeDays.length; i++)
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
@@ -1900,7 +1900,7 @@ class UpdateCalendarOnSiteRequest$Type extends MessageType<UpdateCalendarOnSiteR
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 5, name: "ExceptionnalClosures", kind: "message", localName: "ExceptionnalClosures", jsonName: "ExceptionnalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionnalClosure },
{ no: 5, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure },
{ no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
@@ -1909,7 +1909,7 @@ class UpdateCalendarOnSiteRequest$Type extends MessageType<UpdateCalendarOnSiteR
message.ID = "";
message.Name = "";
message.Description = "";
message.ExceptionnalClosures = [];
message.ExceptionalClosures = [];
message.WorkTimeDays = [];
if (value !== undefined)
reflectionMergePartial<UpdateCalendarOnSiteRequest>(this, message, value);
@@ -1932,8 +1932,8 @@ class UpdateCalendarOnSiteRequest$Type extends MessageType<UpdateCalendarOnSiteR
case /* string Description = 4 [json_name = "Description"];*/ 4:
message.Description = reader.string();
break;
case /* repeated api.ExceptionnalClosure ExceptionnalClosures = 5 [json_name = "ExceptionnalClosures"];*/ 5:
message.ExceptionnalClosures.push(ExceptionnalClosure.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.ExceptionalClosure ExceptionalClosures = 5 [json_name = "ExceptionalClosures"];*/ 5:
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"];*/ 7:
message.WorkTimeDays.push(WorkTimeDay.internalBinaryRead(reader, reader.uint32(), options));
@@ -1962,9 +1962,9 @@ class UpdateCalendarOnSiteRequest$Type extends MessageType<UpdateCalendarOnSiteR
/* string Description = 4 [json_name = "Description"]; */
if (message.Description !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Description);
/* repeated api.ExceptionnalClosure ExceptionnalClosures = 5 [json_name = "ExceptionnalClosures"]; */
for (let i = 0; i < message.ExceptionnalClosures.length; i++)
ExceptionnalClosure.internalBinaryWrite(message.ExceptionnalClosures[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ExceptionalClosure ExceptionalClosures = 5 [json_name = "ExceptionalClosures"]; */
for (let i = 0; i < message.ExceptionalClosures.length; i++)
ExceptionalClosure.internalBinaryWrite(message.ExceptionalClosures[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.WorkTimeDay WorkTimeDays = 7 [json_name = "WorkTimeDays"]; */
for (let i = 0; i < message.WorkTimeDays.length; i++)
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();

View File

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

18
site.ts
View File

@@ -332,9 +332,9 @@ export interface UpdateSiteRequest {
/**
* Add Site Time zone
*
* @generated from protobuf field: string TargetTimeZone = 19 [json_name = "TargetTimeZone"];
* @generated from protobuf field: string TimeZone = 19 [json_name = "TimeZone"];
*/
TargetTimeZone: string;
TimeZone: string;
/**
* Must be a valid email address
*
@@ -1091,7 +1091,7 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
{ no: 17, name: "CarrierInformations", kind: "message", localName: "CarrierInformations", jsonName: "CarrierInformations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 19, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target 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: 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\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
@@ -1114,7 +1114,7 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
message.InstructionDocuments = [];
message.CarrierInformations = [];
message.RoundedPeriodInMinutes = 0n;
message.TargetTimeZone = "";
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
if (value !== undefined)
@@ -1180,8 +1180,8 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
case /* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"];*/ 18:
message.RoundedPeriodInMinutes = reader.int64().toBigInt();
break;
case /* string TargetTimeZone = 19 [json_name = "TargetTimeZone"];*/ 19:
message.TargetTimeZone = reader.string();
case /* string TimeZone = 19 [json_name = "TimeZone"];*/ 19:
message.TimeZone = reader.string();
break;
case /* repeated string Emails = 20 [json_name = "Emails"];*/ 20:
message.Emails.push(reader.string());
@@ -1255,9 +1255,9 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
/* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"]; */
if (message.RoundedPeriodInMinutes !== 0n)
writer.tag(18, WireType.Varint).int64(message.RoundedPeriodInMinutes);
/* string TargetTimeZone = 19 [json_name = "TargetTimeZone"]; */
if (message.TargetTimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TargetTimeZone);
/* string TimeZone = 19 [json_name = "TimeZone"]; */
if (message.TimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TimeZone);
/* repeated string Emails = 20 [json_name = "Emails"]; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(20, WireType.LengthDelimited).string(message.Emails[i]);