From e5aa9c7b3de8c0285cc4d2d858777fb4a33a5c00 Mon Sep 17 00:00:00 2001 From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com> Date: Sat, 17 May 2025 12:16:34 +0530 Subject: [PATCH] feat: schema for IntegrationErrorLog --- fyo/telemetry/types.ts | 4 ++++ schemas/app/IntegrationErrorLog.json | 29 ++++++++++++++++++++++++++++ schemas/schemas.ts | 3 +++ 3 files changed, 36 insertions(+) create mode 100644 schemas/app/IntegrationErrorLog.json diff --git a/fyo/telemetry/types.ts b/fyo/telemetry/types.ts index 79a65222..1c4ca5cb 100644 --- a/fyo/telemetry/types.ts +++ b/fyo/telemetry/types.ts @@ -17,6 +17,10 @@ export enum Verb { Resumed = 'resumed', } +export enum ErrorLogEnum { + IntegrationErrorLog = 'IntegrationErrorLog', +} + export type Noun = string; export interface Telemetry { diff --git a/schemas/app/IntegrationErrorLog.json b/schemas/app/IntegrationErrorLog.json new file mode 100644 index 00000000..5710f3cd --- /dev/null +++ b/schemas/app/IntegrationErrorLog.json @@ -0,0 +1,29 @@ +{ + "name": "IntegrationErrorLog", + "label": "Integration Error Log", + "naming": "autoincrement", + + "fields": [ + { + "fieldname": "name", + "label": "Entry No.", + "fieldtype": "Data", + "required": true + }, + { + "fieldname": "data", + "label": "Data", + "readonly": true, + "fieldtype": "Text", + "section": "Default" + }, + { + "fieldname": "error", + "label": "Error", + "readonly": true, + "fieldtype": "Text", + "section": "Default" + } + ], + "keywordFields": ["name"] +} diff --git a/schemas/schemas.ts b/schemas/schemas.ts index 38176cec..99a766bc 100644 --- a/schemas/schemas.ts +++ b/schemas/schemas.ts @@ -77,6 +77,7 @@ import POSShiftAmounts from './app/inventory/Point of Sale/POSShiftAmounts.json' import ERPNextSyncSettings from './app/ERPNextSyncSettings.json'; import ERPNextSyncQueue from './app/ERPNextSyncQueue.json'; import FetchFromERPNextQueue from './app/FetchFromERPNextQueue.json'; +import IntegrationErrorLog from './app/IntegrationErrorLog.json'; import { Schema, SchemaStub } from './types'; export const coreSchemas: Schema[] = [ @@ -183,4 +184,6 @@ export const appSchemas: Schema[] | SchemaStub[] = [ ERPNextSyncSettings as Schema, ERPNextSyncQueue as Schema, FetchFromERPNextQueue as Schema, + + IntegrationErrorLog as Schema, ];