You've already forked npm-core-sdk
Latest generation
This commit is contained in:
240
claimInput.ts
240
claimInput.ts
@@ -132,6 +132,62 @@ export interface ClaimCreatedResponse {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// InternalCreated : this message tells that claim is internally created
|
||||
|
||||
/**
|
||||
* @generated from protobuf message api.ClaimInternalCreatedPayload
|
||||
*/
|
||||
export interface ClaimInternalCreatedPayload {
|
||||
/**
|
||||
* Identifier of the claim type
|
||||
*
|
||||
* @generated from protobuf field: string ClaimTypeID = 1
|
||||
*/
|
||||
ClaimTypeID: string;
|
||||
/**
|
||||
* Identifier of the targetted entity
|
||||
*
|
||||
* @generated from protobuf field: string EntityID = 2
|
||||
*/
|
||||
EntityID: string;
|
||||
/**
|
||||
* Contacts assigned on the claim
|
||||
*
|
||||
* @generated from protobuf field: repeated string Assignees = 5
|
||||
*/
|
||||
Assignees: string[];
|
||||
/**
|
||||
* Amount of the claim
|
||||
*
|
||||
* @generated from protobuf field: api.Amount Amount = 6
|
||||
*/
|
||||
Amount?: Amount;
|
||||
/**
|
||||
* Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement MetaData = 7
|
||||
*/
|
||||
MetaData: MetadataElement[];
|
||||
/**
|
||||
* Title of the claim
|
||||
*
|
||||
* @generated from protobuf field: string Title = 8
|
||||
*/
|
||||
Title: string;
|
||||
/**
|
||||
* Criticality of the claim
|
||||
*
|
||||
* @generated from protobuf field: api.ClaimCriticality Criticality = 9
|
||||
*/
|
||||
Criticality: ClaimCriticality;
|
||||
/**
|
||||
* Identifier to display, because it may differ from the EntityID
|
||||
*
|
||||
* @generated from protobuf field: string DisplayID = 10
|
||||
*/
|
||||
DisplayID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ClaimInternalCreatedRequest
|
||||
*/
|
||||
@@ -145,9 +201,24 @@ export interface ClaimInternalCreatedRequest {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimCreatedPayload Payload = 3
|
||||
* @generated from protobuf field: api.ClaimInternalCreatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: ClaimCreatedPayload;
|
||||
Payload?: ClaimInternalCreatedPayload;
|
||||
}
|
||||
/**
|
||||
* API Response
|
||||
*
|
||||
* @generated from protobuf message api.ClaimInternalCreatedResponse
|
||||
*/
|
||||
export interface ClaimInternalCreatedResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// Completed : this message tells that claim is completed
|
||||
@@ -1340,12 +1411,114 @@ class ClaimCreatedResponse$Type extends MessageType<ClaimCreatedResponse> {
|
||||
*/
|
||||
export const ClaimCreatedResponse = new ClaimCreatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClaimInternalCreatedPayload$Type extends MessageType<ClaimInternalCreatedPayload> {
|
||||
constructor() {
|
||||
super("api.ClaimInternalCreatedPayload", [
|
||||
{ no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" } } },
|
||||
{ no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" } } },
|
||||
{ no: 5, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { items: { string: { pattern: "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contacts assigned on the claims (user uuid)" } } },
|
||||
{ no: 6, name: "Amount", kind: "message", localName: "Amount", jsonName: "Amount", T: () => Amount, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Amount of the claim" } } },
|
||||
{ no: 7, 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" } },
|
||||
{ no: 8, 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: 9, 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" } } },
|
||||
{ no: 10, name: "DisplayID", kind: "scalar", localName: "DisplayID", jsonName: "DisplayID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier to display, because it may differ from the EntityID" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["ClaimTypeID", "EntityID"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<ClaimInternalCreatedPayload>): ClaimInternalCreatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ClaimTypeID = "";
|
||||
message.EntityID = "";
|
||||
message.Assignees = [];
|
||||
message.MetaData = [];
|
||||
message.Title = "";
|
||||
message.Criticality = 0;
|
||||
message.DisplayID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClaimInternalCreatedPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimInternalCreatedPayload): ClaimInternalCreatedPayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ClaimTypeID */ 1:
|
||||
message.ClaimTypeID = reader.string();
|
||||
break;
|
||||
case /* string EntityID */ 2:
|
||||
message.EntityID = reader.string();
|
||||
break;
|
||||
case /* repeated string Assignees */ 5:
|
||||
message.Assignees.push(reader.string());
|
||||
break;
|
||||
case /* api.Amount Amount */ 6:
|
||||
message.Amount = Amount.internalBinaryRead(reader, reader.uint32(), options, message.Amount);
|
||||
break;
|
||||
case /* repeated api.MetadataElement MetaData */ 7:
|
||||
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string Title */ 8:
|
||||
message.Title = reader.string();
|
||||
break;
|
||||
case /* api.ClaimCriticality Criticality */ 9:
|
||||
message.Criticality = reader.int32();
|
||||
break;
|
||||
case /* string DisplayID */ 10:
|
||||
message.DisplayID = 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: ClaimInternalCreatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ClaimTypeID = 1; */
|
||||
if (message.ClaimTypeID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ClaimTypeID);
|
||||
/* string EntityID = 2; */
|
||||
if (message.EntityID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.EntityID);
|
||||
/* repeated string Assignees = 5; */
|
||||
for (let i = 0; i < message.Assignees.length; i++)
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.Assignees[i]);
|
||||
/* api.Amount Amount = 6; */
|
||||
if (message.Amount)
|
||||
Amount.internalBinaryWrite(message.Amount, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MetadataElement MetaData = 7; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Title = 8; */
|
||||
if (message.Title !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Title);
|
||||
/* api.ClaimCriticality Criticality = 9; */
|
||||
if (message.Criticality !== 0)
|
||||
writer.tag(9, WireType.Varint).int32(message.Criticality);
|
||||
/* string DisplayID = 10; */
|
||||
if (message.DisplayID !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.DisplayID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ClaimInternalCreatedPayload
|
||||
*/
|
||||
export const ClaimInternalCreatedPayload = new ClaimInternalCreatedPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClaimInternalCreatedRequest$Type extends MessageType<ClaimInternalCreatedRequest> {
|
||||
constructor() {
|
||||
super("api.ClaimInternalCreatedRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } }
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimInternalCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "InternalCreated" });
|
||||
}
|
||||
create(value?: PartialMessage<ClaimInternalCreatedRequest>): ClaimInternalCreatedRequest {
|
||||
@@ -1366,8 +1539,8 @@ class ClaimInternalCreatedRequest$Type extends MessageType<ClaimInternalCreatedR
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.ClaimCreatedPayload Payload */ 3:
|
||||
message.Payload = ClaimCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
case /* api.ClaimInternalCreatedPayload Payload */ 3:
|
||||
message.Payload = ClaimInternalCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1387,9 +1560,9 @@ class ClaimInternalCreatedRequest$Type extends MessageType<ClaimInternalCreatedR
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ClaimCreatedPayload Payload = 3; */
|
||||
/* api.ClaimInternalCreatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
ClaimCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
ClaimInternalCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1401,6 +1574,59 @@ class ClaimInternalCreatedRequest$Type extends MessageType<ClaimInternalCreatedR
|
||||
*/
|
||||
export const ClaimInternalCreatedRequest = new ClaimInternalCreatedRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClaimInternalCreatedResponse$Type extends MessageType<ClaimInternalCreatedResponse> {
|
||||
constructor() {
|
||||
super("api.ClaimInternalCreatedResponse", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
|
||||
], { "api.messageType": "Response", "api.inputEvent": "InternalCreated" });
|
||||
}
|
||||
create(value?: PartialMessage<ClaimInternalCreatedResponse>): ClaimInternalCreatedResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClaimInternalCreatedResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimInternalCreatedResponse): ClaimInternalCreatedResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseHeader Header */ 1:
|
||||
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
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: ClaimInternalCreatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ClaimInternalCreatedResponse
|
||||
*/
|
||||
export const ClaimInternalCreatedResponse = new ClaimInternalCreatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ClaimCompletedPayload$Type extends MessageType<ClaimCompletedPayload> {
|
||||
constructor() {
|
||||
super("api.ClaimCompletedPayload", [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.15.0-SNAPSHOT-260914085921",
|
||||
"version": "1.15.0-SNAPSHOT-260914090601",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user