You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251014080949",
|
||||
"version": "1.12.0-SNAPSHOT-251014105917",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -18,6 +18,8 @@ import type { ListSitesAuthorizedForBookingResponse } from "./site";
|
||||
import type { ListSitesAuthorizedForBookingRequest } from "./site";
|
||||
import type { GetBasicSettingsResponse } from "./site";
|
||||
import type { GetBasicSettingsRequest } from "./site";
|
||||
import type { GetUnitsResponse } from "./site";
|
||||
import type { GetUnitsRequest } from "./site";
|
||||
import type { CreateSettingsResponse } from "./site";
|
||||
import type { CreateSettingsRequest } from "./site";
|
||||
import type { DeleteSettingsResult } from "./site";
|
||||
@@ -131,6 +133,10 @@ export interface ISiteServiceClient {
|
||||
* @generated from protobuf rpc: CreateSettingsV2
|
||||
*/
|
||||
createSettingsV2(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetUnits
|
||||
*/
|
||||
getUnits(input: GetUnitsRequest, options?: RpcOptions): UnaryCall<GetUnitsRequest, GetUnitsResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetBasicSettings
|
||||
*/
|
||||
@@ -302,53 +308,60 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetUnits
|
||||
*/
|
||||
getUnits(input: GetUnitsRequest, options?: RpcOptions): UnaryCall<GetUnitsRequest, GetUnitsResponse> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetUnitsRequest, GetUnitsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetBasicSettings
|
||||
*/
|
||||
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetBasicSettingsRequest, GetBasicSettingsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
|
||||
*/
|
||||
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetPossibleSegmentationOnSiteForBooking
|
||||
*/
|
||||
getPossibleSegmentationOnSiteForBooking(input: GetPossibleSegmentationOnSiteForBookingRequest, options?: RpcOptions): UnaryCall<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse> {
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSiteFromAlias
|
||||
*/
|
||||
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse> {
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[23], 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[23], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[24], 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[24], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[25], 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[25], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[26], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
275
site.ts
275
site.ts
@@ -1098,13 +1098,13 @@ export interface SetSiteAliasRequest {
|
||||
SiteActor?: SiteActor;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.NameID
|
||||
* @generated from protobuf message api.SegmentationsSettings
|
||||
*/
|
||||
export interface NameID {
|
||||
export interface SegmentationsSettings {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
* @generated from protobuf field: api.ProjectAuthorisation Authorisation = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
Authorisation?: ProjectAuthorisation;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2
|
||||
*/
|
||||
@@ -1119,9 +1119,9 @@ export interface ListOfSitesPerOrganisation {
|
||||
*/
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.NameID Projects = 2
|
||||
* @generated from protobuf field: repeated api.SegmentationsSettings Projects = 2
|
||||
*/
|
||||
Projects: NameID[];
|
||||
Projects: SegmentationsSettings[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListSitesAuthorizedForBookingRequest
|
||||
@@ -1132,6 +1132,15 @@ export interface ListSitesAuthorizedForBookingRequest {
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListSitesAuthorizedForBookingResponse
|
||||
*/
|
||||
export interface ListSitesAuthorizedForBookingResponse {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1
|
||||
*/
|
||||
ListOfSitesPerOrganisations: ListOfSitesPerOrganisation[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SetSiteAliasResponse
|
||||
*/
|
||||
@@ -1161,15 +1170,6 @@ export interface ClearSiteAliasRequest {
|
||||
*/
|
||||
export interface ClearSiteAliasResponse {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListSitesAuthorizedForBookingResponse
|
||||
*/
|
||||
export interface ListSitesAuthorizedForBookingResponse {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1
|
||||
*/
|
||||
ListOfSitesPerOrganisations: ListOfSitesPerOrganisation[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetBasicSettingsRequest
|
||||
*/
|
||||
@@ -1210,6 +1210,24 @@ export interface GetBasicSettingsResponse {
|
||||
*/
|
||||
Emails: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetUnitsRequest
|
||||
*/
|
||||
export interface GetUnitsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader; // get the unit defined on the Project/site
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetUnitsResponse
|
||||
*/
|
||||
export interface GetUnitsResponse {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Unit Units = 1
|
||||
*/
|
||||
Units: Unit[]; // List of containment units defined on site.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetPossibleSegmentationOnSiteForBookingRequest
|
||||
*/
|
||||
@@ -4087,28 +4105,27 @@ class SetSiteAliasRequest$Type extends MessageType<SetSiteAliasRequest> {
|
||||
*/
|
||||
export const SetSiteAliasRequest = new SetSiteAliasRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class NameID$Type extends MessageType<NameID> {
|
||||
class SegmentationsSettings$Type extends MessageType<SegmentationsSettings> {
|
||||
constructor() {
|
||||
super("api.NameID", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
super("api.SegmentationsSettings", [
|
||||
{ no: 1, name: "Authorisation", kind: "message", localName: "Authorisation", jsonName: "Authorisation", T: () => ProjectAuthorisation },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<NameID>): NameID {
|
||||
create(value?: PartialMessage<SegmentationsSettings>): SegmentationsSettings {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ProjectID = "";
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NameID>(this, message, value);
|
||||
reflectionMergePartial<SegmentationsSettings>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NameID): NameID {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SegmentationsSettings): SegmentationsSettings {
|
||||
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();
|
||||
case /* api.ProjectAuthorisation Authorisation */ 1:
|
||||
message.Authorisation = ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options, message.Authorisation);
|
||||
break;
|
||||
case /* string Name */ 2:
|
||||
message.Name = reader.string();
|
||||
@@ -4124,10 +4141,10 @@ class NameID$Type extends MessageType<NameID> {
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NameID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
internalBinaryWrite(message: SegmentationsSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ProjectAuthorisation Authorisation = 1; */
|
||||
if (message.Authorisation)
|
||||
ProjectAuthorisation.internalBinaryWrite(message.Authorisation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Name = 2; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
@@ -4138,15 +4155,15 @@ class NameID$Type extends MessageType<NameID> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.NameID
|
||||
* @generated MessageType for protobuf message api.SegmentationsSettings
|
||||
*/
|
||||
export const NameID = new NameID$Type();
|
||||
export const SegmentationsSettings = new SegmentationsSettings$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListOfSitesPerOrganisation$Type extends MessageType<ListOfSitesPerOrganisation> {
|
||||
constructor() {
|
||||
super("api.ListOfSitesPerOrganisation", [
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Projects", kind: "message", localName: "Projects", jsonName: "Projects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NameID }
|
||||
{ no: 2, name: "Projects", kind: "message", localName: "Projects", jsonName: "Projects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationsSettings }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListOfSitesPerOrganisation>): ListOfSitesPerOrganisation {
|
||||
@@ -4165,8 +4182,8 @@ class ListOfSitesPerOrganisation$Type extends MessageType<ListOfSitesPerOrganisa
|
||||
case /* string OrganisationID */ 1:
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* repeated api.NameID Projects */ 2:
|
||||
message.Projects.push(NameID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.SegmentationsSettings Projects */ 2:
|
||||
message.Projects.push(SegmentationsSettings.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -4183,9 +4200,9 @@ class ListOfSitesPerOrganisation$Type extends MessageType<ListOfSitesPerOrganisa
|
||||
/* string OrganisationID = 1; */
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
/* repeated api.NameID Projects = 2; */
|
||||
/* repeated api.SegmentationsSettings Projects = 2; */
|
||||
for (let i = 0; i < message.Projects.length; i++)
|
||||
NameID.internalBinaryWrite(message.Projects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
SegmentationsSettings.internalBinaryWrite(message.Projects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -4243,6 +4260,53 @@ class ListSitesAuthorizedForBookingRequest$Type extends MessageType<ListSitesAut
|
||||
*/
|
||||
export const ListSitesAuthorizedForBookingRequest = new ListSitesAuthorizedForBookingRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListSitesAuthorizedForBookingResponse$Type extends MessageType<ListSitesAuthorizedForBookingResponse> {
|
||||
constructor() {
|
||||
super("api.ListSitesAuthorizedForBookingResponse", [
|
||||
{ no: 1, name: "ListOfSitesPerOrganisations", kind: "message", localName: "ListOfSitesPerOrganisations", jsonName: "ListOfSitesPerOrganisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListOfSitesPerOrganisation }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListSitesAuthorizedForBookingResponse>): ListSitesAuthorizedForBookingResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ListOfSitesPerOrganisations = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSitesAuthorizedForBookingResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingResponse): ListSitesAuthorizedForBookingResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations */ 1:
|
||||
message.ListOfSitesPerOrganisations.push(ListOfSitesPerOrganisation.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: ListSitesAuthorizedForBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1; */
|
||||
for (let i = 0; i < message.ListOfSitesPerOrganisations.length; i++)
|
||||
ListOfSitesPerOrganisation.internalBinaryWrite(message.ListOfSitesPerOrganisations[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.ListSitesAuthorizedForBookingResponse
|
||||
*/
|
||||
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", [
|
||||
@@ -4382,53 +4446,6 @@ class ClearSiteAliasResponse$Type extends MessageType<ClearSiteAliasResponse> {
|
||||
*/
|
||||
export const ClearSiteAliasResponse = new ClearSiteAliasResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListSitesAuthorizedForBookingResponse$Type extends MessageType<ListSitesAuthorizedForBookingResponse> {
|
||||
constructor() {
|
||||
super("api.ListSitesAuthorizedForBookingResponse", [
|
||||
{ no: 1, name: "ListOfSitesPerOrganisations", kind: "message", localName: "ListOfSitesPerOrganisations", jsonName: "ListOfSitesPerOrganisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListOfSitesPerOrganisation }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListSitesAuthorizedForBookingResponse>): ListSitesAuthorizedForBookingResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ListOfSitesPerOrganisations = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSitesAuthorizedForBookingResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingResponse): ListSitesAuthorizedForBookingResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations */ 1:
|
||||
message.ListOfSitesPerOrganisations.push(ListOfSitesPerOrganisation.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: ListSitesAuthorizedForBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1; */
|
||||
for (let i = 0; i < message.ListOfSitesPerOrganisations.length; i++)
|
||||
ListOfSitesPerOrganisation.internalBinaryWrite(message.ListOfSitesPerOrganisations[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.ListSitesAuthorizedForBookingResponse
|
||||
*/
|
||||
export const ListSitesAuthorizedForBookingResponse = new ListSitesAuthorizedForBookingResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetBasicSettingsRequest$Type extends MessageType<GetBasicSettingsRequest> {
|
||||
constructor() {
|
||||
super("api.GetBasicSettingsRequest", [
|
||||
@@ -4561,6 +4578,99 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
|
||||
*/
|
||||
export const GetBasicSettingsResponse = new GetBasicSettingsResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetUnitsRequest$Type extends MessageType<GetUnitsRequest> {
|
||||
constructor() {
|
||||
super("api.GetUnitsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetUnitsRequest>): GetUnitsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetUnitsRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUnitsRequest): GetUnitsRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetUnitsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetUnitsRequest
|
||||
*/
|
||||
export const GetUnitsRequest = new GetUnitsRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetUnitsResponse$Type extends MessageType<GetUnitsResponse> {
|
||||
constructor() {
|
||||
super("api.GetUnitsResponse", [
|
||||
{ no: 1, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetUnitsResponse>): GetUnitsResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Units = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetUnitsResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUnitsResponse): GetUnitsResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Unit Units */ 1:
|
||||
message.Units.push(Unit.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: GetUnitsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Unit Units = 1; */
|
||||
for (let i = 0; i < message.Units.length; i++)
|
||||
Unit.internalBinaryWrite(message.Units[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.GetUnitsResponse
|
||||
*/
|
||||
export const GetUnitsResponse = new GetUnitsResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetPossibleSegmentationOnSiteForBookingRequest$Type extends MessageType<GetPossibleSegmentationOnSiteForBookingRequest> {
|
||||
constructor() {
|
||||
super("api.GetPossibleSegmentationOnSiteForBookingRequest", [
|
||||
@@ -4700,6 +4810,7 @@ export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ name: "DeleteSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSettingsRequest, O: DeleteSettingsResult },
|
||||
{ name: "CreateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateSettingsRequest, O: CreateSettingsResponse },
|
||||
{ name: "CreateSettingsV2", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateSettingsRequest, O: CreateSettingsResponse },
|
||||
{ name: "GetUnits", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the Units of a site to display" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetUnitsRequest, O: GetUnitsResponse },
|
||||
{ name: "GetBasicSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the basic settings of a site to display" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBasicSettingsRequest, O: GetBasicSettingsResponse },
|
||||
{ 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: "GetPossibleSegmentationOnSiteForBooking", 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: GetPossibleSegmentationOnSiteForBookingRequest, O: GetPossibleSegmentationOnSiteForBookingResponse },
|
||||
|
||||
Reference in New Issue
Block a user