feat: schema for IntegrationErrorLog

This commit is contained in:
AbleKSaju
2025-05-30 15:58:08 +05:30
parent 8d3b8e5114
commit e5aa9c7b3d
3 changed files with 36 additions and 0 deletions
+4
View File
@@ -17,6 +17,10 @@ export enum Verb {
Resumed = 'resumed',
}
export enum ErrorLogEnum {
IntegrationErrorLog = 'IntegrationErrorLog',
}
export type Noun = string;
export interface Telemetry {
+29
View File
@@ -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"]
}
+3
View File
@@ -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,
];