@lightdash/common 0.2181.0 → 0.2182.1
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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/types/schedulerLog.d.ts +68 -12
- package/dist/cjs/types/schedulerLog.d.ts.map +1 -1
- package/dist/cjs/types/schedulerLog.js +10 -0
- package/dist/cjs/types/schedulerLog.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/types/schedulerLog.d.ts +68 -12
- package/dist/esm/types/schedulerLog.d.ts.map +1 -1
- package/dist/esm/types/schedulerLog.js +9 -1
- package/dist/esm/types/schedulerLog.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/types/schedulerLog.d.ts +68 -12
- package/dist/types/types/schedulerLog.d.ts.map +1 -1
- package/dist/types/types/schedulerLog.js +9 -1
- package/dist/types/types/schedulerLog.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,22 +3,26 @@ import { type ApiSuccess } from './api/success';
|
|
|
3
3
|
import { type KnexPaginatedData } from './knex-paginate';
|
|
4
4
|
import { type SchedulerAndTargets, type SchedulerJobStatus } from './scheduler';
|
|
5
5
|
import { type SchedulerTaskName } from './schedulerTaskList';
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export type SchedulerTargetType = 'email' | 'slack' | 'gsheets' | 'msteams';
|
|
7
|
+
export type SchedulerDetails = {
|
|
8
|
+
projectUuid?: string;
|
|
9
|
+
organizationUuid?: string;
|
|
10
|
+
createdByUserUuid?: string;
|
|
11
|
+
[key: string]: AnyType;
|
|
12
|
+
};
|
|
13
|
+
type BaseSchedulerLog = {
|
|
9
14
|
jobId: string;
|
|
10
|
-
|
|
15
|
+
task: SchedulerTaskName;
|
|
16
|
+
status: SchedulerJobStatus;
|
|
11
17
|
scheduledTime: Date;
|
|
12
18
|
createdAt: Date;
|
|
13
|
-
|
|
19
|
+
};
|
|
20
|
+
export type SchedulerLog = BaseSchedulerLog & {
|
|
21
|
+
schedulerUuid?: string;
|
|
22
|
+
jobGroup?: string;
|
|
14
23
|
target?: string;
|
|
15
|
-
targetType?:
|
|
16
|
-
details:
|
|
17
|
-
projectUuid: string | undefined;
|
|
18
|
-
organizationUuid: string;
|
|
19
|
-
createdByUserUuid: string;
|
|
20
|
-
[key: string]: AnyType;
|
|
21
|
-
};
|
|
24
|
+
targetType?: SchedulerTargetType;
|
|
25
|
+
details: SchedulerDetails;
|
|
22
26
|
};
|
|
23
27
|
export type CreateSchedulerLog = Omit<SchedulerLog, 'createdAt'>;
|
|
24
28
|
export type SchedulerWithLogs = {
|
|
@@ -39,4 +43,56 @@ export type SchedulerWithLogs = {
|
|
|
39
43
|
logs: SchedulerLog[];
|
|
40
44
|
};
|
|
41
45
|
export type ApiSchedulerLogsResponse = ApiSuccess<KnexPaginatedData<SchedulerWithLogs>>;
|
|
46
|
+
export declare enum SchedulerRunStatus {
|
|
47
|
+
COMPLETED = "completed",
|
|
48
|
+
PARTIAL_FAILURE = "partial_failure",
|
|
49
|
+
FAILED = "failed",
|
|
50
|
+
RUNNING = "running",
|
|
51
|
+
SCHEDULED = "scheduled"
|
|
52
|
+
}
|
|
53
|
+
export type LogCounts = {
|
|
54
|
+
total: number;
|
|
55
|
+
scheduled: number;
|
|
56
|
+
started: number;
|
|
57
|
+
completed: number;
|
|
58
|
+
error: number;
|
|
59
|
+
};
|
|
60
|
+
export type SchedulerRun = {
|
|
61
|
+
runId: string;
|
|
62
|
+
schedulerUuid: string;
|
|
63
|
+
schedulerName: string;
|
|
64
|
+
scheduledTime: Date;
|
|
65
|
+
status: SchedulerJobStatus;
|
|
66
|
+
runStatus: SchedulerRunStatus;
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
details: Record<string, AnyType> | null;
|
|
69
|
+
logCounts: LogCounts;
|
|
70
|
+
resourceType: 'chart' | 'dashboard';
|
|
71
|
+
resourceUuid: string;
|
|
72
|
+
resourceName: string;
|
|
73
|
+
createdByUserUuid: string;
|
|
74
|
+
createdByUserName: string;
|
|
75
|
+
};
|
|
76
|
+
export type ApiSchedulerRunsResponse = ApiSuccess<KnexPaginatedData<SchedulerRun[]>>;
|
|
77
|
+
export type SchedulerRunLog = BaseSchedulerLog & {
|
|
78
|
+
jobGroup: string;
|
|
79
|
+
target: string | null;
|
|
80
|
+
targetType: SchedulerTargetType | null;
|
|
81
|
+
details: SchedulerDetails | null;
|
|
82
|
+
isParent: boolean;
|
|
83
|
+
};
|
|
84
|
+
export type SchedulerRunLogsResponse = {
|
|
85
|
+
runId: string;
|
|
86
|
+
schedulerUuid: string;
|
|
87
|
+
schedulerName: string;
|
|
88
|
+
scheduledTime: Date;
|
|
89
|
+
logs: SchedulerRunLog[];
|
|
90
|
+
resourceType: 'chart' | 'dashboard';
|
|
91
|
+
resourceUuid: string;
|
|
92
|
+
resourceName: string;
|
|
93
|
+
createdByUserUuid: string;
|
|
94
|
+
createdByUserName: string;
|
|
95
|
+
};
|
|
96
|
+
export type ApiSchedulerRunLogsResponse = ApiSuccess<SchedulerRunLogsResponse>;
|
|
97
|
+
export {};
|
|
42
98
|
//# sourceMappingURL=schedulerLog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedulerLog.d.ts","sourceRoot":"","sources":["../../../src/types/schedulerLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"schedulerLog.d.ts","sourceRoot":"","s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AAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC7C,iBAAiB,CAAC,YAAY,EAAE,CAAC,CACpC,CAAC;AAIF,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACvC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,IAAI,CAAC;IACpB,IAAI,EAAE,eAAe,EAAE,CAAC;IAExB,YAAY,EAAE,OAAO,GAAG,WAAW,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
// Scheduler Runs API types
|
|
2
|
+
export var SchedulerRunStatus;
|
|
3
|
+
(function (SchedulerRunStatus) {
|
|
4
|
+
SchedulerRunStatus["COMPLETED"] = "completed";
|
|
5
|
+
SchedulerRunStatus["PARTIAL_FAILURE"] = "partial_failure";
|
|
6
|
+
SchedulerRunStatus["FAILED"] = "failed";
|
|
7
|
+
SchedulerRunStatus["RUNNING"] = "running";
|
|
8
|
+
SchedulerRunStatus["SCHEDULED"] = "scheduled";
|
|
9
|
+
})(SchedulerRunStatus || (SchedulerRunStatus = {}));
|
|
2
10
|
//# sourceMappingURL=schedulerLog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedulerLog.js","sourceRoot":"","sources":["../../../src/types/schedulerLog.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"schedulerLog.js","sourceRoot":"","sources":["../../../src/types/schedulerLog.ts"],"names":[],"mappings":"AA6CA,2BAA2B;AAE3B,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,6CAAuB,CAAA;IACvB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;AAC3B,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2182.1",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"echarts": "^6.0.0",
|
|
30
30
|
"fast-json-patch": "^3.1.1",
|
|
31
31
|
"handlebars": "^4.7.8",
|
|
32
|
-
"js-yaml": "^4.1.
|
|
32
|
+
"js-yaml": "^4.1.1",
|
|
33
33
|
"liquidjs": "^10.0.0",
|
|
34
34
|
"lodash": "^4.17.21",
|
|
35
35
|
"moment": "^2.29.4",
|