// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file common/v1/email.proto (package common.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; /** * @generated from enum common.v1.EmailEventStatus */ export enum EmailEventStatus { /** * @generated from enum value: EMAIL_EVENT_STATUS_UNDEFINED = 0; */ UNDEFINED = 0, /** * @generated from enum value: EMAIL_EVENT_STATUS_PENDING = 1; */ PENDING = 1, /** * @generated from enum value: EMAIL_EVENT_STATUS_PROCESSED = 2; */ PROCESSED = 2, /** * @generated from enum value: EMAIL_EVENT_STATUS_DEFERRED = 3; */ DEFERRED = 3, /** * @generated from enum value: EMAIL_EVENT_STATUS_DELIVERED = 4; */ DELIVERED = 4, /** * @generated from enum value: EMAIL_EVENT_STATUS_OPEN = 5; */ OPEN = 5, /** * @generated from enum value: EMAIL_EVENT_STATUS_CLICK = 6; */ CLICK = 6, /** * @generated from enum value: EMAIL_EVENT_STATUS_BOUNCE = 7; */ BOUNCE = 7, /** * @generated from enum value: EMAIL_EVENT_STATUS_DROPPED = 8; */ DROPPED = 8, } // Retrieve enum metadata with: proto3.getEnumType(EmailEventStatus) proto3.util.setEnumType(EmailEventStatus, "common.v1.EmailEventStatus", [ { no: 0, name: "EMAIL_EVENT_STATUS_UNDEFINED" }, { no: 1, name: "EMAIL_EVENT_STATUS_PENDING" }, { no: 2, name: "EMAIL_EVENT_STATUS_PROCESSED" }, { no: 3, name: "EMAIL_EVENT_STATUS_DEFERRED" }, { no: 4, name: "EMAIL_EVENT_STATUS_DELIVERED" }, { no: 5, name: "EMAIL_EVENT_STATUS_OPEN" }, { no: 6, name: "EMAIL_EVENT_STATUS_CLICK" }, { no: 7, name: "EMAIL_EVENT_STATUS_BOUNCE" }, { no: 8, name: "EMAIL_EVENT_STATUS_DROPPED" }, ]); /** * @generated from message common.v1.EmailStatus */ export class EmailStatus extends Message { /** * @generated from field: string ref = 1; */ ref = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: int32 sent_count = 4; */ sentCount = 0; /** * @generated from field: common.v1.EmailEventStatus status = 5; */ status = EmailEventStatus.UNDEFINED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "common.v1.EmailStatus"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "sent_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(EmailEventStatus) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EmailStatus { return new EmailStatus().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EmailStatus { return new EmailStatus().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EmailStatus { return new EmailStatus().fromJsonString(jsonString, options); } static equals(a: EmailStatus | PlainMessage | undefined, b: EmailStatus | PlainMessage | undefined): boolean { return proto3.util.equals(EmailStatus, a, b); } }