You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -15,7 +15,6 @@ import { AppointmentStatusStruct } from "./collabShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
import { EntityID } from "./shared";
|
||||
@@ -60,12 +59,6 @@ export interface AppointmentPayload {
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 2
|
||||
*/
|
||||
Commissions: Commission[];
|
||||
/**
|
||||
* Cumulative quantity for all the commissions
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit QuantitiesByUnits = 3
|
||||
*/
|
||||
QuantitiesByUnits: QuantityByUnit[];
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
@@ -199,7 +192,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
super("api.AppointmentPayload", [
|
||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
{ no: 3, name: "QuantitiesByUnits", kind: "message", localName: "QuantitiesByUnits", jsonName: "QuantitiesByUnits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
|
||||
{ no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
@@ -215,7 +207,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.QuantitiesByUnits = [];
|
||||
message.Segmentations = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
@@ -238,9 +229,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit QuantitiesByUnits */ 3:
|
||||
message.QuantitiesByUnits.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Segmentation Segmentations */ 4:
|
||||
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
@@ -286,9 +274,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByUnit QuantitiesByUnits = 3; */
|
||||
for (let i = 0; i < message.QuantitiesByUnits.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.QuantitiesByUnits[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Segmentation Segmentations = 4; */
|
||||
for (let i = 0; i < message.Segmentations.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
@@ -19,7 +19,6 @@ import { MetadataElement } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
//
|
||||
@@ -44,12 +43,6 @@ export interface AppointmentCreatedPayload {
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 2
|
||||
*/
|
||||
Commissions: Commission[];
|
||||
/**
|
||||
* Cumulative quantity for all the commissions
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit QuantitiesByUnits = 3
|
||||
*/
|
||||
QuantitiesByUnits: QuantityByUnit[];
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
@@ -784,7 +777,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
super("api.AppointmentCreatedPayload", [
|
||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "QuantitiesByUnits", kind: "message", localName: "QuantitiesByUnits", jsonName: "QuantitiesByUnits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
@@ -798,7 +790,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.QuantitiesByUnits = [];
|
||||
message.Segmentations = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
@@ -820,9 +811,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit QuantitiesByUnits */ 3:
|
||||
message.QuantitiesByUnits.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Segmentation Segmentations */ 4:
|
||||
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
@@ -862,9 +850,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByUnit QuantitiesByUnits = 3; */
|
||||
for (let i = 0; i < message.QuantitiesByUnits.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.QuantitiesByUnits[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Segmentation Segmentations = 4; */
|
||||
for (let i = 0; i < message.Segmentations.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { CalendarService } from "./calendar";
|
||||
import type { ImportClassicHolidaysOnSiteResponse } from "./calendar";
|
||||
import type { ImportClassicHolidaysOnSiteRequest } from "./calendar";
|
||||
import type { GetPublicHolidaysResponse } from "./calendar";
|
||||
import type { GetPublicHolidaysRequest } from "./calendar";
|
||||
import type { DeleteOnSiteResponse } from "./calendar";
|
||||
import type { DeleteOnSiteRequest } from "./calendar";
|
||||
import type { UpdateOnSiteResponse } from "./calendar";
|
||||
@@ -16,8 +16,6 @@ import type { GetOnSiteResponse } from "./calendar";
|
||||
import type { GetOnSiteRequest } from "./calendar";
|
||||
import type { CreateOnSiteResponse } from "./calendar";
|
||||
import type { CreateOnSiteRequest } from "./calendar";
|
||||
import type { ImportClassicHolidaysOnOrganisationResponse } from "./calendar";
|
||||
import type { ImportClassicHolidaysOnOrganisationRequest } from "./calendar";
|
||||
import type { DeleteOnOrganisationResponse } from "./calendar";
|
||||
import type { DeleteOnOrganisationRequest } from "./calendar";
|
||||
import type { UpdateOnOrganisationResponse } from "./calendar";
|
||||
@@ -55,10 +53,6 @@ export interface ICalendarServiceClient {
|
||||
* @generated from protobuf rpc: DeleteOnOrganisation
|
||||
*/
|
||||
deleteOnOrganisation(input: DeleteOnOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteOnOrganisationRequest, DeleteOnOrganisationResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ImportClassicHolidaysOnOrganisation
|
||||
*/
|
||||
importClassicHolidaysOnOrganisation(input: ImportClassicHolidaysOnOrganisationRequest, options?: RpcOptions): UnaryCall<ImportClassicHolidaysOnOrganisationRequest, ImportClassicHolidaysOnOrganisationResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateOnSite
|
||||
*/
|
||||
@@ -80,9 +74,9 @@ export interface ICalendarServiceClient {
|
||||
*/
|
||||
deleteOnSite(input: DeleteOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteOnSiteRequest, DeleteOnSiteResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ImportClassicHolidaysOnSite
|
||||
* @generated from protobuf rpc: GetPublicHolidays
|
||||
*/
|
||||
importClassicHolidaysOnSite(input: ImportClassicHolidaysOnSiteRequest, options?: RpcOptions): UnaryCall<ImportClassicHolidaysOnSiteRequest, ImportClassicHolidaysOnSiteResponse>;
|
||||
getPublicHolidays(input: GetPublicHolidaysRequest, options?: RpcOptions): UnaryCall<GetPublicHolidaysRequest, GetPublicHolidaysResponse>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.CalendarService
|
||||
@@ -128,53 +122,46 @@ export class CalendarServiceClient implements ICalendarServiceClient, ServiceInf
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteOnOrganisationRequest, DeleteOnOrganisationResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ImportClassicHolidaysOnOrganisation
|
||||
*/
|
||||
importClassicHolidaysOnOrganisation(input: ImportClassicHolidaysOnOrganisationRequest, options?: RpcOptions): UnaryCall<ImportClassicHolidaysOnOrganisationRequest, ImportClassicHolidaysOnOrganisationResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ImportClassicHolidaysOnOrganisationRequest, ImportClassicHolidaysOnOrganisationResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateOnSite
|
||||
*/
|
||||
createOnSite(input: CreateOnSiteRequest, options?: RpcOptions): UnaryCall<CreateOnSiteRequest, CreateOnSiteResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateOnSiteRequest, CreateOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetOnSite
|
||||
*/
|
||||
getOnSite(input: GetOnSiteRequest, options?: RpcOptions): UnaryCall<GetOnSiteRequest, GetOnSiteResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetOnSiteRequest, GetOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListOnSite
|
||||
*/
|
||||
listOnSite(input: ListOnSiteRequest, options?: RpcOptions): UnaryCall<ListOnSiteRequest, ListOnSiteResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListOnSiteRequest, ListOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateOnSite
|
||||
*/
|
||||
updateOnSite(input: UpdateOnSiteRequest, options?: RpcOptions): UnaryCall<UpdateOnSiteRequest, UpdateOnSiteResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateOnSiteRequest, UpdateOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteOnSite
|
||||
*/
|
||||
deleteOnSite(input: DeleteOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteOnSiteRequest, DeleteOnSiteResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteOnSiteRequest, DeleteOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ImportClassicHolidaysOnSite
|
||||
* @generated from protobuf rpc: GetPublicHolidays
|
||||
*/
|
||||
importClassicHolidaysOnSite(input: ImportClassicHolidaysOnSiteRequest, options?: RpcOptions): UnaryCall<ImportClassicHolidaysOnSiteRequest, ImportClassicHolidaysOnSiteResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ImportClassicHolidaysOnSiteRequest, ImportClassicHolidaysOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
getPublicHolidays(input: GetPublicHolidaysRequest, options?: RpcOptions): UnaryCall<GetPublicHolidaysRequest, GetPublicHolidaysResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetPublicHolidaysRequest, GetPublicHolidaysResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
253
calendar.ts
253
calendar.ts
@@ -289,32 +289,36 @@ export interface DeleteOnOrganisationRequest {
|
||||
export interface DeleteOnOrganisationResponse {
|
||||
}
|
||||
/**
|
||||
* ImportClassicHolidays on a calendar at organisation level
|
||||
* GetPublicHolidays request
|
||||
*
|
||||
* @generated from protobuf message api.ImportClassicHolidaysOnOrganisationRequest
|
||||
* @generated from protobuf message api.GetPublicHolidaysRequest
|
||||
*/
|
||||
export interface ImportClassicHolidaysOnOrganisationRequest {
|
||||
export interface GetPublicHolidaysRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.Calendar Calendar = 1
|
||||
* 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
|
||||
*/
|
||||
Calendar?: Calendar;
|
||||
CountryCode: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Country = 2
|
||||
* Year up to which generate the public holidays (from 2025 to 2199)
|
||||
*
|
||||
* @generated from protobuf field: uint32 UpToYear = 2
|
||||
*/
|
||||
Country: string;
|
||||
/**
|
||||
* @generated from protobuf field: uint32 NumberOfYears = 3
|
||||
*/
|
||||
NumberOfYears: number;
|
||||
UpToYear: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ImportClassicHolidaysOnOrganisationResponse
|
||||
* GetPublicHolidays response
|
||||
*
|
||||
* @generated from protobuf message api.GetPublicHolidaysResponse
|
||||
*/
|
||||
export interface ImportClassicHolidaysOnOrganisationResponse {
|
||||
export interface GetPublicHolidaysResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.Calendar Calendar = 1
|
||||
* List of public holidays generated
|
||||
*
|
||||
* @generated from protobuf field: repeated api.ExceptionalClosure Holidays = 1
|
||||
*/
|
||||
Calendar?: Calendar;
|
||||
Holidays: ExceptionalClosure[];
|
||||
}
|
||||
/**
|
||||
* Clone a calendar at organisation level
|
||||
@@ -510,34 +514,6 @@ export interface DeleteOnSiteRequest {
|
||||
*/
|
||||
export interface DeleteOnSiteResponse {
|
||||
}
|
||||
/**
|
||||
* ImportClassicHolidays on a calendar at site level
|
||||
*
|
||||
* @generated from protobuf message api.ImportClassicHolidaysOnSiteRequest
|
||||
*/
|
||||
export interface ImportClassicHolidaysOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.Calendar Calendar = 1
|
||||
*/
|
||||
Calendar?: Calendar;
|
||||
/**
|
||||
* @generated from protobuf field: string Country = 2
|
||||
*/
|
||||
Country: string;
|
||||
/**
|
||||
* @generated from protobuf field: uint32 NumberOfYears = 3
|
||||
*/
|
||||
NumberOfYears: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ImportClassicHolidaysOnSiteResponse
|
||||
*/
|
||||
export interface ImportClassicHolidaysOnSiteResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.Calendar Calendar = 1
|
||||
*/
|
||||
Calendar?: Calendar;
|
||||
}
|
||||
/**
|
||||
* Clone a calendar at site level
|
||||
*
|
||||
@@ -1359,35 +1335,31 @@ class DeleteOnOrganisationResponse$Type extends MessageType<DeleteOnOrganisation
|
||||
*/
|
||||
export const DeleteOnOrganisationResponse = new DeleteOnOrganisationResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ImportClassicHolidaysOnOrganisationRequest$Type extends MessageType<ImportClassicHolidaysOnOrganisationRequest> {
|
||||
class GetPublicHolidaysRequest$Type extends MessageType<GetPublicHolidaysRequest> {
|
||||
constructor() {
|
||||
super("api.ImportClassicHolidaysOnOrganisationRequest", [
|
||||
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Country", kind: "scalar", localName: "Country", jsonName: "Country", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Country Code in <a href='https://en.wikipedia.org/wiki/ISO_3166-1'>ISO_3166-1</a> format", example: "[\"FR\", \"FRA\", \"250\"]" } } },
|
||||
{ no: 3, name: "NumberOfYears", kind: "scalar", localName: "NumberOfYears", jsonName: "NumberOfYears", T: 13 /*ScalarType.UINT32*/ }
|
||||
super("api.GetPublicHolidaysRequest", [
|
||||
{ no: 1, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"FR\"]" } } },
|
||||
{ no: 2, name: "UpToYear", kind: "scalar", localName: "UpToYear", jsonName: "UpToYear", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 2200, gte: 2025 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"2050\"]" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ImportClassicHolidaysOnOrganisationRequest>): ImportClassicHolidaysOnOrganisationRequest {
|
||||
create(value?: PartialMessage<GetPublicHolidaysRequest>): GetPublicHolidaysRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Country = "";
|
||||
message.NumberOfYears = 0;
|
||||
message.CountryCode = "";
|
||||
message.UpToYear = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ImportClassicHolidaysOnOrganisationRequest>(this, message, value);
|
||||
reflectionMergePartial<GetPublicHolidaysRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportClassicHolidaysOnOrganisationRequest): ImportClassicHolidaysOnOrganisationRequest {
|
||||
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 /* api.Calendar Calendar */ 1:
|
||||
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
||||
case /* string CountryCode */ 1:
|
||||
message.CountryCode = reader.string();
|
||||
break;
|
||||
case /* string Country */ 2:
|
||||
message.Country = reader.string();
|
||||
break;
|
||||
case /* uint32 NumberOfYears */ 3:
|
||||
message.NumberOfYears = reader.uint32();
|
||||
case /* uint32 UpToYear */ 2:
|
||||
message.UpToYear = reader.uint32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1400,16 +1372,13 @@ class ImportClassicHolidaysOnOrganisationRequest$Type extends MessageType<Import
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ImportClassicHolidaysOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Calendar Calendar = 1; */
|
||||
if (message.Calendar)
|
||||
Calendar.internalBinaryWrite(message.Calendar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Country = 2; */
|
||||
if (message.Country !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Country);
|
||||
/* uint32 NumberOfYears = 3; */
|
||||
if (message.NumberOfYears !== 0)
|
||||
writer.tag(3, WireType.Varint).uint32(message.NumberOfYears);
|
||||
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);
|
||||
@@ -1417,29 +1386,30 @@ class ImportClassicHolidaysOnOrganisationRequest$Type extends MessageType<Import
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ImportClassicHolidaysOnOrganisationRequest
|
||||
* @generated MessageType for protobuf message api.GetPublicHolidaysRequest
|
||||
*/
|
||||
export const ImportClassicHolidaysOnOrganisationRequest = new ImportClassicHolidaysOnOrganisationRequest$Type();
|
||||
export const GetPublicHolidaysRequest = new GetPublicHolidaysRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ImportClassicHolidaysOnOrganisationResponse$Type extends MessageType<ImportClassicHolidaysOnOrganisationResponse> {
|
||||
class GetPublicHolidaysResponse$Type extends MessageType<GetPublicHolidaysResponse> {
|
||||
constructor() {
|
||||
super("api.ImportClassicHolidaysOnOrganisationResponse", [
|
||||
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
||||
super("api.GetPublicHolidaysResponse", [
|
||||
{ no: 1, name: "Holidays", kind: "message", localName: "Holidays", jsonName: "Holidays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ImportClassicHolidaysOnOrganisationResponse>): ImportClassicHolidaysOnOrganisationResponse {
|
||||
create(value?: PartialMessage<GetPublicHolidaysResponse>): GetPublicHolidaysResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Holidays = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ImportClassicHolidaysOnOrganisationResponse>(this, message, value);
|
||||
reflectionMergePartial<GetPublicHolidaysResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportClassicHolidaysOnOrganisationResponse): ImportClassicHolidaysOnOrganisationResponse {
|
||||
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 /* api.Calendar Calendar */ 1:
|
||||
message.Calendar = Calendar.internalBinaryRead(reader, reader.uint32(), options, message.Calendar);
|
||||
case /* repeated api.ExceptionalClosure Holidays */ 1:
|
||||
message.Holidays.push(ExceptionalClosure.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1452,10 +1422,10 @@ class ImportClassicHolidaysOnOrganisationResponse$Type extends MessageType<Impor
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ImportClassicHolidaysOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Calendar Calendar = 1; */
|
||||
if (message.Calendar)
|
||||
Calendar.internalBinaryWrite(message.Calendar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
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);
|
||||
@@ -1463,9 +1433,9 @@ class ImportClassicHolidaysOnOrganisationResponse$Type extends MessageType<Impor
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ImportClassicHolidaysOnOrganisationResponse
|
||||
* @generated MessageType for protobuf message api.GetPublicHolidaysResponse
|
||||
*/
|
||||
export const ImportClassicHolidaysOnOrganisationResponse = new ImportClassicHolidaysOnOrganisationResponse$Type();
|
||||
export const GetPublicHolidaysResponse = new GetPublicHolidaysResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CloneOnOrganisationRequest$Type extends MessageType<CloneOnOrganisationRequest> {
|
||||
constructor() {
|
||||
@@ -2117,114 +2087,6 @@ class DeleteOnSiteResponse$Type extends MessageType<DeleteOnSiteResponse> {
|
||||
*/
|
||||
export const DeleteOnSiteResponse = new DeleteOnSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ImportClassicHolidaysOnSiteRequest$Type extends MessageType<ImportClassicHolidaysOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.ImportClassicHolidaysOnSiteRequest", [
|
||||
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Country", kind: "scalar", localName: "Country", jsonName: "Country", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Country Code in <a href='https://en.wikipedia.org/wiki/ISO_3166-1'>ISO_3166-1</a> format", example: "[\"FR\", \"FRA\", \"250\"]" } } },
|
||||
{ no: 3, name: "NumberOfYears", kind: "scalar", localName: "NumberOfYears", jsonName: "NumberOfYears", T: 13 /*ScalarType.UINT32*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ImportClassicHolidaysOnSiteRequest>): ImportClassicHolidaysOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Country = "";
|
||||
message.NumberOfYears = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ImportClassicHolidaysOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportClassicHolidaysOnSiteRequest): ImportClassicHolidaysOnSiteRequest {
|
||||
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;
|
||||
case /* string Country */ 2:
|
||||
message.Country = reader.string();
|
||||
break;
|
||||
case /* uint32 NumberOfYears */ 3:
|
||||
message.NumberOfYears = 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: ImportClassicHolidaysOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Calendar Calendar = 1; */
|
||||
if (message.Calendar)
|
||||
Calendar.internalBinaryWrite(message.Calendar, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Country = 2; */
|
||||
if (message.Country !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Country);
|
||||
/* uint32 NumberOfYears = 3; */
|
||||
if (message.NumberOfYears !== 0)
|
||||
writer.tag(3, WireType.Varint).uint32(message.NumberOfYears);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ImportClassicHolidaysOnSiteRequest
|
||||
*/
|
||||
export const ImportClassicHolidaysOnSiteRequest = new ImportClassicHolidaysOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ImportClassicHolidaysOnSiteResponse$Type extends MessageType<ImportClassicHolidaysOnSiteResponse> {
|
||||
constructor() {
|
||||
super("api.ImportClassicHolidaysOnSiteResponse", [
|
||||
{ no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ImportClassicHolidaysOnSiteResponse>): ImportClassicHolidaysOnSiteResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ImportClassicHolidaysOnSiteResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportClassicHolidaysOnSiteResponse): ImportClassicHolidaysOnSiteResponse {
|
||||
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: ImportClassicHolidaysOnSiteResponse, 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.ImportClassicHolidaysOnSiteResponse
|
||||
*/
|
||||
export const ImportClassicHolidaysOnSiteResponse = new ImportClassicHolidaysOnSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CloneOnSiteRequest$Type extends MessageType<CloneOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.CloneOnSiteRequest", [
|
||||
@@ -2342,11 +2204,10 @@ export const CalendarService = new ServiceType("api.CalendarService", [
|
||||
{ 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": "slotbooking", "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": "slotbooking", "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": "slotbooking", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteOnOrganisationRequest, O: DeleteOnOrganisationResponse },
|
||||
{ name: "ImportClassicHolidaysOnOrganisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Add the classic holiday of a country for the years to come on a calendar at organisation level" }, "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "SDK" } }, I: ImportClassicHolidaysOnOrganisationRequest, O: ImportClassicHolidaysOnOrganisationResponse },
|
||||
{ name: "CreateOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Create a Calendar for the site" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "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": "Site", "api.roles": "", "api.moduleID": "slotbooking", "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": "Site", "api.roles": "", "api.moduleID": "slotbooking", "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": "Site", "api.roles": "", "api.moduleID": "slotbooking", "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": "Site", "api.roles": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteOnSiteRequest, O: DeleteOnSiteResponse },
|
||||
{ name: "ImportClassicHolidaysOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Calendar"], description: "Add the classic holiday of a country for the years to come on a calendar at site level" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "SDK" } }, I: ImportClassicHolidaysOnSiteRequest, O: ImportClassicHolidaysOnSiteResponse }
|
||||
{ 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": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPublicHolidaysRequest, O: GetPublicHolidaysResponse }
|
||||
], { "api.k8sService": "core-calendar" });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250605154906",
|
||||
"version": "1.11.0-SNAPSHOT-250606082038",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
2
site.ts
2
site.ts
@@ -1645,7 +1645,7 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
|
||||
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "QuantitiesByUnits", "Segmentations", "CarrierInformation"] } } });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "Segmentations", "CarrierInformation"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
|
||||
Reference in New Issue
Block a user