You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { ItemInputAPI } from "./itemInput";
|
||||
import type { ItemPhotoUriUpdatedResponse } from "./itemInput";
|
||||
import type { ItemPhotoUriUpdatedRequest } from "./itemInput";
|
||||
import type { ItemCustomFieldsUpdatedResponse } from "./itemInput";
|
||||
import type { ItemCustomFieldsUpdatedRequest } from "./itemInput";
|
||||
import type { ItemSanitisedResponse } from "./itemInput";
|
||||
@@ -88,6 +90,10 @@ export interface IItemInputAPIClient {
|
||||
* @generated from protobuf rpc: CustomFieldsUpdated
|
||||
*/
|
||||
customFieldsUpdated(input: ItemCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<ItemCustomFieldsUpdatedRequest, ItemCustomFieldsUpdatedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: PhotoUriUpdated
|
||||
*/
|
||||
photoUriUpdated(input: ItemPhotoUriUpdatedRequest, options?: RpcOptions): UnaryCall<ItemPhotoUriUpdatedRequest, ItemPhotoUriUpdatedResponse>;
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -185,4 +191,11 @@ export class ItemInputAPIClient implements IItemInputAPIClient, ServiceInfo {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ItemCustomFieldsUpdatedRequest, ItemCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: PhotoUriUpdated
|
||||
*/
|
||||
photoUriUpdated(input: ItemPhotoUriUpdatedRequest, options?: RpcOptions): UnaryCall<ItemPhotoUriUpdatedRequest, ItemPhotoUriUpdatedResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ItemPhotoUriUpdatedRequest, ItemPhotoUriUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
279
itemInput.ts
279
itemInput.ts
@@ -724,6 +724,62 @@ export interface ItemCustomFieldsUpdatedResponse {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ItemPhotoUriUpdatedPayload
|
||||
*/
|
||||
export interface ItemPhotoUriUpdatedPayload {
|
||||
/**
|
||||
* @generated from protobuf field: string PhotoURI = 1
|
||||
*/
|
||||
PhotoURI: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ItemPhotoUriUpdatedEvent
|
||||
*/
|
||||
export interface ItemPhotoUriUpdatedEvent {
|
||||
/**
|
||||
* @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.ItemPhotoUriUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: ItemPhotoUriUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ItemPhotoUriUpdatedRequest
|
||||
*/
|
||||
export interface ItemPhotoUriUpdatedRequest {
|
||||
/**
|
||||
* @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.ItemPhotoUriUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: ItemPhotoUriUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ItemPhotoUriUpdatedResponse
|
||||
*/
|
||||
export interface ItemPhotoUriUpdatedResponse {
|
||||
/**
|
||||
* @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 ItemCreatedPayload$Type extends MessageType<ItemCreatedPayload> {
|
||||
constructor() {
|
||||
@@ -2928,6 +2984,226 @@ class ItemCustomFieldsUpdatedResponse$Type extends MessageType<ItemCustomFieldsU
|
||||
* @generated MessageType for protobuf message api.ItemCustomFieldsUpdatedResponse
|
||||
*/
|
||||
export const ItemCustomFieldsUpdatedResponse = new ItemCustomFieldsUpdatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ItemPhotoUriUpdatedPayload$Type extends MessageType<ItemPhotoUriUpdatedPayload> {
|
||||
constructor() {
|
||||
super("api.ItemPhotoUriUpdatedPayload", [
|
||||
{ no: 1, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PhotoURI"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "PhotoUriUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<ItemPhotoUriUpdatedPayload>): ItemPhotoUriUpdatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.PhotoURI = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ItemPhotoUriUpdatedPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedPayload): ItemPhotoUriUpdatedPayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string PhotoURI */ 1:
|
||||
message.PhotoURI = 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: ItemPhotoUriUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string PhotoURI = 1; */
|
||||
if (message.PhotoURI !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.PhotoURI);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ItemPhotoUriUpdatedPayload
|
||||
*/
|
||||
export const ItemPhotoUriUpdatedPayload = new ItemPhotoUriUpdatedPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ItemPhotoUriUpdatedEvent$Type extends MessageType<ItemPhotoUriUpdatedEvent> {
|
||||
constructor() {
|
||||
super("api.ItemPhotoUriUpdatedEvent", [
|
||||
{ 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: () => ItemPhotoUriUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Event", "api.inputEvent": "PhotoUriUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<ItemPhotoUriUpdatedEvent>): ItemPhotoUriUpdatedEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ItemPhotoUriUpdatedEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedEvent): ItemPhotoUriUpdatedEvent {
|
||||
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.ItemPhotoUriUpdatedPayload Payload */ 3:
|
||||
message.Payload = ItemPhotoUriUpdatedPayload.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: ItemPhotoUriUpdatedEvent, 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.ItemPhotoUriUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
ItemPhotoUriUpdatedPayload.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.ItemPhotoUriUpdatedEvent
|
||||
*/
|
||||
export const ItemPhotoUriUpdatedEvent = new ItemPhotoUriUpdatedEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ItemPhotoUriUpdatedRequest$Type extends MessageType<ItemPhotoUriUpdatedRequest> {
|
||||
constructor() {
|
||||
super("api.ItemPhotoUriUpdatedRequest", [
|
||||
{ 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: () => ItemPhotoUriUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PhotoUriUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<ItemPhotoUriUpdatedRequest>): ItemPhotoUriUpdatedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ItemPhotoUriUpdatedRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedRequest): ItemPhotoUriUpdatedRequest {
|
||||
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.ItemPhotoUriUpdatedPayload Payload */ 3:
|
||||
message.Payload = ItemPhotoUriUpdatedPayload.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: ItemPhotoUriUpdatedRequest, 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.ItemPhotoUriUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
ItemPhotoUriUpdatedPayload.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.ItemPhotoUriUpdatedRequest
|
||||
*/
|
||||
export const ItemPhotoUriUpdatedRequest = new ItemPhotoUriUpdatedRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ItemPhotoUriUpdatedResponse$Type extends MessageType<ItemPhotoUriUpdatedResponse> {
|
||||
constructor() {
|
||||
super("api.ItemPhotoUriUpdatedResponse", [
|
||||
{ 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": "PhotoUriUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<ItemPhotoUriUpdatedResponse>): ItemPhotoUriUpdatedResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ItemPhotoUriUpdatedResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedResponse): ItemPhotoUriUpdatedResponse {
|
||||
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: ItemPhotoUriUpdatedResponse, 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.ItemPhotoUriUpdatedResponse
|
||||
*/
|
||||
export const ItemPhotoUriUpdatedResponse = new ItemPhotoUriUpdatedResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.ItemInputAPI
|
||||
*/
|
||||
@@ -2941,5 +3217,6 @@ export const ItemInputAPI = new ServiceType("api.ItemInputAPI", [
|
||||
{ name: "AttachmentAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "An attachment is added for the Item." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ItemAttachmentAddedRequest, O: ItemAttachmentAddedResponse },
|
||||
{ name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "An attachment is removed for the Item." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ItemAttachmentRemovedRequest, O: ItemAttachmentRemovedResponse },
|
||||
{ name: "Sanitised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "An Item has been sanitised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ItemSanitisedRequest, O: ItemSanitisedResponse },
|
||||
{ name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ItemCustomFieldsUpdatedRequest, O: ItemCustomFieldsUpdatedResponse }
|
||||
{ name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ItemCustomFieldsUpdatedRequest, O: ItemCustomFieldsUpdatedResponse },
|
||||
{ name: "PhotoUriUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "Photo Uri has been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ItemPhotoUriUpdatedRequest, O: ItemPhotoUriUpdatedResponse }
|
||||
], { "api.serviceType": "Api", "api.k8sService": "api-server" });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.14.0-SNAPSHOT-260505091724",
|
||||
"version": "1.14.0-SNAPSHOT-260505120056",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user