@tolinax/ayoune-interfaces 2024.117.0 → 2024.118.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/interfaces/IAutomationCheck.d.ts +2 -4
- package/interfaces/IBrowserAutomation.d.ts +2 -5
- package/interfaces/ICostUsageTrackingFields.d.ts +8 -0
- package/interfaces/ICostUsageTrackingFields.js +2 -0
- package/interfaces/IExportConfig.d.ts +2 -4
- package/interfaces/IImageGenerator.d.ts +2 -5
- package/interfaces/IMiddleware.d.ts +2 -5
- package/interfaces/IQuery.d.ts +2 -5
- package/interfaces/IService.d.ts +2 -5
- package/interfaces/IStream.d.ts +2 -1
- package/interfaces/ITextGenerator.d.ts +2 -5
- package/interfaces/IUserFunction.d.ts +2 -5
- package/interfaces/IVideoGenerator.d.ts +2 -6
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
import { IDataSource } from "./IDataSource";
|
|
3
|
-
|
|
3
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
4
|
+
export interface IAutomationCheck extends IDefaultFields, ICostUsageTrackingFields {
|
|
4
5
|
_customerID: ObjectId;
|
|
5
6
|
_clientID: ObjectId[];
|
|
6
7
|
_subID: ObjectId[];
|
|
@@ -20,9 +21,6 @@ export interface IAutomationCheck extends IDefaultFields {
|
|
|
20
21
|
runs?: number;
|
|
21
22
|
nextRun?: Date;
|
|
22
23
|
lastRun?: Date;
|
|
23
|
-
lastExecutionTime?: number;
|
|
24
|
-
totalExecutionTime?: number;
|
|
25
|
-
numExecutions?: number;
|
|
26
24
|
useQuery?: boolean;
|
|
27
25
|
_query?: ObjectId;
|
|
28
26
|
dataSource: IDataSource;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
2
3
|
export interface InputValue {
|
|
3
4
|
key?: string;
|
|
4
5
|
defaultValue?: string;
|
|
@@ -15,7 +16,7 @@ export interface Step {
|
|
|
15
16
|
count?: number;
|
|
16
17
|
params?: StepParam[];
|
|
17
18
|
}
|
|
18
|
-
export interface IBrowserAutomation extends IDefaultFields {
|
|
19
|
+
export interface IBrowserAutomation extends IDefaultFields, ICostUsageTrackingFields {
|
|
19
20
|
_customerID: ObjectId;
|
|
20
21
|
_clientID?: ObjectId[];
|
|
21
22
|
_subID?: ObjectId[];
|
|
@@ -26,10 +27,6 @@ export interface IBrowserAutomation extends IDefaultFields {
|
|
|
26
27
|
steps?: Step[];
|
|
27
28
|
nextRun?: Date;
|
|
28
29
|
lastRun?: Date;
|
|
29
|
-
lastExecutionTime?: number;
|
|
30
|
-
totalExecutionTime?: number;
|
|
31
|
-
numExecutions?: number;
|
|
32
|
-
lastResult?: string;
|
|
33
30
|
scheduled?: boolean;
|
|
34
31
|
scheduledInterval?: number;
|
|
35
32
|
timeFrame?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
import { IRecipient } from "./IRecipient";
|
|
3
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
3
4
|
export interface IExportEntry {
|
|
4
5
|
file: ObjectId;
|
|
5
6
|
fileName: string;
|
|
@@ -19,7 +20,7 @@ export interface IExportFieldOverride {
|
|
|
19
20
|
field: string;
|
|
20
21
|
value: string;
|
|
21
22
|
}
|
|
22
|
-
export interface IExportConfig extends IDefaultFields {
|
|
23
|
+
export interface IExportConfig extends IDefaultFields, ICostUsageTrackingFields {
|
|
23
24
|
_customerID: ObjectId;
|
|
24
25
|
_consumerID?: ObjectId;
|
|
25
26
|
_clientID?: ObjectId[];
|
|
@@ -58,9 +59,6 @@ export interface IExportConfig extends IDefaultFields {
|
|
|
58
59
|
runs?: number;
|
|
59
60
|
nextRun?: Date;
|
|
60
61
|
lastRun?: Date;
|
|
61
|
-
lastExecutionTime?: number;
|
|
62
|
-
totalExecutionTime?: number;
|
|
63
|
-
numExecutions?: number;
|
|
64
62
|
recipients?: IRecipient[];
|
|
65
63
|
exports?: IExportEntry[];
|
|
66
64
|
defineFields?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
import { IDataSource } from "./IDataSource";
|
|
3
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
3
4
|
export interface IOverlay {
|
|
4
5
|
type: "text" | "caption" | "image";
|
|
5
6
|
fileId?: string;
|
|
@@ -18,7 +19,7 @@ export interface IOverlay {
|
|
|
18
19
|
fontSize?: number;
|
|
19
20
|
fontWeight?: string;
|
|
20
21
|
}
|
|
21
|
-
export interface IImageGenerator extends IDefaultFields {
|
|
22
|
+
export interface IImageGenerator extends IDefaultFields, ICostUsageTrackingFields {
|
|
22
23
|
_customerID: ObjectId;
|
|
23
24
|
createdBy: ObjectId;
|
|
24
25
|
_clientID?: ObjectId[];
|
|
@@ -40,9 +41,5 @@ export interface IImageGenerator extends IDefaultFields {
|
|
|
40
41
|
overlays?: IOverlay[];
|
|
41
42
|
nextRun?: Date;
|
|
42
43
|
lastRun?: Date;
|
|
43
|
-
lastExecutionTime?: number;
|
|
44
|
-
totalExecutionTime?: number;
|
|
45
|
-
numExecutions?: number;
|
|
46
|
-
lastResult?: string;
|
|
47
44
|
lastLiveFile?: ObjectId;
|
|
48
45
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
-
|
|
2
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
3
|
+
export interface IMiddleware extends IDefaultFields, ICostUsageTrackingFields {
|
|
3
4
|
_customerID: ObjectId;
|
|
4
5
|
_user: ObjectId;
|
|
5
6
|
_clientID?: ObjectId[];
|
|
@@ -16,10 +17,6 @@ export interface IMiddleware extends IDefaultFields {
|
|
|
16
17
|
lastPipeline?: string;
|
|
17
18
|
lastData?: string;
|
|
18
19
|
lastUpdateOptions?: string;
|
|
19
|
-
lastExecution?: Date;
|
|
20
|
-
lastExecutionTime?: number;
|
|
21
|
-
totalExecutionTime?: number;
|
|
22
|
-
numExecutions?: number;
|
|
23
20
|
inputParams?: {
|
|
24
21
|
key?: string;
|
|
25
22
|
selector?: string;
|
package/interfaces/IQuery.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
import { IDataSource } from "./IDataSource";
|
|
3
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
3
4
|
export interface IQueryCache {
|
|
4
5
|
lastCached?: Date;
|
|
5
6
|
enabled: boolean;
|
|
6
7
|
time?: number;
|
|
7
8
|
data?: string;
|
|
8
9
|
}
|
|
9
|
-
export interface IQuery extends IDefaultFields {
|
|
10
|
+
export interface IQuery extends IDefaultFields, ICostUsageTrackingFields {
|
|
10
11
|
_customerID: ObjectId;
|
|
11
12
|
_clientID?: ObjectId[];
|
|
12
13
|
_subID?: ObjectId[];
|
|
13
14
|
name?: string;
|
|
14
15
|
dataSource: IDataSource;
|
|
15
16
|
cacheTime?: number;
|
|
16
|
-
lastRun?: Date;
|
|
17
|
-
lastExecutionTime?: number;
|
|
18
|
-
totalExecutionTime?: number;
|
|
19
|
-
numExecutions?: number;
|
|
20
17
|
cache: IQueryCache;
|
|
21
18
|
}
|
package/interfaces/IService.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
2
3
|
export interface IServiceField {
|
|
3
4
|
required?: boolean;
|
|
4
5
|
example?: any;
|
|
@@ -8,7 +9,7 @@ export interface IServiceField {
|
|
|
8
9
|
advanced?: boolean;
|
|
9
10
|
default?: any;
|
|
10
11
|
}
|
|
11
|
-
export interface IService extends IDefaultFields {
|
|
12
|
+
export interface IService extends IDefaultFields, ICostUsageTrackingFields {
|
|
12
13
|
_customerID: ObjectId;
|
|
13
14
|
_clientID?: ObjectId[];
|
|
14
15
|
_subID?: ObjectId[];
|
|
@@ -31,8 +32,4 @@ export interface IService extends IDefaultFields {
|
|
|
31
32
|
lastInput?: string;
|
|
32
33
|
lastQuery?: string;
|
|
33
34
|
lastData?: string;
|
|
34
|
-
lastExecution?: Date;
|
|
35
|
-
lastExecutionTime?: number;
|
|
36
|
-
totalExecutionTime?: number;
|
|
37
|
-
numExecutions?: number;
|
|
38
35
|
}
|
package/interfaces/IStream.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
import { IDetailsOptions, IDownloadKey } from "./IDownload";
|
|
3
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
3
4
|
interface IStreamPart {
|
|
4
5
|
_file?: ObjectId;
|
|
5
6
|
fileId?: string;
|
|
@@ -62,7 +63,7 @@ interface IStreamOptions {
|
|
|
62
63
|
waveSize?: number;
|
|
63
64
|
shareUrl?: string;
|
|
64
65
|
}
|
|
65
|
-
export interface IStream extends IDefaultFields {
|
|
66
|
+
export interface IStream extends IDefaultFields, ICostUsageTrackingFields {
|
|
66
67
|
_customerID: ObjectId;
|
|
67
68
|
_clientID?: ObjectId[];
|
|
68
69
|
_subID?: ObjectId[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
import { ITxtStats } from "./ITxtStats";
|
|
3
3
|
import { IDataSource } from "./IDataSource";
|
|
4
|
-
|
|
4
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
5
|
+
export interface ITextGenerator extends IDefaultFields, ICostUsageTrackingFields {
|
|
5
6
|
_customerID: ObjectId;
|
|
6
7
|
createdBy: ObjectId;
|
|
7
8
|
_clientID: ObjectId[];
|
|
@@ -25,8 +26,4 @@ export interface ITextGenerator extends IDefaultFields {
|
|
|
25
26
|
}[];
|
|
26
27
|
nextRun?: Date;
|
|
27
28
|
lastRun?: Date;
|
|
28
|
-
lastExecutionTime?: number;
|
|
29
|
-
totalExecutionTime?: number;
|
|
30
|
-
numExecutions?: number;
|
|
31
|
-
lastResult?: string;
|
|
32
29
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
-
|
|
2
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
3
|
+
export interface IUserFunction extends IDefaultFields, ICostUsageTrackingFields {
|
|
3
4
|
_customerID: ObjectId;
|
|
4
5
|
createdBy: ObjectId;
|
|
5
6
|
_clientID: ObjectId[];
|
|
@@ -11,8 +12,4 @@ export interface IUserFunction extends IDefaultFields {
|
|
|
11
12
|
script?: string;
|
|
12
13
|
nextRun?: Date;
|
|
13
14
|
lastRun?: Date;
|
|
14
|
-
lastExecutionTime?: number;
|
|
15
|
-
totalExecutionTime?: number;
|
|
16
|
-
numExecutions?: number;
|
|
17
|
-
lastResult?: string;
|
|
18
15
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { ICostUsageTrackingFields } from "./ICostUsageTrackingFields";
|
|
2
3
|
export interface IText {
|
|
3
4
|
useText?: boolean;
|
|
4
5
|
_textGenerator?: ObjectId;
|
|
@@ -76,7 +77,7 @@ export interface IScene {
|
|
|
76
77
|
audio?: IAudio;
|
|
77
78
|
elements?: ISceneElement[];
|
|
78
79
|
}
|
|
79
|
-
export interface IVideoGenerator extends IDefaultFields {
|
|
80
|
+
export interface IVideoGenerator extends IDefaultFields, ICostUsageTrackingFields {
|
|
80
81
|
_customerID: ObjectId;
|
|
81
82
|
createdBy: ObjectId;
|
|
82
83
|
_clientID?: ObjectId[];
|
|
@@ -100,9 +101,4 @@ export interface IVideoGenerator extends IDefaultFields {
|
|
|
100
101
|
scenes?: IScene[];
|
|
101
102
|
nextRun?: Date;
|
|
102
103
|
lastRun?: Date;
|
|
103
|
-
lastExecutionTime?: number;
|
|
104
|
-
totalExecutionTime?: number;
|
|
105
|
-
numExecutions?: number;
|
|
106
|
-
lastResult?: string;
|
|
107
|
-
lastUsage?: string;
|
|
108
104
|
}
|