You've already forked npm-core-sdk
Latest generation
This commit is contained in:
157
site.ts
157
site.ts
@@ -1394,45 +1394,6 @@ export interface InitBookerProfileResponse {
|
||||
*/
|
||||
SiteID: string; // Site ID
|
||||
}
|
||||
/**
|
||||
* CheckAppointmentEditable
|
||||
*
|
||||
* @generated from protobuf message api.CheckAppointmentEditableRequest
|
||||
*/
|
||||
export interface CheckAppointmentEditableRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Type of appointment : Loading / Unloading / Both
|
||||
*
|
||||
* @generated from protobuf field: string AppointmentID = 2
|
||||
*/
|
||||
AppointmentID: string;
|
||||
/**
|
||||
* actor with which the siteID/project-depositID will be processed
|
||||
*
|
||||
* @generated from protobuf field: string ActorID = 3
|
||||
*/
|
||||
ActorID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CheckAppointmentEditableResponse
|
||||
*/
|
||||
export interface CheckAppointmentEditableResponse {
|
||||
/**
|
||||
* ResponseHeader Header = 2;
|
||||
* bool IsModifiable = 1;
|
||||
*
|
||||
* @generated from protobuf field: bool IsEditable = 3
|
||||
*/
|
||||
IsEditable: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: bool IsForceEditable = 4
|
||||
*/
|
||||
IsForceEditable: boolean;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Site$Type extends MessageType<Site> {
|
||||
constructor() {
|
||||
@@ -5553,123 +5514,6 @@ class InitBookerProfileResponse$Type extends MessageType<InitBookerProfileRespon
|
||||
* @generated MessageType for protobuf message api.InitBookerProfileResponse
|
||||
*/
|
||||
export const InitBookerProfileResponse = new InitBookerProfileResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CheckAppointmentEditableRequest$Type extends MessageType<CheckAppointmentEditableRequest> {
|
||||
constructor() {
|
||||
super("api.CheckAppointmentEditableRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CheckAppointmentEditableRequest>): CheckAppointmentEditableRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
message.ActorID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CheckAppointmentEditableRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckAppointmentEditableRequest): CheckAppointmentEditableRequest {
|
||||
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 AppointmentID */ 2:
|
||||
message.AppointmentID = reader.string();
|
||||
break;
|
||||
case /* string ActorID */ 3:
|
||||
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: CheckAppointmentEditableRequest, 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 AppointmentID = 2; */
|
||||
if (message.AppointmentID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID);
|
||||
/* string ActorID = 3; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(3, 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.CheckAppointmentEditableRequest
|
||||
*/
|
||||
export const CheckAppointmentEditableRequest = new CheckAppointmentEditableRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CheckAppointmentEditableResponse$Type extends MessageType<CheckAppointmentEditableResponse> {
|
||||
constructor() {
|
||||
super("api.CheckAppointmentEditableResponse", [
|
||||
{ no: 3, name: "IsEditable", kind: "scalar", localName: "IsEditable", jsonName: "IsEditable", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "IsForceEditable", kind: "scalar", localName: "IsForceEditable", jsonName: "IsForceEditable", T: 8 /*ScalarType.BOOL*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CheckAppointmentEditableResponse>): CheckAppointmentEditableResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.IsEditable = false;
|
||||
message.IsForceEditable = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CheckAppointmentEditableResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckAppointmentEditableResponse): CheckAppointmentEditableResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool IsEditable */ 3:
|
||||
message.IsEditable = reader.bool();
|
||||
break;
|
||||
case /* bool IsForceEditable */ 4:
|
||||
message.IsForceEditable = reader.bool();
|
||||
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: CheckAppointmentEditableResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* bool IsEditable = 3; */
|
||||
if (message.IsEditable !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.IsEditable);
|
||||
/* bool IsForceEditable = 4; */
|
||||
if (message.IsForceEditable !== false)
|
||||
writer.tag(4, WireType.Varint).bool(message.IsForceEditable);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CheckAppointmentEditableResponse
|
||||
*/
|
||||
export const CheckAppointmentEditableResponse = new CheckAppointmentEditableResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.SiteService
|
||||
*/
|
||||
@@ -5705,6 +5549,5 @@ export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ 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": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "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 },
|
||||
{ name: "CheckAppointmentEditable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Check if appointment is in modifiable range." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckAppointmentEditableRequest, O: CheckAppointmentEditableResponse },
|
||||
{ name: "ListSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List all settings in the platform." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListSettingsRequest, O: ListSettingsResponse }
|
||||
], { "api.k8sService": "core-site" });
|
||||
|
||||
Reference in New Issue
Block a user