You've already forked npm-core-sdk
Latest generation
This commit is contained in:
24
claim.ts
24
claim.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "claim.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -242,14 +242,14 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
||||
{ no: 17, name: "AddedAssignees", kind: "scalar", localName: "AddedAssignees", jsonName: "AddedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 8, name: "EndComment", kind: "scalar", localName: "EndComment", jsonName: "EndComment", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "End comment of the claim" } } },
|
||||
{ no: 9, name: "Closure", kind: "message", localName: "Closure", jsonName: "Closure", T: () => ClaimClosure, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Closure responsible and causes of the claim" } } },
|
||||
{ no: 10, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 1 /*RepeatType.PACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } },
|
||||
{ no: 10, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } },
|
||||
{ no: 11, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } },
|
||||
{ no: 12, name: "Amount", kind: "message", localName: "Amount", jsonName: "Amount", T: () => Amount, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Amount value of the claim" } } },
|
||||
{ no: 13, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 18, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
|
||||
{ no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector, "CLAIM_SECTOR_"], options: { "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 15, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType, "CLAIM_ENTITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 19, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.parentEntity": "Claim" } },
|
||||
{ no: 19, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.parentEntity": "Claim" } },
|
||||
{ no: 20, name: "Title", kind: "scalar", localName: "Title", jsonName: "Title", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Title of the claim" } } },
|
||||
{ no: 21, name: "DisplayID", kind: "scalar", localName: "DisplayID", jsonName: "DisplayID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier to display, because it may differ from the EntityID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ClaimTypeID", "EntityID", "Criticality", "Status"] } } });
|
||||
@@ -372,12 +372,6 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
||||
/* repeated string Assignees = 7 [json_name = "Assignees"]; */
|
||||
for (let i = 0; i < message.Assignees.length; i++)
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.Assignees[i]);
|
||||
/* repeated string RemovedAssignees = 16 [json_name = "RemovedAssignees"]; */
|
||||
for (let i = 0; i < message.RemovedAssignees.length; i++)
|
||||
writer.tag(16, WireType.LengthDelimited).string(message.RemovedAssignees[i]);
|
||||
/* repeated string AddedAssignees = 17 [json_name = "AddedAssignees"]; */
|
||||
for (let i = 0; i < message.AddedAssignees.length; i++)
|
||||
writer.tag(17, WireType.LengthDelimited).string(message.AddedAssignees[i]);
|
||||
/* string EndComment = 8 [json_name = "EndComment"]; */
|
||||
if (message.EndComment !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.EndComment);
|
||||
@@ -396,15 +390,21 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
||||
/* string Reason = 13 [json_name = "Reason"]; */
|
||||
if (message.Reason !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.Reason);
|
||||
/* string ReasonCode = 18 [json_name = "ReasonCode"]; */
|
||||
if (message.ReasonCode !== "")
|
||||
writer.tag(18, WireType.LengthDelimited).string(message.ReasonCode);
|
||||
/* api.ClaimSector Sector = 14 [json_name = "Sector"]; */
|
||||
if (message.Sector !== 0)
|
||||
writer.tag(14, WireType.Varint).int32(message.Sector);
|
||||
/* api.ClaimEntityType EntityType = 15 [json_name = "EntityType"]; */
|
||||
if (message.EntityType !== 0)
|
||||
writer.tag(15, WireType.Varint).int32(message.EntityType);
|
||||
/* repeated string RemovedAssignees = 16 [json_name = "RemovedAssignees"]; */
|
||||
for (let i = 0; i < message.RemovedAssignees.length; i++)
|
||||
writer.tag(16, WireType.LengthDelimited).string(message.RemovedAssignees[i]);
|
||||
/* repeated string AddedAssignees = 17 [json_name = "AddedAssignees"]; */
|
||||
for (let i = 0; i < message.AddedAssignees.length; i++)
|
||||
writer.tag(17, WireType.LengthDelimited).string(message.AddedAssignees[i]);
|
||||
/* string ReasonCode = 18 [json_name = "ReasonCode"]; */
|
||||
if (message.ReasonCode !== "")
|
||||
writer.tag(18, WireType.LengthDelimited).string(message.ReasonCode);
|
||||
/* repeated api.MetadataElement MetaData = 19 [json_name = "MetaData"]; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
Reference in New Issue
Block a user