You've already forked npm-core-sdk
974 lines
51 KiB
TypeScript
974 lines
51 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "notifInput.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { ResponseHeader } from "./shared";
|
|
import { RequestProjectHeader } from "./shared";
|
|
import { EntityID } from "./shared";
|
|
import { EventHeader } from "./shared";
|
|
import { NotifTypeEnum } from "./collabShared";
|
|
//
|
|
// Aggregation object message
|
|
|
|
/**
|
|
* @generated from protobuf message api.NotifCreatedPayload
|
|
*/
|
|
export interface NotifCreatedPayload {
|
|
/**
|
|
* Type Of Change to be notified
|
|
*
|
|
* @generated from protobuf field: api.NotifTypeEnum NotificationType = 1
|
|
*/
|
|
NotificationType: NotifTypeEnum;
|
|
/**
|
|
* Identifier of the issuer
|
|
*
|
|
* @generated from protobuf field: string IssuerID = 2
|
|
*/
|
|
IssuerID: string;
|
|
/**
|
|
* List of contacts
|
|
*
|
|
* @generated from protobuf field: repeated string Contacts = 3
|
|
*/
|
|
Contacts: string[];
|
|
/**
|
|
* Details of the notification
|
|
*
|
|
* @generated from protobuf field: string Details = 4
|
|
*/
|
|
Details: string;
|
|
/**
|
|
* Entity domain
|
|
*
|
|
* @generated from protobuf field: string EntityDomain = 5
|
|
*/
|
|
EntityDomain: string;
|
|
/**
|
|
* Type of entity
|
|
*
|
|
* @generated from protobuf field: string EntityType = 6
|
|
*/
|
|
EntityType: string;
|
|
/**
|
|
* ID of entity
|
|
*
|
|
* @generated from protobuf field: string EntityRefID = 7
|
|
*/
|
|
EntityRefID: string;
|
|
/**
|
|
* @generated from protobuf field: string Tags = 8
|
|
*/
|
|
Tags: string;
|
|
/**
|
|
* List of contacts mail
|
|
*
|
|
* @generated from protobuf field: repeated string ContactMails = 9
|
|
*/
|
|
ContactMails: string[];
|
|
/**
|
|
* @generated from protobuf field: bool GroupSending = 10
|
|
*/
|
|
GroupSending: boolean;
|
|
/**
|
|
* @generated from protobuf field: bool SendToIssuer = 11
|
|
*/
|
|
SendToIssuer: boolean;
|
|
}
|
|
/**
|
|
* Event message
|
|
*
|
|
* @generated from protobuf message api.NotifCreatedEvent
|
|
*/
|
|
export interface NotifCreatedEvent {
|
|
/**
|
|
* @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.NotifCreatedPayload Payload = 3
|
|
*/
|
|
Payload?: NotifCreatedPayload;
|
|
}
|
|
/**
|
|
* API Request
|
|
*
|
|
* @generated from protobuf message api.NotifCreatedRequest
|
|
*/
|
|
export interface NotifCreatedRequest {
|
|
/**
|
|
* @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.NotifCreatedPayload Payload = 3
|
|
*/
|
|
Payload?: NotifCreatedPayload;
|
|
}
|
|
/**
|
|
* API Response
|
|
*
|
|
* @generated from protobuf message api.NotifCreatedResponse
|
|
*/
|
|
export interface NotifCreatedResponse {
|
|
/**
|
|
* @generated from protobuf field: api.ResponseHeader Header = 1
|
|
*/
|
|
Header?: ResponseHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2
|
|
*/
|
|
ID?: EntityID;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifSanitisedPayload
|
|
*/
|
|
export interface NotifSanitisedPayload {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifSanitisedEvent
|
|
*/
|
|
export interface NotifSanitisedEvent {
|
|
/**
|
|
* @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.NotifSanitisedPayload Payload = 3
|
|
*/
|
|
Payload?: NotifSanitisedPayload;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifSanitisedRequest
|
|
*/
|
|
export interface NotifSanitisedRequest {
|
|
/**
|
|
* @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.NotifSanitisedPayload Payload = 3
|
|
*/
|
|
Payload?: NotifSanitisedPayload;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifSanitisedResponse
|
|
*/
|
|
export interface NotifSanitisedResponse {
|
|
/**
|
|
* @generated from protobuf field: api.ResponseHeader Header = 1
|
|
*/
|
|
Header?: ResponseHeader;
|
|
/**
|
|
* @generated from protobuf field: api.EntityID ID = 2
|
|
*/
|
|
ID?: EntityID;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifCustomFieldsUpdatedPayload
|
|
*/
|
|
export interface NotifCustomFieldsUpdatedPayload {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifCustomFieldsUpdatedEvent
|
|
*/
|
|
export interface NotifCustomFieldsUpdatedEvent {
|
|
/**
|
|
* @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.NotifCustomFieldsUpdatedPayload Payload = 3
|
|
*/
|
|
Payload?: NotifCustomFieldsUpdatedPayload;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifCustomFieldsUpdatedRequest
|
|
*/
|
|
export interface NotifCustomFieldsUpdatedRequest {
|
|
/**
|
|
* @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.NotifCustomFieldsUpdatedPayload Payload = 3
|
|
*/
|
|
Payload?: NotifCustomFieldsUpdatedPayload;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.NotifCustomFieldsUpdatedResponse
|
|
*/
|
|
export interface NotifCustomFieldsUpdatedResponse {
|
|
/**
|
|
* @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 NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
|
constructor() {
|
|
super("api.NotifCreatedPayload", [
|
|
{ no: 1, name: "NotificationType", kind: "enum", localName: "NotificationType", jsonName: "NotificationType", T: () => ["api.NotifTypeEnum", NotifTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of change to be notified" } } },
|
|
{ no: 2, name: "IssuerID", kind: "scalar", localName: "IssuerID", jsonName: "IssuerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the issuer (uuid format)" }, "validate.rules": { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } },
|
|
{ no: 3, name: "Contacts", kind: "scalar", localName: "Contacts", jsonName: "Contacts", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifiers of the contact to notity (uuid format)" }, "validate.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}$" } } } } } },
|
|
{ no: 4, name: "Details", kind: "scalar", localName: "Details", jsonName: "Details", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 5, name: "EntityDomain", kind: "scalar", localName: "EntityDomain", jsonName: "EntityDomain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity domain" }, "validate.rules": { string: { in: ["trade", "collab"] } } } },
|
|
{ no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of entity" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of entity" }, "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 8, name: "Tags", kind: "scalar", localName: "Tags", jsonName: "Tags", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tags" } } },
|
|
{ no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Mail of the contact to notify" }, "validate.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}$" } } } } } },
|
|
{ no: 10, name: "GroupSending", kind: "scalar", localName: "GroupSending", jsonName: "GroupSending", T: 8 /*ScalarType.BOOL*/ },
|
|
{ no: 11, name: "SendToIssuer", kind: "scalar", localName: "SendToIssuer", jsonName: "SendToIssuer", T: 8 /*ScalarType.BOOL*/ }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["NotificationType", "IssuerID", "Contacts", "EntityDomain", "EntityType", "EntityRefID"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
|
|
}
|
|
create(value?: PartialMessage<NotifCreatedPayload>): NotifCreatedPayload {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.NotificationType = 0;
|
|
message.IssuerID = "";
|
|
message.Contacts = [];
|
|
message.Details = "";
|
|
message.EntityDomain = "";
|
|
message.EntityType = "";
|
|
message.EntityRefID = "";
|
|
message.Tags = "";
|
|
message.ContactMails = [];
|
|
message.GroupSending = false;
|
|
message.SendToIssuer = false;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCreatedPayload>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCreatedPayload): NotifCreatedPayload {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.NotifTypeEnum NotificationType */ 1:
|
|
message.NotificationType = reader.int32();
|
|
break;
|
|
case /* string IssuerID */ 2:
|
|
message.IssuerID = reader.string();
|
|
break;
|
|
case /* repeated string Contacts */ 3:
|
|
message.Contacts.push(reader.string());
|
|
break;
|
|
case /* string Details */ 4:
|
|
message.Details = reader.string();
|
|
break;
|
|
case /* string EntityDomain */ 5:
|
|
message.EntityDomain = reader.string();
|
|
break;
|
|
case /* string EntityType */ 6:
|
|
message.EntityType = reader.string();
|
|
break;
|
|
case /* string EntityRefID */ 7:
|
|
message.EntityRefID = reader.string();
|
|
break;
|
|
case /* string Tags */ 8:
|
|
message.Tags = reader.string();
|
|
break;
|
|
case /* repeated string ContactMails */ 9:
|
|
message.ContactMails.push(reader.string());
|
|
break;
|
|
case /* bool GroupSending */ 10:
|
|
message.GroupSending = reader.bool();
|
|
break;
|
|
case /* bool SendToIssuer */ 11:
|
|
message.SendToIssuer = reader.bool();
|
|
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: NotifCreatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.NotifTypeEnum NotificationType = 1; */
|
|
if (message.NotificationType !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.NotificationType);
|
|
/* string IssuerID = 2; */
|
|
if (message.IssuerID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.IssuerID);
|
|
/* repeated string Contacts = 3; */
|
|
for (let i = 0; i < message.Contacts.length; i++)
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Contacts[i]);
|
|
/* string Details = 4; */
|
|
if (message.Details !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Details);
|
|
/* string EntityDomain = 5; */
|
|
if (message.EntityDomain !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.EntityDomain);
|
|
/* string EntityType = 6; */
|
|
if (message.EntityType !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.EntityType);
|
|
/* string EntityRefID = 7; */
|
|
if (message.EntityRefID !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.EntityRefID);
|
|
/* string Tags = 8; */
|
|
if (message.Tags !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.Tags);
|
|
/* repeated string ContactMails = 9; */
|
|
for (let i = 0; i < message.ContactMails.length; i++)
|
|
writer.tag(9, WireType.LengthDelimited).string(message.ContactMails[i]);
|
|
/* bool GroupSending = 10; */
|
|
if (message.GroupSending !== false)
|
|
writer.tag(10, WireType.Varint).bool(message.GroupSending);
|
|
/* bool SendToIssuer = 11; */
|
|
if (message.SendToIssuer !== false)
|
|
writer.tag(11, WireType.Varint).bool(message.SendToIssuer);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.NotifCreatedPayload
|
|
*/
|
|
export const NotifCreatedPayload = new NotifCreatedPayload$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifCreatedEvent$Type extends MessageType<NotifCreatedEvent> {
|
|
constructor() {
|
|
super("api.NotifCreatedEvent", [
|
|
{ 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: () => NotifCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Created" });
|
|
}
|
|
create(value?: PartialMessage<NotifCreatedEvent>): NotifCreatedEvent {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCreatedEvent>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCreatedEvent): NotifCreatedEvent {
|
|
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.NotifCreatedPayload Payload */ 3:
|
|
message.Payload = NotifCreatedPayload.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: NotifCreatedEvent, 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.NotifCreatedPayload Payload = 3; */
|
|
if (message.Payload)
|
|
NotifCreatedPayload.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.NotifCreatedEvent
|
|
*/
|
|
export const NotifCreatedEvent = new NotifCreatedEvent$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifCreatedRequest$Type extends MessageType<NotifCreatedRequest> {
|
|
constructor() {
|
|
super("api.NotifCreatedRequest", [
|
|
{ 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: () => NotifCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" });
|
|
}
|
|
create(value?: PartialMessage<NotifCreatedRequest>): NotifCreatedRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCreatedRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCreatedRequest): NotifCreatedRequest {
|
|
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.NotifCreatedPayload Payload */ 3:
|
|
message.Payload = NotifCreatedPayload.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: NotifCreatedRequest, 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.NotifCreatedPayload Payload = 3; */
|
|
if (message.Payload)
|
|
NotifCreatedPayload.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.NotifCreatedRequest
|
|
*/
|
|
export const NotifCreatedRequest = new NotifCreatedRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifCreatedResponse$Type extends MessageType<NotifCreatedResponse> {
|
|
constructor() {
|
|
super("api.NotifCreatedResponse", [
|
|
{ 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": "Created" });
|
|
}
|
|
create(value?: PartialMessage<NotifCreatedResponse>): NotifCreatedResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCreatedResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCreatedResponse): NotifCreatedResponse {
|
|
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: NotifCreatedResponse, 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.NotifCreatedResponse
|
|
*/
|
|
export const NotifCreatedResponse = new NotifCreatedResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifSanitisedPayload$Type extends MessageType<NotifSanitisedPayload> {
|
|
constructor() {
|
|
super("api.NotifSanitisedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Sanitised" });
|
|
}
|
|
create(value?: PartialMessage<NotifSanitisedPayload>): NotifSanitisedPayload {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifSanitisedPayload>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifSanitisedPayload): NotifSanitisedPayload {
|
|
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: NotifSanitisedPayload, 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.NotifSanitisedPayload
|
|
*/
|
|
export const NotifSanitisedPayload = new NotifSanitisedPayload$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifSanitisedEvent$Type extends MessageType<NotifSanitisedEvent> {
|
|
constructor() {
|
|
super("api.NotifSanitisedEvent", [
|
|
{ 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: () => NotifSanitisedPayload, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" });
|
|
}
|
|
create(value?: PartialMessage<NotifSanitisedEvent>): NotifSanitisedEvent {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifSanitisedEvent>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifSanitisedEvent): NotifSanitisedEvent {
|
|
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.NotifSanitisedPayload Payload */ 3:
|
|
message.Payload = NotifSanitisedPayload.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: NotifSanitisedEvent, 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.NotifSanitisedPayload Payload = 3; */
|
|
if (message.Payload)
|
|
NotifSanitisedPayload.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.NotifSanitisedEvent
|
|
*/
|
|
export const NotifSanitisedEvent = new NotifSanitisedEvent$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifSanitisedRequest$Type extends MessageType<NotifSanitisedRequest> {
|
|
constructor() {
|
|
super("api.NotifSanitisedRequest", [
|
|
{ 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: () => NotifSanitisedPayload, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" });
|
|
}
|
|
create(value?: PartialMessage<NotifSanitisedRequest>): NotifSanitisedRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifSanitisedRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifSanitisedRequest): NotifSanitisedRequest {
|
|
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.NotifSanitisedPayload Payload */ 3:
|
|
message.Payload = NotifSanitisedPayload.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: NotifSanitisedRequest, 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.NotifSanitisedPayload Payload = 3; */
|
|
if (message.Payload)
|
|
NotifSanitisedPayload.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.NotifSanitisedRequest
|
|
*/
|
|
export const NotifSanitisedRequest = new NotifSanitisedRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifSanitisedResponse$Type extends MessageType<NotifSanitisedResponse> {
|
|
constructor() {
|
|
super("api.NotifSanitisedResponse", [
|
|
{ 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": "Sanitised" });
|
|
}
|
|
create(value?: PartialMessage<NotifSanitisedResponse>): NotifSanitisedResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifSanitisedResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifSanitisedResponse): NotifSanitisedResponse {
|
|
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: NotifSanitisedResponse, 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.NotifSanitisedResponse
|
|
*/
|
|
export const NotifSanitisedResponse = new NotifSanitisedResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifCustomFieldsUpdatedPayload$Type extends MessageType<NotifCustomFieldsUpdatedPayload> {
|
|
constructor() {
|
|
super("api.NotifCustomFieldsUpdatedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CustomFieldsUpdated" });
|
|
}
|
|
create(value?: PartialMessage<NotifCustomFieldsUpdatedPayload>): NotifCustomFieldsUpdatedPayload {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCustomFieldsUpdatedPayload>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCustomFieldsUpdatedPayload): NotifCustomFieldsUpdatedPayload {
|
|
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: NotifCustomFieldsUpdatedPayload, 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.NotifCustomFieldsUpdatedPayload
|
|
*/
|
|
export const NotifCustomFieldsUpdatedPayload = new NotifCustomFieldsUpdatedPayload$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifCustomFieldsUpdatedEvent$Type extends MessageType<NotifCustomFieldsUpdatedEvent> {
|
|
constructor() {
|
|
super("api.NotifCustomFieldsUpdatedEvent", [
|
|
{ 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: () => NotifCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" });
|
|
}
|
|
create(value?: PartialMessage<NotifCustomFieldsUpdatedEvent>): NotifCustomFieldsUpdatedEvent {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCustomFieldsUpdatedEvent>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCustomFieldsUpdatedEvent): NotifCustomFieldsUpdatedEvent {
|
|
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.NotifCustomFieldsUpdatedPayload Payload */ 3:
|
|
message.Payload = NotifCustomFieldsUpdatedPayload.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: NotifCustomFieldsUpdatedEvent, 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.NotifCustomFieldsUpdatedPayload Payload = 3; */
|
|
if (message.Payload)
|
|
NotifCustomFieldsUpdatedPayload.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.NotifCustomFieldsUpdatedEvent
|
|
*/
|
|
export const NotifCustomFieldsUpdatedEvent = new NotifCustomFieldsUpdatedEvent$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifCustomFieldsUpdatedRequest$Type extends MessageType<NotifCustomFieldsUpdatedRequest> {
|
|
constructor() {
|
|
super("api.NotifCustomFieldsUpdatedRequest", [
|
|
{ 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: () => NotifCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" });
|
|
}
|
|
create(value?: PartialMessage<NotifCustomFieldsUpdatedRequest>): NotifCustomFieldsUpdatedRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCustomFieldsUpdatedRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCustomFieldsUpdatedRequest): NotifCustomFieldsUpdatedRequest {
|
|
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.NotifCustomFieldsUpdatedPayload Payload */ 3:
|
|
message.Payload = NotifCustomFieldsUpdatedPayload.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: NotifCustomFieldsUpdatedRequest, 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.NotifCustomFieldsUpdatedPayload Payload = 3; */
|
|
if (message.Payload)
|
|
NotifCustomFieldsUpdatedPayload.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.NotifCustomFieldsUpdatedRequest
|
|
*/
|
|
export const NotifCustomFieldsUpdatedRequest = new NotifCustomFieldsUpdatedRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class NotifCustomFieldsUpdatedResponse$Type extends MessageType<NotifCustomFieldsUpdatedResponse> {
|
|
constructor() {
|
|
super("api.NotifCustomFieldsUpdatedResponse", [
|
|
{ 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": "CustomFieldsUpdated" });
|
|
}
|
|
create(value?: PartialMessage<NotifCustomFieldsUpdatedResponse>): NotifCustomFieldsUpdatedResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<NotifCustomFieldsUpdatedResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifCustomFieldsUpdatedResponse): NotifCustomFieldsUpdatedResponse {
|
|
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: NotifCustomFieldsUpdatedResponse, 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.NotifCustomFieldsUpdatedResponse
|
|
*/
|
|
export const NotifCustomFieldsUpdatedResponse = new NotifCustomFieldsUpdatedResponse$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.NotifInputAPI
|
|
*/
|
|
export const NotifInputAPI = new ServiceType("api.NotifInputAPI", [
|
|
{ name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Notification Inputs"], description: "A notification has been created." }, "api.rscType": "Project", "api.roles": "Platform.Project-Notication", "api.platformReserved": true, "google.api.method_visibility": { restriction: "SDK" } }, I: NotifCreatedRequest, O: NotifCreatedResponse },
|
|
{ name: "Sanitised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Notification Inputs"], description: "A Notif has been sanitised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: NotifSanitisedRequest, O: NotifSanitisedResponse },
|
|
{ name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Notification Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "SDK" } }, I: NotifCustomFieldsUpdatedRequest, O: NotifCustomFieldsUpdatedResponse }
|
|
], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });
|