You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -5272,7 +5272,7 @@ class AppointmentCarrierDepartedEvent$Type extends MessageType<AppointmentCarrie
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted" });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted", "api.preAggMethods": "lockBooking" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCarrierDepartedEvent>): AppointmentCarrierDepartedEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260312162158",
|
||||
"version": "1.13.0-SNAPSHOT-260313141738",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { BookingService } from "./siteBooking";
|
||||
import type { LockBookingResponse } from "./siteBooking";
|
||||
import type { LockBookingRequest } from "./siteBooking";
|
||||
import type { CheckBookingAppointmentEditableResponse } from "./siteBooking";
|
||||
import type { CheckBookingAppointmentEditableRequest } from "./siteBooking";
|
||||
import type { RescheduleBookingAppointmentRequest } from "./siteBooking";
|
||||
@@ -78,6 +80,10 @@ export interface IBookingServiceClient {
|
||||
* @generated from protobuf rpc: CheckAppointmentEditable
|
||||
*/
|
||||
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: LockBooking
|
||||
*/
|
||||
lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall<LockBookingRequest, LockBookingResponse>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.BookingService
|
||||
@@ -186,4 +192,11 @@ export class BookingServiceClient implements IBookingServiceClient, ServiceInfo
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LockBooking
|
||||
*/
|
||||
lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall<LockBookingRequest, LockBookingResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<LockBookingRequest, LockBookingResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
114
siteBooking.ts
114
siteBooking.ts
@@ -386,6 +386,26 @@ export interface CheckBookingAppointmentEditableResponse {
|
||||
*/
|
||||
IsForceEditable: boolean;
|
||||
}
|
||||
/**
|
||||
* CheckAppointmentEditable
|
||||
*
|
||||
* @generated from protobuf message api.LockBookingRequest
|
||||
*/
|
||||
export interface LockBookingRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.LockBookingResponse
|
||||
*/
|
||||
export interface LockBookingResponse {
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
|
||||
constructor() {
|
||||
@@ -1388,6 +1408,97 @@ class CheckBookingAppointmentEditableResponse$Type extends MessageType<CheckBook
|
||||
* @generated MessageType for protobuf message api.CheckBookingAppointmentEditableResponse
|
||||
*/
|
||||
export const CheckBookingAppointmentEditableResponse = new CheckBookingAppointmentEditableResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class LockBookingRequest$Type extends MessageType<LockBookingRequest> {
|
||||
constructor() {
|
||||
super("api.LockBookingRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<LockBookingRequest>): LockBookingRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<LockBookingRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LockBookingRequest): LockBookingRequest {
|
||||
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 /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
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: LockBookingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, 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.LockBookingRequest
|
||||
*/
|
||||
export const LockBookingRequest = new LockBookingRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class LockBookingResponse$Type extends MessageType<LockBookingResponse> {
|
||||
constructor() {
|
||||
super("api.LockBookingResponse", []);
|
||||
}
|
||||
create(value?: PartialMessage<LockBookingResponse>): LockBookingResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<LockBookingResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LockBookingResponse): LockBookingResponse {
|
||||
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: LockBookingResponse, 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.LockBookingResponse
|
||||
*/
|
||||
export const LockBookingResponse = new LockBookingResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.BookingService
|
||||
*/
|
||||
@@ -1405,5 +1516,6 @@ export const BookingService = new ServiceType("api.BookingService", [
|
||||
{ name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment from a wms even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSUpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
{ name: "RescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
{ name: "ForceRescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
{ name: "CheckAppointmentEditable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Check if appointment is in modifiable range." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckBookingAppointmentEditableRequest, O: CheckBookingAppointmentEditableResponse }
|
||||
{ name: "CheckAppointmentEditable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Check if appointment is in modifiable range." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckBookingAppointmentEditableRequest, O: CheckBookingAppointmentEditableResponse },
|
||||
{ name: "LockBooking", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Lock Booking." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: LockBookingRequest, O: LockBookingResponse }
|
||||
], { "api.k8sService": "core-site" });
|
||||
|
||||
@@ -691,6 +691,10 @@ export interface Booking {
|
||||
* @generated from protobuf field: string LastUpdate = 12
|
||||
*/
|
||||
LastUpdate: string;
|
||||
/**
|
||||
* @generated from protobuf field: bool Locked = 13
|
||||
*/
|
||||
Locked: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SlotGroup
|
||||
@@ -2702,7 +2706,8 @@ class Booking$Type extends MessageType<Booking> {
|
||||
{ no: 9, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||
{ no: 10, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 12, name: "LastUpdate", kind: "scalar", localName: "LastUpdate", jsonName: "LastUpdate", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 12, name: "LastUpdate", kind: "scalar", localName: "LastUpdate", jsonName: "LastUpdate", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 13, name: "Locked", kind: "scalar", localName: "Locked", jsonName: "Locked", T: 8 /*ScalarType.BOOL*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Booking>): Booking {
|
||||
@@ -2716,6 +2721,7 @@ class Booking$Type extends MessageType<Booking> {
|
||||
message.Emails = [];
|
||||
message.Reason = "";
|
||||
message.LastUpdate = "";
|
||||
message.Locked = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Booking>(this, message, value);
|
||||
return message;
|
||||
@@ -2758,6 +2764,9 @@ class Booking$Type extends MessageType<Booking> {
|
||||
case /* string LastUpdate */ 12:
|
||||
message.LastUpdate = reader.string();
|
||||
break;
|
||||
case /* bool Locked */ 13:
|
||||
message.Locked = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2803,6 +2812,9 @@ class Booking$Type extends MessageType<Booking> {
|
||||
/* string LastUpdate = 12; */
|
||||
if (message.LastUpdate !== "")
|
||||
writer.tag(12, WireType.LengthDelimited).string(message.LastUpdate);
|
||||
/* bool Locked = 13; */
|
||||
if (message.Locked !== false)
|
||||
writer.tag(13, WireType.Varint).bool(message.Locked);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user