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-251010145739",
|
||||
"version": "1.12.0-SNAPSHOT-251013080835",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -12,6 +12,8 @@ import type { GetAliasesOfSiteResponse } from "./site";
|
||||
import type { GetAliasesOfSiteRequest } from "./site";
|
||||
import type { GetSiteFromAliasResponse } from "./site";
|
||||
import type { GetSiteFromAliasRequest } from "./site";
|
||||
import type { GetPossibleSegmentationOnSiteForBookingResponse } from "./site";
|
||||
import type { GetPossibleSegmentationOnSiteForBookingRequest } from "./site";
|
||||
import type { ListSitesAuthorizedForBookingResponse } from "./site";
|
||||
import type { ListSitesAuthorizedForBookingRequest } from "./site";
|
||||
import type { GetBasicSettingsResponse } from "./site";
|
||||
@@ -137,6 +139,10 @@ export interface ISiteServiceClient {
|
||||
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
|
||||
*/
|
||||
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetPossibleSegmentationOnSiteForBooking
|
||||
*/
|
||||
getPossibleSegmentationOnSiteForBooking(input: GetPossibleSegmentationOnSiteForBookingRequest, options?: RpcOptions): UnaryCall<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSiteFromAlias
|
||||
*/
|
||||
@@ -310,32 +316,39 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
||||
const method = this.methods[20], 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);
|
||||
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[21], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[22], 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[22], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[23], 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[23], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[24], 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[24], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[25], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
155
site.ts
155
site.ts
@@ -11,6 +11,7 @@ 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 { SegmentationFilter } from "./slotbooking";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
@@ -1201,6 +1202,38 @@ export interface GetBasicSettingsResponse {
|
||||
*/
|
||||
Emails: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetPossibleSegmentationOnSiteForBookingRequest
|
||||
*/
|
||||
export interface GetPossibleSegmentationOnSiteForBookingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 2
|
||||
*/
|
||||
ActorID: string; // actor corresponding to the project in the header
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentType AppointmentType = 3
|
||||
*/
|
||||
AppointmentType: AppointmentType; // Reception or Expedition for the wanted appointment
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 4
|
||||
*/
|
||||
Commissions: Commission[]; // List of Commissions to check
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetPossibleSegmentationOnSiteForBookingResponse
|
||||
*/
|
||||
export interface GetPossibleSegmentationOnSiteForBookingResponse {
|
||||
/**
|
||||
* Name of the Site
|
||||
*
|
||||
* @generated from protobuf field: repeated api.SegmentationFilter SegmentationChoices = 1
|
||||
*/
|
||||
SegmentationChoices: SegmentationFilter[];
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Site$Type extends MessageType<Site> {
|
||||
constructor() {
|
||||
@@ -4502,6 +4535,123 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
|
||||
* @generated MessageType for protobuf message api.GetBasicSettingsResponse
|
||||
*/
|
||||
export const GetBasicSettingsResponse = new GetBasicSettingsResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetPossibleSegmentationOnSiteForBookingRequest$Type extends MessageType<GetPossibleSegmentationOnSiteForBookingRequest> {
|
||||
constructor() {
|
||||
super("api.GetPossibleSegmentationOnSiteForBookingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
||||
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType", "Commissions"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetPossibleSegmentationOnSiteForBookingRequest>): GetPossibleSegmentationOnSiteForBookingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ActorID = "";
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetPossibleSegmentationOnSiteForBookingRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPossibleSegmentationOnSiteForBookingRequest): GetPossibleSegmentationOnSiteForBookingRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ActorID */ 2:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* api.AppointmentType AppointmentType */ 3:
|
||||
message.AppointmentType = reader.int32();
|
||||
break;
|
||||
case /* repeated api.Commission Commissions */ 4:
|
||||
message.Commissions.push(Commission.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: GetPossibleSegmentationOnSiteForBookingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ActorID = 2; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* api.AppointmentType AppointmentType = 3; */
|
||||
if (message.AppointmentType !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.AppointmentType);
|
||||
/* repeated api.Commission Commissions = 4; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(4, 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.GetPossibleSegmentationOnSiteForBookingRequest
|
||||
*/
|
||||
export const GetPossibleSegmentationOnSiteForBookingRequest = new GetPossibleSegmentationOnSiteForBookingRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetPossibleSegmentationOnSiteForBookingResponse$Type extends MessageType<GetPossibleSegmentationOnSiteForBookingResponse> {
|
||||
constructor() {
|
||||
super("api.GetPossibleSegmentationOnSiteForBookingResponse", [
|
||||
{ no: 1, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationFilter }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetPossibleSegmentationOnSiteForBookingResponse>): GetPossibleSegmentationOnSiteForBookingResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SegmentationChoices = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetPossibleSegmentationOnSiteForBookingResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPossibleSegmentationOnSiteForBookingResponse): GetPossibleSegmentationOnSiteForBookingResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.SegmentationFilter SegmentationChoices */ 1:
|
||||
message.SegmentationChoices.push(SegmentationFilter.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: GetPossibleSegmentationOnSiteForBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.SegmentationFilter SegmentationChoices = 1; */
|
||||
for (let i = 0; i < message.SegmentationChoices.length; i++)
|
||||
SegmentationFilter.internalBinaryWrite(message.SegmentationChoices[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.GetPossibleSegmentationOnSiteForBookingResponse
|
||||
*/
|
||||
export const GetPossibleSegmentationOnSiteForBookingResponse = new GetPossibleSegmentationOnSiteForBookingResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.SiteService
|
||||
*/
|
||||
@@ -4525,8 +4675,9 @@ 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: "GetBasicSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the basic settings of a site to display" }, "api.rscType": "Platform", "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": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListSitesAuthorizedForBookingRequest, O: ListSitesAuthorizedForBookingResponse },
|
||||
{ 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 },
|
||||
{ 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 },
|
||||
|
||||
Reference in New Issue
Block a user