Latest generation

This commit is contained in:
ci core model
2025-04-28 11:35:40 +00:00
parent 27d08cc0b6
commit 595d5e3e36
16 changed files with 11440 additions and 4 deletions

285
shared.ts
View File

@@ -52,6 +52,29 @@ export interface RequestProjectHeader {
*/
technicalID: string;
}
/**
* Header for all requests on site resources
*
* @generated from protobuf message api.RequestSiteHeader
*/
export interface RequestSiteHeader {
/**
* Identifier of the site
*
* @generated from protobuf field: string SiteID = 1 [json_name = "SiteID"];
*/
siteID: string;
/**
* DateTime ActualDate = 2 ;
*
* @generated from protobuf field: string CorrelationID = 3 [json_name = "CorrelationID"];
*/
correlationID: string;
/**
* @generated from protobuf field: string TechnicalID = 4 [json_name = "TechnicalID"];
*/
technicalID: string;
}
/**
* Header for all requests on organisation resources
*
@@ -158,7 +181,7 @@ export interface RequestAttachmentTypeHeader {
technicalID: string;
}
/**
* Header for all response messages
* Header for all project response messages
*
* @generated from protobuf message api.ResponseHeader
*/
@@ -178,6 +201,27 @@ export interface ResponseHeader {
*/
technicalID: string;
}
/**
* Header for all site response messages
*
* @generated from protobuf message api.ResponseSiteHeader
*/
export interface ResponseSiteHeader {
/**
* Identifier of the site
*
* @generated from protobuf field: string SiteID = 1 [json_name = "SiteID"];
*/
siteID: string;
/**
* @generated from protobuf field: string CorrelationID = 2 [json_name = "CorrelationID"];
*/
correlationID: string;
/**
* @generated from protobuf field: string TechnicalID = 3 [json_name = "TechnicalID"];
*/
technicalID: string;
}
/**
* Header for all response messages
*
@@ -324,6 +368,8 @@ export interface EventHeader {
// DateTime ActualDate = 6; // TODO : add validation rule to make it required : [(validate.rules).message.required = true]
/**
* TODO How to manage Site here ? just rename this attribute in Parent ??
*
* @generated from protobuf field: string Project = 3 [json_name = "Project"];
*/
project: string;
@@ -1750,6 +1796,19 @@ export interface MatchFieldElementResult {
[key: string]: string;
};
}
/**
* @generated from protobuf message api.LabelByLanguage
*/
export interface LabelByLanguage {
/**
* @generated from protobuf field: string Value = 1 [json_name = "Value"];
*/
value: string;
/**
* @generated from protobuf field: string LanguageCodeISO6391 = 2 [json_name = "LanguageCodeISO6391"];
*/
languageCodeISO6391: string;
}
/**
* List all data set in the model
*
@@ -1801,6 +1860,43 @@ export enum ModelDataSetEnum {
*/
CLAIM = 10
}
/**
* @generated from protobuf enum api.WeekDay
*/
export enum WeekDay {
/**
* @generated from protobuf enum value: WEEKDAY_UNDEFINED = 0;
*/
WEEKDAY_UNDEFINED = 0,
/**
* @generated from protobuf enum value: WEEKDAY_MONDAY = 1;
*/
WEEKDAY_MONDAY = 1,
/**
* @generated from protobuf enum value: WEEKDAY_TUESDAY = 2;
*/
WEEKDAY_TUESDAY = 2,
/**
* @generated from protobuf enum value: WEEKDAY_WEDNESDAY = 3;
*/
WEEKDAY_WEDNESDAY = 3,
/**
* @generated from protobuf enum value: WEEKDAY_THURSDAY = 4;
*/
WEEKDAY_THURSDAY = 4,
/**
* @generated from protobuf enum value: WEEKDAY_FRIDAY = 5;
*/
WEEKDAY_FRIDAY = 5,
/**
* @generated from protobuf enum value: WEEKDAY_SATURDAY = 6;
*/
WEEKDAY_SATURDAY = 6,
/**
* @generated from protobuf enum value: WEEKDAY_SUNDAY = 7;
*/
WEEKDAY_SUNDAY = 7
}
/**
* @generated from protobuf enum api.SeverityLevel
*/
@@ -2381,7 +2477,11 @@ export enum ResourceType {
/**
* @generated from protobuf enum value: RESOURCE_TYPE_CLAIMTYPE = 70;
*/
CLAIMTYPE = 70
CLAIMTYPE = 70,
/**
* @generated from protobuf enum value: RESOURCE_TYPE_SITE = 80;
*/
SITE = 80
}
// @generated message type with reflection information, may provide speed optimized methods
class RequestHeader$Type extends MessageType<RequestHeader> {
@@ -2494,6 +2594,69 @@ class RequestProjectHeader$Type extends MessageType<RequestProjectHeader> {
*/
export const RequestProjectHeader = new RequestProjectHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestSiteHeader$Type extends MessageType<RequestSiteHeader> {
constructor() {
super("api.RequestSiteHeader", [
{ no: 1, name: "SiteID", kind: "scalar", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site", example: "\"Your_Site_ID\"" } } },
{ no: 3, name: "CorrelationID", kind: "scalar", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 4, name: "TechnicalID", kind: "scalar", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
}
create(value?: PartialMessage<RequestSiteHeader>): RequestSiteHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.siteID = "";
message.correlationID = "";
message.technicalID = "";
if (value !== undefined)
reflectionMergePartial<RequestSiteHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestSiteHeader): RequestSiteHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SiteID = 1 [json_name = "SiteID"];*/ 1:
message.siteID = reader.string();
break;
case /* string CorrelationID = 3 [json_name = "CorrelationID"];*/ 3:
message.correlationID = reader.string();
break;
case /* string TechnicalID = 4 [json_name = "TechnicalID"];*/ 4:
message.technicalID = reader.string();
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: RequestSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1 [json_name = "SiteID"]; */
if (message.siteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.siteID);
/* string CorrelationID = 3 [json_name = "CorrelationID"]; */
if (message.correlationID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.correlationID);
/* string TechnicalID = 4 [json_name = "TechnicalID"]; */
if (message.technicalID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.technicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestSiteHeader
*/
export const RequestSiteHeader = new RequestSiteHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestOrganisationHeader$Type extends MessageType<RequestOrganisationHeader> {
constructor() {
super("api.RequestOrganisationHeader", [
@@ -2872,6 +3035,69 @@ class ResponseHeader$Type extends MessageType<ResponseHeader> {
*/
export const ResponseHeader = new ResponseHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ResponseSiteHeader$Type extends MessageType<ResponseSiteHeader> {
constructor() {
super("api.ResponseSiteHeader", [
{ no: 1, name: "SiteID", kind: "scalar", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the site" } } },
{ no: 2, name: "CorrelationID", kind: "scalar", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request CorrelationID if provided in order to be able to correlate request and response", example: "\"CorrID_A\"" } } },
{ no: 3, name: "TechnicalID", kind: "scalar", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is filled using the request TechnicalID if provided in order to be able to correlate request and response", example: "\"TechID_A\"" } } }
]);
}
create(value?: PartialMessage<ResponseSiteHeader>): ResponseSiteHeader {
const message = globalThis.Object.create((this.messagePrototype!));
message.siteID = "";
message.correlationID = "";
message.technicalID = "";
if (value !== undefined)
reflectionMergePartial<ResponseSiteHeader>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResponseSiteHeader): ResponseSiteHeader {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SiteID = 1 [json_name = "SiteID"];*/ 1:
message.siteID = reader.string();
break;
case /* string CorrelationID = 2 [json_name = "CorrelationID"];*/ 2:
message.correlationID = reader.string();
break;
case /* string TechnicalID = 3 [json_name = "TechnicalID"];*/ 3:
message.technicalID = reader.string();
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: ResponseSiteHeader, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1 [json_name = "SiteID"]; */
if (message.siteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.siteID);
/* string CorrelationID = 2 [json_name = "CorrelationID"]; */
if (message.correlationID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.correlationID);
/* string TechnicalID = 3 [json_name = "TechnicalID"]; */
if (message.technicalID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.technicalID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ResponseSiteHeader
*/
export const ResponseSiteHeader = new ResponseSiteHeader$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AttachmentTypeResponseHeader$Type extends MessageType<AttachmentTypeResponseHeader> {
constructor() {
super("api.AttachmentTypeResponseHeader", [
@@ -7387,3 +7613,58 @@ class MatchFieldElementResult$Type extends MessageType<MatchFieldElementResult>
* @generated MessageType for protobuf message api.MatchFieldElementResult
*/
export const MatchFieldElementResult = new MatchFieldElementResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class LabelByLanguage$Type extends MessageType<LabelByLanguage> {
constructor() {
super("api.LabelByLanguage", [
{ no: 1, name: "Value", kind: "scalar", jsonName: "Value", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "LanguageCodeISO6391", kind: "scalar", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }
]);
}
create(value?: PartialMessage<LabelByLanguage>): LabelByLanguage {
const message = globalThis.Object.create((this.messagePrototype!));
message.value = "";
message.languageCodeISO6391 = "";
if (value !== undefined)
reflectionMergePartial<LabelByLanguage>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LabelByLanguage): LabelByLanguage {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Value = 1 [json_name = "Value"];*/ 1:
message.value = reader.string();
break;
case /* string LanguageCodeISO6391 = 2 [json_name = "LanguageCodeISO6391"];*/ 2:
message.languageCodeISO6391 = reader.string();
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: LabelByLanguage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Value = 1 [json_name = "Value"]; */
if (message.value !== "")
writer.tag(1, WireType.LengthDelimited).string(message.value);
/* string LanguageCodeISO6391 = 2 [json_name = "LanguageCodeISO6391"]; */
if (message.languageCodeISO6391 !== "")
writer.tag(2, WireType.LengthDelimited).string(message.languageCodeISO6391);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.LabelByLanguage
*/
export const LabelByLanguage = new LabelByLanguage$Type();