@tolinax/ayoune-interfaces 2026.14.0 → 2026.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/modelNames.d.ts +1 -0
- package/data/modelNames.js +1 -0
- package/data/modelsAndRights.js +10 -0
- package/interfaces/ICustomFunctionLog.d.ts +30 -0
- package/interfaces/ICustomFunctionLog.js +2 -0
- package/interfaces/IUserFunction.d.ts +52 -1
- package/interfaces/IWebReceiver.d.ts +1 -0
- package/interfaces/index.d.ts +1 -0
- package/interfaces/index.js +1 -0
- package/package.json +1 -1
package/data/modelNames.d.ts
CHANGED
|
@@ -213,6 +213,7 @@ export declare enum aMN {
|
|
|
213
213
|
CustomAPIs = "CustomAPIs",
|
|
214
214
|
CustomButtons = "CustomButtons",
|
|
215
215
|
CustomConfigFiles = "CustomConfigFiles",
|
|
216
|
+
CustomFunctionLogs = "CustomFunctionLogs",
|
|
216
217
|
CustomerDashboards = "CustomerDashboards",
|
|
217
218
|
CustomerDatas = "CustomerDatas",
|
|
218
219
|
Customers = "Customers",
|
package/data/modelNames.js
CHANGED
|
@@ -217,6 +217,7 @@ var aMN;
|
|
|
217
217
|
aMN["CustomAPIs"] = "CustomAPIs";
|
|
218
218
|
aMN["CustomButtons"] = "CustomButtons";
|
|
219
219
|
aMN["CustomConfigFiles"] = "CustomConfigFiles";
|
|
220
|
+
aMN["CustomFunctionLogs"] = "CustomFunctionLogs";
|
|
220
221
|
aMN["CustomerDashboards"] = "CustomerDashboards";
|
|
221
222
|
aMN["CustomerDatas"] = "CustomerDatas";
|
|
222
223
|
aMN["Customers"] = "Customers";
|
package/data/modelsAndRights.js
CHANGED
|
@@ -5973,6 +5973,16 @@ const modelsAndRights = [
|
|
|
5973
5973
|
allowDuplicate: false,
|
|
5974
5974
|
updateBy: "_id",
|
|
5975
5975
|
},
|
|
5976
|
+
{
|
|
5977
|
+
plural: "CustomFunctionLogs",
|
|
5978
|
+
singular: "CustomFunctionLog",
|
|
5979
|
+
module: "config",
|
|
5980
|
+
right: "config.customfunctionlogs",
|
|
5981
|
+
readOnly: true,
|
|
5982
|
+
importable: false,
|
|
5983
|
+
allowDuplicate: false,
|
|
5984
|
+
updateBy: "_id",
|
|
5985
|
+
},
|
|
5976
5986
|
{
|
|
5977
5987
|
plural: "UserLinks",
|
|
5978
5988
|
singular: "UserLink",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
export interface ICustomFunctionLogEntry {
|
|
3
|
+
level?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
timestamp?: Date;
|
|
6
|
+
data?: any;
|
|
7
|
+
}
|
|
8
|
+
export interface ICustomFunctionSdkCall {
|
|
9
|
+
method?: string;
|
|
10
|
+
model?: string;
|
|
11
|
+
durationMs?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ICustomFunctionLog extends IDefaultFields {
|
|
14
|
+
_customerID: ObjectId;
|
|
15
|
+
_functionId: ObjectId;
|
|
16
|
+
_triggeredBy?: ObjectId;
|
|
17
|
+
_clientID?: ObjectId[];
|
|
18
|
+
_subID?: ObjectId[];
|
|
19
|
+
triggerMode?: string;
|
|
20
|
+
triggerData?: any;
|
|
21
|
+
status?: 'running' | 'success' | 'error' | 'timeout' | 'memory_exceeded';
|
|
22
|
+
output?: any;
|
|
23
|
+
error?: string;
|
|
24
|
+
stackTrace?: string;
|
|
25
|
+
logs?: ICustomFunctionLogEntry[];
|
|
26
|
+
executionTimeMs?: number;
|
|
27
|
+
memoryUsedMb?: number;
|
|
28
|
+
version?: number;
|
|
29
|
+
sdkCalls?: ICustomFunctionSdkCall[];
|
|
30
|
+
}
|
|
@@ -1,15 +1,66 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
3
|
+
export interface IUserFunctionVersion {
|
|
4
|
+
version?: number;
|
|
5
|
+
code?: string;
|
|
6
|
+
codeHash?: string;
|
|
7
|
+
createdAt?: Date;
|
|
8
|
+
createdBy?: ObjectId;
|
|
9
|
+
changelog?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IUserFunctionRuntime {
|
|
12
|
+
timeout?: number;
|
|
13
|
+
memoryLimit?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface IUserFunctionEnvVar {
|
|
16
|
+
key?: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
encrypted?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IUserFunctionSchedule {
|
|
21
|
+
cronExpression?: string;
|
|
22
|
+
timezone?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IUserFunctionEventTrigger {
|
|
25
|
+
category?: string;
|
|
26
|
+
action?: string;
|
|
27
|
+
label?: string;
|
|
28
|
+
}
|
|
3
29
|
export interface IUserFunction extends IDefaultFields, ICostUsageTrackingFields {
|
|
4
30
|
_customerID: ObjectId;
|
|
5
31
|
createdBy: ObjectId;
|
|
6
32
|
_clientID: ObjectId[];
|
|
7
33
|
_subID: ObjectId[];
|
|
8
34
|
name?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
tags?: string[];
|
|
37
|
+
shared?: boolean;
|
|
38
|
+
code?: string;
|
|
39
|
+
script?: string;
|
|
40
|
+
language?: 'javascript' | 'typescript';
|
|
41
|
+
codeHash?: string;
|
|
42
|
+
runtime?: IUserFunctionRuntime;
|
|
43
|
+
envVars?: IUserFunctionEnvVar[];
|
|
44
|
+
triggerMode?: 'manual' | 'webhook' | 'schedule' | 'event' | 'automation';
|
|
45
|
+
webhookPath?: string;
|
|
46
|
+
schedule?: IUserFunctionSchedule;
|
|
47
|
+
eventTrigger?: IUserFunctionEventTrigger;
|
|
48
|
+
version?: number;
|
|
49
|
+
versions?: IUserFunctionVersion[];
|
|
50
|
+
publishedVersion?: number;
|
|
51
|
+
publishedCode?: string;
|
|
52
|
+
publishedAt?: Date;
|
|
53
|
+
status?: 'draft' | 'active' | 'paused' | 'error';
|
|
54
|
+
lastError?: string;
|
|
55
|
+
lastInput?: string;
|
|
56
|
+
lastOutput?: string;
|
|
57
|
+
allowedModels?: string[];
|
|
58
|
+
allowedQueues?: string[];
|
|
59
|
+
allowedUrls?: string[];
|
|
60
|
+
_credentials?: ObjectId[];
|
|
9
61
|
useQuery?: boolean;
|
|
10
62
|
_query?: ObjectId;
|
|
11
63
|
dataSource: any;
|
|
12
|
-
script?: string;
|
|
13
64
|
nextRun?: Date;
|
|
14
65
|
lastRun?: Date;
|
|
15
66
|
}
|
package/interfaces/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ export * from "./ICustomerDashboard";
|
|
|
231
231
|
export * from "./ICustomerData";
|
|
232
232
|
export * from "./ICustomerToken";
|
|
233
233
|
export * from "./ICustomVariable";
|
|
234
|
+
export * from "./ICustomFunctionLog";
|
|
234
235
|
export * from "./ICustomView";
|
|
235
236
|
export * from "./IDashBoard";
|
|
236
237
|
export * from "./IDataPool";
|
package/interfaces/index.js
CHANGED
|
@@ -247,6 +247,7 @@ __exportStar(require("./ICustomerDashboard"), exports);
|
|
|
247
247
|
__exportStar(require("./ICustomerData"), exports);
|
|
248
248
|
__exportStar(require("./ICustomerToken"), exports);
|
|
249
249
|
__exportStar(require("./ICustomVariable"), exports);
|
|
250
|
+
__exportStar(require("./ICustomFunctionLog"), exports);
|
|
250
251
|
__exportStar(require("./ICustomView"), exports);
|
|
251
252
|
__exportStar(require("./IDashBoard"), exports);
|
|
252
253
|
__exportStar(require("./IDataPool"), exports);
|