From 6e8b0db53a9a9c87c8d4b87766d453f6a527718f Mon Sep 17 00:00:00 2001 From: ci core model Date: Mon, 8 Jun 2026 07:48:41 +0000 Subject: [PATCH] Latest generation --- claim-type.ts | 49 ++++++++++++++++- package.json | 2 +- shared.ts | 142 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 188 insertions(+), 5 deletions(-) diff --git a/claim-type.ts b/claim-type.ts index 384b31f..5b2beca 100644 --- a/claim-type.ts +++ b/claim-type.ts @@ -12,6 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { ClaimType } from "./shared"; +import { ClaimTypeExtraAllowedUsers } from "./shared"; import { ClaimSector } from "./shared"; import { ClaimStatus } from "./shared"; import { ClaimTypeClosure } from "./shared"; @@ -87,6 +88,14 @@ export interface CreateClaimTypeRequest { * @generated from protobuf field: repeated string DefaultAssignees = 15 */ DefaultAssignees: string[]; // List of default assignees for the claim. + /** + * @generated from protobuf field: api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders = 16 + */ + AllowedAppointmentReaders?: ClaimTypeExtraAllowedUsers; // Extra allowed users for appointments linked to claims of this claim type. Users who can view appointments will inherit these permissions for the claim itself. + /** + * @generated from protobuf field: api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees = 17 + */ + AllowedAppointmentAttendees?: ClaimTypeExtraAllowedUsers; // Extra allowed users for appointments linked to claims of this claim type. Users who are attendees of appointments will inherit these permissions for the claim } /** * @generated from protobuf message api.CreateClaimTypeResponse @@ -199,6 +208,14 @@ export interface UpdateClaimTypeRequest { * @generated from protobuf field: repeated string DefaultAssignees = 13 */ DefaultAssignees: string[]; // List of default assignees for the claim. + /** + * @generated from protobuf field: api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders = 14 + */ + AllowedAppointmentReaders?: ClaimTypeExtraAllowedUsers; // Extra allowed users for appointments linked to claims of this claim type. Users who can view appointments will inherit these permissions for the claim itself. + /** + * @generated from protobuf field: api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees = 15 + */ + AllowedAppointmentAttendees?: ClaimTypeExtraAllowedUsers; // Extra allowed users for appointments linked to claims of this claim type. Users who are attendees of appointments will inherit these permissions for the claim } /** * @generated from protobuf message api.UpdateClaimTypeResponse @@ -281,7 +298,9 @@ class CreateClaimTypeRequest$Type extends MessageType { { no: 12, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] }, { no: 13, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, - { no: 15, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + { no: 15, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 16, name: "AllowedAppointmentReaders", kind: "message", localName: "AllowedAppointmentReaders", jsonName: "AllowedAppointmentReaders", T: () => ClaimTypeExtraAllowedUsers }, + { no: 17, name: "AllowedAppointmentAttendees", kind: "message", localName: "AllowedAppointmentAttendees", jsonName: "AllowedAppointmentAttendees", T: () => ClaimTypeExtraAllowedUsers } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Reason", "EntityType", "DefaultCriticality"] } } }); } create(value?: PartialMessage): CreateClaimTypeRequest { @@ -358,6 +377,12 @@ class CreateClaimTypeRequest$Type extends MessageType { case /* repeated string DefaultAssignees */ 15: message.DefaultAssignees.push(reader.string()); break; + case /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders */ 16: + message.AllowedAppointmentReaders = ClaimTypeExtraAllowedUsers.internalBinaryRead(reader, reader.uint32(), options, message.AllowedAppointmentReaders); + break; + case /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees */ 17: + message.AllowedAppointmentAttendees = ClaimTypeExtraAllowedUsers.internalBinaryRead(reader, reader.uint32(), options, message.AllowedAppointmentAttendees); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -419,6 +444,12 @@ class CreateClaimTypeRequest$Type extends MessageType { /* repeated string DefaultAssignees = 15; */ for (let i = 0; i < message.DefaultAssignees.length; i++) writer.tag(15, WireType.LengthDelimited).string(message.DefaultAssignees[i]); + /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders = 16; */ + if (message.AllowedAppointmentReaders) + ClaimTypeExtraAllowedUsers.internalBinaryWrite(message.AllowedAppointmentReaders, writer.tag(16, WireType.LengthDelimited).fork(), options).join(); + /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees = 17; */ + if (message.AllowedAppointmentAttendees) + ClaimTypeExtraAllowedUsers.internalBinaryWrite(message.AllowedAppointmentAttendees, writer.tag(17, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -684,7 +715,9 @@ class UpdateClaimTypeRequest$Type extends MessageType { { no: 10, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] }, { no: 11, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 12, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, - { no: 13, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } + { no: 13, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 14, name: "AllowedAppointmentReaders", kind: "message", localName: "AllowedAppointmentReaders", jsonName: "AllowedAppointmentReaders", T: () => ClaimTypeExtraAllowedUsers }, + { no: 15, name: "AllowedAppointmentAttendees", kind: "message", localName: "AllowedAppointmentAttendees", jsonName: "AllowedAppointmentAttendees", T: () => ClaimTypeExtraAllowedUsers } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Reason"] } } }); } create(value?: PartialMessage): UpdateClaimTypeRequest { @@ -753,6 +786,12 @@ class UpdateClaimTypeRequest$Type extends MessageType { case /* repeated string DefaultAssignees */ 13: message.DefaultAssignees.push(reader.string()); break; + case /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders */ 14: + message.AllowedAppointmentReaders = ClaimTypeExtraAllowedUsers.internalBinaryRead(reader, reader.uint32(), options, message.AllowedAppointmentReaders); + break; + case /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees */ 15: + message.AllowedAppointmentAttendees = ClaimTypeExtraAllowedUsers.internalBinaryRead(reader, reader.uint32(), options, message.AllowedAppointmentAttendees); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -808,6 +847,12 @@ class UpdateClaimTypeRequest$Type extends MessageType { /* repeated string DefaultAssignees = 13; */ for (let i = 0; i < message.DefaultAssignees.length; i++) writer.tag(13, WireType.LengthDelimited).string(message.DefaultAssignees[i]); + /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders = 14; */ + if (message.AllowedAppointmentReaders) + ClaimTypeExtraAllowedUsers.internalBinaryWrite(message.AllowedAppointmentReaders, writer.tag(14, WireType.LengthDelimited).fork(), options).join(); + /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees = 15; */ + if (message.AllowedAppointmentAttendees) + ClaimTypeExtraAllowedUsers.internalBinaryWrite(message.AllowedAppointmentAttendees, writer.tag(15, 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 ce5d8a3..78fd327 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260605124720", + "version": "1.14.0-SNAPSHOT-260608074804", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/shared.ts b/shared.ts index 4c7b218..fd1f699 100644 --- a/shared.ts +++ b/shared.ts @@ -1460,6 +1460,14 @@ export interface ClaimType { * @generated from protobuf field: string ResourceID = 17 */ ResourceID: string; // Identifier for the project associated with the claim. + /** + * @generated from protobuf field: api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders = 18 + */ + AllowedAppointmentReaders?: ClaimTypeExtraAllowedUsers; // Extra allowed users for appointments linked to claims of this claim type. Users who can view appointments will inherit these permissions for the claim itself. + /** + * @generated from protobuf field: api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees = 19 + */ + AllowedAppointmentAttendees?: ClaimTypeExtraAllowedUsers; // Extra allowed users for appointments linked to claims of this claim type. Users who are attendees of appointments will inherit these permissions for the claim itself. } /** * Message defining the structure of a ClaimTransition. @@ -1483,6 +1491,14 @@ export interface ClaimTransition { * @generated from protobuf field: bool ShouldNotify = 4 */ ShouldNotify: boolean; // Indicates whether notification should be sent to the claim's assignees after this transition. + /** + * @generated from protobuf field: bool AllowAppointmentReaders = 5 + */ + AllowAppointmentReaders: boolean; // Indicates whether users with read permissions on linked appointments should be allowed to perform this transition. + /** + * @generated from protobuf field: bool AllowAppointmentAttendees = 6 + */ + AllowAppointmentAttendees: boolean; // Indicates whether users who are attendees of linked appointments should be allowed to perform this transition. } /** * Message defining the structure of a ClaimTypeClosure for ClaimTypes. @@ -1537,6 +1553,27 @@ export interface ClaimSummary { */ Number: number; } +/** + * @generated from protobuf message api.ClaimTypeExtraAllowedUsers + */ +export interface ClaimTypeExtraAllowedUsers { + /** + * @generated from protobuf field: bool Read = 1 + */ + Read: boolean; // Indicates whether this type of users is allowed to read/view the claim. + /** + * @generated from protobuf field: bool Write = 2 + */ + Write: boolean; // Indicates whether this type of users is allowed to write/edit the claim. + /** + * @generated from protobuf field: bool Assign = 3 + */ + Assign: boolean; // Indicates whether this type of users is allowed to assign the claim. + /** + * @generated from protobuf field: bool Criticality = 4 + */ + Criticality: boolean; // Indicates whether this type of users is allowed to set the claim's criticality. +} /** * @generated from protobuf message api.AttachmentType */ @@ -6865,7 +6902,9 @@ class ClaimType$Type extends MessageType { { no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.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: 17, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } + { no: 17, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 18, name: "AllowedAppointmentReaders", kind: "message", localName: "AllowedAppointmentReaders", jsonName: "AllowedAppointmentReaders", T: () => ClaimTypeExtraAllowedUsers }, + { no: 19, name: "AllowedAppointmentAttendees", kind: "message", localName: "AllowedAppointmentAttendees", jsonName: "AllowedAppointmentAttendees", T: () => ClaimTypeExtraAllowedUsers } ]); } create(value?: PartialMessage): ClaimType { @@ -6951,6 +6990,12 @@ class ClaimType$Type extends MessageType { case /* string ResourceID */ 17: message.ResourceID = reader.string(); break; + case /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders */ 18: + message.AllowedAppointmentReaders = ClaimTypeExtraAllowedUsers.internalBinaryRead(reader, reader.uint32(), options, message.AllowedAppointmentReaders); + break; + case /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees */ 19: + message.AllowedAppointmentAttendees = ClaimTypeExtraAllowedUsers.internalBinaryRead(reader, reader.uint32(), options, message.AllowedAppointmentAttendees); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -7018,6 +7063,12 @@ class ClaimType$Type extends MessageType { /* string ResourceID = 17; */ if (message.ResourceID !== "") writer.tag(17, WireType.LengthDelimited).string(message.ResourceID); + /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentReaders = 18; */ + if (message.AllowedAppointmentReaders) + ClaimTypeExtraAllowedUsers.internalBinaryWrite(message.AllowedAppointmentReaders, writer.tag(18, WireType.LengthDelimited).fork(), options).join(); + /* api.ClaimTypeExtraAllowedUsers AllowedAppointmentAttendees = 19; */ + if (message.AllowedAppointmentAttendees) + ClaimTypeExtraAllowedUsers.internalBinaryWrite(message.AllowedAppointmentAttendees, writer.tag(19, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -7035,7 +7086,9 @@ class ClaimTransition$Type extends MessageType { { no: 1, name: "FromStatus", kind: "enum", localName: "FromStatus", jsonName: "FromStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 2, name: "ToStatus", kind: "enum", localName: "ToStatus", jsonName: "ToStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "ShouldNotify", kind: "scalar", localName: "ShouldNotify", jsonName: "ShouldNotify", T: 8 /*ScalarType.BOOL*/ } + { no: 4, name: "ShouldNotify", kind: "scalar", localName: "ShouldNotify", jsonName: "ShouldNotify", T: 8 /*ScalarType.BOOL*/ }, + { no: 5, name: "AllowAppointmentReaders", kind: "scalar", localName: "AllowAppointmentReaders", jsonName: "AllowAppointmentReaders", T: 8 /*ScalarType.BOOL*/ }, + { no: 6, name: "AllowAppointmentAttendees", kind: "scalar", localName: "AllowAppointmentAttendees", jsonName: "AllowAppointmentAttendees", T: 8 /*ScalarType.BOOL*/ } ]); } create(value?: PartialMessage): ClaimTransition { @@ -7044,6 +7097,8 @@ class ClaimTransition$Type extends MessageType { message.ToStatus = 0; message.AllowedRoles = []; message.ShouldNotify = false; + message.AllowAppointmentReaders = false; + message.AllowAppointmentAttendees = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -7065,6 +7120,12 @@ class ClaimTransition$Type extends MessageType { case /* bool ShouldNotify */ 4: message.ShouldNotify = reader.bool(); break; + case /* bool AllowAppointmentReaders */ 5: + message.AllowAppointmentReaders = reader.bool(); + break; + case /* bool AllowAppointmentAttendees */ 6: + message.AllowAppointmentAttendees = reader.bool(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -7089,6 +7150,12 @@ class ClaimTransition$Type extends MessageType { /* bool ShouldNotify = 4; */ if (message.ShouldNotify !== false) writer.tag(4, WireType.Varint).bool(message.ShouldNotify); + /* bool AllowAppointmentReaders = 5; */ + if (message.AllowAppointmentReaders !== false) + writer.tag(5, WireType.Varint).bool(message.AllowAppointmentReaders); + /* bool AllowAppointmentAttendees = 6; */ + if (message.AllowAppointmentAttendees !== false) + writer.tag(6, WireType.Varint).bool(message.AllowAppointmentAttendees); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -7273,6 +7340,77 @@ class ClaimSummary$Type extends MessageType { */ export const ClaimSummary = new ClaimSummary$Type(); // @generated message type with reflection information, may provide speed optimized methods +class ClaimTypeExtraAllowedUsers$Type extends MessageType { + constructor() { + super("api.ClaimTypeExtraAllowedUsers", [ + { no: 1, name: "Read", kind: "scalar", localName: "Read", jsonName: "Read", T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "Write", kind: "scalar", localName: "Write", jsonName: "Write", T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "Assign", kind: "scalar", localName: "Assign", jsonName: "Assign", T: 8 /*ScalarType.BOOL*/ }, + { no: 4, name: "Criticality", kind: "scalar", localName: "Criticality", jsonName: "Criticality", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value?: PartialMessage): ClaimTypeExtraAllowedUsers { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Read = false; + message.Write = false; + message.Assign = false; + message.Criticality = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimTypeExtraAllowedUsers): ClaimTypeExtraAllowedUsers { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bool Read */ 1: + message.Read = reader.bool(); + break; + case /* bool Write */ 2: + message.Write = reader.bool(); + break; + case /* bool Assign */ 3: + message.Assign = reader.bool(); + break; + case /* bool Criticality */ 4: + message.Criticality = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: ClaimTypeExtraAllowedUsers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* bool Read = 1; */ + if (message.Read !== false) + writer.tag(1, WireType.Varint).bool(message.Read); + /* bool Write = 2; */ + if (message.Write !== false) + writer.tag(2, WireType.Varint).bool(message.Write); + /* bool Assign = 3; */ + if (message.Assign !== false) + writer.tag(3, WireType.Varint).bool(message.Assign); + /* bool Criticality = 4; */ + if (message.Criticality !== false) + writer.tag(4, WireType.Varint).bool(message.Criticality); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClaimTypeExtraAllowedUsers + */ +export const ClaimTypeExtraAllowedUsers = new ClaimTypeExtraAllowedUsers$Type(); +// @generated message type with reflection information, may provide speed optimized methods class AttachmentType$Type extends MessageType { constructor() { super("api.AttachmentType", [