You've already forked npm-core-sdk
Latest generation
This commit is contained in:
93
shared.ts
93
shared.ts
@@ -1999,6 +1999,19 @@ export interface FileDataResponse {
|
||||
*/
|
||||
Content: Uint8Array;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.Period
|
||||
*/
|
||||
export interface Period {
|
||||
/**
|
||||
* @generated from protobuf field: int64 Value = 1
|
||||
*/
|
||||
Value: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: api.PeriodUnit Unit = 2
|
||||
*/
|
||||
Unit: PeriodUnit;
|
||||
}
|
||||
/**
|
||||
* List all data set in the model
|
||||
*
|
||||
@@ -2660,6 +2673,31 @@ export enum ResourceType {
|
||||
*/
|
||||
RESOURCE_TYPE_SITE = 80
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.PeriodUnit
|
||||
*/
|
||||
export enum PeriodUnit {
|
||||
/**
|
||||
* @generated from protobuf enum value: PERIOD_UNIT_UNDEFINED = 0;
|
||||
*/
|
||||
PERIOD_UNIT_UNDEFINED = 0,
|
||||
/**
|
||||
* @generated from protobuf enum value: PERIOD_UNIT_WORK_HOUR = 1;
|
||||
*/
|
||||
PERIOD_UNIT_WORK_HOUR = 1,
|
||||
/**
|
||||
* @generated from protobuf enum value: PERIOD_UNIT_WORK_DAY = 2;
|
||||
*/
|
||||
PERIOD_UNIT_WORK_DAY = 2,
|
||||
/**
|
||||
* Google Duration class only expresses durations in seconds and nanoseconds
|
||||
* To get it in calendar days, working days, it is more complex because all year days do not have the same length...
|
||||
* Some go libraries will be required
|
||||
*
|
||||
* @generated from protobuf enum value: PERIOD_UNIT_CALENDAR_DAY = 3;
|
||||
*/
|
||||
PERIOD_UNIT_CALENDAR_DAY = 3
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class RequestHeader$Type extends MessageType<RequestHeader> {
|
||||
constructor() {
|
||||
@@ -8372,3 +8410,58 @@ class FileDataResponse$Type extends MessageType<FileDataResponse> {
|
||||
* @generated MessageType for protobuf message api.FileDataResponse
|
||||
*/
|
||||
export const FileDataResponse = new FileDataResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Period$Type extends MessageType<Period> {
|
||||
constructor() {
|
||||
super("api.Period", [
|
||||
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 2, name: "Unit", kind: "enum", localName: "Unit", jsonName: "Unit", T: () => ["api.PeriodUnit", PeriodUnit] }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Period>): Period {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Value = 0n;
|
||||
message.Unit = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Period>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Period): Period {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* int64 Value */ 1:
|
||||
message.Value = reader.int64().toBigInt();
|
||||
break;
|
||||
case /* api.PeriodUnit Unit */ 2:
|
||||
message.Unit = reader.int32();
|
||||
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: Period, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* int64 Value = 1; */
|
||||
if (message.Value !== 0n)
|
||||
writer.tag(1, WireType.Varint).int64(message.Value);
|
||||
/* api.PeriodUnit Unit = 2; */
|
||||
if (message.Unit !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.Unit);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.Period
|
||||
*/
|
||||
export const Period = new Period$Type();
|
||||
|
||||
Reference in New Issue
Block a user