You've already forked npm-core-sdk
Latest generation
This commit is contained in:
270
orderInput.ts
270
orderInput.ts
@@ -2078,6 +2078,62 @@ export interface OrderAppointmentUpdatedResponse {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// AppointmentBookingDisabled
|
||||
// - Inform the order that booking appointment has been disabled.
|
||||
|
||||
/**
|
||||
* @generated from protobuf message api.OrderAppointmentBookingDisabledPayload
|
||||
*/
|
||||
export interface OrderAppointmentBookingDisabledPayload {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.OrderAppointmentBookingDisabledEvent
|
||||
*/
|
||||
export interface OrderAppointmentBookingDisabledEvent {
|
||||
/**
|
||||
* @generated from protobuf field: api.EventHeader Header = 1
|
||||
*/
|
||||
Header?: EventHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.OrderAppointmentBookingDisabledPayload Payload = 3
|
||||
*/
|
||||
Payload?: OrderAppointmentBookingDisabledPayload;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.OrderAppointmentBookingDisabledRequest
|
||||
*/
|
||||
export interface OrderAppointmentBookingDisabledRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.OrderAppointmentBookingDisabledPayload Payload = 3
|
||||
*/
|
||||
Payload?: OrderAppointmentBookingDisabledPayload;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.OrderAppointmentBookingDisabledResponse
|
||||
*/
|
||||
export interface OrderAppointmentBookingDisabledResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class OrderCreatedPayload$Type extends MessageType<OrderCreatedPayload> {
|
||||
constructor() {
|
||||
@@ -9003,6 +9059,217 @@ class OrderAppointmentUpdatedResponse$Type extends MessageType<OrderAppointmentU
|
||||
* @generated MessageType for protobuf message api.OrderAppointmentUpdatedResponse
|
||||
*/
|
||||
export const OrderAppointmentUpdatedResponse = new OrderAppointmentUpdatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class OrderAppointmentBookingDisabledPayload$Type extends MessageType<OrderAppointmentBookingDisabledPayload> {
|
||||
constructor() {
|
||||
super("api.OrderAppointmentBookingDisabledPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AppointmentBookingDisabled" });
|
||||
}
|
||||
create(value?: PartialMessage<OrderAppointmentBookingDisabledPayload>): OrderAppointmentBookingDisabledPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrderAppointmentBookingDisabledPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledPayload): OrderAppointmentBookingDisabledPayload {
|
||||
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: OrderAppointmentBookingDisabledPayload, 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.OrderAppointmentBookingDisabledPayload
|
||||
*/
|
||||
export const OrderAppointmentBookingDisabledPayload = new OrderAppointmentBookingDisabledPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class OrderAppointmentBookingDisabledEvent$Type extends MessageType<OrderAppointmentBookingDisabledEvent> {
|
||||
constructor() {
|
||||
super("api.OrderAppointmentBookingDisabledEvent", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAppointmentBookingDisabledPayload, options: { "n1validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Event", "api.inputEvent": "AppointmentBookingDisabled", "api.postAggMethods": "disableAppointmentBooking" });
|
||||
}
|
||||
create(value?: PartialMessage<OrderAppointmentBookingDisabledEvent>): OrderAppointmentBookingDisabledEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrderAppointmentBookingDisabledEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledEvent): OrderAppointmentBookingDisabledEvent {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EventHeader Header */ 1:
|
||||
message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.OrderAppointmentBookingDisabledPayload Payload */ 3:
|
||||
message.Payload = OrderAppointmentBookingDisabledPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
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: OrderAppointmentBookingDisabledEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EventHeader Header = 1; */
|
||||
if (message.Header)
|
||||
EventHeader.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();
|
||||
/* api.OrderAppointmentBookingDisabledPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
OrderAppointmentBookingDisabledPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.OrderAppointmentBookingDisabledEvent
|
||||
*/
|
||||
export const OrderAppointmentBookingDisabledEvent = new OrderAppointmentBookingDisabledEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class OrderAppointmentBookingDisabledRequest$Type extends MessageType<OrderAppointmentBookingDisabledRequest> {
|
||||
constructor() {
|
||||
super("api.OrderAppointmentBookingDisabledRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAppointmentBookingDisabledPayload, options: { "n1validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AppointmentBookingDisabled" });
|
||||
}
|
||||
create(value?: PartialMessage<OrderAppointmentBookingDisabledRequest>): OrderAppointmentBookingDisabledRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrderAppointmentBookingDisabledRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledRequest): OrderAppointmentBookingDisabledRequest {
|
||||
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;
|
||||
case /* api.OrderAppointmentBookingDisabledPayload Payload */ 3:
|
||||
message.Payload = OrderAppointmentBookingDisabledPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
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: OrderAppointmentBookingDisabledRequest, 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();
|
||||
/* api.OrderAppointmentBookingDisabledPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
OrderAppointmentBookingDisabledPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.OrderAppointmentBookingDisabledRequest
|
||||
*/
|
||||
export const OrderAppointmentBookingDisabledRequest = new OrderAppointmentBookingDisabledRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class OrderAppointmentBookingDisabledResponse$Type extends MessageType<OrderAppointmentBookingDisabledResponse> {
|
||||
constructor() {
|
||||
super("api.OrderAppointmentBookingDisabledResponse", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
|
||||
], { "api.messageType": "Response", "api.inputEvent": "AppointmentBookingDisabled" });
|
||||
}
|
||||
create(value?: PartialMessage<OrderAppointmentBookingDisabledResponse>): OrderAppointmentBookingDisabledResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrderAppointmentBookingDisabledResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledResponse): OrderAppointmentBookingDisabledResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseHeader Header */ 1:
|
||||
message.Header = ResponseHeader.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: OrderAppointmentBookingDisabledResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseHeader.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.OrderAppointmentBookingDisabledResponse
|
||||
*/
|
||||
export const OrderAppointmentBookingDisabledResponse = new OrderAppointmentBookingDisabledResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.OrderInputAPI
|
||||
*/
|
||||
@@ -9037,5 +9304,6 @@ export const OrderInputAPI = new ServiceType("api.OrderInputAPI", [
|
||||
{ name: "ReceiptExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Receipt is expected on the Order. This is typically called from a WMS. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderReceiptExpectedRequest, O: OrderReceiptExpectedResponse },
|
||||
{ name: "ReceiptStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Receipt has started on the Order. This is typically called from a WMS. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderReceiptStartedRequest, O: OrderReceiptStartedResponse },
|
||||
{ name: "ReceiptCompleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Receipt is completed on the Order. This is typically called from a WMS. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderReceiptCompletedRequest, O: OrderReceiptCompletedResponse },
|
||||
{ name: "AppointmentUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An appointment is updated for the Order." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderAppointmentUpdatedRequest, O: OrderAppointmentUpdatedResponse }
|
||||
{ name: "AppointmentUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An appointment is updated for the Order." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderAppointmentUpdatedRequest, O: OrderAppointmentUpdatedResponse },
|
||||
{ name: "AppointmentBookingDisabled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Booking appointment has been disabled for the Order." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderAppointmentBookingDisabledRequest, O: OrderAppointmentBookingDisabledResponse }
|
||||
], { "api.serviceType": "Api", "api.k8sService": "api-server" });
|
||||
|
||||
Reference in New Issue
Block a user