diff --git a/appointmentInput.client.ts b/appointmentInput.client.ts index fa47b97..35f3abc 100644 --- a/appointmentInput.client.ts +++ b/appointmentInput.client.ts @@ -4,6 +4,8 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { AppointmentInputAPI } from "./appointmentInput"; +import type { AppointmentRedetectedResponse } from "./appointmentInput"; +import type { AppointmentRedetectedRequest } from "./appointmentInput"; import type { AppointmentCustomFieldsUpdatedResponse } from "./appointmentInput"; import type { AppointmentCustomFieldsUpdatedRequest } from "./appointmentInput"; import type { AppointmentSanitisedResponse } from "./appointmentInput"; @@ -134,6 +136,10 @@ export interface IAppointmentInputAPIClient { * @generated from protobuf rpc: CustomFieldsUpdated */ customFieldsUpdated(input: AppointmentCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: Redetected + */ + redetected(input: AppointmentRedetectedRequest, options?: RpcOptions): UnaryCall; } /** * @@ -287,4 +293,11 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se const method = this.methods[19], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: Redetected + */ + redetected(input: AppointmentRedetectedRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[20], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } } diff --git a/appointmentInput.ts b/appointmentInput.ts index 200eb9d..465a74c 100644 --- a/appointmentInput.ts +++ b/appointmentInput.ts @@ -1452,6 +1452,61 @@ export interface AppointmentCustomFieldsUpdatedResponse { */ ID?: EntityID; } +/** + * @generated from protobuf message api.AppointmentRedetectedPayload + */ +export interface AppointmentRedetectedPayload { +} +/** + * @generated from protobuf message api.AppointmentRedetectedEvent + */ +export interface AppointmentRedetectedEvent { + /** + * option (postAggMethods) = ""; // Here are listed the post aggregation methods to call when event message is aggregated + * option (preAggMethods) = ""; // Here are listed the pre aggregation methods to call before event message is aggregated + * + * @generated from protobuf field: api.EventHeader Header = 1 + */ + Header?: EventHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; + /** + * @generated from protobuf field: api.AppointmentRedetectedPayload Payload = 3 + */ + Payload?: AppointmentRedetectedPayload; +} +/** + * @generated from protobuf message api.AppointmentRedetectedRequest + */ +export interface AppointmentRedetectedRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; + /** + * @generated from protobuf field: api.AppointmentRedetectedPayload Payload = 3 + */ + Payload?: AppointmentRedetectedPayload; +} +/** + * @generated from protobuf message api.AppointmentRedetectedResponse + */ +export interface AppointmentRedetectedResponse { + /** + * @generated from protobuf field: api.ResponseHeader Header = 1 + */ + Header?: ResponseHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; +} // @generated message type with reflection information, may provide speed optimized methods class AppointmentCreatedPayload$Type extends MessageType { constructor() { @@ -6033,6 +6088,217 @@ class AppointmentCustomFieldsUpdatedResponse$Type extends MessageType { + constructor() { + super("api.AppointmentRedetectedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Redetected" }); + } + create(value?: PartialMessage): AppointmentRedetectedPayload { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedPayload): AppointmentRedetectedPayload { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + 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: AppointmentRedetectedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.AppointmentRedetectedPayload + */ +export const AppointmentRedetectedPayload = new AppointmentRedetectedPayload$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentRedetectedEvent$Type extends MessageType { + constructor() { + super("api.AppointmentRedetectedEvent", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } + ], { "api.messageType": "Event", "api.inputEvent": "Redetected" }); + } + create(value?: PartialMessage): AppointmentRedetectedEvent { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedEvent): AppointmentRedetectedEvent { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.EventHeader Header */ 1: + message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* api.EntityID ID */ 2: + message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); + break; + case /* api.AppointmentRedetectedPayload Payload */ 3: + message.Payload = AppointmentRedetectedPayload.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: AppointmentRedetectedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.EventHeader Header = 1; */ + if (message.Header) + EventHeader.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(); + /* api.AppointmentRedetectedPayload Payload = 3; */ + if (message.Payload) + AppointmentRedetectedPayload.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.AppointmentRedetectedEvent + */ +export const AppointmentRedetectedEvent = new AppointmentRedetectedEvent$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentRedetectedRequest$Type extends MessageType { + constructor() { + super("api.AppointmentRedetectedRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Redetected" }); + } + create(value?: PartialMessage): AppointmentRedetectedRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedRequest): AppointmentRedetectedRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.RequestProjectHeader Header */ 1: + message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* api.EntityID ID */ 2: + message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); + break; + case /* api.AppointmentRedetectedPayload Payload */ 3: + message.Payload = AppointmentRedetectedPayload.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: AppointmentRedetectedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1; */ + if (message.Header) + RequestProjectHeader.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(); + /* api.AppointmentRedetectedPayload Payload = 3; */ + if (message.Payload) + AppointmentRedetectedPayload.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.AppointmentRedetectedRequest + */ +export const AppointmentRedetectedRequest = new AppointmentRedetectedRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentRedetectedResponse$Type extends MessageType { + constructor() { + super("api.AppointmentRedetectedResponse", [ + { 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": "Redetected" }); + } + create(value?: PartialMessage): AppointmentRedetectedResponse { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedResponse): AppointmentRedetectedResponse { + 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: AppointmentRedetectedResponse, 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.AppointmentRedetectedResponse + */ +export const AppointmentRedetectedResponse = new AppointmentRedetectedResponse$Type(); /** * @generated ServiceType for protobuf service api.AppointmentInputAPI */ @@ -6056,5 +6322,6 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [ { name: "EmailsAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment Emails have been added." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentEmailsAddedRequest, O: AppointmentEmailsAddedResponse }, { name: "EmailsRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment Emails have been removed." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentEmailsRemovedRequest, O: AppointmentEmailsRemovedResponse }, { name: "Sanitised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An Appointment has been sanitised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSanitisedRequest, O: AppointmentSanitisedResponse }, - { name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCustomFieldsUpdatedRequest, O: AppointmentCustomFieldsUpdatedResponse } + { name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCustomFieldsUpdatedRequest, O: AppointmentCustomFieldsUpdatedResponse }, + { name: "Redetected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The associated appointment was not created correctly. Call this api to fix the appointment creation. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentRedetectedRequest, O: AppointmentRedetectedResponse } ], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" }); diff --git a/package.json b/package.json index 08ff718..54dea27 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260121143614", + "version": "1.13.0-SNAPSHOT-260126141501", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.ts b/site.ts index 57a9d92..d7c7cc6 100644 --- a/site.ts +++ b/site.ts @@ -1490,9 +1490,11 @@ export interface CheckAppointmentEditableResponse { */ Header?: ResponseHeader; /** - * @generated from protobuf field: bool IsModifiable = 1 + * bool IsModifiable = 1; + * + * @generated from protobuf field: bool IsEditable = 3 */ - IsModifiable: boolean; + IsEditable: boolean; } // @generated message type with reflection information, may provide speed optimized methods class Site$Type extends MessageType { @@ -6070,12 +6072,12 @@ class CheckAppointmentEditableResponse$Type extends MessageType ResponseHeader }, - { no: 1, name: "IsModifiable", kind: "scalar", localName: "IsModifiable", jsonName: "IsModifiable", T: 8 /*ScalarType.BOOL*/ } + { no: 3, name: "IsEditable", kind: "scalar", localName: "IsEditable", jsonName: "IsEditable", T: 8 /*ScalarType.BOOL*/ } ]); } create(value?: PartialMessage): CheckAppointmentEditableResponse { const message = globalThis.Object.create((this.messagePrototype!)); - message.IsModifiable = false; + message.IsEditable = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -6088,8 +6090,8 @@ class CheckAppointmentEditableResponse$Type extends MessageType; + /** + * @generated from protobuf rpc: Extract + */ + extract(input: ExtractQuery, options?: RpcOptions): UnaryCall; } /** * @@ -149,4 +155,11 @@ export class StockQueryClient implements IStockQueryClient, ServiceInfo { const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: Extract + */ + extract(input: ExtractQuery, options?: RpcOptions): UnaryCall { + const method = this.methods[9], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } } diff --git a/stockQuery.ts b/stockQuery.ts index fcf8440..4e99ba7 100644 --- a/stockQuery.ts +++ b/stockQuery.ts @@ -1,6 +1,8 @@ // @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "stockQuery.proto" (package "api", syntax proto3) // tslint:disable +import { ExtractResult } from "./shared"; +import { ExtractQuery } from "./shared"; import { FindKPIDataResult } from "./clickhouse"; import { FindKPIDataQuery } from "./clickhouse"; import { CountLinesResult } from "./shared"; @@ -629,5 +631,6 @@ export const StockQuery = new ServiceType("api.StockQuery", [ { name: "GetKPIDataForUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Stock Query"], description: "Get stock KPI data for a specific user" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "api.moduleID": "", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetKPIDataForUserQuery, O: GetKPIDataResult }, { name: "ExtractKPI", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Stock Query"], description: "Schedule a data extraction" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "stock-inventory", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractKPIQuery, O: ExtractKPIResult }, { name: "CountLines", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Stock Query"], description: "Count lines in database for project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Query", "api.moduleID": "stock-inventory", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CountLinesQuery, O: CountLinesResult }, - { name: "FindKPIData", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Stock Query"], description: "Find stock KPI data" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "stock-inventory", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindKPIDataQuery, O: FindKPIDataResult } + { name: "FindKPIData", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Stock Query"], description: "Find stock KPI data" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "stock-inventory", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindKPIDataQuery, O: FindKPIDataResult }, + { name: "Extract", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Stock Query"], description: "Schedule a data extraction" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "stock-inventory", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractQuery, O: ExtractResult } ], { "api.serviceType": "Query", "api.k8sService": "query-server" });