You've already forked npm-core-sdk
Latest generation
This commit is contained in:
216
slotbooking.ts
216
slotbooking.ts
@@ -328,47 +328,31 @@ export interface SegmentationSelection {
|
||||
*/
|
||||
SegmentationValueID: string;
|
||||
}
|
||||
/**
|
||||
* CarrierInformation
|
||||
* The five following messages are pretty similar, for each added object, they can add a translated version
|
||||
*
|
||||
* @generated from protobuf message api.CarrierInformation
|
||||
*/
|
||||
export interface CarrierInformation {
|
||||
/**
|
||||
* @generated from protobuf field: string CarrierInformationID = 1
|
||||
*/
|
||||
CarrierInformationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.LabelByLanguage Labels = 2
|
||||
*/
|
||||
Labels: LabelByLanguage[]; // @option language
|
||||
/**
|
||||
* @generated from protobuf field: api.CarrierInformationType Type = 3
|
||||
*/
|
||||
Type: CarrierInformationType;
|
||||
/**
|
||||
* @generated from protobuf field: bool IsMandatory = 4
|
||||
*/
|
||||
IsMandatory: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: bool FormatCheck = 5
|
||||
*/
|
||||
FormatCheck: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CarrierInformationWithValue
|
||||
*/
|
||||
export interface CarrierInformationWithValue {
|
||||
/**
|
||||
* @generated from protobuf field: api.CarrierInformation CarrierInformation = 1
|
||||
*/
|
||||
CarrierInformation?: CarrierInformation;
|
||||
/**
|
||||
* @generated from protobuf field: string Value = 2
|
||||
*/
|
||||
Value: string;
|
||||
}
|
||||
// enum CarrierInformationType {
|
||||
// CARRIER_INFORMATION_TYPE_UNKNOWN = 0;
|
||||
// CARRIER_INFORMATION_TYPE_DOCUMENT = 1;
|
||||
// CARRIER_INFORMATION_TYPE_METADATA = 2;
|
||||
// }
|
||||
|
||||
// // CarrierInformation
|
||||
// // The five following messages are pretty similar, for each added object, they can add a translated version
|
||||
// message CarrierInformation {
|
||||
// string CarrierInformationID = 1;
|
||||
// repeated LabelByLanguage Labels = 2
|
||||
// [
|
||||
// (language) = true,
|
||||
// (aggKey) = "LanguageCodeISO6391"
|
||||
// ]; // @option language
|
||||
// CarrierInformationType Type = 3;
|
||||
// bool IsMandatory = 4;
|
||||
// bool FormatCheck = 5;
|
||||
// }
|
||||
|
||||
// message CarrierInformationWithValue{
|
||||
// CarrierInformation CarrierInformation = 1;
|
||||
// string Value = 2;
|
||||
// }
|
||||
|
||||
/**
|
||||
* Document
|
||||
* We anticipate that they want to put several but if they only have one with all the language, it should still work
|
||||
@@ -683,23 +667,6 @@ export enum CapacityRuleScope {
|
||||
*/
|
||||
CAPACITY_RULE_SCOPE_DAILY = 2
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.CarrierInformationType
|
||||
*/
|
||||
export enum CarrierInformationType {
|
||||
/**
|
||||
* @generated from protobuf enum value: CARRIER_INFORMATION_TYPE_UNKNOWN = 0;
|
||||
*/
|
||||
CARRIER_INFORMATION_TYPE_UNKNOWN = 0,
|
||||
/**
|
||||
* @generated from protobuf enum value: CARRIER_INFORMATION_TYPE_DOCUMENT = 1;
|
||||
*/
|
||||
CARRIER_INFORMATION_TYPE_DOCUMENT = 1,
|
||||
/**
|
||||
* @generated from protobuf enum value: CARRIER_INFORMATION_TYPE_METADATA = 2;
|
||||
*/
|
||||
CARRIER_INFORMATION_TYPE_METADATA = 2
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.CommandIdentifierEntry
|
||||
*/
|
||||
@@ -1730,139 +1697,6 @@ class SegmentationSelection$Type extends MessageType<SegmentationSelection> {
|
||||
*/
|
||||
export const SegmentationSelection = new SegmentationSelection$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CarrierInformation$Type extends MessageType<CarrierInformation> {
|
||||
constructor() {
|
||||
super("api.CarrierInformation", [
|
||||
{ no: 1, name: "CarrierInformationID", kind: "scalar", localName: "CarrierInformationID", jsonName: "CarrierInformationID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } },
|
||||
{ no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.CarrierInformationType", CarrierInformationType] },
|
||||
{ no: 4, name: "IsMandatory", kind: "scalar", localName: "IsMandatory", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "FormatCheck", kind: "scalar", localName: "FormatCheck", jsonName: "FormatCheck", T: 8 /*ScalarType.BOOL*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CarrierInformation>): CarrierInformation {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.CarrierInformationID = "";
|
||||
message.Labels = [];
|
||||
message.Type = 0;
|
||||
message.IsMandatory = false;
|
||||
message.FormatCheck = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CarrierInformation>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierInformation): CarrierInformation {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string CarrierInformationID */ 1:
|
||||
message.CarrierInformationID = reader.string();
|
||||
break;
|
||||
case /* repeated api.LabelByLanguage Labels */ 2:
|
||||
message.Labels.push(LabelByLanguage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.CarrierInformationType Type */ 3:
|
||||
message.Type = reader.int32();
|
||||
break;
|
||||
case /* bool IsMandatory */ 4:
|
||||
message.IsMandatory = reader.bool();
|
||||
break;
|
||||
case /* bool FormatCheck */ 5:
|
||||
message.FormatCheck = 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: CarrierInformation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string CarrierInformationID = 1; */
|
||||
if (message.CarrierInformationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.CarrierInformationID);
|
||||
/* repeated api.LabelByLanguage Labels = 2; */
|
||||
for (let i = 0; i < message.Labels.length; i++)
|
||||
LabelByLanguage.internalBinaryWrite(message.Labels[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.CarrierInformationType Type = 3; */
|
||||
if (message.Type !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Type);
|
||||
/* bool IsMandatory = 4; */
|
||||
if (message.IsMandatory !== false)
|
||||
writer.tag(4, WireType.Varint).bool(message.IsMandatory);
|
||||
/* bool FormatCheck = 5; */
|
||||
if (message.FormatCheck !== false)
|
||||
writer.tag(5, WireType.Varint).bool(message.FormatCheck);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CarrierInformation
|
||||
*/
|
||||
export const CarrierInformation = new CarrierInformation$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CarrierInformationWithValue$Type extends MessageType<CarrierInformationWithValue> {
|
||||
constructor() {
|
||||
super("api.CarrierInformationWithValue", [
|
||||
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", T: () => CarrierInformation },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CarrierInformationWithValue>): CarrierInformationWithValue {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Value = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CarrierInformationWithValue>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierInformationWithValue): CarrierInformationWithValue {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.CarrierInformation CarrierInformation */ 1:
|
||||
message.CarrierInformation = CarrierInformation.internalBinaryRead(reader, reader.uint32(), options, message.CarrierInformation);
|
||||
break;
|
||||
case /* string Value */ 2:
|
||||
message.Value = 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: CarrierInformationWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.CarrierInformation CarrierInformation = 1; */
|
||||
if (message.CarrierInformation)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Value = 2; */
|
||||
if (message.Value !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CarrierInformationWithValue
|
||||
*/
|
||||
export const CarrierInformationWithValue = new CarrierInformationWithValue$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Document$Type extends MessageType<Document> {
|
||||
constructor() {
|
||||
super("api.Document", [
|
||||
|
||||
Reference in New Issue
Block a user