// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file integrations/v1/logs.proto (package integrations.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { PaginatedQuery, PaginatedResponse } from "../../common/v1/query_pb.js"; /** * @generated from message integrations.v1.IntegrationLog */ export class IntegrationLog extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: int64 artworker_id = 2; */ artworkerId = protoInt64.zero; /** * @generated from field: string integration_name = 3; */ integrationName = ""; /** * @generated from field: string action = 4; */ action = ""; /** * @generated from field: bytes payload = 5; */ payload = new Uint8Array(0); /** * @generated from field: bool success = 6; */ success = false; /** * @generated from field: string error_message = 7; */ errorMessage = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 8; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 9; */ updatedAt?: Timestamp; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "integrations.v1.IntegrationLog"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "integration_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 6, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 7, name: "error_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "created_at", kind: "message", T: Timestamp }, { no: 9, name: "updated_at", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): IntegrationLog { return new IntegrationLog().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): IntegrationLog { return new IntegrationLog().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): IntegrationLog { return new IntegrationLog().fromJsonString(jsonString, options); } static equals(a: IntegrationLog | PlainMessage | undefined, b: IntegrationLog | PlainMessage | undefined): boolean { return proto3.util.equals(IntegrationLog, a, b); } } /** * @generated from message integrations.v1.GetIntegrationLogsRequest */ export class GetIntegrationLogsRequest extends Message { /** * @generated from field: common.v1.PaginatedQuery query = 1; */ query?: PaginatedQuery; /** * @generated from field: int64 artworker_id = 2; */ artworkerId = protoInt64.zero; /** * @generated from field: string integration_name = 3; */ integrationName = ""; /** * @generated from field: string action = 4; */ action = ""; /** * @generated from field: bool success = 5; */ success = false; /** * @generated from field: google.protobuf.Timestamp start_date = 6; */ startDate?: Timestamp; /** * @generated from field: google.protobuf.Timestamp end_date = 7; */ endDate?: Timestamp; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "integrations.v1.GetIntegrationLogsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "query", kind: "message", T: PaginatedQuery }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "integration_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 6, name: "start_date", kind: "message", T: Timestamp }, { no: 7, name: "end_date", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetIntegrationLogsRequest { return new GetIntegrationLogsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetIntegrationLogsRequest { return new GetIntegrationLogsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetIntegrationLogsRequest { return new GetIntegrationLogsRequest().fromJsonString(jsonString, options); } static equals(a: GetIntegrationLogsRequest | PlainMessage | undefined, b: GetIntegrationLogsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetIntegrationLogsRequest, a, b); } } /** * @generated from message integrations.v1.GetIntegrationLogsResponse */ export class GetIntegrationLogsResponse extends Message { /** * @generated from field: repeated integrations.v1.IntegrationLog logs = 1; */ logs: IntegrationLog[] = []; /** * @generated from field: common.v1.PaginatedResponse pagination = 2; */ pagination?: PaginatedResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "integrations.v1.GetIntegrationLogsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "logs", kind: "message", T: IntegrationLog, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PaginatedResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetIntegrationLogsResponse { return new GetIntegrationLogsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetIntegrationLogsResponse { return new GetIntegrationLogsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetIntegrationLogsResponse { return new GetIntegrationLogsResponse().fromJsonString(jsonString, options); } static equals(a: GetIntegrationLogsResponse | PlainMessage | undefined, b: GetIntegrationLogsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetIntegrationLogsResponse, a, b); } }