You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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 { ComputeETAPeriodOnSiteResponse } from "./calendar";
|
||||
import type { ComputeETAPeriodOnSiteRequest } from "./calendar";
|
||||
import type { ComputeSLAPeriodOnSiteResponse } from "./calendar";
|
||||
import type { ComputeSLAPeriodOnSiteRequest } from "./calendar";
|
||||
import type { GetPublicHolidaysResponse } from "./calendar";
|
||||
import type { GetPublicHolidaysRequest } from "./calendar";
|
||||
import type { DeleteOnSiteResponse } from "./calendar";
|
||||
@@ -18,8 +18,8 @@ import type { GetOnSiteResponse } from "./calendar";
|
||||
import type { GetOnSiteRequest } from "./calendar";
|
||||
import type { CreateOnSiteResponse } from "./calendar";
|
||||
import type { CreateOnSiteRequest } from "./calendar";
|
||||
import type { ComputeETAPeriodOnOrganisationResponse } from "./calendar";
|
||||
import type { ComputeETAPeriodOnOrganisationRequest } from "./calendar";
|
||||
import type { ComputeSLAPeriodOnOrganisationResponse } from "./calendar";
|
||||
import type { ComputeSLAPeriodOnOrganisationRequest } from "./calendar";
|
||||
import type { DeleteOnOrganisationResponse } from "./calendar";
|
||||
import type { DeleteOnOrganisationRequest } from "./calendar";
|
||||
import type { UpdateOnOrganisationResponse } from "./calendar";
|
||||
@@ -58,9 +58,9 @@ export interface ICalendarServiceClient {
|
||||
*/
|
||||
deleteOnOrganisation(input: DeleteOnOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteOnOrganisationRequest, DeleteOnOrganisationResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ComputeETAPeriodOnOrganisation
|
||||
* @generated from protobuf rpc: ComputeSLAPeriodOnOrganisation
|
||||
*/
|
||||
computeETAPeriodOnOrganisation(input: ComputeETAPeriodOnOrganisationRequest, options?: RpcOptions): UnaryCall<ComputeETAPeriodOnOrganisationRequest, ComputeETAPeriodOnOrganisationResponse>;
|
||||
computeSLAPeriodOnOrganisation(input: ComputeSLAPeriodOnOrganisationRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnOrganisationRequest, ComputeSLAPeriodOnOrganisationResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateOnSite
|
||||
*/
|
||||
@@ -86,9 +86,9 @@ export interface ICalendarServiceClient {
|
||||
*/
|
||||
getPublicHolidays(input: GetPublicHolidaysRequest, options?: RpcOptions): UnaryCall<GetPublicHolidaysRequest, GetPublicHolidaysResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ComputeETAPeriodOnSite
|
||||
* @generated from protobuf rpc: ComputeSLAPeriodOnSite
|
||||
*/
|
||||
computeETAPeriodOnSite(input: ComputeETAPeriodOnSiteRequest, options?: RpcOptions): UnaryCall<ComputeETAPeriodOnSiteRequest, ComputeETAPeriodOnSiteResponse>;
|
||||
computeSLAPeriodOnSite(input: ComputeSLAPeriodOnSiteRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodOnSiteResponse>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.CalendarService
|
||||
@@ -135,11 +135,11 @@ export class CalendarServiceClient implements ICalendarServiceClient, ServiceInf
|
||||
return stackIntercept<DeleteOnOrganisationRequest, DeleteOnOrganisationResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ComputeETAPeriodOnOrganisation
|
||||
* @generated from protobuf rpc: ComputeSLAPeriodOnOrganisation
|
||||
*/
|
||||
computeETAPeriodOnOrganisation(input: ComputeETAPeriodOnOrganisationRequest, options?: RpcOptions): UnaryCall<ComputeETAPeriodOnOrganisationRequest, ComputeETAPeriodOnOrganisationResponse> {
|
||||
computeSLAPeriodOnOrganisation(input: ComputeSLAPeriodOnOrganisationRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnOrganisationRequest, ComputeSLAPeriodOnOrganisationResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ComputeETAPeriodOnOrganisationRequest, ComputeETAPeriodOnOrganisationResponse>("unary", this._transport, method, opt, input);
|
||||
return stackIntercept<ComputeSLAPeriodOnOrganisationRequest, ComputeSLAPeriodOnOrganisationResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateOnSite
|
||||
@@ -184,10 +184,10 @@ export class CalendarServiceClient implements ICalendarServiceClient, ServiceInf
|
||||
return stackIntercept<GetPublicHolidaysRequest, GetPublicHolidaysResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ComputeETAPeriodOnSite
|
||||
* @generated from protobuf rpc: ComputeSLAPeriodOnSite
|
||||
*/
|
||||
computeETAPeriodOnSite(input: ComputeETAPeriodOnSiteRequest, options?: RpcOptions): UnaryCall<ComputeETAPeriodOnSiteRequest, ComputeETAPeriodOnSiteResponse> {
|
||||
computeSLAPeriodOnSite(input: ComputeSLAPeriodOnSiteRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodOnSiteResponse> {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ComputeETAPeriodOnSiteRequest, ComputeETAPeriodOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
return stackIntercept<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
230
calendar.ts
230
calendar.ts
@@ -322,11 +322,11 @@ export interface GetPublicHolidaysResponse {
|
||||
Holidays: ExceptionalClosure[];
|
||||
}
|
||||
/**
|
||||
* ComputeETAPeriodOnOrganisationRequest
|
||||
* ComputeSLAPeriodOnOrganisationRequest
|
||||
*
|
||||
* @generated from protobuf message api.ComputeETAPeriodOnOrganisationRequest
|
||||
* @generated from protobuf message api.ComputeSLAPeriodOnOrganisationRequest
|
||||
*/
|
||||
export interface ComputeETAPeriodOnOrganisationRequest {
|
||||
export interface ComputeSLAPeriodOnOrganisationRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
|
||||
*/
|
||||
@@ -336,22 +336,30 @@ export interface ComputeETAPeriodOnOrganisationRequest {
|
||||
*/
|
||||
ID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Period Period = 3
|
||||
* @generated from protobuf field: repeated api.Period minPeriods = 3
|
||||
*/
|
||||
Period?: Period;
|
||||
minPeriods: Period[];
|
||||
/**
|
||||
* @generated from protobuf field: string StartSearchTime = 4
|
||||
* @generated from protobuf field: repeated api.Period maxPeriods = 4
|
||||
*/
|
||||
maxPeriods: Period[];
|
||||
/**
|
||||
* @generated from protobuf field: string StartSearchTime = 5
|
||||
*/
|
||||
StartSearchTime: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ComputeETAPeriodOnOrganisationResponse
|
||||
* @generated from protobuf message api.ComputeSLAPeriodOnOrganisationResponse
|
||||
*/
|
||||
export interface ComputeETAPeriodOnOrganisationResponse {
|
||||
export interface ComputeSLAPeriodOnOrganisationResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string StartEta = 1
|
||||
* @generated from protobuf field: string StartSLA = 1
|
||||
*/
|
||||
StartEta: string;
|
||||
StartSLA: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EndSLA = 2
|
||||
*/
|
||||
EndSLA: string;
|
||||
}
|
||||
// //// API at Site level
|
||||
|
||||
@@ -514,11 +522,11 @@ export interface DeleteOnSiteRequest {
|
||||
export interface DeleteOnSiteResponse {
|
||||
}
|
||||
/**
|
||||
* ComputeETAPeriodOnSiteRequest
|
||||
* ComputeSLAPeriodOnSiteRequest
|
||||
*
|
||||
* @generated from protobuf message api.ComputeETAPeriodOnSiteRequest
|
||||
* @generated from protobuf message api.ComputeSLAPeriodOnSiteRequest
|
||||
*/
|
||||
export interface ComputeETAPeriodOnSiteRequest {
|
||||
export interface ComputeSLAPeriodOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
@@ -528,22 +536,30 @@ export interface ComputeETAPeriodOnSiteRequest {
|
||||
*/
|
||||
ID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Period Period = 3
|
||||
* @generated from protobuf field: repeated api.Period minPeriods = 3
|
||||
*/
|
||||
Period?: Period;
|
||||
minPeriods: Period[];
|
||||
/**
|
||||
* @generated from protobuf field: string StartSearchTime = 4
|
||||
* @generated from protobuf field: repeated api.Period maxPeriods = 4
|
||||
*/
|
||||
maxPeriods: Period[];
|
||||
/**
|
||||
* @generated from protobuf field: string StartSearchTime = 5
|
||||
*/
|
||||
StartSearchTime: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ComputeETAPeriodOnSiteResponse
|
||||
* @generated from protobuf message api.ComputeSLAPeriodOnSiteResponse
|
||||
*/
|
||||
export interface ComputeETAPeriodOnSiteResponse {
|
||||
export interface ComputeSLAPeriodOnSiteResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string StartEta = 1
|
||||
* @generated from protobuf field: string StartSLA = 1
|
||||
*/
|
||||
StartEta: string;
|
||||
StartSLA: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EndSLA = 2
|
||||
*/
|
||||
EndSLA: string;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class WorkTimeDay$Type extends MessageType<WorkTimeDay> {
|
||||
@@ -1434,24 +1450,27 @@ class GetPublicHolidaysResponse$Type extends MessageType<GetPublicHolidaysRespon
|
||||
*/
|
||||
export const GetPublicHolidaysResponse = new GetPublicHolidaysResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ComputeETAPeriodOnOrganisationRequest$Type extends MessageType<ComputeETAPeriodOnOrganisationRequest> {
|
||||
class ComputeSLAPeriodOnOrganisationRequest$Type extends MessageType<ComputeSLAPeriodOnOrganisationRequest> {
|
||||
constructor() {
|
||||
super("api.ComputeETAPeriodOnOrganisationRequest", [
|
||||
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: "Period", kind: "message", localName: "Period", jsonName: "Period", T: () => Period },
|
||||
{ no: 4, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Period", "StartSearchTime"] } } });
|
||||
{ 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*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "StartSearchTime"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ComputeETAPeriodOnOrganisationRequest>): ComputeETAPeriodOnOrganisationRequest {
|
||||
create(value?: PartialMessage<ComputeSLAPeriodOnOrganisationRequest>): ComputeSLAPeriodOnOrganisationRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ID = "";
|
||||
message.minPeriods = [];
|
||||
message.maxPeriods = [];
|
||||
message.StartSearchTime = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ComputeETAPeriodOnOrganisationRequest>(this, message, value);
|
||||
reflectionMergePartial<ComputeSLAPeriodOnOrganisationRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeETAPeriodOnOrganisationRequest): ComputeETAPeriodOnOrganisationRequest {
|
||||
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();
|
||||
@@ -1462,10 +1481,13 @@ class ComputeETAPeriodOnOrganisationRequest$Type extends MessageType<ComputeETAP
|
||||
case /* string ID */ 2:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* api.Period Period */ 3:
|
||||
message.Period = Period.internalBinaryRead(reader, reader.uint32(), options, message.Period);
|
||||
case /* repeated api.Period minPeriods */ 3:
|
||||
message.minPeriods.push(Period.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string StartSearchTime */ 4:
|
||||
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;
|
||||
default:
|
||||
@@ -1479,19 +1501,22 @@ class ComputeETAPeriodOnOrganisationRequest$Type extends MessageType<ComputeETAP
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ComputeETAPeriodOnOrganisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
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);
|
||||
/* api.Period Period = 3; */
|
||||
if (message.Period)
|
||||
Period.internalBinaryWrite(message.Period, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string StartSearchTime = 4; */
|
||||
/* 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(4, WireType.LengthDelimited).string(message.StartSearchTime);
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.StartSearchTime);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1499,30 +1524,35 @@ class ComputeETAPeriodOnOrganisationRequest$Type extends MessageType<ComputeETAP
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ComputeETAPeriodOnOrganisationRequest
|
||||
* @generated MessageType for protobuf message api.ComputeSLAPeriodOnOrganisationRequest
|
||||
*/
|
||||
export const ComputeETAPeriodOnOrganisationRequest = new ComputeETAPeriodOnOrganisationRequest$Type();
|
||||
export const ComputeSLAPeriodOnOrganisationRequest = new ComputeSLAPeriodOnOrganisationRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ComputeETAPeriodOnOrganisationResponse$Type extends MessageType<ComputeETAPeriodOnOrganisationResponse> {
|
||||
class ComputeSLAPeriodOnOrganisationResponse$Type extends MessageType<ComputeSLAPeriodOnOrganisationResponse> {
|
||||
constructor() {
|
||||
super("api.ComputeETAPeriodOnOrganisationResponse", [
|
||||
{ no: 1, name: "StartEta", kind: "scalar", localName: "StartEta", jsonName: "StartEta", T: 9 /*ScalarType.STRING*/ }
|
||||
super("api.ComputeSLAPeriodOnOrganisationResponse", [
|
||||
{ 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<ComputeETAPeriodOnOrganisationResponse>): ComputeETAPeriodOnOrganisationResponse {
|
||||
create(value?: PartialMessage<ComputeSLAPeriodOnOrganisationResponse>): ComputeSLAPeriodOnOrganisationResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.StartEta = "";
|
||||
message.StartSLA = "";
|
||||
message.EndSLA = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ComputeETAPeriodOnOrganisationResponse>(this, message, value);
|
||||
reflectionMergePartial<ComputeSLAPeriodOnOrganisationResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeETAPeriodOnOrganisationResponse): ComputeETAPeriodOnOrganisationResponse {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeSLAPeriodOnOrganisationResponse): ComputeSLAPeriodOnOrganisationResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string StartEta */ 1:
|
||||
message.StartEta = reader.string();
|
||||
case /* string StartSLA */ 1:
|
||||
message.StartSLA = reader.string();
|
||||
break;
|
||||
case /* string EndSLA */ 2:
|
||||
message.EndSLA = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1535,10 +1565,13 @@ class ComputeETAPeriodOnOrganisationResponse$Type extends MessageType<ComputeETA
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ComputeETAPeriodOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string StartEta = 1; */
|
||||
if (message.StartEta !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.StartEta);
|
||||
internalBinaryWrite(message: ComputeSLAPeriodOnOrganisationResponse, 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);
|
||||
@@ -1546,9 +1579,9 @@ class ComputeETAPeriodOnOrganisationResponse$Type extends MessageType<ComputeETA
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ComputeETAPeriodOnOrganisationResponse
|
||||
* @generated MessageType for protobuf message api.ComputeSLAPeriodOnOrganisationResponse
|
||||
*/
|
||||
export const ComputeETAPeriodOnOrganisationResponse = new ComputeETAPeriodOnOrganisationResponse$Type();
|
||||
export const ComputeSLAPeriodOnOrganisationResponse = new ComputeSLAPeriodOnOrganisationResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CreateOnSiteRequest$Type extends MessageType<CreateOnSiteRequest> {
|
||||
constructor() {
|
||||
@@ -2091,24 +2124,27 @@ class DeleteOnSiteResponse$Type extends MessageType<DeleteOnSiteResponse> {
|
||||
*/
|
||||
export const DeleteOnSiteResponse = new DeleteOnSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ComputeETAPeriodOnSiteRequest$Type extends MessageType<ComputeETAPeriodOnSiteRequest> {
|
||||
class ComputeSLAPeriodOnSiteRequest$Type extends MessageType<ComputeSLAPeriodOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.ComputeETAPeriodOnSiteRequest", [
|
||||
super("api.ComputeSLAPeriodOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: "Period", kind: "message", localName: "Period", jsonName: "Period", T: () => Period },
|
||||
{ no: 4, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Period", "StartSearchTime"] } } });
|
||||
{ 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*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "StartSearchTime"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ComputeETAPeriodOnSiteRequest>): ComputeETAPeriodOnSiteRequest {
|
||||
create(value?: PartialMessage<ComputeSLAPeriodOnSiteRequest>): ComputeSLAPeriodOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ID = "";
|
||||
message.minPeriods = [];
|
||||
message.maxPeriods = [];
|
||||
message.StartSearchTime = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ComputeETAPeriodOnSiteRequest>(this, message, value);
|
||||
reflectionMergePartial<ComputeSLAPeriodOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeETAPeriodOnSiteRequest): ComputeETAPeriodOnSiteRequest {
|
||||
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();
|
||||
@@ -2119,10 +2155,13 @@ class ComputeETAPeriodOnSiteRequest$Type extends MessageType<ComputeETAPeriodOnS
|
||||
case /* string ID */ 2:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* api.Period Period */ 3:
|
||||
message.Period = Period.internalBinaryRead(reader, reader.uint32(), options, message.Period);
|
||||
case /* repeated api.Period minPeriods */ 3:
|
||||
message.minPeriods.push(Period.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string StartSearchTime */ 4:
|
||||
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;
|
||||
default:
|
||||
@@ -2136,19 +2175,22 @@ class ComputeETAPeriodOnSiteRequest$Type extends MessageType<ComputeETAPeriodOnS
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ComputeETAPeriodOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
internalBinaryWrite(message: ComputeSLAPeriodOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.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);
|
||||
/* api.Period Period = 3; */
|
||||
if (message.Period)
|
||||
Period.internalBinaryWrite(message.Period, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string StartSearchTime = 4; */
|
||||
/* 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(4, WireType.LengthDelimited).string(message.StartSearchTime);
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.StartSearchTime);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2156,30 +2198,35 @@ class ComputeETAPeriodOnSiteRequest$Type extends MessageType<ComputeETAPeriodOnS
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ComputeETAPeriodOnSiteRequest
|
||||
* @generated MessageType for protobuf message api.ComputeSLAPeriodOnSiteRequest
|
||||
*/
|
||||
export const ComputeETAPeriodOnSiteRequest = new ComputeETAPeriodOnSiteRequest$Type();
|
||||
export const ComputeSLAPeriodOnSiteRequest = new ComputeSLAPeriodOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ComputeETAPeriodOnSiteResponse$Type extends MessageType<ComputeETAPeriodOnSiteResponse> {
|
||||
class ComputeSLAPeriodOnSiteResponse$Type extends MessageType<ComputeSLAPeriodOnSiteResponse> {
|
||||
constructor() {
|
||||
super("api.ComputeETAPeriodOnSiteResponse", [
|
||||
{ no: 1, name: "StartEta", kind: "scalar", localName: "StartEta", jsonName: "StartEta", T: 9 /*ScalarType.STRING*/ }
|
||||
super("api.ComputeSLAPeriodOnSiteResponse", [
|
||||
{ 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<ComputeETAPeriodOnSiteResponse>): ComputeETAPeriodOnSiteResponse {
|
||||
create(value?: PartialMessage<ComputeSLAPeriodOnSiteResponse>): ComputeSLAPeriodOnSiteResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.StartEta = "";
|
||||
message.StartSLA = "";
|
||||
message.EndSLA = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ComputeETAPeriodOnSiteResponse>(this, message, value);
|
||||
reflectionMergePartial<ComputeSLAPeriodOnSiteResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeETAPeriodOnSiteResponse): ComputeETAPeriodOnSiteResponse {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ComputeSLAPeriodOnSiteResponse): ComputeSLAPeriodOnSiteResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string StartEta */ 1:
|
||||
message.StartEta = reader.string();
|
||||
case /* string StartSLA */ 1:
|
||||
message.StartSLA = reader.string();
|
||||
break;
|
||||
case /* string EndSLA */ 2:
|
||||
message.EndSLA = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -2192,10 +2239,13 @@ class ComputeETAPeriodOnSiteResponse$Type extends MessageType<ComputeETAPeriodOn
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ComputeETAPeriodOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string StartEta = 1; */
|
||||
if (message.StartEta !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.StartEta);
|
||||
internalBinaryWrite(message: ComputeSLAPeriodOnSiteResponse, 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);
|
||||
@@ -2203,9 +2253,9 @@ class ComputeETAPeriodOnSiteResponse$Type extends MessageType<ComputeETAPeriodOn
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ComputeETAPeriodOnSiteResponse
|
||||
* @generated MessageType for protobuf message api.ComputeSLAPeriodOnSiteResponse
|
||||
*/
|
||||
export const ComputeETAPeriodOnSiteResponse = new ComputeETAPeriodOnSiteResponse$Type();
|
||||
export const ComputeSLAPeriodOnSiteResponse = new ComputeSLAPeriodOnSiteResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.CalendarService
|
||||
*/
|
||||
@@ -2215,12 +2265,12 @@ 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": "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: "ComputeETAPeriodOnOrganisation", 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: ComputeETAPeriodOnOrganisationRequest, O: ComputeETAPeriodOnOrganisationResponse },
|
||||
{ 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: ComputeSLAPeriodOnOrganisationResponse },
|
||||
{ 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": "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": "Site", "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": "Site", "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": "Site", "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": "Site", "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: "ComputeETAPeriodOnSite", 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": "Site", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ComputeETAPeriodOnSiteRequest, O: ComputeETAPeriodOnSiteResponse }
|
||||
{ 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": "Site", "api.roles": "Platform.Calendar-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ComputeSLAPeriodOnSiteRequest, O: ComputeSLAPeriodOnSiteResponse }
|
||||
], { "api.k8sService": "core-calendar" });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-250915090244",
|
||||
"version": "1.12.0-SNAPSHOT-250916092349",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user