You've already forked npm-core-sdk
2437 lines
123 KiB
TypeScript
2437 lines
123 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "calendar.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
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 { RequestProjectHeader } from "./shared";
|
|
import { Period } from "./shared";
|
|
import { RequestOrganisationHeader } from "./shared";
|
|
import { ResourceType } from "./shared";
|
|
import { LabelByLanguage } from "./shared";
|
|
import { TimeRange } from "./shared";
|
|
import { WeekDay } from "./shared";
|
|
/**
|
|
* @generated from protobuf message api.WorkTimeDay
|
|
*/
|
|
export interface WorkTimeDay {
|
|
/**
|
|
* Day of the week
|
|
*
|
|
* @generated from protobuf field: api.WeekDay WeekDay = 1
|
|
*/
|
|
WeekDay: WeekDay;
|
|
/**
|
|
* Is a workingDay
|
|
*
|
|
* @generated from protobuf field: bool IsWorkingDay = 2
|
|
*/
|
|
IsWorkingDay: boolean;
|
|
/**
|
|
* Opening hours definition according to filters
|
|
*
|
|
* @generated from protobuf field: repeated api.TimeRange TimeRanges = 3
|
|
*/
|
|
TimeRanges: TimeRange[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ExceptionalClosure
|
|
*/
|
|
export interface ExceptionalClosure {
|
|
/**
|
|
* Name of the holiday
|
|
*
|
|
* @generated from protobuf field: repeated api.LabelByLanguage Labels = 1
|
|
*/
|
|
Labels: LabelByLanguage[];
|
|
/**
|
|
* Start of the ExceptionalClosure, format yyyy-mm-dd //TODO are we sure about the format
|
|
*
|
|
* @generated from protobuf field: string StartDate = 2
|
|
*/
|
|
StartDate: string;
|
|
/**
|
|
* End of the ExceptionalClosure, format yyyy-mm-dd //TODO are we sure about the format
|
|
*
|
|
* @generated from protobuf field: string EndDate = 3
|
|
*/
|
|
EndDate: string;
|
|
/**
|
|
* Set to true if the ExceptionalClosure is a complete closure for the impacted days
|
|
*
|
|
* @generated from protobuf field: bool FullDay = 4
|
|
*/
|
|
FullDay: boolean;
|
|
/**
|
|
* Start of the ExceptionalClosure hour if FullDay is set to false, format hh:mm
|
|
*
|
|
* @generated from protobuf field: string StartHour = 5
|
|
*/
|
|
StartHour: string;
|
|
/**
|
|
* End of the ExceptionalClosure hour if FullDay is set to false, format hh:mm
|
|
*
|
|
* @generated from protobuf field: string EndHour = 6
|
|
*/
|
|
EndHour: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.Calendar
|
|
*/
|
|
export interface Calendar {
|
|
/**
|
|
* Identifier of the calendar
|
|
*
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* Resource type on which the calendar is referenced
|
|
*
|
|
* @generated from protobuf field: api.ResourceType RscType = 2
|
|
*/
|
|
RscType: ResourceType;
|
|
/**
|
|
* @generated from protobuf field: string ResourceID = 3
|
|
*/
|
|
ResourceID: string;
|
|
/**
|
|
* Name of the calendar
|
|
*
|
|
* @generated from protobuf field: string Name = 4
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* Description of the calendar
|
|
*
|
|
* @generated from protobuf field: string Description = 5
|
|
*/
|
|
Description: string;
|
|
/**
|
|
* List of Exceptional closure
|
|
*
|
|
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 6
|
|
*/
|
|
ExceptionalClosures: ExceptionalClosure[];
|
|
/**
|
|
* Definition of the opening hours by week day
|
|
*
|
|
* @generated from protobuf field: repeated api.WorkTimeDay WorkTimeDays = 7
|
|
*/
|
|
WorkTimeDays: WorkTimeDay[];
|
|
}
|
|
// ========== REQUESTS & RESPONSE MESSAGES ==========
|
|
|
|
// //// API at Calendar level
|
|
|
|
/**
|
|
* Create a calendar at organisation level
|
|
*
|
|
* @generated from protobuf message api.CreateOnOrganisationRequest
|
|
*/
|
|
export interface CreateOnOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* Name of the calendar
|
|
*
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* Description of the calendar
|
|
*
|
|
* @generated from protobuf field: string Description = 3
|
|
*/
|
|
Description: string;
|
|
/**
|
|
* List of Exceptional closure
|
|
*
|
|
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 4
|
|
*/
|
|
ExceptionalClosures: ExceptionalClosure[];
|
|
/**
|
|
* Definition of the opening hours by week day
|
|
*
|
|
* @generated from protobuf field: repeated api.WorkTimeDay WorkTimeDays = 7
|
|
*/
|
|
WorkTimeDays: WorkTimeDay[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateOnOrganisationResponse
|
|
*/
|
|
export interface CreateOnOrganisationResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Calendar Calendar = 1
|
|
*/
|
|
Calendar?: Calendar;
|
|
}
|
|
/**
|
|
* Get a calendar at organisation level
|
|
*
|
|
* @generated from protobuf message api.GetOnOrganisationRequest
|
|
*/
|
|
export interface GetOnOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetOnOrganisationResponse
|
|
*/
|
|
export interface GetOnOrganisationResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Calendar Calendar = 1
|
|
*/
|
|
Calendar?: Calendar;
|
|
}
|
|
/**
|
|
* List a calendar at organisation level
|
|
*
|
|
* @generated from protobuf message api.ListOnOrganisationRequest
|
|
*/
|
|
export interface ListOnOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListOnOrganisationResponse
|
|
*/
|
|
export interface ListOnOrganisationResponse {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Calendar Calendars = 1
|
|
*/
|
|
Calendars: Calendar[];
|
|
}
|
|
/**
|
|
* Update a calendar at organisation level
|
|
*
|
|
* @generated from protobuf message api.UpdateOnOrganisationRequest
|
|
*/
|
|
export interface UpdateOnOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* Identifier of the calendar
|
|
*
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* Name of the calendar
|
|
*
|
|
* @generated from protobuf field: string Name = 3
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* Description of the calendar
|
|
*
|
|
* @generated from protobuf field: string Description = 4
|
|
*/
|
|
Description: string;
|
|
/**
|
|
* List of Exceptional closure
|
|
*
|
|
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 5
|
|
*/
|
|
ExceptionalClosures: ExceptionalClosure[];
|
|
/**
|
|
* Definition of the opening hours by week day
|
|
*
|
|
* @generated from protobuf field: repeated api.WorkTimeDay WorkTimeDays = 7
|
|
*/
|
|
WorkTimeDays: WorkTimeDay[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOnOrganisationResponse
|
|
*/
|
|
export interface UpdateOnOrganisationResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Calendar Calendar = 1
|
|
*/
|
|
Calendar?: Calendar;
|
|
}
|
|
/**
|
|
* Delete a calendar at organisation level
|
|
*
|
|
* @generated from protobuf message api.DeleteOnOrganisationRequest
|
|
*/
|
|
export interface DeleteOnOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOnOrganisationResponse
|
|
*/
|
|
export interface DeleteOnOrganisationResponse {
|
|
}
|
|
/**
|
|
* GetPublicHolidays request
|
|
*
|
|
* @generated from protobuf message api.GetPublicHolidaysRequest
|
|
*/
|
|
export interface GetPublicHolidaysRequest {
|
|
/**
|
|
* Country Code in <a href='https://en.wikipedia.org/wiki/ISO_3166-1'>ISO_3166-1 Alpha-2</a> format
|
|
*
|
|
* @generated from protobuf field: string CountryCode = 1
|
|
*/
|
|
CountryCode: string;
|
|
/**
|
|
* Year up to which generate the public holidays (from 2025 to 2199)
|
|
*
|
|
* @generated from protobuf field: uint32 UpToYear = 2
|
|
*/
|
|
UpToYear: number;
|
|
}
|
|
/**
|
|
* GetPublicHolidays response
|
|
*
|
|
* @generated from protobuf message api.GetPublicHolidaysResponse
|
|
*/
|
|
export interface GetPublicHolidaysResponse {
|
|
/**
|
|
* List of public holidays generated
|
|
*
|
|
* @generated from protobuf field: repeated api.ExceptionalClosure Holidays = 1
|
|
*/
|
|
Holidays: ExceptionalClosure[];
|
|
}
|
|
/**
|
|
* ComputeSLAPeriodOnOrganisationRequest
|
|
*
|
|
* @generated from protobuf message api.ComputeSLAPeriodOnOrganisationRequest
|
|
*/
|
|
export interface ComputeSLAPeriodOnOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
|
*/
|
|
Header?: RequestOrganisationHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Period minPeriods = 3
|
|
*/
|
|
minPeriods: Period[];
|
|
/**
|
|
* @generated from protobuf field: repeated api.Period maxPeriods = 4
|
|
*/
|
|
maxPeriods: Period[];
|
|
/**
|
|
* @generated from protobuf field: string StartSearchTime = 5
|
|
*/
|
|
StartSearchTime: string;
|
|
/**
|
|
* @generated from protobuf field: string LimitSearchTime = 6
|
|
*/
|
|
LimitSearchTime: string;
|
|
}
|
|
// //// API at Site level
|
|
|
|
/**
|
|
* Create a calendar at site level
|
|
*
|
|
* @generated from protobuf message api.CreateOnSiteRequest
|
|
*/
|
|
export interface CreateOnSiteRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* Name of the calendar
|
|
*
|
|
* @generated from protobuf field: string Name = 2
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* Description of the calendar
|
|
*
|
|
* @generated from protobuf field: string Description = 3
|
|
*/
|
|
Description: string;
|
|
/**
|
|
* List of Exceptional closure
|
|
*
|
|
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 4
|
|
*/
|
|
ExceptionalClosures: ExceptionalClosure[];
|
|
/**
|
|
* Definition of the opening hours by week day
|
|
*
|
|
* @generated from protobuf field: repeated api.WorkTimeDay WorkTimeDays = 7
|
|
*/
|
|
WorkTimeDays: WorkTimeDay[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateOnSiteResponse
|
|
*/
|
|
export interface CreateOnSiteResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Calendar Calendar = 1
|
|
*/
|
|
Calendar?: Calendar;
|
|
}
|
|
/**
|
|
* Get a calendar at site level
|
|
*
|
|
* @generated from protobuf message api.GetOnSiteRequest
|
|
*/
|
|
export interface GetOnSiteRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetOnSiteResponse
|
|
*/
|
|
export interface GetOnSiteResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Calendar Calendar = 1
|
|
*/
|
|
Calendar?: Calendar;
|
|
}
|
|
/**
|
|
* List a calendar at site level
|
|
*
|
|
* @generated from protobuf message api.ListOnSiteRequest
|
|
*/
|
|
export interface ListOnSiteRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListOnSiteResponse
|
|
*/
|
|
export interface ListOnSiteResponse {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Calendar Calendars = 1
|
|
*/
|
|
Calendars: Calendar[];
|
|
}
|
|
/**
|
|
* Update a calendar at site level
|
|
*
|
|
* @generated from protobuf message api.UpdateOnSiteRequest
|
|
*/
|
|
export interface UpdateOnSiteRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* Identifier of the calendar
|
|
*
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* Name of the calendar
|
|
*
|
|
* @generated from protobuf field: string Name = 3
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* Description of the calendar
|
|
*
|
|
* @generated from protobuf field: string Description = 4
|
|
*/
|
|
Description: string;
|
|
/**
|
|
* List of Exceptional closure
|
|
*
|
|
* @generated from protobuf field: repeated api.ExceptionalClosure ExceptionalClosures = 5
|
|
*/
|
|
ExceptionalClosures: ExceptionalClosure[];
|
|
/**
|
|
* Definition of the opening hours by week day
|
|
*
|
|
* @generated from protobuf field: repeated api.WorkTimeDay WorkTimeDays = 7
|
|
*/
|
|
WorkTimeDays: WorkTimeDay[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.UpdateOnSiteResponse
|
|
*/
|
|
export interface UpdateOnSiteResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Calendar Calendar = 1
|
|
*/
|
|
Calendar?: Calendar;
|
|
}
|
|
/**
|
|
* Delete a calendar at site level
|
|
*
|
|
* @generated from protobuf message api.DeleteOnSiteRequest
|
|
*/
|
|
export interface DeleteOnSiteRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteOnSiteResponse
|
|
*/
|
|
export interface DeleteOnSiteResponse {
|
|
}
|
|
/**
|
|
* ComputeSLAPeriodOnSiteRequest
|
|
*
|
|
* @generated from protobuf message api.ComputeSLAPeriodOnSiteRequest
|
|
*/
|
|
export interface ComputeSLAPeriodOnSiteRequest {
|
|
/**
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: string ID = 2
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Period minPeriods = 3
|
|
*/
|
|
minPeriods: Period[];
|
|
/**
|
|
* @generated from protobuf field: repeated api.Period maxPeriods = 4
|
|
*/
|
|
maxPeriods: Period[];
|
|
/**
|
|
* @generated from protobuf field: string StartSearchTime = 5
|
|
*/
|
|
StartSearchTime: string;
|
|
/**
|
|
* @generated from protobuf field: string LimitSearchTime = 6
|
|
*/
|
|
LimitSearchTime: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ComputeSLAPeriodResponse
|
|
*/
|
|
export interface ComputeSLAPeriodResponse {
|
|
/**
|
|
* @generated from protobuf field: string StartSLA = 1
|
|
*/
|
|
StartSLA: string;
|
|
/**
|
|
* @generated from protobuf field: string EndSLA = 2
|
|
*/
|
|
EndSLA: string;
|
|
}
|
|
/**
|
|
* Delete all calendars for an organisation
|
|
*
|
|
* @generated from protobuf message api.DeleteAllForOrganisationRequest
|
|
*/
|
|
export interface DeleteAllForOrganisationRequest {
|
|
/**
|
|
* @generated from protobuf field: string OrganisationID = 1
|
|
*/
|
|
OrganisationID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllForOrganisationResponse
|
|
*/
|
|
export interface DeleteAllForOrganisationResponse {
|
|
}
|
|
/**
|
|
* Delete all calendars for a project
|
|
*
|
|
* @generated from protobuf message api.DeleteAllForProjectRequest
|
|
*/
|
|
export interface DeleteAllForProjectRequest {
|
|
/**
|
|
* @generated from protobuf field: string ProjectID = 1
|
|
*/
|
|
ProjectID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllForProjectResponse
|
|
*/
|
|
export interface DeleteAllForProjectResponse {
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class WorkTimeDay$Type extends MessageType<WorkTimeDay> {
|
|
constructor() {
|
|
super("api.WorkTimeDay", [
|
|
{ no: 1, name: "WeekDay", kind: "enum", localName: "WeekDay", jsonName: "WeekDay", T: () => ["api.WeekDay", WeekDay] },
|
|
{ no: 2, name: "IsWorkingDay", kind: "scalar", localName: "IsWorkingDay", jsonName: "IsWorkingDay", T: 8 /*ScalarType.BOOL*/ },
|
|
{ no: 3, name: "TimeRanges", kind: "message", localName: "TimeRanges", jsonName: "TimeRanges", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TimeRange }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<WorkTimeDay>): WorkTimeDay {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.WeekDay = 0;
|
|
message.IsWorkingDay = false;
|
|
message.TimeRanges = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<WorkTimeDay>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WorkTimeDay): WorkTimeDay {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.WeekDay WeekDay */ 1:
|
|
message.WeekDay = reader.int32();
|
|
break;
|
|
case /* bool IsWorkingDay */ 2:
|
|
message.IsWorkingDay = reader.bool();
|
|
break;
|
|
case /* repeated api.TimeRange TimeRanges */ 3:
|
|
message.TimeRanges.push(TimeRange.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: WorkTimeDay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.WeekDay WeekDay = 1; */
|
|
if (message.WeekDay !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.WeekDay);
|
|
/* bool IsWorkingDay = 2; */
|
|
if (message.IsWorkingDay !== false)
|
|
writer.tag(2, WireType.Varint).bool(message.IsWorkingDay);
|
|
/* repeated api.TimeRange TimeRanges = 3; */
|
|
for (let i = 0; i < message.TimeRanges.length; i++)
|
|
TimeRange.internalBinaryWrite(message.TimeRanges[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.WorkTimeDay
|
|
*/
|
|
export const WorkTimeDay = new WorkTimeDay$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ExceptionalClosure$Type extends MessageType<ExceptionalClosure> {
|
|
constructor() {
|
|
super("api.ExceptionalClosure", [
|
|
{ no: 1, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", 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])$" } } } },
|
|
{ no: 4, name: "FullDay", kind: "scalar", localName: "FullDay", jsonName: "FullDay", T: 8 /*ScalarType.BOOL*/ },
|
|
{ no: 5, name: "StartHour", kind: "scalar", localName: "StartHour", jsonName: "StartHour", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } },
|
|
{ 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<ExceptionalClosure>): ExceptionalClosure {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Labels = [];
|
|
message.StartDate = "";
|
|
message.EndDate = "";
|
|
message.FullDay = false;
|
|
message.StartHour = "";
|
|
message.EndHour = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ExceptionalClosure>(this, message, value);
|
|
return message;
|
|
}
|
|
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();
|
|
switch (fieldNo) {
|
|
case /* repeated api.LabelByLanguage Labels */ 1:
|
|
message.Labels.push(LabelByLanguage.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string StartDate */ 2:
|
|
message.StartDate = reader.string();
|
|
break;
|
|
case /* string EndDate */ 3:
|
|
message.EndDate = reader.string();
|
|
break;
|
|
case /* bool FullDay */ 4:
|
|
message.FullDay = reader.bool();
|
|
break;
|
|
case /* string StartHour */ 5:
|
|
message.StartHour = reader.string();
|
|
break;
|
|
case /* string EndHour */ 6:
|
|
message.EndHour = 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: ExceptionalClosure, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.LabelByLanguage Labels = 1; */
|
|
for (let i = 0; i < message.Labels.length; i++)
|
|
LabelByLanguage.internalBinaryWrite(message.Labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string StartDate = 2; */
|
|
if (message.StartDate !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.StartDate);
|
|
/* string EndDate = 3; */
|
|
if (message.EndDate !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.EndDate);
|
|
/* bool FullDay = 4; */
|
|
if (message.FullDay !== false)
|
|
writer.tag(4, WireType.Varint).bool(message.FullDay);
|
|
/* string StartHour = 5; */
|
|
if (message.StartHour !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.StartHour);
|
|
/* string EndHour = 6; */
|
|
if (message.EndHour !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.EndHour);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ExceptionalClosure
|
|
*/
|
|
export const ExceptionalClosure = new ExceptionalClosure$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class Calendar$Type extends MessageType<Calendar> {
|
|
constructor() {
|
|
super("api.Calendar", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType] },
|
|
{ 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*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 5, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
|
{ 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" } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<Calendar>): Calendar {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.RscType = 0;
|
|
message.ResourceID = "";
|
|
message.Name = "";
|
|
message.Description = "";
|
|
message.ExceptionalClosures = [];
|
|
message.WorkTimeDays = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<Calendar>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Calendar): Calendar {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ID */ 1:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* api.ResourceType RscType */ 2:
|
|
message.RscType = reader.int32();
|
|
break;
|
|
case /* string ResourceID */ 3:
|
|
message.ResourceID = reader.string();
|
|
break;
|
|
case /* string Name */ 4:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 5:
|
|
message.Description = reader.string();
|
|
break;
|
|
case /* repeated api.ExceptionalClosure ExceptionalClosures */ 6:
|
|
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.WorkTimeDay WorkTimeDays */ 7:
|
|
message.WorkTimeDays.push(WorkTimeDay.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: Calendar, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
/* api.ResourceType RscType = 2; */
|
|
if (message.RscType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.RscType);
|
|
/* string ResourceID = 3; */
|
|
if (message.ResourceID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ResourceID);
|
|
/* string Name = 4; */
|
|
if (message.Name !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 5; */
|
|
if (message.Description !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.Description);
|
|
/* repeated api.ExceptionalClosure ExceptionalClosures = 6; */
|
|
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; */
|
|
for (let i = 0; i < message.WorkTimeDays.length; i++)
|
|
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, 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.Calendar
|
|
*/
|
|
export const Calendar = new Calendar$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOnOrganisationRequest$Type extends MessageType<CreateOnOrganisationRequest> {
|
|
constructor() {
|
|
super("api.CreateOnOrganisationRequest", [
|
|
{ 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*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
|
{ 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", "Name"] } } });
|
|
}
|
|
create(value?: PartialMessage<CreateOnOrganisationRequest>): CreateOnOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.Description = "";
|
|
message.ExceptionalClosures = [];
|
|
message.WorkTimeDays = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOnOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOnOrganisationRequest): CreateOnOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 3:
|
|
message.Description = reader.string();
|
|
break;
|
|
case /* repeated api.ExceptionalClosure ExceptionalClosures */ 4:
|
|
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.WorkTimeDay WorkTimeDays */ 7:
|
|
message.WorkTimeDays.push(WorkTimeDay.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: CreateOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 3; */
|
|
if (message.Description !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Description);
|
|
/* repeated api.ExceptionalClosure ExceptionalClosures = 4; */
|
|
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; */
|
|
for (let i = 0; i < message.WorkTimeDays.length; i++)
|
|
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, 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.CreateOnOrganisationRequest
|
|
*/
|
|
export const CreateOnOrganisationRequest = new CreateOnOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOnOrganisationResponse$Type extends MessageType<CreateOnOrganisationResponse> {
|
|
constructor() {
|
|
super("api.CreateOnOrganisationResponse", [
|
|
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateOnOrganisationResponse>): CreateOnOrganisationResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOnOrganisationResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOnOrganisationResponse): CreateOnOrganisationResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Calendar Calendar */ 1:
|
|
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
|
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: CreateOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Calendar Calendar = 1; */
|
|
if (message.Calendar)
|
|
Calendar.internalBinaryWrite(message.Calendar, 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.CreateOnOrganisationResponse
|
|
*/
|
|
export const CreateOnOrganisationResponse = new CreateOnOrganisationResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOnOrganisationRequest$Type extends MessageType<GetOnOrganisationRequest> {
|
|
constructor() {
|
|
super("api.GetOnOrganisationRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetOnOrganisationRequest>): GetOnOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOnOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOnOrganisationRequest): GetOnOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string ID */ 2:
|
|
message.ID = 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: GetOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetOnOrganisationRequest
|
|
*/
|
|
export const GetOnOrganisationRequest = new GetOnOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOnOrganisationResponse$Type extends MessageType<GetOnOrganisationResponse> {
|
|
constructor() {
|
|
super("api.GetOnOrganisationResponse", [
|
|
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetOnOrganisationResponse>): GetOnOrganisationResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOnOrganisationResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOnOrganisationResponse): GetOnOrganisationResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Calendar Calendar */ 1:
|
|
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
|
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: GetOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Calendar Calendar = 1; */
|
|
if (message.Calendar)
|
|
Calendar.internalBinaryWrite(message.Calendar, 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.GetOnOrganisationResponse
|
|
*/
|
|
export const GetOnOrganisationResponse = new GetOnOrganisationResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOnOrganisationRequest$Type extends MessageType<ListOnOrganisationRequest> {
|
|
constructor() {
|
|
super("api.ListOnOrganisationRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<ListOnOrganisationRequest>): ListOnOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOnOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOnOrganisationRequest): ListOnOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
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: ListOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, 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.ListOnOrganisationRequest
|
|
*/
|
|
export const ListOnOrganisationRequest = new ListOnOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOnOrganisationResponse$Type extends MessageType<ListOnOrganisationResponse> {
|
|
constructor() {
|
|
super("api.ListOnOrganisationResponse", [
|
|
{ no: 1, name: "Calendars", kind: "message", localName: "Calendars", jsonName: "Calendars", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Calendar }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListOnOrganisationResponse>): ListOnOrganisationResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Calendars = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOnOrganisationResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOnOrganisationResponse): ListOnOrganisationResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Calendar Calendars */ 1:
|
|
message.Calendars.push(Calendar.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: ListOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Calendar Calendars = 1; */
|
|
for (let i = 0; i < message.Calendars.length; i++)
|
|
Calendar.internalBinaryWrite(message.Calendars[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.ListOnOrganisationResponse
|
|
*/
|
|
export const ListOnOrganisationResponse = new ListOnOrganisationResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOnOrganisationRequest$Type extends MessageType<UpdateOnOrganisationRequest> {
|
|
constructor() {
|
|
super("api.UpdateOnOrganisationRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ 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: "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"] } } });
|
|
}
|
|
create(value?: PartialMessage<UpdateOnOrganisationRequest>): UpdateOnOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.Name = "";
|
|
message.Description = "";
|
|
message.ExceptionalClosures = [];
|
|
message.WorkTimeDays = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOnOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOnOrganisationRequest): UpdateOnOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string ID */ 2:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* string Name */ 3:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 4:
|
|
message.Description = reader.string();
|
|
break;
|
|
case /* repeated api.ExceptionalClosure ExceptionalClosures */ 5:
|
|
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.WorkTimeDay WorkTimeDays */ 7:
|
|
message.WorkTimeDays.push(WorkTimeDay.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: UpdateOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
/* string Name = 3; */
|
|
if (message.Name !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 4; */
|
|
if (message.Description !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Description);
|
|
/* repeated api.ExceptionalClosure ExceptionalClosures = 5; */
|
|
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; */
|
|
for (let i = 0; i < message.WorkTimeDays.length; i++)
|
|
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, 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.UpdateOnOrganisationRequest
|
|
*/
|
|
export const UpdateOnOrganisationRequest = new UpdateOnOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOnOrganisationResponse$Type extends MessageType<UpdateOnOrganisationResponse> {
|
|
constructor() {
|
|
super("api.UpdateOnOrganisationResponse", [
|
|
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOnOrganisationResponse>): UpdateOnOrganisationResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOnOrganisationResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOnOrganisationResponse): UpdateOnOrganisationResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Calendar Calendar */ 1:
|
|
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
|
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: UpdateOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Calendar Calendar = 1; */
|
|
if (message.Calendar)
|
|
Calendar.internalBinaryWrite(message.Calendar, 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.UpdateOnOrganisationResponse
|
|
*/
|
|
export const UpdateOnOrganisationResponse = new UpdateOnOrganisationResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOnOrganisationRequest$Type extends MessageType<DeleteOnOrganisationRequest> {
|
|
constructor() {
|
|
super("api.DeleteOnOrganisationRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteOnOrganisationRequest>): DeleteOnOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOnOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOnOrganisationRequest): DeleteOnOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string ID */ 2:
|
|
message.ID = 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: DeleteOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOnOrganisationRequest
|
|
*/
|
|
export const DeleteOnOrganisationRequest = new DeleteOnOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOnOrganisationResponse$Type extends MessageType<DeleteOnOrganisationResponse> {
|
|
constructor() {
|
|
super("api.DeleteOnOrganisationResponse", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteOnOrganisationResponse>): DeleteOnOrganisationResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOnOrganisationResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOnOrganisationResponse): DeleteOnOrganisationResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
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: DeleteOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOnOrganisationResponse
|
|
*/
|
|
export const DeleteOnOrganisationResponse = new DeleteOnOrganisationResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetPublicHolidaysRequest$Type extends MessageType<GetPublicHolidaysRequest> {
|
|
constructor() {
|
|
super("api.GetPublicHolidaysRequest", [
|
|
{ no: 1, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166Alpha2: true } } } },
|
|
{ no: 2, name: "UpToYear", kind: "scalar", localName: "UpToYear", jsonName: "UpToYear", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 2200, gte: 2025 } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetPublicHolidaysRequest>): GetPublicHolidaysRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.CountryCode = "";
|
|
message.UpToYear = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetPublicHolidaysRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPublicHolidaysRequest): GetPublicHolidaysRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string CountryCode */ 1:
|
|
message.CountryCode = reader.string();
|
|
break;
|
|
case /* uint32 UpToYear */ 2:
|
|
message.UpToYear = reader.uint32();
|
|
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: GetPublicHolidaysRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string CountryCode = 1; */
|
|
if (message.CountryCode !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.CountryCode);
|
|
/* uint32 UpToYear = 2; */
|
|
if (message.UpToYear !== 0)
|
|
writer.tag(2, WireType.Varint).uint32(message.UpToYear);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetPublicHolidaysRequest
|
|
*/
|
|
export const GetPublicHolidaysRequest = new GetPublicHolidaysRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetPublicHolidaysResponse$Type extends MessageType<GetPublicHolidaysResponse> {
|
|
constructor() {
|
|
super("api.GetPublicHolidaysResponse", [
|
|
{ no: 1, name: "Holidays", kind: "message", localName: "Holidays", jsonName: "Holidays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetPublicHolidaysResponse>): GetPublicHolidaysResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Holidays = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetPublicHolidaysResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPublicHolidaysResponse): GetPublicHolidaysResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.ExceptionalClosure Holidays */ 1:
|
|
message.Holidays.push(ExceptionalClosure.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: GetPublicHolidaysResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.ExceptionalClosure Holidays = 1; */
|
|
for (let i = 0; i < message.Holidays.length; i++)
|
|
ExceptionalClosure.internalBinaryWrite(message.Holidays[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.GetPublicHolidaysResponse
|
|
*/
|
|
export const GetPublicHolidaysResponse = new GetPublicHolidaysResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ComputeSLAPeriodOnOrganisationRequest$Type extends MessageType<ComputeSLAPeriodOnOrganisationRequest> {
|
|
constructor() {
|
|
super("api.ComputeSLAPeriodOnOrganisationRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "minPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period },
|
|
{ no: 4, name: "maxPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period },
|
|
{ no: 5, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 6, name: "LimitSearchTime", kind: "scalar", localName: "LimitSearchTime", jsonName: "LimitSearchTime", T: 9 /*ScalarType.STRING*/ }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "StartSearchTime"] } } });
|
|
}
|
|
create(value?: PartialMessage<ComputeSLAPeriodOnOrganisationRequest>): ComputeSLAPeriodOnOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.minPeriods = [];
|
|
message.maxPeriods = [];
|
|
message.StartSearchTime = "";
|
|
message.LimitSearchTime = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ComputeSLAPeriodOnOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeSLAPeriodOnOrganisationRequest): ComputeSLAPeriodOnOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.RequestOrganisationHeader Header */ 1:
|
|
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
break;
|
|
case /* string ID */ 2:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* repeated api.Period minPeriods */ 3:
|
|
message.minPeriods.push(Period.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.Period maxPeriods */ 4:
|
|
message.maxPeriods.push(Period.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string StartSearchTime */ 5:
|
|
message.StartSearchTime = reader.string();
|
|
break;
|
|
case /* string LimitSearchTime */ 6:
|
|
message.LimitSearchTime = 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: ComputeSLAPeriodOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestOrganisationHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
/* repeated api.Period minPeriods = 3; */
|
|
for (let i = 0; i < message.minPeriods.length; i++)
|
|
Period.internalBinaryWrite(message.minPeriods[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.Period maxPeriods = 4; */
|
|
for (let i = 0; i < message.maxPeriods.length; i++)
|
|
Period.internalBinaryWrite(message.maxPeriods[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
/* string StartSearchTime = 5; */
|
|
if (message.StartSearchTime !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.StartSearchTime);
|
|
/* string LimitSearchTime = 6; */
|
|
if (message.LimitSearchTime !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.LimitSearchTime);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ComputeSLAPeriodOnOrganisationRequest
|
|
*/
|
|
export const ComputeSLAPeriodOnOrganisationRequest = new ComputeSLAPeriodOnOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOnSiteRequest$Type extends MessageType<CreateOnSiteRequest> {
|
|
constructor() {
|
|
super("api.CreateOnSiteRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
|
|
{ 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", "Name"] } } });
|
|
}
|
|
create(value?: PartialMessage<CreateOnSiteRequest>): CreateOnSiteRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.Description = "";
|
|
message.ExceptionalClosures = [];
|
|
message.WorkTimeDays = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOnSiteRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOnSiteRequest): CreateOnSiteRequest {
|
|
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 Name */ 2:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 3:
|
|
message.Description = reader.string();
|
|
break;
|
|
case /* repeated api.ExceptionalClosure ExceptionalClosures */ 4:
|
|
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.WorkTimeDay WorkTimeDays */ 7:
|
|
message.WorkTimeDays.push(WorkTimeDay.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: CreateOnSiteRequest, 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 Name = 2; */
|
|
if (message.Name !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 3; */
|
|
if (message.Description !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Description);
|
|
/* repeated api.ExceptionalClosure ExceptionalClosures = 4; */
|
|
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; */
|
|
for (let i = 0; i < message.WorkTimeDays.length; i++)
|
|
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, 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.CreateOnSiteRequest
|
|
*/
|
|
export const CreateOnSiteRequest = new CreateOnSiteRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateOnSiteResponse$Type extends MessageType<CreateOnSiteResponse> {
|
|
constructor() {
|
|
super("api.CreateOnSiteResponse", [
|
|
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateOnSiteResponse>): CreateOnSiteResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateOnSiteResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateOnSiteResponse): CreateOnSiteResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Calendar Calendar */ 1:
|
|
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
|
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: CreateOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Calendar Calendar = 1; */
|
|
if (message.Calendar)
|
|
Calendar.internalBinaryWrite(message.Calendar, 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.CreateOnSiteResponse
|
|
*/
|
|
export const CreateOnSiteResponse = new CreateOnSiteResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOnSiteRequest$Type extends MessageType<GetOnSiteRequest> {
|
|
constructor() {
|
|
super("api.GetOnSiteRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetOnSiteRequest>): GetOnSiteRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOnSiteRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOnSiteRequest): GetOnSiteRequest {
|
|
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 ID */ 2:
|
|
message.ID = 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: GetOnSiteRequest, 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 ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetOnSiteRequest
|
|
*/
|
|
export const GetOnSiteRequest = new GetOnSiteRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetOnSiteResponse$Type extends MessageType<GetOnSiteResponse> {
|
|
constructor() {
|
|
super("api.GetOnSiteResponse", [
|
|
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetOnSiteResponse>): GetOnSiteResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetOnSiteResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOnSiteResponse): GetOnSiteResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Calendar Calendar */ 1:
|
|
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
|
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: GetOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Calendar Calendar = 1; */
|
|
if (message.Calendar)
|
|
Calendar.internalBinaryWrite(message.Calendar, 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.GetOnSiteResponse
|
|
*/
|
|
export const GetOnSiteResponse = new GetOnSiteResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOnSiteRequest$Type extends MessageType<ListOnSiteRequest> {
|
|
constructor() {
|
|
super("api.ListOnSiteRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<ListOnSiteRequest>): ListOnSiteRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOnSiteRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOnSiteRequest): ListOnSiteRequest {
|
|
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;
|
|
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: ListOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
if (message.Header)
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, 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.ListOnSiteRequest
|
|
*/
|
|
export const ListOnSiteRequest = new ListOnSiteRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListOnSiteResponse$Type extends MessageType<ListOnSiteResponse> {
|
|
constructor() {
|
|
super("api.ListOnSiteResponse", [
|
|
{ no: 1, name: "Calendars", kind: "message", localName: "Calendars", jsonName: "Calendars", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Calendar }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListOnSiteResponse>): ListOnSiteResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Calendars = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListOnSiteResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOnSiteResponse): ListOnSiteResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Calendar Calendars */ 1:
|
|
message.Calendars.push(Calendar.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: ListOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Calendar Calendars = 1; */
|
|
for (let i = 0; i < message.Calendars.length; i++)
|
|
Calendar.internalBinaryWrite(message.Calendars[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.ListOnSiteResponse
|
|
*/
|
|
export const ListOnSiteResponse = new ListOnSiteResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOnSiteRequest$Type extends MessageType<UpdateOnSiteRequest> {
|
|
constructor() {
|
|
super("api.UpdateOnSiteRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ 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: "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"] } } });
|
|
}
|
|
create(value?: PartialMessage<UpdateOnSiteRequest>): UpdateOnSiteRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.Name = "";
|
|
message.Description = "";
|
|
message.ExceptionalClosures = [];
|
|
message.WorkTimeDays = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOnSiteRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOnSiteRequest): UpdateOnSiteRequest {
|
|
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 ID */ 2:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* string Name */ 3:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Description */ 4:
|
|
message.Description = reader.string();
|
|
break;
|
|
case /* repeated api.ExceptionalClosure ExceptionalClosures */ 5:
|
|
message.ExceptionalClosures.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.WorkTimeDay WorkTimeDays */ 7:
|
|
message.WorkTimeDays.push(WorkTimeDay.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: UpdateOnSiteRequest, 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 ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
/* string Name = 3; */
|
|
if (message.Name !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Name);
|
|
/* string Description = 4; */
|
|
if (message.Description !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Description);
|
|
/* repeated api.ExceptionalClosure ExceptionalClosures = 5; */
|
|
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; */
|
|
for (let i = 0; i < message.WorkTimeDays.length; i++)
|
|
WorkTimeDay.internalBinaryWrite(message.WorkTimeDays[i], writer.tag(7, 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.UpdateOnSiteRequest
|
|
*/
|
|
export const UpdateOnSiteRequest = new UpdateOnSiteRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateOnSiteResponse$Type extends MessageType<UpdateOnSiteResponse> {
|
|
constructor() {
|
|
super("api.UpdateOnSiteResponse", [
|
|
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateOnSiteResponse>): UpdateOnSiteResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateOnSiteResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateOnSiteResponse): UpdateOnSiteResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Calendar Calendar */ 1:
|
|
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
|
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: UpdateOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Calendar Calendar = 1; */
|
|
if (message.Calendar)
|
|
Calendar.internalBinaryWrite(message.Calendar, 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.UpdateOnSiteResponse
|
|
*/
|
|
export const UpdateOnSiteResponse = new UpdateOnSiteResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOnSiteRequest$Type extends MessageType<DeleteOnSiteRequest> {
|
|
constructor() {
|
|
super("api.DeleteOnSiteRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteOnSiteRequest>): DeleteOnSiteRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOnSiteRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOnSiteRequest): DeleteOnSiteRequest {
|
|
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 ID */ 2:
|
|
message.ID = 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: DeleteOnSiteRequest, 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 ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOnSiteRequest
|
|
*/
|
|
export const DeleteOnSiteRequest = new DeleteOnSiteRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteOnSiteResponse$Type extends MessageType<DeleteOnSiteResponse> {
|
|
constructor() {
|
|
super("api.DeleteOnSiteResponse", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteOnSiteResponse>): DeleteOnSiteResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteOnSiteResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteOnSiteResponse): DeleteOnSiteResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
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: DeleteOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteOnSiteResponse
|
|
*/
|
|
export const DeleteOnSiteResponse = new DeleteOnSiteResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ComputeSLAPeriodOnSiteRequest$Type extends MessageType<ComputeSLAPeriodOnSiteRequest> {
|
|
constructor() {
|
|
super("api.ComputeSLAPeriodOnSiteRequest", [
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 3, name: "minPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period },
|
|
{ no: 4, name: "maxPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period },
|
|
{ no: 5, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 6, name: "LimitSearchTime", kind: "scalar", localName: "LimitSearchTime", jsonName: "LimitSearchTime", T: 9 /*ScalarType.STRING*/ }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "StartSearchTime"] } } });
|
|
}
|
|
create(value?: PartialMessage<ComputeSLAPeriodOnSiteRequest>): ComputeSLAPeriodOnSiteRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.minPeriods = [];
|
|
message.maxPeriods = [];
|
|
message.StartSearchTime = "";
|
|
message.LimitSearchTime = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ComputeSLAPeriodOnSiteRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeSLAPeriodOnSiteRequest): ComputeSLAPeriodOnSiteRequest {
|
|
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 ID */ 2:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* repeated api.Period minPeriods */ 3:
|
|
message.minPeriods.push(Period.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.Period maxPeriods */ 4:
|
|
message.maxPeriods.push(Period.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string StartSearchTime */ 5:
|
|
message.StartSearchTime = reader.string();
|
|
break;
|
|
case /* string LimitSearchTime */ 6:
|
|
message.LimitSearchTime = 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: ComputeSLAPeriodOnSiteRequest, 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 ID = 2; */
|
|
if (message.ID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
|
/* repeated api.Period minPeriods = 3; */
|
|
for (let i = 0; i < message.minPeriods.length; i++)
|
|
Period.internalBinaryWrite(message.minPeriods[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.Period maxPeriods = 4; */
|
|
for (let i = 0; i < message.maxPeriods.length; i++)
|
|
Period.internalBinaryWrite(message.maxPeriods[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
/* string StartSearchTime = 5; */
|
|
if (message.StartSearchTime !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.StartSearchTime);
|
|
/* string LimitSearchTime = 6; */
|
|
if (message.LimitSearchTime !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.LimitSearchTime);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ComputeSLAPeriodOnSiteRequest
|
|
*/
|
|
export const ComputeSLAPeriodOnSiteRequest = new ComputeSLAPeriodOnSiteRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ComputeSLAPeriodResponse$Type extends MessageType<ComputeSLAPeriodResponse> {
|
|
constructor() {
|
|
super("api.ComputeSLAPeriodResponse", [
|
|
{ no: 1, name: "StartSLA", kind: "scalar", localName: "StartSLA", jsonName: "StartSLA", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "EndSLA", kind: "scalar", localName: "EndSLA", jsonName: "EndSLA", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ComputeSLAPeriodResponse>): ComputeSLAPeriodResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.StartSLA = "";
|
|
message.EndSLA = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ComputeSLAPeriodResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeSLAPeriodResponse): ComputeSLAPeriodResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string StartSLA */ 1:
|
|
message.StartSLA = reader.string();
|
|
break;
|
|
case /* string EndSLA */ 2:
|
|
message.EndSLA = 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: ComputeSLAPeriodResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string StartSLA = 1; */
|
|
if (message.StartSLA !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.StartSLA);
|
|
/* string EndSLA = 2; */
|
|
if (message.EndSLA !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.EndSLA);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ComputeSLAPeriodResponse
|
|
*/
|
|
export const ComputeSLAPeriodResponse = new ComputeSLAPeriodResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllForOrganisationRequest$Type extends MessageType<DeleteAllForOrganisationRequest> {
|
|
constructor() {
|
|
super("api.DeleteAllForOrganisationRequest", [
|
|
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteAllForOrganisationRequest>): DeleteAllForOrganisationRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrganisationID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllForOrganisationRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllForOrganisationRequest): DeleteAllForOrganisationRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrganisationID */ 1:
|
|
message.OrganisationID = 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: DeleteAllForOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrganisationID = 1; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllForOrganisationRequest
|
|
*/
|
|
export const DeleteAllForOrganisationRequest = new DeleteAllForOrganisationRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllForOrganisationResponse$Type extends MessageType<DeleteAllForOrganisationResponse> {
|
|
constructor() {
|
|
super("api.DeleteAllForOrganisationResponse", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteAllForOrganisationResponse>): DeleteAllForOrganisationResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllForOrganisationResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllForOrganisationResponse): DeleteAllForOrganisationResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
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: DeleteAllForOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllForOrganisationResponse
|
|
*/
|
|
export const DeleteAllForOrganisationResponse = new DeleteAllForOrganisationResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllForProjectRequest$Type extends MessageType<DeleteAllForProjectRequest> {
|
|
constructor() {
|
|
super("api.DeleteAllForProjectRequest", [
|
|
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteAllForProjectRequest>): DeleteAllForProjectRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ProjectID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllForProjectRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllForProjectRequest): DeleteAllForProjectRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ProjectID */ 1:
|
|
message.ProjectID = 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: DeleteAllForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ProjectID = 1; */
|
|
if (message.ProjectID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllForProjectRequest
|
|
*/
|
|
export const DeleteAllForProjectRequest = new DeleteAllForProjectRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllForProjectResponse$Type extends MessageType<DeleteAllForProjectResponse> {
|
|
constructor() {
|
|
super("api.DeleteAllForProjectResponse", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteAllForProjectResponse>): DeleteAllForProjectResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllForProjectResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllForProjectResponse): DeleteAllForProjectResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
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: DeleteAllForProjectResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllForProjectResponse
|
|
*/
|
|
export const DeleteAllForProjectResponse = new DeleteAllForProjectResponse$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.CalendarService
|
|
*/
|
|
export const CalendarService = new ServiceType("api.CalendarService", [
|
|
{ name: "CreateOnOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Create a Calendar for the organisation" }, "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateOnOrganisationRequest, O: CreateOnOrganisationResponse },
|
|
{ name: "GetOnOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Get a Calendar at organisation level" }, "api.rscType": "Organisation", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: GetOnOrganisationRequest, O: GetOnOrganisationResponse },
|
|
{ name: "ListOnOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "List Calendar of an organisation" }, "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ListOnOrganisationRequest, O: ListOnOrganisationResponse },
|
|
{ name: "UpdateOnOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Update a Calendar at organisation level" }, "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateOnOrganisationRequest, O: UpdateOnOrganisationResponse },
|
|
{ name: "DeleteOnOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Delete a Calendar at organisation level" }, "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteOnOrganisationRequest, O: DeleteOnOrganisationResponse },
|
|
{ name: "DeleteAllForOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Delete a Calendar for all organisations" }, "api.rscType": "Platform", "api.roles": "Platform.Calendar-Deletion", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAllForOrganisationRequest, O: DeleteAllForOrganisationResponse },
|
|
{ name: "DeleteAllForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Delete a Calendar for all projects" }, "api.rscType": "Platform", "api.roles": "Platform.Calendar-Deletion", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAllForProjectRequest, O: DeleteAllForProjectResponse },
|
|
{ name: "ComputeSLAPeriodOnOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Compute the ETA according to a Period and the Calendar at organisation level" }, "api.rscType": "Organisation", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ComputeSLAPeriodOnOrganisationRequest, O: ComputeSLAPeriodResponse },
|
|
{ name: "CreateOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Create a Calendar for the site" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateOnSiteRequest, O: CreateOnSiteResponse },
|
|
{ name: "GetOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Get a Calendar at site level" }, "api.rscType": "Project", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: GetOnSiteRequest, O: GetOnSiteResponse },
|
|
{ name: "ListOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "List Calendar of an site" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ListOnSiteRequest, O: ListOnSiteResponse },
|
|
{ name: "UpdateOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Update a Calendar at site level" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateOnSiteRequest, O: UpdateOnSiteResponse },
|
|
{ name: "DeleteOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Delete a Calendar at site level" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, 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" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, 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" }, "api.rscType": "Project", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ComputeSLAPeriodOnSiteRequest, O: ComputeSLAPeriodResponse }
|
|
], { "api.k8sService": "core-calendar" });
|