Latest generation

This commit is contained in:
ci core model
2026-08-17 09:10:18 +00:00
parent 187447bd24
commit 22ecf116db
8 changed files with 785 additions and 21 deletions

View File

@@ -11,6 +11,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 { ActorDateRestriction } from "./slotbooking";
import { CommandIdentifierEntry } from "./slotbooking";
import { AppointmentType } from "./shared";
/**
@@ -41,6 +42,14 @@ export interface AliasPropertiesAppointmentScheduling {
* @generated from protobuf field: string ActorName = 4
*/
ActorName: string;
/**
* @generated from protobuf field: api.ActorDateRestriction LoadingActorDateRestriction = 5
*/
LoadingActorDateRestriction?: ActorDateRestriction;
/**
* @generated from protobuf field: api.ActorDateRestriction UnloadingActorDateRestriction = 6
*/
UnloadingActorDateRestriction?: ActorDateRestriction;
}
/**
* Alias represents a named link from one resource to another.
@@ -253,7 +262,9 @@ class AliasPropertiesAppointmentScheduling$Type extends MessageType<AliasPropert
{ no: 1, name: "AptType", kind: "enum", localName: "AptType", jsonName: "AptType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "LoadingCommandIdentifierEntry", kind: "enum", localName: "LoadingCommandIdentifierEntry", jsonName: "LoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "UnLoadingCommandIdentifierEntry", kind: "enum", localName: "UnLoadingCommandIdentifierEntry", jsonName: "UnLoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "ActorName", kind: "scalar", localName: "ActorName", jsonName: "ActorName", T: 9 /*ScalarType.STRING*/ }
{ no: 4, name: "ActorName", kind: "scalar", localName: "ActorName", jsonName: "ActorName", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "LoadingActorDateRestriction", kind: "message", localName: "LoadingActorDateRestriction", jsonName: "LoadingActorDateRestriction", T: () => ActorDateRestriction },
{ no: 6, name: "UnloadingActorDateRestriction", kind: "message", localName: "UnloadingActorDateRestriction", jsonName: "UnloadingActorDateRestriction", T: () => ActorDateRestriction }
]);
}
create(value?: PartialMessage<AliasPropertiesAppointmentScheduling>): AliasPropertiesAppointmentScheduling {
@@ -283,6 +294,12 @@ class AliasPropertiesAppointmentScheduling$Type extends MessageType<AliasPropert
case /* string ActorName */ 4:
message.ActorName = reader.string();
break;
case /* api.ActorDateRestriction LoadingActorDateRestriction */ 5:
message.LoadingActorDateRestriction = ActorDateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.LoadingActorDateRestriction);
break;
case /* api.ActorDateRestriction UnloadingActorDateRestriction */ 6:
message.UnloadingActorDateRestriction = ActorDateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.UnloadingActorDateRestriction);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -307,6 +324,12 @@ class AliasPropertiesAppointmentScheduling$Type extends MessageType<AliasPropert
/* string ActorName = 4; */
if (message.ActorName !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ActorName);
/* api.ActorDateRestriction LoadingActorDateRestriction = 5; */
if (message.LoadingActorDateRestriction)
ActorDateRestriction.internalBinaryWrite(message.LoadingActorDateRestriction, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.ActorDateRestriction UnloadingActorDateRestriction = 6; */
if (message.UnloadingActorDateRestriction)
ActorDateRestriction.internalBinaryWrite(message.UnloadingActorDateRestriction, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -4,6 +4,8 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { CalendarService } from "./calendar";
import type { ComputeReferencesSLAPeriodResponse } from "./calendar";
import type { ComputeReferencesSLAPeriodRequest } from "./calendar";
import type { ComputeSLAPeriodOnSiteRequest } from "./calendar";
import type { GetPublicHolidaysResponse } from "./calendar";
import type { GetPublicHolidaysRequest } from "./calendar";
@@ -100,6 +102,10 @@ export interface ICalendarServiceClient {
* @generated from protobuf rpc: ComputeSLAPeriodOnSite
*/
computeSLAPeriodOnSite(input: ComputeSLAPeriodOnSiteRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodResponse>;
/**
* @generated from protobuf rpc: ComputeReferencesSLAPeriod
*/
computeReferencesSLAPeriod(input: ComputeReferencesSLAPeriodRequest, options?: RpcOptions): UnaryCall<ComputeReferencesSLAPeriodRequest, ComputeReferencesSLAPeriodResponse>;
}
/**
* @generated from protobuf service api.CalendarService
@@ -215,4 +221,11 @@ export class CalendarServiceClient implements ICalendarServiceClient, ServiceInf
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ComputeReferencesSLAPeriod
*/
computeReferencesSLAPeriod(input: ComputeReferencesSLAPeriodRequest, options?: RpcOptions): UnaryCall<ComputeReferencesSLAPeriodRequest, ComputeReferencesSLAPeriodResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<ComputeReferencesSLAPeriodRequest, ComputeReferencesSLAPeriodResponse>("unary", this._transport, method, opt, input);
}
}

View File

@@ -556,6 +556,78 @@ export interface ComputeSLAPeriodResponse {
*/
EndSLA: string;
}
/**
* @generated from protobuf message api.SLAInfoPerReference
*/
export interface SLAInfoPerReference {
/**
* @generated from protobuf field: string RefID = 1
*/
RefID: string;
/**
* @generated from protobuf field: api.Period MinPeriod = 2
*/
MinPeriod?: Period; // min period to compute SLA, currently only WorkingDays is supported
/**
* @generated from protobuf field: string MinStartSearchTime = 4
*/
MinStartSearchTime: string; // search start time for the earliest available time
/**
* @generated from protobuf field: api.Period MaxPeriod = 3
*/
MaxPeriod?: Period; // max period to compute SLA, currently only WorkingDays is supported
/**
* @generated from protobuf field: string MaxStartSearchTime = 5
*/
MaxStartSearchTime: string; // search start time for the latest available time
}
/**
* @generated from protobuf message api.AllowedPeriod
*/
export interface AllowedPeriod {
/**
* @generated from protobuf field: string RefID = 1
*/
RefID: string;
/**
* @generated from protobuf field: string EarliestAvailableTime = 2
*/
EarliestAvailableTime: string;
/**
* @generated from protobuf field: string LatestAvailableTime = 3
*/
LatestAvailableTime: string;
}
/**
* ComputeReferencesSLAPeriodsRequest
*
* @generated from protobuf message api.ComputeReferencesSLAPeriodRequest
*/
export interface ComputeReferencesSLAPeriodRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string CalendarID = 2
*/
CalendarID: string;
/**
*
*
* @generated from protobuf field: repeated api.SLAInfoPerReference SLAInfoPerReferences = 3
*/
SLAInfoPerReferences: SLAInfoPerReference[];
}
/**
* @generated from protobuf message api.ComputeReferencesSLAPeriodResponse
*/
export interface ComputeReferencesSLAPeriodResponse {
/**
* @generated from protobuf field: repeated api.AllowedPeriod AllowedPeriods = 1
*/
AllowedPeriods: AllowedPeriod[];
}
/**
* Delete all calendars for an organisation
*
@@ -2245,6 +2317,255 @@ class ComputeSLAPeriodResponse$Type extends MessageType<ComputeSLAPeriodResponse
*/
export const ComputeSLAPeriodResponse = new ComputeSLAPeriodResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SLAInfoPerReference$Type extends MessageType<SLAInfoPerReference> {
constructor() {
super("api.SLAInfoPerReference", [
{ no: 1, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "MinPeriod", kind: "message", localName: "MinPeriod", jsonName: "MinPeriod", T: () => Period },
{ no: 4, name: "MinStartSearchTime", kind: "scalar", localName: "MinStartSearchTime", jsonName: "MinStartSearchTime", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "MaxPeriod", kind: "message", localName: "MaxPeriod", jsonName: "MaxPeriod", T: () => Period },
{ no: 5, name: "MaxStartSearchTime", kind: "scalar", localName: "MaxStartSearchTime", jsonName: "MaxStartSearchTime", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SLAInfoPerReference>): SLAInfoPerReference {
const message = globalThis.Object.create((this.messagePrototype!));
message.RefID = "";
message.MinStartSearchTime = "";
message.MaxStartSearchTime = "";
if (value !== undefined)
reflectionMergePartial<SLAInfoPerReference>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SLAInfoPerReference): SLAInfoPerReference {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string RefID */ 1:
message.RefID = reader.string();
break;
case /* api.Period MinPeriod */ 2:
message.MinPeriod = Period.internalBinaryRead(reader, reader.uint32(), options, message.MinPeriod);
break;
case /* string MinStartSearchTime */ 4:
message.MinStartSearchTime = reader.string();
break;
case /* api.Period MaxPeriod */ 3:
message.MaxPeriod = Period.internalBinaryRead(reader, reader.uint32(), options, message.MaxPeriod);
break;
case /* string MaxStartSearchTime */ 5:
message.MaxStartSearchTime = reader.string();
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: SLAInfoPerReference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RefID = 1; */
if (message.RefID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RefID);
/* api.Period MinPeriod = 2; */
if (message.MinPeriod)
Period.internalBinaryWrite(message.MinPeriod, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.Period MaxPeriod = 3; */
if (message.MaxPeriod)
Period.internalBinaryWrite(message.MaxPeriod, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string MinStartSearchTime = 4; */
if (message.MinStartSearchTime !== "")
writer.tag(4, WireType.LengthDelimited).string(message.MinStartSearchTime);
/* string MaxStartSearchTime = 5; */
if (message.MaxStartSearchTime !== "")
writer.tag(5, WireType.LengthDelimited).string(message.MaxStartSearchTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SLAInfoPerReference
*/
export const SLAInfoPerReference = new SLAInfoPerReference$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AllowedPeriod$Type extends MessageType<AllowedPeriod> {
constructor() {
super("api.AllowedPeriod", [
{ no: 1, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "EarliestAvailableTime", kind: "scalar", localName: "EarliestAvailableTime", jsonName: "EarliestAvailableTime", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "LatestAvailableTime", kind: "scalar", localName: "LatestAvailableTime", jsonName: "LatestAvailableTime", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<AllowedPeriod>): AllowedPeriod {
const message = globalThis.Object.create((this.messagePrototype!));
message.RefID = "";
message.EarliestAvailableTime = "";
message.LatestAvailableTime = "";
if (value !== undefined)
reflectionMergePartial<AllowedPeriod>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AllowedPeriod): AllowedPeriod {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string RefID */ 1:
message.RefID = reader.string();
break;
case /* string EarliestAvailableTime */ 2:
message.EarliestAvailableTime = reader.string();
break;
case /* string LatestAvailableTime */ 3:
message.LatestAvailableTime = reader.string();
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: AllowedPeriod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string RefID = 1; */
if (message.RefID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.RefID);
/* string EarliestAvailableTime = 2; */
if (message.EarliestAvailableTime !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EarliestAvailableTime);
/* string LatestAvailableTime = 3; */
if (message.LatestAvailableTime !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LatestAvailableTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AllowedPeriod
*/
export const AllowedPeriod = new AllowedPeriod$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ComputeReferencesSLAPeriodRequest$Type extends MessageType<ComputeReferencesSLAPeriodRequest> {
constructor() {
super("api.ComputeReferencesSLAPeriodRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "CalendarID", kind: "scalar", localName: "CalendarID", jsonName: "CalendarID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SLAInfoPerReferences", kind: "message", localName: "SLAInfoPerReferences", jsonName: "SLAInfoPerReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SLAInfoPerReference, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "CalendarID", "SLAInfos"] } } });
}
create(value?: PartialMessage<ComputeReferencesSLAPeriodRequest>): ComputeReferencesSLAPeriodRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.CalendarID = "";
message.SLAInfoPerReferences = [];
if (value !== undefined)
reflectionMergePartial<ComputeReferencesSLAPeriodRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeReferencesSLAPeriodRequest): ComputeReferencesSLAPeriodRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string CalendarID */ 2:
message.CalendarID = reader.string();
break;
case /* repeated api.SLAInfoPerReference SLAInfoPerReferences */ 3:
message.SLAInfoPerReferences.push(SLAInfoPerReference.internalBinaryRead(reader, reader.uint32(), options));
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: ComputeReferencesSLAPeriodRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string CalendarID = 2; */
if (message.CalendarID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.CalendarID);
/* repeated api.SLAInfoPerReference SLAInfoPerReferences = 3; */
for (let i = 0; i < message.SLAInfoPerReferences.length; i++)
SLAInfoPerReference.internalBinaryWrite(message.SLAInfoPerReferences[i], writer.tag(3, 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.ComputeReferencesSLAPeriodRequest
*/
export const ComputeReferencesSLAPeriodRequest = new ComputeReferencesSLAPeriodRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ComputeReferencesSLAPeriodResponse$Type extends MessageType<ComputeReferencesSLAPeriodResponse> {
constructor() {
super("api.ComputeReferencesSLAPeriodResponse", [
{ no: 1, name: "AllowedPeriods", kind: "message", localName: "AllowedPeriods", jsonName: "AllowedPeriods", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AllowedPeriod }
]);
}
create(value?: PartialMessage<ComputeReferencesSLAPeriodResponse>): ComputeReferencesSLAPeriodResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AllowedPeriods = [];
if (value !== undefined)
reflectionMergePartial<ComputeReferencesSLAPeriodResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeReferencesSLAPeriodResponse): ComputeReferencesSLAPeriodResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.AllowedPeriod AllowedPeriods */ 1:
message.AllowedPeriods.push(AllowedPeriod.internalBinaryRead(reader, reader.uint32(), options));
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: ComputeReferencesSLAPeriodResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.AllowedPeriod AllowedPeriods = 1; */
for (let i = 0; i < message.AllowedPeriods.length; i++)
AllowedPeriod.internalBinaryWrite(message.AllowedPeriods[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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ComputeReferencesSLAPeriodResponse
*/
export const ComputeReferencesSLAPeriodResponse = new ComputeReferencesSLAPeriodResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAllForOrganisationRequest$Type extends MessageType<DeleteAllForOrganisationRequest> {
constructor() {
super("api.DeleteAllForOrganisationRequest", [
@@ -2432,5 +2753,6 @@ export const CalendarService = new ServiceType("api.CalendarService", [
{ name: "UpdateOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Update a Calendar at site level" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling" }, I: UpdateOnSiteRequest, O: UpdateOnSiteResponse },
{ name: "DeleteOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Delete a Calendar at site level" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling" }, I: DeleteOnSiteRequest, O: DeleteOnSiteResponse },
{ name: "GetPublicHolidays", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Get public holidays for a given country up to a given year" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Platform", "api.roles": "" }, I: GetPublicHolidaysRequest, O: GetPublicHolidaysResponse },
{ name: "ComputeSLAPeriodOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Compute the ETA according to a Period and the Calendar at site level" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling" }, I: ComputeSLAPeriodOnSiteRequest, O: ComputeSLAPeriodResponse }
{ name: "ComputeSLAPeriodOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Compute the ETA according to a Period and the Calendar at site level" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling" }, I: ComputeSLAPeriodOnSiteRequest, O: ComputeSLAPeriodResponse },
{ name: "ComputeReferencesSLAPeriod", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Compute the SLA according to informations at project level" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling" }, I: ComputeReferencesSLAPeriodRequest, O: ComputeReferencesSLAPeriodResponse }
], { "api.k8sService": "core-calendar" });

View File

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

View File

@@ -28,6 +28,8 @@ import type { CreateSettingsResponse } from "./site";
import type { CreateSettingsRequest } from "./site";
import type { DeleteSettingsResult } from "./site";
import type { DeleteSettingsRequest } from "./site";
import type { ValidateAppointmentContentResponse } from "./site";
import type { ValidateAppointmentContentRequest } from "./site";
import type { CheckAppointmentCommissionResponse } from "./site";
import type { CheckAppointmentCommissionRequest } from "./site";
import type { DeleteInstructionDocumentResponse } from "./site";
@@ -77,6 +79,10 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: CheckAppointmentCommission
*/
checkAppointmentCommission(input: CheckAppointmentCommissionRequest, options?: RpcOptions): UnaryCall<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse>;
/**
* @generated from protobuf rpc: ValidateAppointmentContent
*/
validateAppointmentContent(input: ValidateAppointmentContentRequest, options?: RpcOptions): UnaryCall<ValidateAppointmentContentRequest, ValidateAppointmentContentResponse>;
/**
* @generated from protobuf rpc: DeleteSettings
*/
@@ -188,95 +194,102 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ValidateAppointmentContent
*/
validateAppointmentContent(input: ValidateAppointmentContentRequest, options?: RpcOptions): UnaryCall<ValidateAppointmentContentRequest, ValidateAppointmentContentResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<ValidateAppointmentContentRequest, ValidateAppointmentContentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteSettings
*/
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSettingsRequest, DeleteSettingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateSettings
*/
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetUnits
*/
getUnits(input: GetUnitsRequest, options?: RpcOptions): UnaryCall<GetUnitsRequest, GetUnitsResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<GetUnitsRequest, GetUnitsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBasicSettings
*/
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBasicSettingsRequest, GetBasicSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListAllowedSites
*/
listAllowedSites(input: ListAllowedSitesRequest, options?: RpcOptions): UnaryCall<ListAllowedSitesRequest, ListAllowedSitesResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<ListAllowedSitesRequest, ListAllowedSitesResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetActorAuthorisation
*/
getActorAuthorisation(input: GetActorAuthorisationRequest, options?: RpcOptions): UnaryCall<GetActorAuthorisationRequest, GetActorAuthorisationResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<GetActorAuthorisationRequest, GetActorAuthorisationResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBookingSegmentations
*/
getBookingSegmentations(input: GetBookingSegmentationsRequest, options?: RpcOptions): UnaryCall<GetBookingSegmentationsRequest, GetBookingSegmentationsResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingSegmentationsRequest, GetBookingSegmentationsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ResolveSite
*/
resolveSite(input: ResolveSiteRequest, options?: RpcOptions): UnaryCall<ResolveSiteRequest, ResolveSiteResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<ResolveSiteRequest, ResolveSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: InitBookerProfile
*/
initBookerProfile(input: InitBookerProfileRequest, options?: RpcOptions): UnaryCall<InitBookerProfileRequest, InitBookerProfileResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<InitBookerProfileRequest, InitBookerProfileResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBookingContext
*/
getBookingContext(input: GetBookingContextRequest, options?: RpcOptions): UnaryCall<GetBookingContextRequest, GetBookingContextResponse> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingContextRequest, GetBookingContextResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetMyBookingContext
*/
getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall<GetMyBookingContextRequest, GetMyBookingContextResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
const method = this.methods[18], opt = this._transport.mergeOptions(options);
return stackIntercept<GetMyBookingContextRequest, GetMyBookingContextResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListSettings
*/
listSettings(input: ListSettingsRequest, options?: RpcOptions): UnaryCall<ListSettingsRequest, ListSettingsResponse> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
const method = this.methods[19], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSettingsRequest, ListSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListBasicSettings
*/
listBasicSettings(input: ListSettingsRequest, options?: RpcOptions): UnaryCall<ListSettingsRequest, ListSettingsResponse> {
const method = this.methods[19], opt = this._transport.mergeOptions(options);
const method = this.methods[20], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSettingsRequest, ListSettingsResponse>("unary", this._transport, method, opt, input);
}
}

207
site.ts
View File

@@ -12,12 +12,12 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { CommandIdentifierEntry } from "./slotbooking";
import { AppointmentContent } from "./slotbooking";
import { Period } from "./shared";
import { SegmentationFilter } from "./slotbooking";
import { PrjMetadata } from "./metadatadef";
import { ResponseHeader } from "./shared";
import { DateTime } from "./shared";
import { AppointmentContent } from "./slotbooking";
import { AppointmentCommission } from "./slotbooking";
import { Commission } from "./slotbooking";
import { AppointmentType } from "./shared";
@@ -527,6 +527,61 @@ export interface CheckAppointmentCommissionRequest {
* @generated from protobuf field: string AppointmentID = 6
*/
AppointmentID: string;
/**
* @generated from protobuf field: string StartDate = 7
*/
StartDate: string; // Start date of the range to look for available slots, will be used to refine the allowed range when adding reference to appointment, format yyyy-mm-dd.
/**
* @generated from protobuf field: string EndDate = 8
*/
EndDate: string; // End date of the range to look for available slots, format yyyy-mm-dd.
}
/**
* ValidateAppointmentCommissions
*
* @generated from protobuf message api.ValidateAppointmentContentRequest
*/
export interface ValidateAppointmentContentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Loading / Unloading / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* List of commissions to check
* repeated AppointmentCommission AppointmentCommissions = 3;
*
* @generated from protobuf field: api.AppointmentContent Loading = 3
*/
Loading?: AppointmentContent;
/**
* @generated from protobuf field: api.AppointmentContent Unloading = 4
*/
Unloading?: AppointmentContent;
/**
* In case of modification of an existing appointment, the ID of the appointment that will be modified.
*
* @generated from protobuf field: string AppointmentID = 5
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.ValidateAppointmentContentResponse
*/
export interface ValidateAppointmentContentResponse {
/**
* @generated from protobuf field: string StartDate = 1
*/
StartDate: string; // Start date of the range to look for available slots for the given commissions.
/**
* @generated from protobuf field: string EndDate = 2
*/
EndDate: string; // End date of the range to look for available slots for the given commissions.
}
/**
* @generated from protobuf message api.PossibleReference
@@ -2370,7 +2425,9 @@ class CheckAppointmentCommissionRequest$Type extends MessageType<CheckAppointmen
{ no: 3, name: "Commission", kind: "message", localName: "Commission", jsonName: "Commission", T: () => Commission },
{ no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "AppointmentCommission", kind: "message", localName: "AppointmentCommission", jsonName: "AppointmentCommission", T: () => AppointmentCommission },
{ no: 6, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
{ no: 6, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" }, "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$", ignoreEmpty: true } } } },
{ no: 8, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" }, "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$", ignoreEmpty: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType"] } } });
}
create(value?: PartialMessage<CheckAppointmentCommissionRequest>): CheckAppointmentCommissionRequest {
@@ -2378,6 +2435,8 @@ class CheckAppointmentCommissionRequest$Type extends MessageType<CheckAppointmen
message.AppointmentType = 0;
message.ActorID = "";
message.AppointmentID = "";
message.StartDate = "";
message.EndDate = "";
if (value !== undefined)
reflectionMergePartial<CheckAppointmentCommissionRequest>(this, message, value);
return message;
@@ -2405,6 +2464,12 @@ class CheckAppointmentCommissionRequest$Type extends MessageType<CheckAppointmen
case /* string AppointmentID */ 6:
message.AppointmentID = reader.string();
break;
case /* string StartDate */ 7:
message.StartDate = reader.string();
break;
case /* string EndDate */ 8:
message.EndDate = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2435,6 +2500,12 @@ class CheckAppointmentCommissionRequest$Type extends MessageType<CheckAppointmen
/* string AppointmentID = 6; */
if (message.AppointmentID !== "")
writer.tag(6, WireType.LengthDelimited).string(message.AppointmentID);
/* string StartDate = 7; */
if (message.StartDate !== "")
writer.tag(7, WireType.LengthDelimited).string(message.StartDate);
/* string EndDate = 8; */
if (message.EndDate !== "")
writer.tag(8, WireType.LengthDelimited).string(message.EndDate);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2446,6 +2517,137 @@ class CheckAppointmentCommissionRequest$Type extends MessageType<CheckAppointmen
*/
export const CheckAppointmentCommissionRequest = new CheckAppointmentCommissionRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ValidateAppointmentContentRequest$Type extends MessageType<ValidateAppointmentContentRequest> {
constructor() {
super("api.ValidateAppointmentContentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
{ no: 4, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
{ no: 5, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType"] } } });
}
create(value?: PartialMessage<ValidateAppointmentContentRequest>): ValidateAppointmentContentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<ValidateAppointmentContentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ValidateAppointmentContentRequest): ValidateAppointmentContentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.AppointmentType AppointmentType */ 2:
message.AppointmentType = reader.int32();
break;
case /* api.AppointmentContent Loading */ 3:
message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading);
break;
case /* api.AppointmentContent Unloading */ 4:
message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading);
break;
case /* string AppointmentID */ 5:
message.AppointmentID = reader.string();
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: ValidateAppointmentContentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentType AppointmentType = 2; */
if (message.AppointmentType !== 0)
writer.tag(2, WireType.Varint).int32(message.AppointmentType);
/* api.AppointmentContent Loading = 3; */
if (message.Loading)
AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentContent Unloading = 4; */
if (message.Unloading)
AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* string AppointmentID = 5; */
if (message.AppointmentID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.AppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ValidateAppointmentContentRequest
*/
export const ValidateAppointmentContentRequest = new ValidateAppointmentContentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ValidateAppointmentContentResponse$Type extends MessageType<ValidateAppointmentContentResponse> {
constructor() {
super("api.ValidateAppointmentContentResponse", [
{ no: 1, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ValidateAppointmentContentResponse>): ValidateAppointmentContentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.StartDate = "";
message.EndDate = "";
if (value !== undefined)
reflectionMergePartial<ValidateAppointmentContentResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ValidateAppointmentContentResponse): ValidateAppointmentContentResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string StartDate */ 1:
message.StartDate = reader.string();
break;
case /* string EndDate */ 2:
message.EndDate = reader.string();
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: ValidateAppointmentContentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string StartDate = 1; */
if (message.StartDate !== "")
writer.tag(1, WireType.LengthDelimited).string(message.StartDate);
/* string EndDate = 2; */
if (message.EndDate !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EndDate);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ValidateAppointmentContentResponse
*/
export const ValidateAppointmentContentResponse = new ValidateAppointmentContentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PossibleReference$Type extends MessageType<PossibleReference> {
constructor() {
super("api.PossibleReference", [
@@ -4528,6 +4730,7 @@ export const SiteService = new ServiceType("api.SiteService", [
{ name: "UploadInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace an instruction document on a site for a specific language. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.SiteService/UploadInstructionDocument -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID -F DocID=myDocID -F LanguageCodeISO6391=en -F Name=myName -F AckRequired=False" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "" }, I: UploadInstructionDocumentRequest, O: UploadInstructionDocumentResponse },
{ name: "DeleteInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete an instruction document on a site for a specific language. If no languages are specified, all the documents per language are removed" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "" }, I: DeleteInstructionDocumentRequest, O: DeleteInstructionDocumentResponse },
{ name: "CheckAppointmentCommission", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Check an appointment commision" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: CheckAppointmentCommissionRequest, O: CheckAppointmentCommissionResponse },
{ name: "ValidateAppointmentContent", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Validate the appointment content, especially the commissions list, and sends back the allowed date range for booking on the site" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: ValidateAppointmentContentRequest, O: ValidateAppointmentContentResponse },
{ name: "DeleteSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage" }, I: DeleteSettingsRequest, O: DeleteSettingsResult },
{ name: "CreateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage" }, I: CreateSettingsRequest, O: CreateSettingsResponse },
{ name: "GetUnits", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the Units of a site to display" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: GetUnitsRequest, O: GetUnitsResponse },

View File

@@ -472,8 +472,8 @@ class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 14, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" }, "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" }, "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" }, "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" }, "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
{ no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },

View File

@@ -478,6 +478,46 @@ export interface ActorAuthorisation {
*/
LoadingConstraint?: ActorConstraint;
}
/**
* @generated from protobuf message api.DateRestriction
*/
export interface DateRestriction {
/**
* Type of restriction applied on the date field.
*
* @generated from protobuf field: api.DateRestrictionType Type = 1
*/
Type: DateRestrictionType;
/**
* Date to use for computing the limitation.
*
* @generated from protobuf field: string RestrictionField = 2
*/
RestrictionField: string;
/**
* Value of the restriction, in open days, to apply on the date field.
*
* @generated from protobuf field: int64 RestrictionValue = 3
*/
RestrictionValue: bigint;
}
/**
* @generated from protobuf message api.ActorDateRestriction
*/
export interface ActorDateRestriction {
/**
* Configuration of the date field to be used to calculate the earliest available date restriction on booking
*
* @generated from protobuf field: api.DateRestriction EarliestDateRestriction = 1
*/
EarliestDateRestriction?: DateRestriction;
/**
* Configuration of the date field to be used to calculate the latest available date restriction on booking
*
* @generated from protobuf field: api.DateRestriction LatestDateRestriction = 2
*/
LatestDateRestriction?: DateRestriction;
}
/**
* @generated from protobuf message api.ActorConstraint
*/
@@ -506,6 +546,12 @@ export interface ActorConstraint {
* @generated from protobuf field: api.CommandIdentifierEntry CommandIdentifierEntry = 5
*/
CommandIdentifierEntry: CommandIdentifierEntry;
/**
* Configurations to be used to compute the dates restriction on booking
*
* @generated from protobuf field: api.ActorDateRestriction ActorDateRestriction = 6
*/
ActorDateRestriction?: ActorDateRestriction;
}
/**
* @generated from protobuf message api.SegmentationActorConstraint
@@ -792,6 +838,27 @@ export enum CapacityRuleScope {
*/
CAPACITY_RULE_SCOPE_DAILY = 2
}
/**
* @generated from protobuf enum api.DateRestrictionType
*/
export enum DateRestrictionType {
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_UNKNOWN = 0;
*/
DATE_RESTRICTION_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_AUTHORIZED = 1;
*/
DATE_RESTRICTION_TYPE_AUTHORIZED = 1,
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_AUTHORIZED_WITH_LIMIT = 2;
*/
DATE_RESTRICTION_TYPE_AUTHORIZED_WITH_LIMIT = 2,
/**
* @generated from protobuf enum value: DATE_RESTRICTION_TYPE_FORBIDDEN = 3;
*/
DATE_RESTRICTION_TYPE_FORBIDDEN = 3
}
/**
* @generated from protobuf enum api.CommandIdentifierEntry
*/
@@ -2199,13 +2266,130 @@ class ActorAuthorisation$Type extends MessageType<ActorAuthorisation> {
*/
export const ActorAuthorisation = new ActorAuthorisation$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DateRestriction$Type extends MessageType<DateRestriction> {
constructor() {
super("api.DateRestriction", [
{ no: 1, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.DateRestrictionType", DateRestrictionType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "RestrictionField", kind: "scalar", localName: "RestrictionField", jsonName: "RestrictionField", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "RestrictionValue", kind: "scalar", localName: "RestrictionValue", jsonName: "RestrictionValue", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { gte: "1" } } } }
]);
}
create(value?: PartialMessage<DateRestriction>): DateRestriction {
const message = globalThis.Object.create((this.messagePrototype!));
message.Type = 0;
message.RestrictionField = "";
message.RestrictionValue = 0n;
if (value !== undefined)
reflectionMergePartial<DateRestriction>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DateRestriction): DateRestriction {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateRestrictionType Type */ 1:
message.Type = reader.int32();
break;
case /* string RestrictionField */ 2:
message.RestrictionField = reader.string();
break;
case /* int64 RestrictionValue */ 3:
message.RestrictionValue = reader.int64().toBigInt();
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: DateRestriction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateRestrictionType Type = 1; */
if (message.Type !== 0)
writer.tag(1, WireType.Varint).int32(message.Type);
/* string RestrictionField = 2; */
if (message.RestrictionField !== "")
writer.tag(2, WireType.LengthDelimited).string(message.RestrictionField);
/* int64 RestrictionValue = 3; */
if (message.RestrictionValue !== 0n)
writer.tag(3, WireType.Varint).int64(message.RestrictionValue);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DateRestriction
*/
export const DateRestriction = new DateRestriction$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorDateRestriction$Type extends MessageType<ActorDateRestriction> {
constructor() {
super("api.ActorDateRestriction", [
{ no: 1, name: "EarliestDateRestriction", kind: "message", localName: "EarliestDateRestriction", jsonName: "EarliestDateRestriction", T: () => DateRestriction },
{ no: 2, name: "LatestDateRestriction", kind: "message", localName: "LatestDateRestriction", jsonName: "LatestDateRestriction", T: () => DateRestriction }
]);
}
create(value?: PartialMessage<ActorDateRestriction>): ActorDateRestriction {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ActorDateRestriction>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorDateRestriction): ActorDateRestriction {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateRestriction EarliestDateRestriction */ 1:
message.EarliestDateRestriction = DateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.EarliestDateRestriction);
break;
case /* api.DateRestriction LatestDateRestriction */ 2:
message.LatestDateRestriction = DateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.LatestDateRestriction);
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: ActorDateRestriction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateRestriction EarliestDateRestriction = 1; */
if (message.EarliestDateRestriction)
DateRestriction.internalBinaryWrite(message.EarliestDateRestriction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.DateRestriction LatestDateRestriction = 2; */
if (message.LatestDateRestriction)
DateRestriction.internalBinaryWrite(message.LatestDateRestriction, 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.ActorDateRestriction
*/
export const ActorDateRestriction = new ActorDateRestriction$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorConstraint$Type extends MessageType<ActorConstraint> {
constructor() {
super("api.ActorConstraint", [
{ no: 1, name: "SegmentationConstraints", kind: "message", localName: "SegmentationConstraints", jsonName: "SegmentationConstraints", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationActorConstraint, options: { "api.aggKey": "SegmentationID" } },
{ no: 3, name: "MaxBookingPeriod", kind: "message", localName: "MaxBookingPeriod", jsonName: "MaxBookingPeriod", T: () => Period },
{ no: 4, name: "IsBookingEnabledForUnknownUsers", kind: "scalar", localName: "IsBookingEnabledForUnknownUsers", jsonName: "IsBookingEnabledForUnknownUsers", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "CommandIdentifierEntry", kind: "enum", localName: "CommandIdentifierEntry", jsonName: "CommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry] }
{ no: 5, name: "CommandIdentifierEntry", kind: "enum", localName: "CommandIdentifierEntry", jsonName: "CommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry] },
{ no: 6, name: "ActorDateRestriction", kind: "message", localName: "ActorDateRestriction", jsonName: "ActorDateRestriction", T: () => ActorDateRestriction }
]);
}
create(value?: PartialMessage<ActorConstraint>): ActorConstraint {
@@ -2234,6 +2418,9 @@ class ActorConstraint$Type extends MessageType<ActorConstraint> {
case /* api.CommandIdentifierEntry CommandIdentifierEntry */ 5:
message.CommandIdentifierEntry = reader.int32();
break;
case /* api.ActorDateRestriction ActorDateRestriction */ 6:
message.ActorDateRestriction = ActorDateRestriction.internalBinaryRead(reader, reader.uint32(), options, message.ActorDateRestriction);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2258,6 +2445,9 @@ class ActorConstraint$Type extends MessageType<ActorConstraint> {
/* api.CommandIdentifierEntry CommandIdentifierEntry = 5; */
if (message.CommandIdentifierEntry !== 0)
writer.tag(5, WireType.Varint).int32(message.CommandIdentifierEntry);
/* api.ActorDateRestriction ActorDateRestriction = 6; */
if (message.ActorDateRestriction)
ActorDateRestriction.internalBinaryWrite(message.ActorDateRestriction, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);