You've already forked npm-core-sdk
Latest generation
This commit is contained in:
19
claim.ts
19
claim.ts
@@ -16,6 +16,7 @@ import { ClaimSector } from "./shared";
|
||||
import { Amount } from "./shared";
|
||||
import { AttachmentSummary } from "./shared";
|
||||
import { ClaimClosure } from "./shared";
|
||||
import { DateTime } from "./shared";
|
||||
import { ClaimStatusStruct } from "./collabShared";
|
||||
import { ClaimCriticality } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
@@ -71,9 +72,14 @@ export interface ClaimPayload {
|
||||
/**
|
||||
* Creation date of the claim
|
||||
*
|
||||
* @generated from protobuf field: string CreationDate = 6
|
||||
* @deprecated
|
||||
* @generated from protobuf field: string CreationDate = 6 [deprecated = true]
|
||||
*/
|
||||
CreationDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.DateTime CreationDateTime = 23
|
||||
*/
|
||||
CreationDateTime?: DateTime;
|
||||
/**
|
||||
* Contacts assigned on the claim
|
||||
*
|
||||
@@ -241,6 +247,7 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
||||
{ no: 3, name: "Criticality", kind: "enum", localName: "Criticality", jsonName: "Criticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Criticality of the claim" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 4, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ClaimStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.aggSkip": "StatusUpdated" } },
|
||||
{ no: 6, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 23, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime },
|
||||
{ no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contacts assigned on the claims" }, "api.aggSkip": "AssigneesAdded", "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||
{ no: 16, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AssigneesRemoved", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||
{ 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 } } },
|
||||
@@ -300,9 +307,12 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
||||
case /* api.ClaimStatusStruct Status */ 4:
|
||||
message.Status = ClaimStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
||||
break;
|
||||
case /* string CreationDate */ 6:
|
||||
case /* string CreationDate = 6 [deprecated = true] */ 6:
|
||||
message.CreationDate = reader.string();
|
||||
break;
|
||||
case /* api.DateTime CreationDateTime */ 23:
|
||||
message.CreationDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.CreationDateTime);
|
||||
break;
|
||||
case /* repeated string Assignees */ 7:
|
||||
message.Assignees.push(reader.string());
|
||||
break;
|
||||
@@ -375,7 +385,7 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
||||
/* api.ClaimStatusStruct Status = 4; */
|
||||
if (message.Status)
|
||||
ClaimStatusStruct.internalBinaryWrite(message.Status, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string CreationDate = 6; */
|
||||
/* string CreationDate = 6 [deprecated = true]; */
|
||||
if (message.CreationDate !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.CreationDate);
|
||||
/* repeated string Assignees = 7; */
|
||||
@@ -426,6 +436,9 @@ class ClaimPayload$Type extends MessageType<ClaimPayload> {
|
||||
/* string Message = 22; */
|
||||
if (message.Message !== "")
|
||||
writer.tag(22, WireType.LengthDelimited).string(message.Message);
|
||||
/* api.DateTime CreationDateTime = 23; */
|
||||
if (message.CreationDateTime)
|
||||
DateTime.internalBinaryWrite(message.CreationDateTime, writer.tag(23, 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