Files
npm-core-sdk/notif_pb.ts
2025-03-17 09:56:44 +00:00

202 lines
6.0 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file notif.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { EntityID, EventHeader } from "./shared_pb.js";
import { NotifTypeEnum } from "./collabShared_pb.js";
/**
* @generated from message api.Notif
*/
export class Notif extends Message<Notif> {
/**
* @generated from field: api.EventHeader LastEventHeader = 1;
*/
LastEventHeader?: EventHeader;
/**
* @generated from field: api.EntityID ID = 2;
*/
ID?: EntityID;
/**
* @generated from field: api.NotifPayload Payload = 3;
*/
Payload?: NotifPayload;
constructor(data?: PartialMessage<Notif>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.Notif";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "LastEventHeader", kind: "message", T: EventHeader },
{ no: 2, name: "ID", kind: "message", T: EntityID },
{ no: 3, name: "Payload", kind: "message", T: NotifPayload },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Notif {
return new Notif().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Notif {
return new Notif().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Notif {
return new Notif().fromJsonString(jsonString, options);
}
static equals(a: Notif | PlainMessage<Notif> | undefined, b: Notif | PlainMessage<Notif> | undefined): boolean {
return proto3.util.equals(Notif, a, b);
}
}
/**
* @generated from message api.NotifPayload
*/
export class NotifPayload extends Message<NotifPayload> {
/**
* Type Of Change to be notified
*
* @generated from field: api.NotifTypeEnum NotificationType = 1;
*/
NotificationType = NotifTypeEnum.NOTIF_TYPE_UNKNOWN;
/**
* Identifier of the issuer
*
* @generated from field: string IssuerID = 2;
*/
IssuerID = "";
/**
* List of contacts
*
* @generated from field: repeated string Contacts = 3;
*/
Contacts: string[] = [];
/**
* Details of the notification
*
* @generated from field: string Details = 4;
*/
Details = "";
/**
* Entity domain
*
* @generated from field: string EntityDomain = 5;
*/
EntityDomain = "";
/**
* Type of entity
*
* @generated from field: string EntityType = 6;
*/
EntityType = "";
/**
* ID of entity
*
* @generated from field: string EntityRefID = 7;
*/
EntityRefID = "";
/**
* @generated from field: string Tags = 8;
*/
Tags = "";
constructor(data?: PartialMessage<NotifPayload>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.NotifPayload";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "NotificationType", kind: "enum", T: proto3.getEnumType(NotifTypeEnum) },
{ no: 2, name: "IssuerID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Contacts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 4, name: "Details", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "EntityDomain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "EntityType", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "Tags", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NotifPayload {
return new NotifPayload().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NotifPayload {
return new NotifPayload().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NotifPayload {
return new NotifPayload().fromJsonString(jsonString, options);
}
static equals(a: NotifPayload | PlainMessage<NotifPayload> | undefined, b: NotifPayload | PlainMessage<NotifPayload> | undefined): boolean {
return proto3.util.equals(NotifPayload, a, b);
}
}
/**
* @generated from message api.NotifTriplet
*/
export class NotifTriplet extends Message<NotifTriplet> {
/**
* @generated from field: api.Notif Current = 1;
*/
Current?: Notif;
/**
* @generated from field: api.Notif Previous = 2;
*/
Previous?: Notif;
/**
* @generated from field: api.Notif LastEvent = 3;
*/
LastEvent?: Notif;
constructor(data?: PartialMessage<NotifTriplet>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.NotifTriplet";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Current", kind: "message", T: Notif },
{ no: 2, name: "Previous", kind: "message", T: Notif },
{ no: 3, name: "LastEvent", kind: "message", T: Notif },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NotifTriplet {
return new NotifTriplet().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NotifTriplet {
return new NotifTriplet().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NotifTriplet {
return new NotifTriplet().fromJsonString(jsonString, options);
}
static equals(a: NotifTriplet | PlainMessage<NotifTriplet> | undefined, b: NotifTriplet | PlainMessage<NotifTriplet> | undefined): boolean {
return proto3.util.equals(NotifTriplet, a, b);
}
}