From f155015ad44f7abe855edeae929a89f1a93355b1 Mon Sep 17 00:00:00 2001 From: ci core model Date: Thu, 12 Mar 2026 14:35:55 +0000 Subject: [PATCH] Latest generation --- appointment.ts | 19 ++++++++++++++++--- claim.ts | 19 ++++++++++++++++--- package.json | 2 +- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/appointment.ts b/appointment.ts index 9024e00..f55c07e 100644 --- a/appointment.ts +++ b/appointment.ts @@ -13,6 +13,7 @@ import { MessageType } from "@protobuf-ts/runtime"; import { AppointmentContent } from "./slotbooking"; import { Address } from "./repositoryShared"; import { AttachmentSummary } from "./shared"; +import { DateTime } from "./shared"; import { AppointmentStatusStruct } from "./collabShared"; import { Slot } from "./slotbooking"; import { MetadataElement } from "./shared"; @@ -110,9 +111,14 @@ export interface AppointmentPayload { /** * Creation date of the appointment * - * @generated from protobuf field: string CreationDate = 9 + * @deprecated + * @generated from protobuf field: string CreationDate = 9 [deprecated = true] */ CreationDate: string; + /** + * @generated from protobuf field: api.DateTime CreationDateTime = 30 + */ + CreationDateTime?: DateTime; /** * @generated from protobuf field: repeated api.MetadataElement MetaData = 10 */ @@ -284,6 +290,7 @@ class AppointmentPayload$Type extends MessageType { { no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use RemovedAttendees field instead", readOnly: true }, "api.aggSkip": "EmailsRemoved" } }, { no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the appointment" }, "api.aggSkip": "StatusUpdated" } }, { no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 30, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime }, { no: 10, 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 site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.parentEntity": "Appointment" } }, { no: 13, 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: 14, 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" } } }, @@ -355,9 +362,12 @@ class AppointmentPayload$Type extends MessageType { case /* api.AppointmentStatusStruct Status */ 8: message.Status = AppointmentStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status); break; - case /* string CreationDate */ 9: + case /* string CreationDate = 9 [deprecated = true] */ 9: message.CreationDate = reader.string(); break; + case /* api.DateTime CreationDateTime */ 30: + message.CreationDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.CreationDateTime); + break; case /* repeated api.MetadataElement MetaData */ 10: message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -427,7 +437,7 @@ class AppointmentPayload$Type extends MessageType { /* api.AppointmentStatusStruct Status = 8; */ if (message.Status) AppointmentStatusStruct.internalBinaryWrite(message.Status, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); - /* string CreationDate = 9; */ + /* string CreationDate = 9 [deprecated = true]; */ if (message.CreationDate !== "") writer.tag(9, WireType.LengthDelimited).string(message.CreationDate); /* repeated api.MetadataElement MetaData = 10; */ @@ -478,6 +488,9 @@ class AppointmentPayload$Type extends MessageType { /* repeated api.MetadataElement SegmentationKeys = 29; */ for (let i = 0; i < message.SegmentationKeys.length; i++) MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(29, WireType.LengthDelimited).fork(), options).join(); + /* api.DateTime CreationDateTime = 30; */ + if (message.CreationDateTime) + DateTime.internalBinaryWrite(message.CreationDateTime, writer.tag(30, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/claim.ts b/claim.ts index 672789c..464e9ab 100644 --- a/claim.ts +++ b/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 { { 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 { 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 { /* 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 { /* 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); diff --git a/package.json b/package.json index c8eed01..a90a8f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260312142540", + "version": "1.13.0-SNAPSHOT-260312143516", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",