You've already forked npm-core-sdk
Latest generation
This commit is contained in:
74
billing.ts
74
billing.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "billing.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -22,27 +22,27 @@ export interface GenerateRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationID = 1 [json_name = "OrganisationID"];
|
||||
*/
|
||||
organisationID: string;
|
||||
OrganisationID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Comment = 2 [json_name = "Comment"];
|
||||
*/
|
||||
comment: string;
|
||||
Comment: string;
|
||||
/**
|
||||
* UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
|
||||
*
|
||||
* @generated from protobuf field: string FromDate = 3 [json_name = "FromDate"];
|
||||
*/
|
||||
fromDate: string;
|
||||
FromDate: string;
|
||||
/**
|
||||
* UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
|
||||
*
|
||||
* @generated from protobuf field: string ToDate = 4 [json_name = "ToDate"];
|
||||
*/
|
||||
toDate: string;
|
||||
ToDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.GenerateBillingFormat OutputFormat = 5 [json_name = "OutputFormat"];
|
||||
*/
|
||||
outputFormat: GenerateBillingFormat;
|
||||
OutputFormat: GenerateBillingFormat;
|
||||
}
|
||||
// =====================
|
||||
// ===== Responses =====
|
||||
@@ -55,7 +55,7 @@ export interface GenerateResult {
|
||||
/**
|
||||
* @generated from protobuf field: string Output = 1 [json_name = "Output"];
|
||||
*/
|
||||
output: string;
|
||||
Output: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.GenerateBillingFormat
|
||||
@@ -78,20 +78,20 @@ export enum GenerateBillingFormat {
|
||||
class GenerateRequest$Type extends MessageType<GenerateRequest> {
|
||||
constructor() {
|
||||
super("api.GenerateRequest", [
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Comment", kind: "scalar", jsonName: "Comment", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "FromDate", kind: "scalar", jsonName: "FromDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" } } },
|
||||
{ no: 4, name: "ToDate", kind: "scalar", jsonName: "ToDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" } } },
|
||||
{ no: 5, name: "OutputFormat", kind: "enum", jsonName: "OutputFormat", T: () => ["api.GenerateBillingFormat", GenerateBillingFormat], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Comment", kind: "scalar", localName: "Comment", jsonName: "Comment", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "FromDate", kind: "scalar", localName: "FromDate", jsonName: "FromDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" } } },
|
||||
{ no: 4, name: "ToDate", kind: "scalar", localName: "ToDate", jsonName: "ToDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" } } },
|
||||
{ no: 5, name: "OutputFormat", kind: "enum", localName: "OutputFormat", jsonName: "OutputFormat", T: () => ["api.GenerateBillingFormat", GenerateBillingFormat], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID", "FromDate", "ToDate"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GenerateRequest>): GenerateRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.organisationID = "";
|
||||
message.comment = "";
|
||||
message.fromDate = "";
|
||||
message.toDate = "";
|
||||
message.outputFormat = 0;
|
||||
message.OrganisationID = "";
|
||||
message.Comment = "";
|
||||
message.FromDate = "";
|
||||
message.ToDate = "";
|
||||
message.OutputFormat = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GenerateRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -102,19 +102,19 @@ class GenerateRequest$Type extends MessageType<GenerateRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationID = 1 [json_name = "OrganisationID"];*/ 1:
|
||||
message.organisationID = reader.string();
|
||||
message.OrganisationID = reader.string();
|
||||
break;
|
||||
case /* string Comment = 2 [json_name = "Comment"];*/ 2:
|
||||
message.comment = reader.string();
|
||||
message.Comment = reader.string();
|
||||
break;
|
||||
case /* string FromDate = 3 [json_name = "FromDate"];*/ 3:
|
||||
message.fromDate = reader.string();
|
||||
message.FromDate = reader.string();
|
||||
break;
|
||||
case /* string ToDate = 4 [json_name = "ToDate"];*/ 4:
|
||||
message.toDate = reader.string();
|
||||
message.ToDate = reader.string();
|
||||
break;
|
||||
case /* api.GenerateBillingFormat OutputFormat = 5 [json_name = "OutputFormat"];*/ 5:
|
||||
message.outputFormat = reader.int32();
|
||||
message.OutputFormat = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -129,20 +129,20 @@ class GenerateRequest$Type extends MessageType<GenerateRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: GenerateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationID = 1 [json_name = "OrganisationID"]; */
|
||||
if (message.organisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.organisationID);
|
||||
if (message.OrganisationID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
||||
/* string Comment = 2 [json_name = "Comment"]; */
|
||||
if (message.comment !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.comment);
|
||||
if (message.Comment !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Comment);
|
||||
/* string FromDate = 3 [json_name = "FromDate"]; */
|
||||
if (message.fromDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.fromDate);
|
||||
if (message.FromDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.FromDate);
|
||||
/* string ToDate = 4 [json_name = "ToDate"]; */
|
||||
if (message.toDate !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.toDate);
|
||||
if (message.ToDate !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.ToDate);
|
||||
/* api.GenerateBillingFormat OutputFormat = 5 [json_name = "OutputFormat"]; */
|
||||
if (message.outputFormat !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.outputFormat);
|
||||
if (message.OutputFormat !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.OutputFormat);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -157,12 +157,12 @@ export const GenerateRequest = new GenerateRequest$Type();
|
||||
class GenerateResult$Type extends MessageType<GenerateResult> {
|
||||
constructor() {
|
||||
super("api.GenerateResult", [
|
||||
{ no: 1, name: "Output", kind: "scalar", jsonName: "Output", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "Output", kind: "scalar", localName: "Output", jsonName: "Output", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GenerateResult>): GenerateResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.output = "";
|
||||
message.Output = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GenerateResult>(this, message, value);
|
||||
return message;
|
||||
@@ -173,7 +173,7 @@ class GenerateResult$Type extends MessageType<GenerateResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Output = 1 [json_name = "Output"];*/ 1:
|
||||
message.output = reader.string();
|
||||
message.Output = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -188,8 +188,8 @@ class GenerateResult$Type extends MessageType<GenerateResult> {
|
||||
}
|
||||
internalBinaryWrite(message: GenerateResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Output = 1 [json_name = "Output"]; */
|
||||
if (message.output !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.output);
|
||||
if (message.Output !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Output);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user