@ms-cloudpack/api-server 0.7.2 → 0.9.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 +85 -34
- package/lib/apis/addPackageOverride.d.ts.map +1 -1
- package/lib/apis/addPackageOverride.js +21 -10
- package/lib/apis/addPackageOverride.js.map +1 -1
- package/lib/apis/getData.d.ts +66 -0
- package/lib/apis/getData.d.ts.map +1 -0
- package/lib/apis/getData.js +11 -0
- package/lib/apis/getData.js.map +1 -0
- package/lib/apis/getSessionId.d.ts +54 -0
- package/lib/apis/getSessionId.d.ts.map +1 -0
- package/lib/apis/getSessionId.js +8 -0
- package/lib/apis/getSessionId.js.map +1 -0
- package/lib/apis/index.d.ts +10 -0
- package/lib/apis/index.d.ts.map +1 -0
- package/lib/apis/index.js +10 -0
- package/lib/apis/index.js.map +1 -0
- package/lib/apis/onDataChanged.d.ts +69 -0
- package/lib/apis/onDataChanged.d.ts.map +1 -0
- package/lib/apis/onDataChanged.js +20 -0
- package/lib/apis/onDataChanged.js.map +1 -0
- package/lib/apis/openCodeEditor.d.ts +69 -34
- package/lib/apis/openCodeEditor.d.ts.map +1 -1
- package/lib/apis/openCodeEditor.js +9 -8
- package/lib/apis/openCodeEditor.js.map +1 -1
- package/lib/apis/openConfigEditor.d.ts +39 -24
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.js +6 -2
- package/lib/apis/openConfigEditor.js.map +1 -1
- package/lib/apis/openFilePath.d.ts +50 -30
- package/lib/apis/openFilePath.d.ts.map +1 -1
- package/lib/apis/openFilePath.js +9 -8
- package/lib/apis/openFilePath.js.map +1 -1
- package/lib/apis/reportMetric.d.ts +55 -31
- package/lib/apis/reportMetric.d.ts.map +1 -1
- package/lib/apis/reportMetric.js +7 -6
- package/lib/apis/reportMetric.js.map +1 -1
- package/lib/apis/validatePackageOverride.d.ts +73 -36
- package/lib/apis/validatePackageOverride.d.ts.map +1 -1
- package/lib/apis/validatePackageOverride.js +11 -8
- package/lib/apis/validatePackageOverride.js.map +1 -1
- package/lib/index.d.ts +7 -3
- 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 → trpc/common.d.ts} +29 -11
- package/lib/trpc/common.d.ts.map +1 -0
- package/lib/{trpc.js → trpc/common.js} +2 -2
- package/lib/trpc/common.js.map +1 -0
- package/lib/trpc/connectBusToClient.d.ts +8 -0
- package/lib/trpc/connectBusToClient.d.ts.map +1 -0
- package/lib/trpc/connectBusToClient.js +28 -0
- package/lib/trpc/connectBusToClient.js.map +1 -0
- package/lib/trpc/createAppRouter.d.ts +453 -0
- package/lib/trpc/createAppRouter.d.ts.map +1 -0
- package/lib/trpc/createAppRouter.js +9 -0
- package/lib/trpc/createAppRouter.js.map +1 -0
- package/lib/trpc/createCloudpackClient.d.ts +13 -0
- package/lib/trpc/createCloudpackClient.d.ts.map +1 -0
- package/lib/trpc/createCloudpackClient.js +53 -0
- package/lib/trpc/createCloudpackClient.js.map +1 -0
- package/lib/trpc/createCloudpackServer.d.ts +63 -0
- package/lib/trpc/createCloudpackServer.d.ts.map +1 -0
- package/lib/trpc/createCloudpackServer.js +52 -0
- package/lib/trpc/createCloudpackServer.js.map +1 -0
- package/lib/{createContextFactory.d.ts → trpc/createContextFactory.d.ts} +10 -5
- package/lib/trpc/createContextFactory.d.ts.map +1 -0
- package/lib/{createContextFactory.js → trpc/createContextFactory.js} +8 -15
- package/lib/trpc/createContextFactory.js.map +1 -0
- package/lib/trpc/createRouterFromApis.d.ts +26 -0
- package/lib/trpc/createRouterFromApis.d.ts.map +1 -0
- package/lib/trpc/createRouterFromApis.js +9 -0
- package/lib/trpc/createRouterFromApis.js.map +1 -0
- package/lib/{trpc-adapters → trpc}/httpAdapter.d.ts +10 -5
- package/lib/trpc/httpAdapter.d.ts.map +1 -0
- package/lib/trpc/httpAdapter.js +59 -0
- package/lib/trpc/httpAdapter.js.map +1 -0
- 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/lib/utilities/ignoreSelfSignedCertErrors.d.ts +5 -0
- package/lib/utilities/ignoreSelfSignedCertErrors.d.ts.map +1 -0
- package/lib/utilities/ignoreSelfSignedCertErrors.js +15 -0
- package/lib/utilities/ignoreSelfSignedCertErrors.js.map +1 -0
- package/package.json +1 -1
- package/lib/apis/bus.d.ts +0 -41
- package/lib/apis/bus.d.ts.map +0 -1
- package/lib/apis/bus.js +0 -23
- package/lib/apis/bus.js.map +0 -1
- package/lib/apis/restartAllTasks.d.ts +0 -31
- package/lib/apis/restartAllTasks.d.ts.map +0 -1
- package/lib/apis/restartAllTasks.js +0 -18
- package/lib/apis/restartAllTasks.js.map +0 -1
- package/lib/apis/restartTask.d.ts +0 -37
- package/lib/apis/restartTask.d.ts.map +0 -1
- package/lib/apis/restartTask.js +0 -14
- package/lib/apis/restartTask.js.map +0 -1
- package/lib/appRouter.d.ts +0 -335
- package/lib/appRouter.d.ts.map +0 -1
- package/lib/appRouter.js +0 -22
- package/lib/appRouter.js.map +0 -1
- package/lib/createCloudpackClient.d.ts +0 -17
- package/lib/createCloudpackClient.d.ts.map +0 -1
- package/lib/createCloudpackClient.js +0 -57
- package/lib/createCloudpackClient.js.map +0 -1
- package/lib/createCloudpackServer.d.ts +0 -49
- package/lib/createCloudpackServer.d.ts.map +0 -1
- package/lib/createCloudpackServer.js +0 -26
- package/lib/createCloudpackServer.js.map +0 -1
- package/lib/createCloudpackWebClient.d.ts +0 -2
- package/lib/createCloudpackWebClient.d.ts.map +0 -1
- package/lib/createCloudpackWebClient.js +0 -9
- package/lib/createCloudpackWebClient.js.map +0 -1
- package/lib/createContextFactory.d.ts.map +0 -1
- package/lib/createContextFactory.js.map +0 -1
- package/lib/trpc-adapters/httpAdapter.d.ts.map +0 -1
- package/lib/trpc-adapters/httpAdapter.js +0 -37
- package/lib/trpc-adapters/httpAdapter.js.map +0 -1
- package/lib/trpc-adapters/httpsAdapter.d.ts +0 -1
- package/lib/trpc-adapters/httpsAdapter.d.ts.map +0 -1
- package/lib/trpc-adapters/httpsAdapter.js +0 -2
- package/lib/trpc-adapters/httpsAdapter.js.map +0 -1
- package/lib/trpc.d.ts.map +0 -1
- package/lib/trpc.js.map +0 -1
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskResult: z.ZodObject<{
|
|
3
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4
|
+
pluginName: z.ZodOptional<z.ZodString>;
|
|
5
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"invalid-input">, z.ZodUnion<[z.ZodLiteral<"no-entries">, z.ZodUnion<[z.ZodLiteral<"input-relative">, z.ZodLiteral<"entry-absolute">]>]>]>>;
|
|
6
|
+
text: z.ZodString;
|
|
7
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
file: z.ZodString;
|
|
9
|
+
line: z.ZodNumber;
|
|
10
|
+
column: z.ZodNumber;
|
|
11
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
13
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
line: number;
|
|
16
|
+
column: number;
|
|
17
|
+
file: string;
|
|
18
|
+
length?: number | undefined;
|
|
19
|
+
lineText?: string | undefined;
|
|
20
|
+
suggestion?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
line: number;
|
|
23
|
+
column: number;
|
|
24
|
+
file: string;
|
|
25
|
+
length?: number | undefined;
|
|
26
|
+
lineText?: string | undefined;
|
|
27
|
+
suggestion?: string | undefined;
|
|
28
|
+
}>>;
|
|
29
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
text: z.ZodString;
|
|
31
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
file: z.ZodString;
|
|
33
|
+
line: z.ZodNumber;
|
|
34
|
+
column: z.ZodNumber;
|
|
35
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
37
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
line: number;
|
|
40
|
+
column: number;
|
|
41
|
+
file: string;
|
|
42
|
+
length?: number | undefined;
|
|
43
|
+
lineText?: string | undefined;
|
|
44
|
+
suggestion?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
line: number;
|
|
47
|
+
column: number;
|
|
48
|
+
file: string;
|
|
49
|
+
length?: number | undefined;
|
|
50
|
+
lineText?: string | undefined;
|
|
51
|
+
suggestion?: string | undefined;
|
|
52
|
+
}>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
text: string;
|
|
55
|
+
location?: {
|
|
56
|
+
line: number;
|
|
57
|
+
column: number;
|
|
58
|
+
file: string;
|
|
59
|
+
length?: number | undefined;
|
|
60
|
+
lineText?: string | undefined;
|
|
61
|
+
suggestion?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
text: string;
|
|
65
|
+
location?: {
|
|
66
|
+
line: number;
|
|
67
|
+
column: number;
|
|
68
|
+
file: string;
|
|
69
|
+
length?: number | undefined;
|
|
70
|
+
lineText?: string | undefined;
|
|
71
|
+
suggestion?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
}>, "many">>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
text: string;
|
|
76
|
+
pluginName?: string | undefined;
|
|
77
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
78
|
+
location?: {
|
|
79
|
+
line: number;
|
|
80
|
+
column: number;
|
|
81
|
+
file: string;
|
|
82
|
+
length?: number | undefined;
|
|
83
|
+
lineText?: string | undefined;
|
|
84
|
+
suggestion?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
notes?: {
|
|
87
|
+
text: string;
|
|
88
|
+
location?: {
|
|
89
|
+
line: number;
|
|
90
|
+
column: number;
|
|
91
|
+
file: string;
|
|
92
|
+
length?: number | undefined;
|
|
93
|
+
lineText?: string | undefined;
|
|
94
|
+
suggestion?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
text: string;
|
|
99
|
+
pluginName?: string | undefined;
|
|
100
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
101
|
+
location?: {
|
|
102
|
+
line: number;
|
|
103
|
+
column: number;
|
|
104
|
+
file: string;
|
|
105
|
+
length?: number | undefined;
|
|
106
|
+
lineText?: string | undefined;
|
|
107
|
+
suggestion?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
notes?: {
|
|
110
|
+
text: string;
|
|
111
|
+
location?: {
|
|
112
|
+
line: number;
|
|
113
|
+
column: number;
|
|
114
|
+
file: string;
|
|
115
|
+
length?: number | undefined;
|
|
116
|
+
lineText?: string | undefined;
|
|
117
|
+
suggestion?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
}>, "many">>;
|
|
121
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
|
+
pluginName: z.ZodOptional<z.ZodString>;
|
|
123
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"invalid-input">, z.ZodUnion<[z.ZodLiteral<"no-entries">, z.ZodUnion<[z.ZodLiteral<"input-relative">, z.ZodLiteral<"entry-absolute">]>]>]>>;
|
|
124
|
+
text: z.ZodString;
|
|
125
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
file: z.ZodString;
|
|
127
|
+
line: z.ZodNumber;
|
|
128
|
+
column: z.ZodNumber;
|
|
129
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
131
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
line: number;
|
|
134
|
+
column: number;
|
|
135
|
+
file: string;
|
|
136
|
+
length?: number | undefined;
|
|
137
|
+
lineText?: string | undefined;
|
|
138
|
+
suggestion?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
line: number;
|
|
141
|
+
column: number;
|
|
142
|
+
file: string;
|
|
143
|
+
length?: number | undefined;
|
|
144
|
+
lineText?: string | undefined;
|
|
145
|
+
suggestion?: string | undefined;
|
|
146
|
+
}>>;
|
|
147
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
+
text: z.ZodString;
|
|
149
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
file: z.ZodString;
|
|
151
|
+
line: z.ZodNumber;
|
|
152
|
+
column: z.ZodNumber;
|
|
153
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
lineText: z.ZodOptional<z.ZodString>;
|
|
155
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
line: number;
|
|
158
|
+
column: number;
|
|
159
|
+
file: string;
|
|
160
|
+
length?: number | undefined;
|
|
161
|
+
lineText?: string | undefined;
|
|
162
|
+
suggestion?: string | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
line: number;
|
|
165
|
+
column: number;
|
|
166
|
+
file: string;
|
|
167
|
+
length?: number | undefined;
|
|
168
|
+
lineText?: string | undefined;
|
|
169
|
+
suggestion?: string | undefined;
|
|
170
|
+
}>>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
text: string;
|
|
173
|
+
location?: {
|
|
174
|
+
line: number;
|
|
175
|
+
column: number;
|
|
176
|
+
file: string;
|
|
177
|
+
length?: number | undefined;
|
|
178
|
+
lineText?: string | undefined;
|
|
179
|
+
suggestion?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
text: string;
|
|
183
|
+
location?: {
|
|
184
|
+
line: number;
|
|
185
|
+
column: number;
|
|
186
|
+
file: string;
|
|
187
|
+
length?: number | undefined;
|
|
188
|
+
lineText?: string | undefined;
|
|
189
|
+
suggestion?: string | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
}>, "many">>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
text: string;
|
|
194
|
+
pluginName?: string | undefined;
|
|
195
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
196
|
+
location?: {
|
|
197
|
+
line: number;
|
|
198
|
+
column: number;
|
|
199
|
+
file: string;
|
|
200
|
+
length?: number | undefined;
|
|
201
|
+
lineText?: string | undefined;
|
|
202
|
+
suggestion?: string | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
notes?: {
|
|
205
|
+
text: string;
|
|
206
|
+
location?: {
|
|
207
|
+
line: number;
|
|
208
|
+
column: number;
|
|
209
|
+
file: string;
|
|
210
|
+
length?: number | undefined;
|
|
211
|
+
lineText?: string | undefined;
|
|
212
|
+
suggestion?: string | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
}[] | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
text: string;
|
|
217
|
+
pluginName?: string | undefined;
|
|
218
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
219
|
+
location?: {
|
|
220
|
+
line: number;
|
|
221
|
+
column: number;
|
|
222
|
+
file: string;
|
|
223
|
+
length?: number | undefined;
|
|
224
|
+
lineText?: string | undefined;
|
|
225
|
+
suggestion?: string | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
notes?: {
|
|
228
|
+
text: string;
|
|
229
|
+
location?: {
|
|
230
|
+
line: number;
|
|
231
|
+
column: number;
|
|
232
|
+
file: string;
|
|
233
|
+
length?: number | undefined;
|
|
234
|
+
lineText?: string | undefined;
|
|
235
|
+
suggestion?: string | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
}>, "many">>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
errors?: {
|
|
241
|
+
text: string;
|
|
242
|
+
pluginName?: string | undefined;
|
|
243
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
244
|
+
location?: {
|
|
245
|
+
line: number;
|
|
246
|
+
column: number;
|
|
247
|
+
file: string;
|
|
248
|
+
length?: number | undefined;
|
|
249
|
+
lineText?: string | undefined;
|
|
250
|
+
suggestion?: string | undefined;
|
|
251
|
+
} | undefined;
|
|
252
|
+
notes?: {
|
|
253
|
+
text: string;
|
|
254
|
+
location?: {
|
|
255
|
+
line: number;
|
|
256
|
+
column: number;
|
|
257
|
+
file: string;
|
|
258
|
+
length?: number | undefined;
|
|
259
|
+
lineText?: string | undefined;
|
|
260
|
+
suggestion?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
}[] | undefined;
|
|
263
|
+
}[] | undefined;
|
|
264
|
+
warnings?: {
|
|
265
|
+
text: string;
|
|
266
|
+
pluginName?: string | undefined;
|
|
267
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
268
|
+
location?: {
|
|
269
|
+
line: number;
|
|
270
|
+
column: number;
|
|
271
|
+
file: string;
|
|
272
|
+
length?: number | undefined;
|
|
273
|
+
lineText?: string | undefined;
|
|
274
|
+
suggestion?: string | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
notes?: {
|
|
277
|
+
text: string;
|
|
278
|
+
location?: {
|
|
279
|
+
line: number;
|
|
280
|
+
column: number;
|
|
281
|
+
file: string;
|
|
282
|
+
length?: number | undefined;
|
|
283
|
+
lineText?: string | undefined;
|
|
284
|
+
suggestion?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
}[] | undefined;
|
|
287
|
+
}[] | undefined;
|
|
288
|
+
}, {
|
|
289
|
+
errors?: {
|
|
290
|
+
text: string;
|
|
291
|
+
pluginName?: string | undefined;
|
|
292
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
293
|
+
location?: {
|
|
294
|
+
line: number;
|
|
295
|
+
column: number;
|
|
296
|
+
file: string;
|
|
297
|
+
length?: number | undefined;
|
|
298
|
+
lineText?: string | undefined;
|
|
299
|
+
suggestion?: string | undefined;
|
|
300
|
+
} | undefined;
|
|
301
|
+
notes?: {
|
|
302
|
+
text: string;
|
|
303
|
+
location?: {
|
|
304
|
+
line: number;
|
|
305
|
+
column: number;
|
|
306
|
+
file: string;
|
|
307
|
+
length?: number | undefined;
|
|
308
|
+
lineText?: string | undefined;
|
|
309
|
+
suggestion?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
}[] | undefined;
|
|
312
|
+
}[] | undefined;
|
|
313
|
+
warnings?: {
|
|
314
|
+
text: string;
|
|
315
|
+
pluginName?: string | undefined;
|
|
316
|
+
type?: "invalid-input" | "no-entries" | "input-relative" | "entry-absolute" | undefined;
|
|
317
|
+
location?: {
|
|
318
|
+
line: number;
|
|
319
|
+
column: number;
|
|
320
|
+
file: string;
|
|
321
|
+
length?: number | undefined;
|
|
322
|
+
lineText?: string | undefined;
|
|
323
|
+
suggestion?: string | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
notes?: {
|
|
326
|
+
text: string;
|
|
327
|
+
location?: {
|
|
328
|
+
line: number;
|
|
329
|
+
column: number;
|
|
330
|
+
file: string;
|
|
331
|
+
length?: number | undefined;
|
|
332
|
+
lineText?: string | undefined;
|
|
333
|
+
suggestion?: string | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
}[] | undefined;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
}>;
|
|
338
|
+
export type TaskResult = z.infer<typeof ZodTaskResult>;
|
|
339
|
+
//# sourceMappingURL=TaskResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskResult.d.ts","sourceRoot":"","sources":["../../src/types/TaskResult.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskResult.js","sourceRoot":"","sources":["../../src/types/TaskResult.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskMessage } from './TaskMessage.js';\n\nexport const ZodTaskResult = z.object({\n errors: z.array(ZodTaskMessage).optional(),\n warnings: z.array(ZodTaskMessage).optional(),\n});\n\nexport type TaskResult = z.infer<typeof ZodTaskResult>;\n"]}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskStartDescription: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5
|
+
inputPath: z.ZodOptional<z.ZodString>;
|
|
6
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
2
8
|
id: string;
|
|
3
|
-
name?: string;
|
|
4
|
-
inputPath?: string;
|
|
5
|
-
outputPath?: string;
|
|
6
|
-
}
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
inputPath?: string | undefined;
|
|
11
|
+
outputPath?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
id: string;
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
inputPath?: string | undefined;
|
|
16
|
+
outputPath?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type TaskStartDescription = z.infer<typeof ZodTaskStartDescription>;
|
|
7
19
|
//# sourceMappingURL=TaskStartDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStartDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskStartDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const ZodTaskStartDescription = z.object({
|
|
3
|
+
id: z.string(),
|
|
4
|
+
name: z.string().optional(),
|
|
5
|
+
inputPath: z.string().optional(),
|
|
6
|
+
outputPath: z.string().optional(),
|
|
7
|
+
});
|
|
2
8
|
//# sourceMappingURL=TaskStartDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStartDescription.js","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"TaskStartDescription.js","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTaskStartDescription = z.object({\n id: z.string(),\n name: z.string().optional(),\n inputPath: z.string().optional(),\n outputPath: z.string().optional(),\n});\n\nexport type TaskStartDescription = z.infer<typeof ZodTaskStartDescription>;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTaskStats: z.ZodObject<{
|
|
3
|
+
status: z.ZodUnion<[z.ZodLiteral<"idle">, z.ZodLiteral<"pending">]>;
|
|
4
|
+
remainingTasks: z.ZodNumber;
|
|
5
|
+
totalTasks: z.ZodNumber;
|
|
6
|
+
totalErrors: z.ZodNumber;
|
|
7
|
+
totalWarnings: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status: "idle" | "pending";
|
|
10
|
+
remainingTasks: number;
|
|
11
|
+
totalTasks: number;
|
|
12
|
+
totalErrors: number;
|
|
13
|
+
totalWarnings: number;
|
|
14
|
+
}, {
|
|
15
|
+
status: "idle" | "pending";
|
|
16
|
+
remainingTasks: number;
|
|
17
|
+
totalTasks: number;
|
|
18
|
+
totalErrors: number;
|
|
19
|
+
totalWarnings: number;
|
|
20
|
+
}>;
|
|
21
|
+
export type TaskStats = z.infer<typeof ZodTaskStats>;
|
|
22
|
+
//# sourceMappingURL=TaskStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskStats.d.ts","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAMvB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const ZodTaskStats = z.object({
|
|
3
|
+
status: z.literal('idle').or(z.literal('pending')),
|
|
4
|
+
remainingTasks: z.number(),
|
|
5
|
+
totalTasks: z.number(),
|
|
6
|
+
totalErrors: z.number(),
|
|
7
|
+
totalWarnings: z.number(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=TaskStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskStats.js","sourceRoot":"","sources":["../../src/types/TaskStats.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTaskStats = z.object({\n status: z.literal('idle').or(z.literal('pending')),\n remainingTasks: z.number(),\n totalTasks: z.number(),\n totalErrors: z.number(),\n totalWarnings: z.number(),\n});\n\nexport type TaskStats = z.infer<typeof ZodTaskStats>;\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ZodTiming: z.ZodObject<{
|
|
3
|
+
/** Name of the timing */
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
/** Start time in milliseconds */
|
|
6
|
+
start: z.ZodNumber;
|
|
7
|
+
/** End time in milliseconds */
|
|
8
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
/** Exited prematurely. */
|
|
10
|
+
threwException: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
name: string;
|
|
13
|
+
start: number;
|
|
14
|
+
end?: number | undefined;
|
|
15
|
+
threwException?: boolean | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
name: string;
|
|
18
|
+
start: number;
|
|
19
|
+
end?: number | undefined;
|
|
20
|
+
threwException?: boolean | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export type Timing = z.infer<typeof ZodTiming>;
|
|
23
|
+
//# sourceMappingURL=Timing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timing.d.ts","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,SAAS;IACpB,yBAAyB;;IAGzB,iCAAiC;;IAGjC,+BAA+B;;IAG/B,0BAA0B;;;;;;;;;;;;EAE1B,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const ZodTiming = z.object({
|
|
3
|
+
/** Name of the timing */
|
|
4
|
+
name: z.string(),
|
|
5
|
+
/** Start time in milliseconds */
|
|
6
|
+
start: z.number(),
|
|
7
|
+
/** End time in milliseconds */
|
|
8
|
+
end: z.number().optional(),
|
|
9
|
+
/** Exited prematurely. */
|
|
10
|
+
threwException: z.boolean().optional(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=Timing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timing.js","sourceRoot":"","sources":["../../src/types/Timing.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,yBAAyB;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAEhB,iCAAiC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IAEjB,+BAA+B;IAC/B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAE1B,0BAA0B;IAC1B,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTiming = z.object({\n /** Name of the timing */\n name: z.string(),\n\n /** Start time in milliseconds */\n start: z.number(),\n\n /** End time in milliseconds */\n end: z.number().optional(),\n\n /** Exited prematurely. */\n threwException: z.boolean().optional(),\n});\n\nexport type Timing = z.infer<typeof ZodTiming>;\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
/** Collection of timings. */
|
|
3
|
+
export declare const ZodTimings: z.ZodArray<z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
start: z.ZodNumber;
|
|
6
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
threwException: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
start: number;
|
|
11
|
+
end?: number | undefined;
|
|
12
|
+
threwException?: boolean | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
start: number;
|
|
16
|
+
end?: number | undefined;
|
|
17
|
+
threwException?: boolean | undefined;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
export type Timings = z.infer<typeof ZodTimings>;
|
|
20
|
+
//# sourceMappingURL=Timings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timings.d.ts","sourceRoot":"","sources":["../../src/types/Timings.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,6BAA6B;AAC7B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;WAAqB,CAAC;AAE7C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timings.js","sourceRoot":"","sources":["../../src/types/Timings.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,6BAA6B;AAC7B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTiming } from './Timing.js';\n\n/** Collection of timings. */\nexport const ZodTimings = z.array(ZodTiming);\n\nexport type Timings = z.infer<typeof ZodTimings>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignoreSelfSignedCertErrors.d.ts","sourceRoot":"","sources":["../../src/utilities/ignoreSelfSignedCertErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,YAAY,CAAA;CAAE,QAcnF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function ignoreSelfSignedCertErrors({ reporter }) {
|
|
2
|
+
if (typeof process !== 'undefined') {
|
|
3
|
+
// When using self-signed certificates for the api server, node fails to make requests unless we set
|
|
4
|
+
// `process.env.TLS_REJECT_UNAUTHORIZED` to 0.
|
|
5
|
+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
|
6
|
+
// When we do this, node creates a console.error that we need to ignore:
|
|
7
|
+
//
|
|
8
|
+
// (node:26988) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0'
|
|
9
|
+
// makes TLS connections and HTTPS requests insecure by disabling certificate verification.
|
|
10
|
+
if (reporter) {
|
|
11
|
+
reporter.ignoreLogMessage('Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ignoreSelfSignedCertErrors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignoreSelfSignedCertErrors.js","sourceRoot":"","sources":["../../src/utilities/ignoreSelfSignedCertErrors.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,0BAA0B,CAAC,EAAE,QAAQ,EAA+B;IAClF,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;QAClC,oGAAoG;QACpG,8CAA8C;QAC9C,OAAO,CAAC,GAAG,CAAC,4BAA4B,GAAG,GAAG,CAAC;QAE/C,wEAAwE;QACxE,EAAE;QACF,6FAA6F;QAC7F,2FAA2F;QAC3F,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,gBAAgB,CAAC,wEAAwE,CAAC,CAAC;SACrG;KACF;AACH,CAAC","sourcesContent":["import type { TaskReporter } from '@ms-cloudpack/task-reporter';\n\nexport function ignoreSelfSignedCertErrors({ reporter }: { reporter?: TaskReporter }) {\n if (typeof process !== 'undefined') {\n // When using self-signed certificates for the api server, node fails to make requests unless we set\n // `process.env.TLS_REJECT_UNAUTHORIZED` to 0.\n process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';\n\n // When we do this, node creates a console.error that we need to ignore:\n //\n // (node:26988) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0'\n // makes TLS connections and HTTPS requests insecure by disabling certificate verification.\n if (reporter) {\n reporter.ignoreLogMessage('Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable');\n }\n }\n}\n"]}
|
package/package.json
CHANGED
package/lib/apis/bus.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* "bus" is a resource, defined as a procedure. This is where
|
|
3
|
-
* TRPC gets a little awkward. By defining "bus" as a noun
|
|
4
|
-
* rather than a verb+noun, the client can subscribe to it
|
|
5
|
-
* using a reasonable syntax: client.bus.subscribe().
|
|
6
|
-
*/
|
|
7
|
-
export declare const bus: import("@trpc/server").BuildProcedure<"subscription", {
|
|
8
|
-
_config: import("@trpc/server").RootConfig<{
|
|
9
|
-
ctx: {
|
|
10
|
-
session: import("../index.js").Session;
|
|
11
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
12
|
-
allTasks: Map<string, import("../index.js").TaskDescription>;
|
|
13
|
-
taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
|
|
14
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
15
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
16
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
17
|
-
};
|
|
18
|
-
meta: object;
|
|
19
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
20
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
21
|
-
}>;
|
|
22
|
-
_meta: object;
|
|
23
|
-
_ctx_out: {
|
|
24
|
-
session: import("../index.js").Session;
|
|
25
|
-
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
26
|
-
allTasks: Map<string, import("../index.js").TaskDescription>;
|
|
27
|
-
taskRunner: import("../utilities/TaskRunner.js").TaskRunner;
|
|
28
|
-
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
29
|
-
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
30
|
-
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
31
|
-
};
|
|
32
|
-
_input_in: {
|
|
33
|
-
path: string[];
|
|
34
|
-
};
|
|
35
|
-
_input_out: {
|
|
36
|
-
path: string[];
|
|
37
|
-
};
|
|
38
|
-
_output_in: any;
|
|
39
|
-
_output_out: any;
|
|
40
|
-
}, import("@trpc/server/observable").Observable<any, unknown>>;
|
|
41
|
-
//# sourceMappingURL=bus.d.ts.map
|
package/lib/apis/bus.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bus.d.ts","sourceRoot":"","sources":["../../src/apis/bus.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAgBZ,CAAC"}
|
package/lib/apis/bus.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { publicProcedure, z } from '../trpc.js';
|
|
2
|
-
import { observable } from '@trpc/server/observable';
|
|
3
|
-
/**
|
|
4
|
-
* "bus" is a resource, defined as a procedure. This is where
|
|
5
|
-
* TRPC gets a little awkward. By defining "bus" as a noun
|
|
6
|
-
* rather than a verb+noun, the client can subscribe to it
|
|
7
|
-
* using a reasonable syntax: client.bus.subscribe().
|
|
8
|
-
*/
|
|
9
|
-
export const bus = publicProcedure
|
|
10
|
-
.input(z.object({
|
|
11
|
-
path: z.array(z.string()),
|
|
12
|
-
}))
|
|
13
|
-
.output(z.any())
|
|
14
|
-
.subscription(({ input: { path }, ctx: { bus } }) => {
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
-
return observable((emit) => {
|
|
17
|
-
const dispose = bus.subscribe(path, (value) => {
|
|
18
|
-
emit.next(value);
|
|
19
|
-
});
|
|
20
|
-
return dispose;
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=bus.js.map
|
package/lib/apis/bus.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bus.js","sourceRoot":"","sources":["../../src/apis/bus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe;KAC/B,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CACH;KACA,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KACf,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE;IAClD,8DAA8D;IAC9D,OAAO,UAAU,CAAM,CAAC,IAAI,EAAE,EAAE;QAC9B,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;YAC5C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { publicProcedure, z } from '../trpc.js';\nimport { observable } from '@trpc/server/observable';\n\n/**\n * \"bus\" is a resource, defined as a procedure. This is where\n * TRPC gets a little awkward. By defining \"bus\" as a noun\n * rather than a verb+noun, the client can subscribe to it\n * using a reasonable syntax: client.bus.subscribe().\n */\nexport const bus = publicProcedure\n .input(\n z.object({\n path: z.array(z.string()),\n }),\n )\n .output(z.any())\n .subscription(({ input: { path }, ctx: { bus } }) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return observable<any>((emit) => {\n const dispose = bus.subscribe(path, (value) => {\n emit.next(value);\n });\n\n return dispose;\n });\n });\n"]}
|