You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -20,7 +20,7 @@ import { MetadataElement } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
import { AppointmentCommission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
//
|
||||
// Created : this message tells that appointment is created
|
||||
@@ -41,9 +41,9 @@ export interface AppointmentCreatedPayload {
|
||||
* List of the orders and projects for which the appointment is made, with the quantities
|
||||
* TODO ??
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 2
|
||||
* @generated from protobuf field: repeated api.AppointmentCommission Commissions = 2
|
||||
*/
|
||||
Commissions: Commission[]; // [
|
||||
Commissions: AppointmentCommission[]; // [
|
||||
// (validate.rules).repeated.min_items = 1
|
||||
// ];
|
||||
/**
|
||||
@@ -293,9 +293,9 @@ export interface AppointmentCommissionsUpdatedPayload {
|
||||
*/
|
||||
Slot?: Slot;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 2
|
||||
* @generated from protobuf field: repeated api.AppointmentCommission Commissions = 2
|
||||
*/
|
||||
Commissions: Commission[];
|
||||
Commissions: AppointmentCommission[];
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -1185,7 +1185,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
constructor() {
|
||||
super("api.AppointmentCreatedPayload", [
|
||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission },
|
||||
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
@@ -1223,8 +1223,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* api.AppointmentType AppointmentType */ 1:
|
||||
message.AppointmentType = reader.int32();
|
||||
break;
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.AppointmentCommission Commissions */ 2:
|
||||
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
|
||||
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -1271,9 +1271,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* api.AppointmentType AppointmentType = 1; */
|
||||
if (message.AppointmentType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
/* repeated api.AppointmentCommission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
|
||||
for (let i = 0; i < message.SegmentationSelections.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1922,7 +1922,7 @@ class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentC
|
||||
constructor() {
|
||||
super("api.AppointmentCommissionsUpdatedPayload", [
|
||||
{ no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CommissionsUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCommissionsUpdatedPayload>): AppointmentCommissionsUpdatedPayload {
|
||||
@@ -1940,8 +1940,8 @@ class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentC
|
||||
case /* api.Slot Slot */ 1:
|
||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||
break;
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.AppointmentCommission Commissions */ 2:
|
||||
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1958,9 +1958,9 @@ class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentC
|
||||
/* api.Slot Slot = 1; */
|
||||
if (message.Slot)
|
||||
Slot.internalBinaryWrite(message.Slot, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
/* repeated api.AppointmentCommission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
AppointmentCommission.internalBinaryWrite(message.Commissions[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);
|
||||
|
||||
Reference in New Issue
Block a user