From 3063eb397aabba36c6ef017b990388bd4acd2e65 Mon Sep 17 00:00:00 2001 From: ci core model Date: Thu, 21 Aug 2025 07:55:06 +0000 Subject: [PATCH] Latest generation --- claim.ts | 14 +++++++++++++- claimAction.ts | 14 +++++++++++++- claimInput.ts | 2 +- package.json | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/claim.ts b/claim.ts index 383f19b..672789c 100644 --- a/claim.ts +++ b/claim.ts @@ -150,6 +150,10 @@ export interface ClaimPayload { * @generated from protobuf field: string DisplayID = 21 */ DisplayID: string; + /** + * @generated from protobuf field: string Message = 22 + */ + Message: string; } /** * @generated from protobuf message api.ClaimTriplet @@ -251,7 +255,8 @@ class ClaimPayload$Type extends MessageType { { no: 15, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], 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: 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" }] } } } + { 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" }] } } }, + { no: 22, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "MessageSent" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ClaimTypeID", "EntityID", "Criticality", "Status"] } } }); } create(value?: PartialMessage): ClaimPayload { @@ -273,6 +278,7 @@ class ClaimPayload$Type extends MessageType { message.MetaData = []; message.Title = ""; message.DisplayID = ""; + message.Message = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -342,6 +348,9 @@ class ClaimPayload$Type extends MessageType { case /* string DisplayID */ 21: message.DisplayID = reader.string(); break; + case /* string Message */ 22: + message.Message = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -414,6 +423,9 @@ class ClaimPayload$Type extends MessageType { /* string DisplayID = 21; */ if (message.DisplayID !== "") writer.tag(21, WireType.LengthDelimited).string(message.DisplayID); + /* string Message = 22; */ + if (message.Message !== "") + writer.tag(22, WireType.LengthDelimited).string(message.Message); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/claimAction.ts b/claimAction.ts index 1e07d85..8f134c9 100644 --- a/claimAction.ts +++ b/claimAction.ts @@ -90,6 +90,10 @@ export interface ClaimNotifyPayload { * @generated from protobuf field: string DisplayID = 14 */ DisplayID: string; + /** + * @generated from protobuf field: string Message = 15 + */ + Message: string; } /** * @generated from protobuf message api.ClaimNotify @@ -398,7 +402,8 @@ class ClaimNotifyPayload$Type extends MessageType { { no: 11, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/ }, { no: 12, name: "Title", kind: "scalar", localName: "Title", jsonName: "Title", T: 9 /*ScalarType.STRING*/ }, { no: 13, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement }, - { no: 14, name: "DisplayID", kind: "scalar", localName: "DisplayID", jsonName: "DisplayID", T: 9 /*ScalarType.STRING*/ } + { no: 14, name: "DisplayID", kind: "scalar", localName: "DisplayID", jsonName: "DisplayID", T: 9 /*ScalarType.STRING*/ }, + { no: 15, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/ } ], { "api.messageType": "Command", "api.payload": true, "api.action": "Notify" }); } create(value?: PartialMessage): ClaimNotifyPayload { @@ -414,6 +419,7 @@ class ClaimNotifyPayload$Type extends MessageType { message.Title = ""; message.MetaData = []; message.DisplayID = ""; + message.Message = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -465,6 +471,9 @@ class ClaimNotifyPayload$Type extends MessageType { case /* string DisplayID */ 14: message.DisplayID = reader.string(); break; + case /* string Message */ 15: + message.Message = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -519,6 +528,9 @@ class ClaimNotifyPayload$Type extends MessageType { /* string DisplayID = 14; */ if (message.DisplayID !== "") writer.tag(14, WireType.LengthDelimited).string(message.DisplayID); + /* string Message = 15; */ + if (message.Message !== "") + writer.tag(15, WireType.LengthDelimited).string(message.Message); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/claimInput.ts b/claimInput.ts index f4acc43..2dc4610 100644 --- a/claimInput.ts +++ b/claimInput.ts @@ -3878,6 +3878,6 @@ export const ClaimInputAPI = new ServiceType("api.ClaimInputAPI", [ { name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "An attachment is removed for the Claim." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClaimAttachmentRemovedRequest, O: ClaimAttachmentRemovedResponse }, { name: "MetaDataUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "Some metadata have been updated on a claim. This is typically called from ERP or WMS." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ClaimMetaDataUpdatedRequest, O: ClaimMetaDataUpdatedResponse }, { name: "TitleUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "The title is updated for the claim." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ClaimTitleUpdatedRequest, O: ClaimTitleUpdatedResponse }, - { name: "MessageSent", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "A message is sent in the claim room." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.customInput": true, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ClaimMessageSentRequest, O: ClaimMessageSentResponse }, + { name: "MessageSent", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "A message is sent in the claim room." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ClaimMessageSentRequest, O: ClaimMessageSentResponse }, { name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "An Claim has been deleted. This is called from Reflex Platform Admin service to share the Organisation Claims." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ClaimDeletedRequest, O: ClaimDeletedResponse } ], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" }); diff --git a/package.json b/package.json index 971a5fa..5a19c5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.11.0-SNAPSHOT-250820091849", + "version": "1.11.0-SNAPSHOT-250821075420", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",