diff --git a/package.json b/package.json index e6d16563..b42a894e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.10.0-SNAPSHOT-250401091740", + "version": "1.10.0-SNAPSHOT-250401095446", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/trackingInput.client.ts b/trackingInput.client.ts index 90631979..82425e1c 100644 --- a/trackingInput.client.ts +++ b/trackingInput.client.ts @@ -4,6 +4,8 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { TrackingInputAPI } from "./trackingInput"; +import type { TrackingURLUpdatedResponse } from "./trackingInput"; +import type { TrackingURLUpdatedRequest } from "./trackingInput"; import type { TrackingDeletedResponse } from "./trackingInput"; import type { TrackingDeletedRequest } from "./trackingInput"; import type { TrackingAttachmentRemovedResponse } from "./trackingInput"; @@ -63,6 +65,10 @@ export interface ITrackingInputAPIClient { * @generated from protobuf rpc: Deleted(api.TrackingDeletedRequest) returns (api.TrackingDeletedResponse); */ deleted(input: TrackingDeletedRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: URLUpdated(api.TrackingURLUpdatedRequest) returns (api.TrackingURLUpdatedResponse); + */ + uRLUpdated(input: TrackingURLUpdatedRequest, options?: RpcOptions): UnaryCall; } /** * @@ -133,4 +139,11 @@ export class TrackingInputAPIClient implements ITrackingInputAPIClient, ServiceI const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: URLUpdated(api.TrackingURLUpdatedRequest) returns (api.TrackingURLUpdatedResponse); + */ + uRLUpdated(input: TrackingURLUpdatedRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[8], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } } diff --git a/trackingInput.ts b/trackingInput.ts index 27850321..d89eb050 100644 --- a/trackingInput.ts +++ b/trackingInput.ts @@ -260,6 +260,69 @@ export interface TrackingHULabeledResponse { */ iD?: EntityID; } +// URLUpdated + +// +// The tracking URL has been updated +// +// created 2025/04/01 + +/** + * @generated from protobuf message api.TrackingURLUpdatedPayload + */ +export interface TrackingURLUpdatedPayload { + /** + * @generated from protobuf field: string TrackingURL = 1 [json_name = "TrackingURL"]; + */ + trackingURL: string; +} +/** + * @generated from protobuf message api.TrackingURLUpdatedEvent + */ +export interface TrackingURLUpdatedEvent { + /** + * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; + */ + header?: EventHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; + */ + iD?: EntityID; + /** + * @generated from protobuf field: api.TrackingURLUpdatedPayload Payload = 3 [json_name = "Payload"]; + */ + payload?: TrackingURLUpdatedPayload; +} +/** + * @generated from protobuf message api.TrackingURLUpdatedRequest + */ +export interface TrackingURLUpdatedRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"]; + */ + header?: RequestProjectHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; + */ + iD?: EntityID; + /** + * @generated from protobuf field: api.TrackingURLUpdatedPayload Payload = 3 [json_name = "Payload"]; + */ + payload?: TrackingURLUpdatedPayload; +} +/** + * @generated from protobuf message api.TrackingURLUpdatedResponse + */ +export interface TrackingURLUpdatedResponse { + /** + * @generated from protobuf field: api.ResponseHeader Header = 1 [json_name = "Header"]; + */ + header?: ResponseHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; + */ + iD?: EntityID; +} // Switched // @@ -1307,6 +1370,226 @@ class TrackingHULabeledResponse$Type extends MessageType { + constructor() { + super("api.TrackingURLUpdatedPayload", [ + { no: 1, name: "TrackingURL", kind: "scalar", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The tracking URL" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TrackingURL"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "URLUpdated" }); + } + create(value?: PartialMessage): TrackingURLUpdatedPayload { + const message = globalThis.Object.create((this.messagePrototype!)); + message.trackingURL = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TrackingURLUpdatedPayload): TrackingURLUpdatedPayload { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string TrackingURL = 1 [json_name = "TrackingURL"];*/ 1: + message.trackingURL = 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: TrackingURLUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string TrackingURL = 1 [json_name = "TrackingURL"]; */ + if (message.trackingURL !== "") + writer.tag(1, WireType.LengthDelimited).string(message.trackingURL); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.TrackingURLUpdatedPayload + */ +export const TrackingURLUpdatedPayload = new TrackingURLUpdatedPayload$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class TrackingURLUpdatedEvent$Type extends MessageType { + constructor() { + super("api.TrackingURLUpdatedEvent", [ + { no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", jsonName: "Payload", T: () => TrackingURLUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + ], { "api.messageType": "Event", "api.inputEvent": "URLUpdated" }); + } + create(value?: PartialMessage): TrackingURLUpdatedEvent { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TrackingURLUpdatedEvent): TrackingURLUpdatedEvent { + 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 [json_name = "Header"];*/ 1: + message.header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.header); + break; + case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: + message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD); + break; + case /* api.TrackingURLUpdatedPayload Payload = 3 [json_name = "Payload"];*/ 3: + message.payload = TrackingURLUpdatedPayload.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: TrackingURLUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.EventHeader Header = 1 [json_name = "Header"]; */ + if (message.header) + EventHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* api.EntityID ID = 2 [json_name = "ID"]; */ + if (message.iD) + EntityID.internalBinaryWrite(message.iD, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.TrackingURLUpdatedPayload Payload = 3 [json_name = "Payload"]; */ + if (message.payload) + TrackingURLUpdatedPayload.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.TrackingURLUpdatedEvent + */ +export const TrackingURLUpdatedEvent = new TrackingURLUpdatedEvent$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class TrackingURLUpdatedRequest$Type extends MessageType { + constructor() { + super("api.TrackingURLUpdatedRequest", [ + { no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", jsonName: "Payload", T: () => TrackingURLUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "URLUpdated" }); + } + create(value?: PartialMessage): TrackingURLUpdatedRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TrackingURLUpdatedRequest): TrackingURLUpdatedRequest { + 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 [json_name = "Header"];*/ 1: + message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header); + break; + case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: + message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD); + break; + case /* api.TrackingURLUpdatedPayload Payload = 3 [json_name = "Payload"];*/ 3: + message.payload = TrackingURLUpdatedPayload.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: TrackingURLUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */ + if (message.header) + RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* api.EntityID ID = 2 [json_name = "ID"]; */ + if (message.iD) + EntityID.internalBinaryWrite(message.iD, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.TrackingURLUpdatedPayload Payload = 3 [json_name = "Payload"]; */ + if (message.payload) + TrackingURLUpdatedPayload.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.TrackingURLUpdatedRequest + */ +export const TrackingURLUpdatedRequest = new TrackingURLUpdatedRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class TrackingURLUpdatedResponse$Type extends MessageType { + constructor() { + super("api.TrackingURLUpdatedResponse", [ + { no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => ResponseHeader }, + { no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID } + ], { "api.messageType": "Response", "api.inputEvent": "URLUpdated" }); + } + create(value?: PartialMessage): TrackingURLUpdatedResponse { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TrackingURLUpdatedResponse): TrackingURLUpdatedResponse { + 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 [json_name = "Header"];*/ 1: + message.header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.header); + break; + case /* api.EntityID ID = 2 [json_name = "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: TrackingURLUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.ResponseHeader Header = 1 [json_name = "Header"]; */ + if (message.header) + ResponseHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* api.EntityID ID = 2 [json_name = "ID"]; */ + 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.TrackingURLUpdatedResponse + */ +export const TrackingURLUpdatedResponse = new TrackingURLUpdatedResponse$Type(); +// @generated message type with reflection information, may provide speed optimized methods class TrackingSwitchedPayload$Type extends MessageType { constructor() { super("api.TrackingSwitchedPayload", [ @@ -2436,5 +2719,6 @@ export const TrackingInputAPI = new ServiceType("api.TrackingInputAPI", [ { name: "Switched", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Tracking Inputs"], description: "A tracking has been switched. This is typically called from a Transport app." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: TrackingSwitchedRequest, O: TrackingSwitchedResponse }, { name: "AttachmentAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Tracking Inputs"], description: "An attachment is added for the Tracking." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: TrackingAttachmentAddedRequest, O: TrackingAttachmentAddedResponse }, { name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Tracking Inputs"], description: "An attachment is removed for the Tracking." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: TrackingAttachmentRemovedRequest, O: TrackingAttachmentRemovedResponse }, - { name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Tracking Inputs"], description: "An Tracking has been deleted. This is called from Reflex Platform Admin service to share the Organisation Trackings." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: TrackingDeletedRequest, O: TrackingDeletedResponse } + { name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Tracking Inputs"], description: "An Tracking has been deleted. This is called from Reflex Platform Admin service to share the Organisation Trackings." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: TrackingDeletedRequest, O: TrackingDeletedResponse }, + { name: "URLUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Tracking Inputs"], description: "The tracking URL has been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: TrackingURLUpdatedRequest, O: TrackingURLUpdatedResponse } ], { "api.serviceType": "Api", "api.k8sService": "api-server" });