diff --git a/claimInput.client.ts b/claimInput.client.ts index 5d4d5b1..7d1f52f 100644 --- a/claimInput.client.ts +++ b/claimInput.client.ts @@ -4,6 +4,7 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ClaimInputAPI } from "./claimInput"; +import type { ClaimInternalCreatedRequest } from "./claimInput"; import type { ClaimCustomFieldsUpdatedResponse } from "./claimInput"; import type { ClaimCustomFieldsUpdatedRequest } from "./claimInput"; import type { ClaimSanitisedResponse } from "./claimInput"; @@ -107,7 +108,7 @@ export interface IClaimInputAPIClient { /** * @generated from protobuf rpc: InternalCreated */ - internalCreated(input: ClaimCreatedRequest, options?: RpcOptions): UnaryCall; + internalCreated(input: ClaimInternalCreatedRequest, options?: RpcOptions): UnaryCall; } /** * @@ -229,8 +230,8 @@ export class ClaimInputAPIClient implements IClaimInputAPIClient, ServiceInfo { /** * @generated from protobuf rpc: InternalCreated */ - internalCreated(input: ClaimCreatedRequest, options?: RpcOptions): UnaryCall { + internalCreated(input: ClaimInternalCreatedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[15], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); + return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/claimInput.ts b/claimInput.ts index 5fa1df9..43a3bae 100644 --- a/claimInput.ts +++ b/claimInput.ts @@ -132,6 +132,23 @@ export interface ClaimCreatedResponse { */ ID?: EntityID; } +/** + * @generated from protobuf message api.ClaimInternalCreatedRequest + */ +export interface ClaimInternalCreatedRequest { + /** + * @generated from protobuf field: string ProjectID = 1 + */ + ProjectID: string; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; + /** + * @generated from protobuf field: api.ClaimCreatedPayload Payload = 3 + */ + Payload?: ClaimCreatedPayload; +} // // Completed : this message tells that claim is completed @@ -1323,6 +1340,67 @@ class ClaimCreatedResponse$Type extends MessageType { */ export const ClaimCreatedResponse = new ClaimCreatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods +class ClaimInternalCreatedRequest$Type extends MessageType { + 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 } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "InternalCreated" }); + } + create(value?: PartialMessage): ClaimInternalCreatedRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ProjectID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimInternalCreatedRequest): ClaimInternalCreatedRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ProjectID */ 1: + message.ProjectID = reader.string(); + break; + 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); + 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: ClaimInternalCreatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ProjectID = 1; */ + if (message.ProjectID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); + /* api.EntityID ID = 2; */ + if (message.ID) + EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.ClaimCreatedPayload Payload = 3; */ + if (message.Payload) + ClaimCreatedPayload.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); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ClaimInternalCreatedRequest + */ +export const ClaimInternalCreatedRequest = new ClaimInternalCreatedRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods class ClaimCompletedPayload$Type extends MessageType { constructor() { super("api.ClaimCompletedPayload", [ @@ -4408,5 +4486,5 @@ export const ClaimInputAPI = new ServiceType("api.ClaimInputAPI", [ { name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "A Claim has been deleted. This is called from HARDIS SC NETWORK Admin service to share the Organisation Claims." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ClaimDeletedRequest, O: ClaimDeletedResponse }, { name: "Sanitised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "A claim has been sanitised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClaimSanitisedRequest, O: ClaimSanitisedResponse }, { name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "A claim's CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ClaimCustomFieldsUpdatedRequest, O: ClaimCustomFieldsUpdatedResponse }, - { name: "InternalCreated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "A claim has been created. Internal use only." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "api.customInput": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClaimCreatedRequest, O: ClaimCreatedResponse } + { name: "InternalCreated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Claim Inputs"], description: "A claim has been created. Internal use only." }, "api.rscType": "Platform", "api.roles": "Platform.Project-Input", "api.platformReserved": true, "api.customInput": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClaimInternalCreatedRequest, O: ClaimCreatedResponse } ], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" }); diff --git a/package.json b/package.json index 07d632b..874f1f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.15.0-SNAPSHOT-260914083531", + "version": "1.15.0-SNAPSHOT-260914085921", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",