Latest generation

This commit is contained in:
ci core model
2025-09-29 12:32:36 +00:00
parent 3356cb863a
commit ccf0b4a955
6 changed files with 954 additions and 68 deletions

View File

@@ -1396,7 +1396,8 @@ export interface ClaimType {
*/
ID: string; // Unique identifier for the claim type. (formatted as such: "CLAIMTYPE_<ProjectID>_<UUID>")
/**
* @generated from protobuf field: string ProjectID = 2
* @deprecated
* @generated from protobuf field: string ProjectID = 2 [deprecated = true]
*/
ProjectID: string; // Identifier for the project associated with the claim.
/**
@@ -1455,6 +1456,10 @@ export interface ClaimType {
* @generated from protobuf field: repeated string DefaultAssignees = 16
*/
DefaultAssignees: string[]; // Default assignees of the claim.
/**
* @generated from protobuf field: string ResourceID = 17
*/
ResourceID: string; // Identifier for the project associated with the claim.
}
/**
* Message defining the structure of a ClaimTransition.
@@ -6510,7 +6515,8 @@ class ClaimType$Type extends MessageType<ClaimType> {
{ no: 13, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] },
{ no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 15, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector] },
{ no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
{ no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 17, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<ClaimType>): ClaimType {
@@ -6531,6 +6537,7 @@ class ClaimType$Type extends MessageType<ClaimType> {
message.DefaultStatus = 0;
message.Sector = 0;
message.DefaultAssignees = [];
message.ResourceID = "";
if (value !== undefined)
reflectionMergePartial<ClaimType>(this, message, value);
return message;
@@ -6543,7 +6550,7 @@ class ClaimType$Type extends MessageType<ClaimType> {
case /* string ID */ 1:
message.ID = reader.string();
break;
case /* string ProjectID */ 2:
case /* string ProjectID = 2 [deprecated = true] */ 2:
message.ProjectID = reader.string();
break;
case /* string Reason */ 3:
@@ -6592,6 +6599,9 @@ class ClaimType$Type extends MessageType<ClaimType> {
case /* repeated string DefaultAssignees */ 16:
message.DefaultAssignees.push(reader.string());
break;
case /* string ResourceID */ 17:
message.ResourceID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -6607,7 +6617,7 @@ class ClaimType$Type extends MessageType<ClaimType> {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* string ProjectID = 2; */
/* string ProjectID = 2 [deprecated = true]; */
if (message.ProjectID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ProjectID);
/* string Reason = 3; */
@@ -6656,6 +6666,9 @@ class ClaimType$Type extends MessageType<ClaimType> {
/* repeated string DefaultAssignees = 16; */
for (let i = 0; i < message.DefaultAssignees.length; i++)
writer.tag(16, WireType.LengthDelimited).string(message.DefaultAssignees[i]);
/* string ResourceID = 17; */
if (message.ResourceID !== "")
writer.tag(17, WireType.LengthDelimited).string(message.ResourceID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);