@ms-cloudpack/api-server 0.7.2 → 0.8.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/lib/apis/addPackageOverride.d.ts +64 -2
- package/lib/apis/addPackageOverride.d.ts.map +1 -1
- package/lib/apis/bus.d.ts +64 -2
- package/lib/apis/bus.d.ts.map +1 -1
- package/lib/apis/openCodeEditor.d.ts +64 -2
- package/lib/apis/openCodeEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.d.ts +64 -2
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openFilePath.d.ts +64 -2
- package/lib/apis/openFilePath.d.ts.map +1 -1
- package/lib/apis/reportMetric.d.ts +66 -4
- package/lib/apis/reportMetric.d.ts.map +1 -1
- package/lib/apis/restartAllTasks.d.ts +64 -2
- package/lib/apis/restartAllTasks.d.ts.map +1 -1
- package/lib/apis/restartTask.d.ts +64 -2
- package/lib/apis/restartTask.d.ts.map +1 -1
- package/lib/apis/validatePackageOverride.d.ts +64 -2
- package/lib/apis/validatePackageOverride.d.ts.map +1 -1
- package/lib/appRouter.d.ts +610 -21
- package/lib/appRouter.d.ts.map +1 -1
- package/lib/createCloudpackServer.d.ts +1 -1
- package/lib/createContextFactory.d.ts +33 -2
- package/lib/createContextFactory.d.ts.map +1 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/lib/trpc.d.ts +96 -3
- package/lib/trpc.d.ts.map +1 -1
- package/lib/types/BundleResultExtended.d.ts +23 -0
- package/lib/types/BundleResultExtended.d.ts.map +1 -0
- package/lib/types/BundleResultExtended.js +2 -0
- package/lib/types/BundleResultExtended.js.map +1 -0
- package/lib/types/TaskDescription.d.ts +133 -7
- package/lib/types/TaskDescription.d.ts.map +1 -1
- package/lib/types/TaskDescription.js +14 -1
- package/lib/types/TaskDescription.js.map +1 -1
- package/lib/types/TaskEndDescription.d.ts +84 -5
- package/lib/types/TaskEndDescription.d.ts.map +1 -1
- package/lib/types/TaskEndDescription.js +7 -1
- package/lib/types/TaskEndDescription.js.map +1 -1
- package/lib/types/TaskError.d.ts +18 -2
- package/lib/types/TaskError.d.ts.map +1 -1
- package/lib/types/TaskError.js +9 -1
- package/lib/types/TaskError.js.map +1 -1
- package/lib/types/TaskMessage.d.ts +166 -0
- package/lib/types/TaskMessage.d.ts.map +1 -0
- package/lib/types/TaskMessage.js +17 -0
- package/lib/types/TaskMessage.js.map +1 -0
- package/lib/types/TaskMessageLocation.d.ts +25 -0
- package/lib/types/TaskMessageLocation.d.ts.map +1 -0
- package/lib/types/TaskMessageLocation.js +10 -0
- package/lib/types/TaskMessageLocation.js.map +1 -0
- package/lib/types/TaskResponse.d.ts +471 -0
- package/lib/types/TaskResponse.d.ts.map +1 -0
- package/lib/types/TaskResponse.js +8 -0
- package/lib/types/TaskResponse.js.map +1 -0
- package/lib/types/TaskResult.d.ts +339 -0
- package/lib/types/TaskResult.d.ts.map +1 -0
- package/lib/types/TaskResult.js +7 -0
- package/lib/types/TaskResult.js.map +1 -0
- package/lib/types/TaskStartDescription.d.ts +17 -5
- package/lib/types/TaskStartDescription.d.ts.map +1 -1
- package/lib/types/TaskStartDescription.js +7 -1
- package/lib/types/TaskStartDescription.js.map +1 -1
- package/lib/types/TaskStats.d.ts +22 -0
- package/lib/types/TaskStats.d.ts.map +1 -0
- package/lib/types/TaskStats.js +9 -0
- package/lib/types/TaskStats.js.map +1 -0
- package/lib/types/Timing.d.ts +23 -0
- package/lib/types/Timing.d.ts.map +1 -0
- package/lib/types/Timing.js +12 -0
- package/lib/types/Timing.js.map +1 -0
- package/lib/types/Timings.d.ts +20 -0
- package/lib/types/Timings.d.ts.map +1 -0
- package/lib/types/Timings.js +5 -0
- package/lib/types/Timings.js.map +1 -0
- package/package.json +1 -1
package/lib/appRouter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appRouter.d.ts","sourceRoot":"","sources":["../src/appRouter.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"appRouter.d.ts","sourceRoot":"","sources":["../src/appRouter.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC"}
|
|
@@ -27,8 +27,8 @@ export declare function createCloudpackServer(options: {
|
|
|
27
27
|
relativePath: string;
|
|
28
28
|
}) => Promise<void>;
|
|
29
29
|
reportMetric: (input: {
|
|
30
|
-
metric: string;
|
|
31
30
|
value: number;
|
|
31
|
+
metric: string;
|
|
32
32
|
}) => Promise<void>;
|
|
33
33
|
restartAllTasks: (input: void | undefined) => Promise<void>;
|
|
34
34
|
restartTask: (input: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TaskReporter } from '@ms-cloudpack/task-reporter';
|
|
2
2
|
import type { Span } from '@ms-cloudpack/telemetry';
|
|
3
|
-
import type { Session
|
|
3
|
+
import type { Session } from './index.js';
|
|
4
4
|
import { TaskRunner } from './utilities/TaskRunner.js';
|
|
5
5
|
import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
|
|
6
6
|
/**
|
|
@@ -16,7 +16,38 @@ export declare function createContextFactory(options: {
|
|
|
16
16
|
}): Promise<() => Promise<{
|
|
17
17
|
session: Session;
|
|
18
18
|
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
19
|
-
allTasks: Map<string,
|
|
19
|
+
allTasks: Map<string, {
|
|
20
|
+
id: string;
|
|
21
|
+
startTime: number;
|
|
22
|
+
status?: "pending" | "complete" | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
inputPath?: string | undefined;
|
|
25
|
+
outputPath?: string | undefined;
|
|
26
|
+
timings?: {
|
|
27
|
+
name: string;
|
|
28
|
+
start: number;
|
|
29
|
+
end?: number | undefined;
|
|
30
|
+
threwException?: boolean | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
durationMilliseconds?: number | undefined;
|
|
33
|
+
lastUpdated?: number | undefined;
|
|
34
|
+
errors?: {
|
|
35
|
+
message: string;
|
|
36
|
+
pluginName: string;
|
|
37
|
+
stack: string;
|
|
38
|
+
fileLocation: string;
|
|
39
|
+
lineNumber: number;
|
|
40
|
+
columnNumber: number;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
warnings?: {
|
|
43
|
+
message: string;
|
|
44
|
+
pluginName: string;
|
|
45
|
+
stack: string;
|
|
46
|
+
fileLocation: string;
|
|
47
|
+
lineNumber: number;
|
|
48
|
+
columnNumber: number;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
}>;
|
|
20
51
|
taskRunner: TaskRunner;
|
|
21
52
|
rootSpan: Span | undefined;
|
|
22
53
|
reporter: TaskReporter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createContextFactory.d.ts","sourceRoot":"","sources":["../src/createContextFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"createContextFactory.d.ts","sourceRoot":"","sources":["../src/createContextFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E;;;;GAIG;AAEH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,uBAAuB,CAAC;CACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiDA;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { startApiServer } from './startApiServer.js';
|
|
2
1
|
export type { ApiServer } from './types/ApiServer.js';
|
|
3
2
|
export type { DevServer } from './types/DevServer.js';
|
|
4
3
|
export type { PackageOverride } from './types/PackageOverride.js';
|
|
@@ -10,7 +9,12 @@ export type { TaskEndDescription } from './types/TaskEndDescription.js';
|
|
|
10
9
|
export type { TaskError } from './types/TaskError.js';
|
|
11
10
|
export type { TaskOptions } from './types/TaskOptions.js';
|
|
12
11
|
export type { TaskStartDescription } from './types/TaskStartDescription.js';
|
|
13
|
-
export { createCloudpackServer } from './createCloudpackServer.js';
|
|
14
12
|
export { createCloudpackClient } from './createCloudpackClient.js';
|
|
13
|
+
export { createCloudpackServer } from './createCloudpackServer.js';
|
|
14
|
+
export { startApiServer } from './startApiServer.js';
|
|
15
|
+
export { ZodTaskDescription } from './types/TaskDescription.js';
|
|
16
|
+
export { ZodTaskEndDescription } from './types/TaskEndDescription.js';
|
|
17
|
+
export { ZodTaskError } from './types/TaskError.js';
|
|
18
|
+
export { ZodTaskStartDescription } from './types/TaskStartDescription.js';
|
|
15
19
|
export { getCachePath, getLocalCachePath } from './utilities/getCachePath.js';
|
|
16
20
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export { startApiServer } from './startApiServer.js';
|
|
2
|
-
export { createCloudpackServer } from './createCloudpackServer.js';
|
|
3
1
|
export { createCloudpackClient } from './createCloudpackClient.js';
|
|
2
|
+
export { createCloudpackServer } from './createCloudpackServer.js';
|
|
3
|
+
export { startApiServer } from './startApiServer.js';
|
|
4
|
+
export { ZodTaskDescription } from './types/TaskDescription.js';
|
|
5
|
+
export { ZodTaskEndDescription } from './types/TaskEndDescription.js';
|
|
6
|
+
export { ZodTaskError } from './types/TaskError.js';
|
|
7
|
+
export { ZodTaskStartDescription } from './types/TaskStartDescription.js';
|
|
4
8
|
export { getCachePath, getLocalCachePath } from './utilities/getCachePath.js';
|
|
5
9
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export type { ApiServer } from './types/ApiServer.js';\nexport type { DevServer } from './types/DevServer.js';\nexport type { PackageOverride } from './types/PackageOverride.js';\nexport type { Session } from './types/Session.js';\nexport type { SessionStats } from './types/SessionStats.js';\nexport type { Task } from './types/Task.js';\nexport type { TaskDescription } from './types/TaskDescription.js';\nexport type { TaskEndDescription } from './types/TaskEndDescription.js';\nexport type { TaskError } from './types/TaskError.js';\nexport type { TaskOptions } from './types/TaskOptions.js';\nexport type { TaskStartDescription } from './types/TaskStartDescription.js';\n\nexport { createCloudpackClient } from './createCloudpackClient.js';\nexport { createCloudpackServer } from './createCloudpackServer.js';\nexport { startApiServer } from './startApiServer.js';\nexport { ZodTaskDescription } from './types/TaskDescription.js';\nexport { ZodTaskEndDescription } from './types/TaskEndDescription.js';\nexport { ZodTaskError } from './types/TaskError.js';\nexport { ZodTaskStartDescription } from './types/TaskStartDescription.js';\nexport { getCachePath, getLocalCachePath } from './utilities/getCachePath.js';\n"]}
|
package/lib/trpc.d.ts
CHANGED
|
@@ -6,7 +6,38 @@ export declare const router: <TProcRouterRecord extends import("@trpc/server").P
|
|
|
6
6
|
ctx: {
|
|
7
7
|
session: import("./index.js").Session;
|
|
8
8
|
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
9
|
-
allTasks: Map<string,
|
|
9
|
+
allTasks: Map<string, {
|
|
10
|
+
id: string;
|
|
11
|
+
startTime: number;
|
|
12
|
+
status?: "pending" | "complete" | undefined;
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
inputPath?: string | undefined;
|
|
15
|
+
outputPath?: string | undefined;
|
|
16
|
+
timings?: {
|
|
17
|
+
name: string;
|
|
18
|
+
start: number;
|
|
19
|
+
end?: number | undefined;
|
|
20
|
+
threwException?: boolean | undefined;
|
|
21
|
+
}[] | undefined;
|
|
22
|
+
durationMilliseconds?: number | undefined;
|
|
23
|
+
lastUpdated?: number | undefined;
|
|
24
|
+
errors?: {
|
|
25
|
+
message: string;
|
|
26
|
+
pluginName: string;
|
|
27
|
+
stack: string;
|
|
28
|
+
fileLocation: string;
|
|
29
|
+
lineNumber: number;
|
|
30
|
+
columnNumber: number;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
warnings?: {
|
|
33
|
+
message: string;
|
|
34
|
+
pluginName: string;
|
|
35
|
+
stack: string;
|
|
36
|
+
fileLocation: string;
|
|
37
|
+
lineNumber: number;
|
|
38
|
+
columnNumber: number;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
}>;
|
|
10
41
|
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
11
42
|
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
12
43
|
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
@@ -21,7 +52,38 @@ export declare const publicProcedure: import("@trpc/server").ProcedureBuilder<{
|
|
|
21
52
|
ctx: {
|
|
22
53
|
session: import("./index.js").Session;
|
|
23
54
|
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
24
|
-
allTasks: Map<string,
|
|
55
|
+
allTasks: Map<string, {
|
|
56
|
+
id: string;
|
|
57
|
+
startTime: number;
|
|
58
|
+
status?: "pending" | "complete" | undefined;
|
|
59
|
+
name?: string | undefined;
|
|
60
|
+
inputPath?: string | undefined;
|
|
61
|
+
outputPath?: string | undefined;
|
|
62
|
+
timings?: {
|
|
63
|
+
name: string;
|
|
64
|
+
start: number;
|
|
65
|
+
end?: number | undefined;
|
|
66
|
+
threwException?: boolean | undefined;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
durationMilliseconds?: number | undefined;
|
|
69
|
+
lastUpdated?: number | undefined;
|
|
70
|
+
errors?: {
|
|
71
|
+
message: string;
|
|
72
|
+
pluginName: string;
|
|
73
|
+
stack: string;
|
|
74
|
+
fileLocation: string;
|
|
75
|
+
lineNumber: number;
|
|
76
|
+
columnNumber: number;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
warnings?: {
|
|
79
|
+
message: string;
|
|
80
|
+
pluginName: string;
|
|
81
|
+
stack: string;
|
|
82
|
+
fileLocation: string;
|
|
83
|
+
lineNumber: number;
|
|
84
|
+
columnNumber: number;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
}>;
|
|
25
87
|
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
26
88
|
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
27
89
|
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
@@ -34,7 +96,38 @@ export declare const publicProcedure: import("@trpc/server").ProcedureBuilder<{
|
|
|
34
96
|
_ctx_out: {
|
|
35
97
|
session: import("./index.js").Session;
|
|
36
98
|
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
37
|
-
allTasks: Map<string,
|
|
99
|
+
allTasks: Map<string, {
|
|
100
|
+
id: string;
|
|
101
|
+
startTime: number;
|
|
102
|
+
status?: "pending" | "complete" | undefined;
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
inputPath?: string | undefined;
|
|
105
|
+
outputPath?: string | undefined;
|
|
106
|
+
timings?: {
|
|
107
|
+
name: string;
|
|
108
|
+
start: number;
|
|
109
|
+
end?: number | undefined;
|
|
110
|
+
threwException?: boolean | undefined;
|
|
111
|
+
}[] | undefined;
|
|
112
|
+
durationMilliseconds?: number | undefined;
|
|
113
|
+
lastUpdated?: number | undefined;
|
|
114
|
+
errors?: {
|
|
115
|
+
message: string;
|
|
116
|
+
pluginName: string;
|
|
117
|
+
stack: string;
|
|
118
|
+
fileLocation: string;
|
|
119
|
+
lineNumber: number;
|
|
120
|
+
columnNumber: number;
|
|
121
|
+
}[] | undefined;
|
|
122
|
+
warnings?: {
|
|
123
|
+
message: string;
|
|
124
|
+
pluginName: string;
|
|
125
|
+
stack: string;
|
|
126
|
+
fileLocation: string;
|
|
127
|
+
lineNumber: number;
|
|
128
|
+
columnNumber: number;
|
|
129
|
+
}[] | undefined;
|
|
130
|
+
}>;
|
|
38
131
|
taskRunner: import("./utilities/TaskRunner.js").TaskRunner;
|
|
39
132
|
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
40
133
|
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
package/lib/trpc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc.d.ts","sourceRoot":"","sources":["../src/trpc.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"trpc.d.ts","sourceRoot":"","sources":["../src/trpc.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAW,CAAC;AAC/B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAc,CAAC;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BundleResult } from '@ms-cloudpack/bundler-types';
|
|
2
|
+
import type { TaskResult } from './TaskResult.js';
|
|
3
|
+
export interface BundleResultExtended extends TaskResult, BundleResult {
|
|
4
|
+
/**
|
|
5
|
+
* The dependencies of the package, computed in `bundleTask` by parsing the output of the bundle result.
|
|
6
|
+
*/
|
|
7
|
+
dependencies?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* The hash of the bundle input, computed in `bundleTask` by hashing the source input.
|
|
10
|
+
*/
|
|
11
|
+
hash?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Where the output originates from. In cases where we can leverage disk cache to avoid bundling, we will.
|
|
14
|
+
*/
|
|
15
|
+
from?: 'bundle' | 'cache';
|
|
16
|
+
/**
|
|
17
|
+
* Whether the input was considered an external package. This affects how cached results
|
|
18
|
+
* are leveraged, whether file watching will be used, and how the bundle is retuned to the
|
|
19
|
+
* client.
|
|
20
|
+
*/
|
|
21
|
+
isExternal: boolean;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=BundleResultExtended.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BundleResultExtended.d.ts","sourceRoot":"","sources":["../../src/types/BundleResultExtended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,MAAM,WAAW,oBAAqB,SAAQ,UAAU,EAAE,YAAY;IACpE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAE1B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BundleResultExtended.js","sourceRoot":"","sources":["../../src/types/BundleResultExtended.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleResult } from '@ms-cloudpack/bundler-types';\nimport type { TaskResult } from './TaskResult.js';\nexport interface BundleResultExtended extends TaskResult, BundleResult {\n /**\n * The dependencies of the package, computed in `bundleTask` by parsing the output of the bundle result.\n */\n dependencies?: string[];\n\n /**\n * The hash of the bundle input, computed in `bundleTask` by hashing the source input.\n */\n hash?: string;\n\n /**\n * Where the output originates from. In cases where we can leverage disk cache to avoid bundling, we will.\n */\n from?: 'bundle' | 'cache';\n\n /**\n * Whether the input was considered an external package. This affects how cached results\n * are leveraged, whether file watching will be used, and how the bundle is retuned to the\n * client.\n */\n isExternal: boolean;\n}\n"]}
|
|
@@ -1,9 +1,135 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskDescription: z.ZodObject<{
|
|
3
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"complete">]>>;
|
|
4
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5
|
+
inputPath: z.ZodOptional<z.ZodString>;
|
|
6
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
7
|
+
timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
start: z.ZodNumber;
|
|
10
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
threwException: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
name: string;
|
|
14
|
+
start: number;
|
|
15
|
+
end?: number | undefined;
|
|
16
|
+
threwException?: boolean | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
name: string;
|
|
19
|
+
start: number;
|
|
20
|
+
end?: number | undefined;
|
|
21
|
+
threwException?: boolean | undefined;
|
|
22
|
+
}>, "many">>;
|
|
23
|
+
startTime: z.ZodNumber;
|
|
24
|
+
durationMilliseconds: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
lastUpdated: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
message: z.ZodString;
|
|
29
|
+
pluginName: z.ZodString;
|
|
30
|
+
stack: z.ZodString;
|
|
31
|
+
fileLocation: z.ZodString;
|
|
32
|
+
lineNumber: z.ZodNumber;
|
|
33
|
+
columnNumber: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
message: string;
|
|
36
|
+
pluginName: string;
|
|
37
|
+
stack: string;
|
|
38
|
+
fileLocation: string;
|
|
39
|
+
lineNumber: number;
|
|
40
|
+
columnNumber: number;
|
|
41
|
+
}, {
|
|
42
|
+
message: string;
|
|
43
|
+
pluginName: string;
|
|
44
|
+
stack: string;
|
|
45
|
+
fileLocation: string;
|
|
46
|
+
lineNumber: number;
|
|
47
|
+
columnNumber: number;
|
|
48
|
+
}>, "many">>;
|
|
49
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
message: z.ZodString;
|
|
51
|
+
pluginName: z.ZodString;
|
|
52
|
+
stack: z.ZodString;
|
|
53
|
+
fileLocation: z.ZodString;
|
|
54
|
+
lineNumber: z.ZodNumber;
|
|
55
|
+
columnNumber: z.ZodNumber;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
message: string;
|
|
58
|
+
pluginName: string;
|
|
59
|
+
stack: string;
|
|
60
|
+
fileLocation: string;
|
|
61
|
+
lineNumber: number;
|
|
62
|
+
columnNumber: number;
|
|
63
|
+
}, {
|
|
64
|
+
message: string;
|
|
65
|
+
pluginName: string;
|
|
66
|
+
stack: string;
|
|
67
|
+
fileLocation: string;
|
|
68
|
+
lineNumber: number;
|
|
69
|
+
columnNumber: number;
|
|
70
|
+
}>, "many">>;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
id: string;
|
|
5
73
|
startTime: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
74
|
+
status?: "pending" | "complete" | undefined;
|
|
75
|
+
name?: string | undefined;
|
|
76
|
+
inputPath?: string | undefined;
|
|
77
|
+
outputPath?: string | undefined;
|
|
78
|
+
timings?: {
|
|
79
|
+
name: string;
|
|
80
|
+
start: number;
|
|
81
|
+
end?: number | undefined;
|
|
82
|
+
threwException?: boolean | undefined;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
durationMilliseconds?: number | undefined;
|
|
85
|
+
lastUpdated?: number | undefined;
|
|
86
|
+
errors?: {
|
|
87
|
+
message: string;
|
|
88
|
+
pluginName: string;
|
|
89
|
+
stack: string;
|
|
90
|
+
fileLocation: string;
|
|
91
|
+
lineNumber: number;
|
|
92
|
+
columnNumber: number;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
warnings?: {
|
|
95
|
+
message: string;
|
|
96
|
+
pluginName: string;
|
|
97
|
+
stack: string;
|
|
98
|
+
fileLocation: string;
|
|
99
|
+
lineNumber: number;
|
|
100
|
+
columnNumber: number;
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
id: string;
|
|
104
|
+
startTime: number;
|
|
105
|
+
status?: "pending" | "complete" | undefined;
|
|
106
|
+
name?: string | undefined;
|
|
107
|
+
inputPath?: string | undefined;
|
|
108
|
+
outputPath?: string | undefined;
|
|
109
|
+
timings?: {
|
|
110
|
+
name: string;
|
|
111
|
+
start: number;
|
|
112
|
+
end?: number | undefined;
|
|
113
|
+
threwException?: boolean | undefined;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
durationMilliseconds?: number | undefined;
|
|
116
|
+
lastUpdated?: number | undefined;
|
|
117
|
+
errors?: {
|
|
118
|
+
message: string;
|
|
119
|
+
pluginName: string;
|
|
120
|
+
stack: string;
|
|
121
|
+
fileLocation: string;
|
|
122
|
+
lineNumber: number;
|
|
123
|
+
columnNumber: number;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
warnings?: {
|
|
126
|
+
message: string;
|
|
127
|
+
pluginName: string;
|
|
128
|
+
stack: string;
|
|
129
|
+
fileLocation: string;
|
|
130
|
+
lineNumber: number;
|
|
131
|
+
columnNumber: number;
|
|
132
|
+
}[] | undefined;
|
|
133
|
+
}>;
|
|
134
|
+
export type TaskDescription = z.infer<typeof ZodTaskDescription>;
|
|
9
135
|
//# sourceMappingURL=TaskDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TaskDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASO,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { ZodTaskStartDescription } from './TaskStartDescription.js';
|
|
3
|
+
import { ZodTaskEndDescription } from './TaskEndDescription.js';
|
|
4
|
+
import { ZodTimings } from './Timings.js';
|
|
5
|
+
export const ZodTaskDescription = z
|
|
6
|
+
.object({
|
|
7
|
+
status: z.literal('pending').or(z.literal('complete')).optional(),
|
|
8
|
+
timings: ZodTimings.optional(),
|
|
9
|
+
startTime: z.number(),
|
|
10
|
+
durationMilliseconds: z.number().optional(),
|
|
11
|
+
lastUpdated: z.number().optional(),
|
|
12
|
+
})
|
|
13
|
+
.extend(ZodTaskStartDescription.shape)
|
|
14
|
+
.extend(ZodTaskEndDescription.shape);
|
|
2
15
|
//# sourceMappingURL=TaskDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskDescription.js","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"","sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"TaskDescription.js","sourceRoot":"","sources":["../../src/types/TaskDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjE,OAAO,EAAE,UAAU,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,MAAM,CAAC,uBAAuB,CAAC,KAAK,CAAC;KACrC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskStartDescription } from './TaskStartDescription.js';\nimport { ZodTaskEndDescription } from './TaskEndDescription.js';\nimport { ZodTimings } from './Timings.js';\n\nexport const ZodTaskDescription = z\n .object({\n status: z.literal('pending').or(z.literal('complete')).optional(),\n timings: ZodTimings.optional(),\n startTime: z.number(),\n durationMilliseconds: z.number().optional(),\n lastUpdated: z.number().optional(),\n })\n .extend(ZodTaskStartDescription.shape)\n .extend(ZodTaskEndDescription.shape);\n\nexport type TaskDescription = z.infer<typeof ZodTaskDescription>;\n"]}
|
|
@@ -1,7 +1,86 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskEndDescription: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
+
message: z.ZodString;
|
|
6
|
+
pluginName: z.ZodString;
|
|
7
|
+
stack: z.ZodString;
|
|
8
|
+
fileLocation: z.ZodString;
|
|
9
|
+
lineNumber: z.ZodNumber;
|
|
10
|
+
columnNumber: z.ZodNumber;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
message: string;
|
|
13
|
+
pluginName: string;
|
|
14
|
+
stack: string;
|
|
15
|
+
fileLocation: string;
|
|
16
|
+
lineNumber: number;
|
|
17
|
+
columnNumber: number;
|
|
18
|
+
}, {
|
|
19
|
+
message: string;
|
|
20
|
+
pluginName: string;
|
|
21
|
+
stack: string;
|
|
22
|
+
fileLocation: string;
|
|
23
|
+
lineNumber: number;
|
|
24
|
+
columnNumber: number;
|
|
25
|
+
}>, "many">>;
|
|
26
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
message: z.ZodString;
|
|
28
|
+
pluginName: z.ZodString;
|
|
29
|
+
stack: z.ZodString;
|
|
30
|
+
fileLocation: z.ZodString;
|
|
31
|
+
lineNumber: z.ZodNumber;
|
|
32
|
+
columnNumber: z.ZodNumber;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
message: string;
|
|
35
|
+
pluginName: string;
|
|
36
|
+
stack: string;
|
|
37
|
+
fileLocation: string;
|
|
38
|
+
lineNumber: number;
|
|
39
|
+
columnNumber: number;
|
|
40
|
+
}, {
|
|
41
|
+
message: string;
|
|
42
|
+
pluginName: string;
|
|
43
|
+
stack: string;
|
|
44
|
+
fileLocation: string;
|
|
45
|
+
lineNumber: number;
|
|
46
|
+
columnNumber: number;
|
|
47
|
+
}>, "many">>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
3
49
|
id: string;
|
|
4
|
-
errors?:
|
|
5
|
-
|
|
6
|
-
|
|
50
|
+
errors?: {
|
|
51
|
+
message: string;
|
|
52
|
+
pluginName: string;
|
|
53
|
+
stack: string;
|
|
54
|
+
fileLocation: string;
|
|
55
|
+
lineNumber: number;
|
|
56
|
+
columnNumber: number;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
warnings?: {
|
|
59
|
+
message: string;
|
|
60
|
+
pluginName: string;
|
|
61
|
+
stack: string;
|
|
62
|
+
fileLocation: string;
|
|
63
|
+
lineNumber: number;
|
|
64
|
+
columnNumber: number;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
id: string;
|
|
68
|
+
errors?: {
|
|
69
|
+
message: string;
|
|
70
|
+
pluginName: string;
|
|
71
|
+
stack: string;
|
|
72
|
+
fileLocation: string;
|
|
73
|
+
lineNumber: number;
|
|
74
|
+
columnNumber: number;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
warnings?: {
|
|
77
|
+
message: string;
|
|
78
|
+
pluginName: string;
|
|
79
|
+
stack: string;
|
|
80
|
+
fileLocation: string;
|
|
81
|
+
lineNumber: number;
|
|
82
|
+
columnNumber: number;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
export type TaskEndDescription = z.infer<typeof ZodTaskEndDescription>;
|
|
7
86
|
//# sourceMappingURL=TaskEndDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskEndDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskEndDescription.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TaskEndDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskEndDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { ZodTaskError } from './TaskError.js';
|
|
3
|
+
export const ZodTaskEndDescription = z.object({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
errors: z.array(ZodTaskError).optional(),
|
|
6
|
+
warnings: z.array(ZodTaskError).optional(),
|
|
7
|
+
});
|
|
2
8
|
//# sourceMappingURL=TaskEndDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskEndDescription.js","sourceRoot":"","sources":["../../src/types/TaskEndDescription.ts"],"names":[],"mappings":"","sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"TaskEndDescription.js","sourceRoot":"","sources":["../../src/types/TaskEndDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskError } from './TaskError.js';\n\nexport const ZodTaskEndDescription = z.object({\n id: z.string(),\n errors: z.array(ZodTaskError).optional(),\n warnings: z.array(ZodTaskError).optional(),\n});\n\nexport type TaskEndDescription = z.infer<typeof ZodTaskEndDescription>;\n"]}
|
package/lib/types/TaskError.d.ts
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskError: z.ZodObject<{
|
|
3
|
+
message: z.ZodString;
|
|
4
|
+
pluginName: z.ZodString;
|
|
5
|
+
stack: z.ZodString;
|
|
6
|
+
fileLocation: z.ZodString;
|
|
7
|
+
lineNumber: z.ZodNumber;
|
|
8
|
+
columnNumber: z.ZodNumber;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
2
10
|
message: string;
|
|
3
11
|
pluginName: string;
|
|
4
12
|
stack: string;
|
|
5
13
|
fileLocation: string;
|
|
6
14
|
lineNumber: number;
|
|
7
15
|
columnNumber: number;
|
|
8
|
-
}
|
|
16
|
+
}, {
|
|
17
|
+
message: string;
|
|
18
|
+
pluginName: string;
|
|
19
|
+
stack: string;
|
|
20
|
+
fileLocation: string;
|
|
21
|
+
lineNumber: number;
|
|
22
|
+
columnNumber: number;
|
|
23
|
+
}>;
|
|
24
|
+
export type TaskError = z.infer<typeof ZodTaskError>;
|
|
9
25
|
//# sourceMappingURL=TaskError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskError.d.ts","sourceRoot":"","sources":["../../src/types/TaskError.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"TaskError.d.ts","sourceRoot":"","sources":["../../src/types/TaskError.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;EAOvB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/lib/types/TaskError.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const ZodTaskError = z.object({
|
|
3
|
+
message: z.string(),
|
|
4
|
+
pluginName: z.string(),
|
|
5
|
+
stack: z.string(),
|
|
6
|
+
fileLocation: z.string(),
|
|
7
|
+
lineNumber: z.number(),
|
|
8
|
+
columnNumber: z.number(),
|
|
9
|
+
});
|
|
2
10
|
//# sourceMappingURL=TaskError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskError.js","sourceRoot":"","sources":["../../src/types/TaskError.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"TaskError.js","sourceRoot":"","sources":["../../src/types/TaskError.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTaskError = z.object({\n message: z.string(),\n pluginName: z.string(),\n stack: z.string(),\n fileLocation: z.string(),\n lineNumber: z.number(),\n columnNumber: z.number(),\n});\n\nexport type TaskError = z.infer<typeof ZodTaskError>;\n"]}
|