You've already forked npm-core-sdk
Latest generation
This commit is contained in:
102
alias.ts
102
alias.ts
@@ -11,6 +11,37 @@ 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 { CommandIdentifierEntry } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
/**
|
||||
* Properties specific to appointment scheduling aliases
|
||||
*
|
||||
* @generated from protobuf message api.AliasPropertiesAppointmentScheduling
|
||||
*/
|
||||
export interface AliasPropertiesAppointmentScheduling {
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentType AptType = 1
|
||||
*/
|
||||
AptType: AppointmentType;
|
||||
/**
|
||||
* CommandIdentifierEntry
|
||||
*
|
||||
* @generated from protobuf field: api.CommandIdentifierEntry LoadingCommandIdentifierEntry = 2
|
||||
*/
|
||||
LoadingCommandIdentifierEntry: CommandIdentifierEntry;
|
||||
/**
|
||||
* CommandIdentifierEntry
|
||||
*
|
||||
* @generated from protobuf field: api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry = 3
|
||||
*/
|
||||
UnLoadingCommandIdentifierEntry: CommandIdentifierEntry;
|
||||
/**
|
||||
* Name of the actor
|
||||
*
|
||||
* @generated from protobuf field: string ActorName = 4
|
||||
*/
|
||||
ActorName: string;
|
||||
}
|
||||
/**
|
||||
* Alias represents a named link from one resource to another.
|
||||
* Example: A Site (FromID="SITE_ORG1_123") can have an alias named "ACTOR_456"
|
||||
@@ -194,6 +225,77 @@ export enum AliasType {
|
||||
ALIAS_TYPE_APPOINTMENT_SCHEDULING = 1
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AliasPropertiesAppointmentScheduling$Type extends MessageType<AliasPropertiesAppointmentScheduling> {
|
||||
constructor() {
|
||||
super("api.AliasPropertiesAppointmentScheduling", [
|
||||
{ no: 1, name: "AptType", kind: "enum", localName: "AptType", jsonName: "AptType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 2, name: "LoadingCommandIdentifierEntry", kind: "enum", localName: "LoadingCommandIdentifierEntry", jsonName: "LoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "UnLoadingCommandIdentifierEntry", kind: "enum", localName: "UnLoadingCommandIdentifierEntry", jsonName: "UnLoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 4, name: "ActorName", kind: "scalar", localName: "ActorName", jsonName: "ActorName", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AliasPropertiesAppointmentScheduling>): AliasPropertiesAppointmentScheduling {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AptType = 0;
|
||||
message.LoadingCommandIdentifierEntry = 0;
|
||||
message.UnLoadingCommandIdentifierEntry = 0;
|
||||
message.ActorName = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AliasPropertiesAppointmentScheduling>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AliasPropertiesAppointmentScheduling): AliasPropertiesAppointmentScheduling {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.AppointmentType AptType */ 1:
|
||||
message.AptType = reader.int32();
|
||||
break;
|
||||
case /* api.CommandIdentifierEntry LoadingCommandIdentifierEntry */ 2:
|
||||
message.LoadingCommandIdentifierEntry = reader.int32();
|
||||
break;
|
||||
case /* api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry */ 3:
|
||||
message.UnLoadingCommandIdentifierEntry = reader.int32();
|
||||
break;
|
||||
case /* string ActorName */ 4:
|
||||
message.ActorName = 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: AliasPropertiesAppointmentScheduling, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.AppointmentType AptType = 1; */
|
||||
if (message.AptType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.AptType);
|
||||
/* api.CommandIdentifierEntry LoadingCommandIdentifierEntry = 2; */
|
||||
if (message.LoadingCommandIdentifierEntry !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.LoadingCommandIdentifierEntry);
|
||||
/* api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry = 3; */
|
||||
if (message.UnLoadingCommandIdentifierEntry !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.UnLoadingCommandIdentifierEntry);
|
||||
/* string ActorName = 4; */
|
||||
if (message.ActorName !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.ActorName);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AliasPropertiesAppointmentScheduling
|
||||
*/
|
||||
export const AliasPropertiesAppointmentScheduling = new AliasPropertiesAppointmentScheduling$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Alias$Type extends MessageType<Alias> {
|
||||
constructor() {
|
||||
super("api.Alias", [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260209155741",
|
||||
"version": "1.13.0-SNAPSHOT-260210155417",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -14,18 +14,6 @@ import type { GetBookingContextResponse } from "./site";
|
||||
import type { GetBookingContextRequest } from "./site";
|
||||
import type { InitBookerProfileResponse } from "./site";
|
||||
import type { InitBookerProfileRequest } from "./site";
|
||||
import type { ClearAliasesOfProjectResponse } from "./site";
|
||||
import type { ClearAliasesOfProjectRequest } from "./site";
|
||||
import type { ClearAliasesOfSiteResponse } from "./site";
|
||||
import type { ClearAliasesOfSiteRequest } from "./site";
|
||||
import type { ClearSiteAliasResponse } from "./site";
|
||||
import type { ClearSiteAliasRequest } from "./site";
|
||||
import type { SetSiteAliasResponse } from "./site";
|
||||
import type { SetSiteAliasRequest } from "./site";
|
||||
import type { GetAliasesOfSiteResponse } from "./site";
|
||||
import type { GetAliasesOfSiteRequest } from "./site";
|
||||
import type { GetSiteFromAliasResponse } from "./site";
|
||||
import type { GetSiteFromAliasRequest } from "./site";
|
||||
import type { ResolveSiteResponse } from "./site";
|
||||
import type { ResolveSiteRequest } from "./site";
|
||||
import type { GetBookingSegmentationsResponse } from "./site";
|
||||
@@ -175,30 +163,6 @@ export interface ISiteServiceClient {
|
||||
* @generated from protobuf rpc: ResolveSite
|
||||
*/
|
||||
resolveSite(input: ResolveSiteRequest, options?: RpcOptions): UnaryCall<ResolveSiteRequest, ResolveSiteResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSiteFromAlias
|
||||
*/
|
||||
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetAliasesOfSite
|
||||
*/
|
||||
getAliasesOfSite(input: GetAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: SetSiteAlias
|
||||
*/
|
||||
setSiteAlias(input: SetSiteAliasRequest, options?: RpcOptions): UnaryCall<SetSiteAliasRequest, SetSiteAliasResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ClearSiteAlias
|
||||
*/
|
||||
clearSiteAlias(input: ClearSiteAliasRequest, options?: RpcOptions): UnaryCall<ClearSiteAliasRequest, ClearSiteAliasResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ClearAliasesOfSite
|
||||
*/
|
||||
clearAliasesOfSite(input: ClearAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfSiteRequest, ClearAliasesOfSiteResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ClearAliasesOfProject
|
||||
*/
|
||||
clearAliasesOfProject(input: ClearAliasesOfProjectRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: InitBookerProfile
|
||||
*/
|
||||
@@ -411,81 +375,39 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
||||
const method = this.methods[25], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ResolveSiteRequest, ResolveSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSiteFromAlias
|
||||
*/
|
||||
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse> {
|
||||
const method = this.methods[26], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetSiteFromAliasRequest, GetSiteFromAliasResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetAliasesOfSite
|
||||
*/
|
||||
getAliasesOfSite(input: GetAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse> {
|
||||
const method = this.methods[27], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: SetSiteAlias
|
||||
*/
|
||||
setSiteAlias(input: SetSiteAliasRequest, options?: RpcOptions): UnaryCall<SetSiteAliasRequest, SetSiteAliasResponse> {
|
||||
const method = this.methods[28], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SetSiteAliasRequest, SetSiteAliasResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ClearSiteAlias
|
||||
*/
|
||||
clearSiteAlias(input: ClearSiteAliasRequest, options?: RpcOptions): UnaryCall<ClearSiteAliasRequest, ClearSiteAliasResponse> {
|
||||
const method = this.methods[29], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ClearAliasesOfSite
|
||||
*/
|
||||
clearAliasesOfSite(input: ClearAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfSiteRequest, ClearAliasesOfSiteResponse> {
|
||||
const method = this.methods[30], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ClearAliasesOfSiteRequest, ClearAliasesOfSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ClearAliasesOfProject
|
||||
*/
|
||||
clearAliasesOfProject(input: ClearAliasesOfProjectRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse> {
|
||||
const method = this.methods[31], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: InitBookerProfile
|
||||
*/
|
||||
initBookerProfile(input: InitBookerProfileRequest, options?: RpcOptions): UnaryCall<InitBookerProfileRequest, InitBookerProfileResponse> {
|
||||
const method = this.methods[32], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[26], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<InitBookerProfileRequest, InitBookerProfileResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetBookingContext
|
||||
*/
|
||||
getBookingContext(input: GetBookingContextRequest, options?: RpcOptions): UnaryCall<GetBookingContextRequest, GetBookingContextResponse> {
|
||||
const method = this.methods[33], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[27], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetBookingContextRequest, GetBookingContextResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetMyBookingContext
|
||||
*/
|
||||
getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall<GetMyBookingContextRequest, GetMyBookingContextResponse> {
|
||||
const method = this.methods[34], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[28], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetMyBookingContextRequest, GetMyBookingContextResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CheckAppointmentEditable
|
||||
*/
|
||||
checkAppointmentEditable(input: CheckAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckAppointmentEditableRequest, CheckAppointmentEditableResponse> {
|
||||
const method = this.methods[35], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[29], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CheckAppointmentEditableRequest, CheckAppointmentEditableResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSettings
|
||||
*/
|
||||
listSettings(input: ListSettingsRequest, options?: RpcOptions): UnaryCall<ListSettingsRequest, ListSettingsResponse> {
|
||||
const method = this.methods[36], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[30], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListSettingsRequest, ListSettingsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
823
site.ts
823
site.ts
@@ -11,11 +11,11 @@ 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 { CommandIdentifierEntry } from "./slotbooking";
|
||||
import { Period } from "./shared";
|
||||
import { WMSCommission } from "./slotbooking";
|
||||
import { SegmentationFilter } from "./slotbooking";
|
||||
import { PrjMetadata } from "./metadatadef";
|
||||
import { CommandIdentifierEntry } from "./slotbooking";
|
||||
import { CustomField } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { MetadataElement } from "./shared";
|
||||
@@ -691,47 +691,6 @@ export interface BookAppointmentRequest {
|
||||
*/
|
||||
CustomFields: CustomField[];
|
||||
}
|
||||
/**
|
||||
* SiteActor: connection between an actor in a project and a Site
|
||||
*
|
||||
* @generated from protobuf message api.SiteActor
|
||||
*/
|
||||
export interface SiteActor {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 2
|
||||
*/
|
||||
ActorID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string SiteID = 3
|
||||
*/
|
||||
SiteID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentType Type = 4
|
||||
*/
|
||||
Type: AppointmentType;
|
||||
/**
|
||||
* CommandIdentifierEntry
|
||||
*
|
||||
* @generated from protobuf field: api.CommandIdentifierEntry LoadingCommandIdentifierEntry = 5
|
||||
*/
|
||||
LoadingCommandIdentifierEntry: CommandIdentifierEntry;
|
||||
/**
|
||||
* CommandIdentifierEntry
|
||||
*
|
||||
* @generated from protobuf field: api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry = 6
|
||||
*/
|
||||
UnLoadingCommandIdentifierEntry: CommandIdentifierEntry;
|
||||
/**
|
||||
* Name of the actor
|
||||
*
|
||||
* @generated from protobuf field: string ActorName = 7
|
||||
*/
|
||||
ActorName: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetBookingContextRequest
|
||||
*/
|
||||
@@ -1008,97 +967,6 @@ export interface ResolveSiteResponse {
|
||||
*/
|
||||
Site?: Site;
|
||||
}
|
||||
/**
|
||||
* GetSiteFromAlias
|
||||
*
|
||||
* @generated from protobuf message api.GetSiteFromAliasRequest
|
||||
*/
|
||||
export interface GetSiteFromAliasRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 2
|
||||
*/
|
||||
ActorID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetSiteFromAliasResponse
|
||||
*/
|
||||
export interface GetSiteFromAliasResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string SiteID = 1
|
||||
*/
|
||||
SiteID: string;
|
||||
}
|
||||
/**
|
||||
* GetAliasesOfSite
|
||||
*
|
||||
* @generated from protobuf message api.GetAliasesOfSiteRequest
|
||||
*/
|
||||
export interface GetAliasesOfSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string SiteID = 1
|
||||
*/
|
||||
SiteID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 2
|
||||
*/
|
||||
ProjectID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetAliasesOfSiteResponse
|
||||
*/
|
||||
export interface GetAliasesOfSiteResponse {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.SiteActor SiteActors = 1
|
||||
*/
|
||||
SiteActors: SiteActor[];
|
||||
}
|
||||
/**
|
||||
* ClearAliasesOfSite
|
||||
*
|
||||
* @generated from protobuf message api.ClearAliasesOfSiteRequest
|
||||
*/
|
||||
export interface ClearAliasesOfSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string SiteID = 1
|
||||
*/
|
||||
SiteID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ClearAliasesOfSiteResponse
|
||||
*/
|
||||
export interface ClearAliasesOfSiteResponse {
|
||||
}
|
||||
/**
|
||||
* ClearAliasesOfSite
|
||||
*
|
||||
* @generated from protobuf message api.ClearAliasesOfProjectRequest
|
||||
*/
|
||||
export interface ClearAliasesOfProjectRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ClearAliasesOfProjectResponse
|
||||
*/
|
||||
export interface ClearAliasesOfProjectResponse {
|
||||
}
|
||||
/**
|
||||
* SetSiteAlias
|
||||
*
|
||||
* @generated from protobuf message api.SetSiteAliasRequest
|
||||
*/
|
||||
export interface SetSiteAliasRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.SiteActor SiteActor = 1
|
||||
*/
|
||||
SiteActor?: SiteActor;
|
||||
}
|
||||
/**
|
||||
* Authorisation
|
||||
*
|
||||
@@ -1195,35 +1063,6 @@ export interface ListSitesAuthorizedForBookingResponse {
|
||||
*/
|
||||
ListOfSitesPerOrganisations: ListOfSitesPerOrganisation[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SetSiteAliasResponse
|
||||
*/
|
||||
export interface SetSiteAliasResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.SiteActor SiteActor = 1
|
||||
*/
|
||||
SiteActor?: SiteActor;
|
||||
}
|
||||
/**
|
||||
* ClearSiteAlias
|
||||
*
|
||||
* @generated from protobuf message api.ClearSiteAliasRequest
|
||||
*/
|
||||
export interface ClearSiteAliasRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 2
|
||||
*/
|
||||
ActorID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ClearSiteAliasResponse
|
||||
*/
|
||||
export interface ClearSiteAliasResponse {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetBasicSettingsRequest
|
||||
*/
|
||||
@@ -3262,101 +3101,6 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
*/
|
||||
export const BookAppointmentRequest = new BookAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SiteActor$Type extends MessageType<SiteActor> {
|
||||
constructor() {
|
||||
super("api.SiteActor", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 5, name: "LoadingCommandIdentifierEntry", kind: "enum", localName: "LoadingCommandIdentifierEntry", jsonName: "LoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 6, name: "UnLoadingCommandIdentifierEntry", kind: "enum", localName: "UnLoadingCommandIdentifierEntry", jsonName: "UnLoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 7, name: "ActorName", kind: "scalar", localName: "ActorName", jsonName: "ActorName", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<SiteActor>): SiteActor {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ProjectID = "";
|
||||
message.ActorID = "";
|
||||
message.SiteID = "";
|
||||
message.Type = 0;
|
||||
message.LoadingCommandIdentifierEntry = 0;
|
||||
message.UnLoadingCommandIdentifierEntry = 0;
|
||||
message.ActorName = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SiteActor>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteActor): SiteActor {
|
||||
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;
|
||||
case /* string ActorID */ 2:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* string SiteID */ 3:
|
||||
message.SiteID = reader.string();
|
||||
break;
|
||||
case /* api.AppointmentType Type */ 4:
|
||||
message.Type = reader.int32();
|
||||
break;
|
||||
case /* api.CommandIdentifierEntry LoadingCommandIdentifierEntry */ 5:
|
||||
message.LoadingCommandIdentifierEntry = reader.int32();
|
||||
break;
|
||||
case /* api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry */ 6:
|
||||
message.UnLoadingCommandIdentifierEntry = reader.int32();
|
||||
break;
|
||||
case /* string ActorName */ 7:
|
||||
message.ActorName = 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: SiteActor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string ActorID = 2; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* string SiteID = 3; */
|
||||
if (message.SiteID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.SiteID);
|
||||
/* api.AppointmentType Type = 4; */
|
||||
if (message.Type !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.Type);
|
||||
/* api.CommandIdentifierEntry LoadingCommandIdentifierEntry = 5; */
|
||||
if (message.LoadingCommandIdentifierEntry !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.LoadingCommandIdentifierEntry);
|
||||
/* api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry = 6; */
|
||||
if (message.UnLoadingCommandIdentifierEntry !== 0)
|
||||
writer.tag(6, WireType.Varint).int32(message.UnLoadingCommandIdentifierEntry);
|
||||
/* string ActorName = 7; */
|
||||
if (message.ActorName !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.ActorName);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.SiteActor
|
||||
*/
|
||||
export const SiteActor = new SiteActor$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest> {
|
||||
constructor() {
|
||||
super("api.GetBookingContextRequest", [
|
||||
@@ -4261,426 +4005,6 @@ class ResolveSiteResponse$Type extends MessageType<ResolveSiteResponse> {
|
||||
*/
|
||||
export const ResolveSiteResponse = new ResolveSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetSiteFromAliasRequest$Type extends MessageType<GetSiteFromAliasRequest> {
|
||||
constructor() {
|
||||
super("api.GetSiteFromAliasRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "ActorID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetSiteFromAliasRequest>): GetSiteFromAliasRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ProjectID = "";
|
||||
message.ActorID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteFromAliasRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteFromAliasRequest): GetSiteFromAliasRequest {
|
||||
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;
|
||||
case /* string ActorID */ 2:
|
||||
message.ActorID = 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: GetSiteFromAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string ActorID = 2; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetSiteFromAliasRequest
|
||||
*/
|
||||
export const GetSiteFromAliasRequest = new GetSiteFromAliasRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetSiteFromAliasResponse$Type extends MessageType<GetSiteFromAliasResponse> {
|
||||
constructor() {
|
||||
super("api.GetSiteFromAliasResponse", [
|
||||
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetSiteFromAliasResponse>): GetSiteFromAliasResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteFromAliasResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteFromAliasResponse): GetSiteFromAliasResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string SiteID */ 1:
|
||||
message.SiteID = 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: GetSiteFromAliasResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string SiteID = 1; */
|
||||
if (message.SiteID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetSiteFromAliasResponse
|
||||
*/
|
||||
export const GetSiteFromAliasResponse = new GetSiteFromAliasResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetAliasesOfSiteRequest$Type extends MessageType<GetAliasesOfSiteRequest> {
|
||||
constructor() {
|
||||
super("api.GetAliasesOfSiteRequest", [
|
||||
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetAliasesOfSiteRequest>): GetAliasesOfSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetAliasesOfSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAliasesOfSiteRequest): GetAliasesOfSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string SiteID */ 1:
|
||||
message.SiteID = reader.string();
|
||||
break;
|
||||
case /* string ProjectID */ 2:
|
||||
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: GetAliasesOfSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string SiteID = 1; */
|
||||
if (message.SiteID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
|
||||
/* string ProjectID = 2; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(2, 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.GetAliasesOfSiteRequest
|
||||
*/
|
||||
export const GetAliasesOfSiteRequest = new GetAliasesOfSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetAliasesOfSiteResponse$Type extends MessageType<GetAliasesOfSiteResponse> {
|
||||
constructor() {
|
||||
super("api.GetAliasesOfSiteResponse", [
|
||||
{ no: 1, name: "SiteActors", kind: "message", localName: "SiteActors", jsonName: "SiteActors", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteActor }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetAliasesOfSiteResponse>): GetAliasesOfSiteResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteActors = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetAliasesOfSiteResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAliasesOfSiteResponse): GetAliasesOfSiteResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.SiteActor SiteActors */ 1:
|
||||
message.SiteActors.push(SiteActor.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: GetAliasesOfSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.SiteActor SiteActors = 1; */
|
||||
for (let i = 0; i < message.SiteActors.length; i++)
|
||||
SiteActor.internalBinaryWrite(message.SiteActors[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.GetAliasesOfSiteResponse
|
||||
*/
|
||||
export const GetAliasesOfSiteResponse = new GetAliasesOfSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClearAliasesOfSiteRequest$Type extends MessageType<ClearAliasesOfSiteRequest> {
|
||||
constructor() {
|
||||
super("api.ClearAliasesOfSiteRequest", [
|
||||
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ClearAliasesOfSiteRequest>): ClearAliasesOfSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClearAliasesOfSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearAliasesOfSiteRequest): ClearAliasesOfSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string SiteID */ 1:
|
||||
message.SiteID = 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: ClearAliasesOfSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string SiteID = 1; */
|
||||
if (message.SiteID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ClearAliasesOfSiteRequest
|
||||
*/
|
||||
export const ClearAliasesOfSiteRequest = new ClearAliasesOfSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClearAliasesOfSiteResponse$Type extends MessageType<ClearAliasesOfSiteResponse> {
|
||||
constructor() {
|
||||
super("api.ClearAliasesOfSiteResponse", []);
|
||||
}
|
||||
create(value?: PartialMessage<ClearAliasesOfSiteResponse>): ClearAliasesOfSiteResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClearAliasesOfSiteResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearAliasesOfSiteResponse): ClearAliasesOfSiteResponse {
|
||||
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: ClearAliasesOfSiteResponse, 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.ClearAliasesOfSiteResponse
|
||||
*/
|
||||
export const ClearAliasesOfSiteResponse = new ClearAliasesOfSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClearAliasesOfProjectRequest$Type extends MessageType<ClearAliasesOfProjectRequest> {
|
||||
constructor() {
|
||||
super("api.ClearAliasesOfProjectRequest", [
|
||||
{ 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<ClearAliasesOfProjectRequest>): ClearAliasesOfProjectRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClearAliasesOfProjectRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearAliasesOfProjectRequest): ClearAliasesOfProjectRequest {
|
||||
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: ClearAliasesOfProjectRequest, 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.ClearAliasesOfProjectRequest
|
||||
*/
|
||||
export const ClearAliasesOfProjectRequest = new ClearAliasesOfProjectRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClearAliasesOfProjectResponse$Type extends MessageType<ClearAliasesOfProjectResponse> {
|
||||
constructor() {
|
||||
super("api.ClearAliasesOfProjectResponse", []);
|
||||
}
|
||||
create(value?: PartialMessage<ClearAliasesOfProjectResponse>): ClearAliasesOfProjectResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClearAliasesOfProjectResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearAliasesOfProjectResponse): ClearAliasesOfProjectResponse {
|
||||
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: ClearAliasesOfProjectResponse, 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.ClearAliasesOfProjectResponse
|
||||
*/
|
||||
export const ClearAliasesOfProjectResponse = new ClearAliasesOfProjectResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SetSiteAliasRequest$Type extends MessageType<SetSiteAliasRequest> {
|
||||
constructor() {
|
||||
super("api.SetSiteAliasRequest", [
|
||||
{ no: 1, name: "SiteActor", kind: "message", localName: "SiteActor", jsonName: "SiteActor", T: () => SiteActor }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteActor"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<SetSiteAliasRequest>): SetSiteAliasRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SetSiteAliasRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSiteAliasRequest): SetSiteAliasRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.SiteActor SiteActor */ 1:
|
||||
message.SiteActor = SiteActor.internalBinaryRead(reader, reader.uint32(), options, message.SiteActor);
|
||||
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: SetSiteAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.SiteActor SiteActor = 1; */
|
||||
if (message.SiteActor)
|
||||
SiteActor.internalBinaryWrite(message.SiteActor, 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.SetSiteAliasRequest
|
||||
*/
|
||||
export const SetSiteAliasRequest = new SetSiteAliasRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ProjectAuthorisationWithValue$Type extends MessageType<ProjectAuthorisationWithValue> {
|
||||
constructor() {
|
||||
super("api.ProjectAuthorisationWithValue", [
|
||||
@@ -5013,145 +4337,6 @@ class ListSitesAuthorizedForBookingResponse$Type extends MessageType<ListSitesAu
|
||||
*/
|
||||
export const ListSitesAuthorizedForBookingResponse = new ListSitesAuthorizedForBookingResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SetSiteAliasResponse$Type extends MessageType<SetSiteAliasResponse> {
|
||||
constructor() {
|
||||
super("api.SetSiteAliasResponse", [
|
||||
{ no: 1, name: "SiteActor", kind: "message", localName: "SiteActor", jsonName: "SiteActor", T: () => SiteActor }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<SetSiteAliasResponse>): SetSiteAliasResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SetSiteAliasResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSiteAliasResponse): SetSiteAliasResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.SiteActor SiteActor */ 1:
|
||||
message.SiteActor = SiteActor.internalBinaryRead(reader, reader.uint32(), options, message.SiteActor);
|
||||
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: SetSiteAliasResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.SiteActor SiteActor = 1; */
|
||||
if (message.SiteActor)
|
||||
SiteActor.internalBinaryWrite(message.SiteActor, 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.SetSiteAliasResponse
|
||||
*/
|
||||
export const SetSiteAliasResponse = new SetSiteAliasResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClearSiteAliasRequest$Type extends MessageType<ClearSiteAliasRequest> {
|
||||
constructor() {
|
||||
super("api.ClearSiteAliasRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID,ActorID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ClearSiteAliasRequest>): ClearSiteAliasRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ProjectID = "";
|
||||
message.ActorID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClearSiteAliasRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearSiteAliasRequest): ClearSiteAliasRequest {
|
||||
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;
|
||||
case /* string ActorID */ 2:
|
||||
message.ActorID = 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: ClearSiteAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string ActorID = 2; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ClearSiteAliasRequest
|
||||
*/
|
||||
export const ClearSiteAliasRequest = new ClearSiteAliasRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClearSiteAliasResponse$Type extends MessageType<ClearSiteAliasResponse> {
|
||||
constructor() {
|
||||
super("api.ClearSiteAliasResponse", []);
|
||||
}
|
||||
create(value?: PartialMessage<ClearSiteAliasResponse>): ClearSiteAliasResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClearSiteAliasResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearSiteAliasResponse): ClearSiteAliasResponse {
|
||||
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: ClearSiteAliasResponse, 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.ClearSiteAliasResponse
|
||||
*/
|
||||
export const ClearSiteAliasResponse = new ClearSiteAliasResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetBasicSettingsRequest$Type extends MessageType<GetBasicSettingsRequest> {
|
||||
constructor() {
|
||||
super("api.GetBasicSettingsRequest", [
|
||||
@@ -6165,12 +5350,6 @@ export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ name: "ListSitesAuthorizedForBooking", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List the site allowing booking for a project" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListSitesAuthorizedForBookingRequest, O: ListSitesAuthorizedForBookingResponse },
|
||||
{ name: "GetBookingSegmentations", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the restricted segmentation for the current state of booking" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingSegmentationsRequest, O: GetBookingSegmentationsResponse },
|
||||
{ name: "ResolveSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get Site from either site projectid or projectid with actor id alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ResolveSiteRequest, O: ResolveSiteResponse },
|
||||
{ name: "GetSiteFromAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get Site ID from project actor id." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetSiteFromAliasRequest, O: GetSiteFromAliasResponse },
|
||||
{ name: "GetAliasesOfSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the list of project ID and Actor ID from site ID and optionally Project ID." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetAliasesOfSiteRequest, O: GetAliasesOfSiteResponse },
|
||||
{ name: "SetSiteAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Set a new site alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: SetSiteAliasRequest, O: SetSiteAliasResponse },
|
||||
{ name: "ClearSiteAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete a site alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearSiteAliasRequest, O: ClearSiteAliasResponse },
|
||||
{ name: "ClearAliasesOfSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Clear all site alias for a site." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearAliasesOfSiteRequest, O: ClearAliasesOfSiteResponse },
|
||||
{ name: "ClearAliasesOfProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Clear all site alias for a project." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearAliasesOfProjectRequest, O: ClearAliasesOfProjectResponse },
|
||||
{ name: "InitBookerProfile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Init the booker profile for a site. The user will gain access to the site and be able to book appointments." }, "api.rscType": "Platform", "api.roles": "" }, I: InitBookerProfileRequest, O: InitBookerProfileResponse },
|
||||
{ name: "GetBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the booking context for a given Project and Actor" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingContextRequest, O: GetBookingContextResponse },
|
||||
{ name: "GetMyBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get your appointment available booking context according to your permissions." }, "api.rscType": "Platform", "api.roles": "" }, I: GetMyBookingContextRequest, O: GetMyBookingContextResponse },
|
||||
|
||||
Reference in New Issue
Block a user