@ms-cloudpack/api-server 0.8.0 → 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 -96
- 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 -96
- 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 -86
- 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 -92
- 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 -93
- 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 -98
- 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 +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/trpc/common.d.ts +68 -0
- 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/trpc/createContextFactory.d.ts +32 -0
- 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/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 -103
- 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 -93
- 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 -99
- 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 -924
- 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 +0 -58
- 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 +0 -143
- package/lib/trpc.d.ts.map +0 -1
- package/lib/trpc.js.map +0 -1
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import * as apis from '../apis/index.js';
|
|
2
|
+
export declare function createAppRouter(): {
|
|
3
|
+
apis: typeof apis;
|
|
4
|
+
router: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
|
5
|
+
ctx: {
|
|
6
|
+
session: import("../index.js").Session;
|
|
7
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
8
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
9
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
10
|
+
watcher: {
|
|
11
|
+
watch({ path, watchPaths, }: {
|
|
12
|
+
path: string;
|
|
13
|
+
watchPaths?: string[] | undefined;
|
|
14
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
15
|
+
unwatchAll(): Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
18
|
+
dispose(): Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
meta: object;
|
|
21
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
22
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
23
|
+
}>, {
|
|
24
|
+
addPackageOverride: import("@trpc/server").BuildProcedure<"mutation", {
|
|
25
|
+
_config: import("@trpc/server").RootConfig<{
|
|
26
|
+
ctx: {
|
|
27
|
+
session: import("../index.js").Session;
|
|
28
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
29
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
30
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
31
|
+
watcher: {
|
|
32
|
+
watch({ path, watchPaths, }: {
|
|
33
|
+
path: string;
|
|
34
|
+
watchPaths?: string[] | undefined;
|
|
35
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
36
|
+
unwatchAll(): Promise<void>;
|
|
37
|
+
};
|
|
38
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
39
|
+
dispose(): Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
meta: object;
|
|
42
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
43
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
44
|
+
}>;
|
|
45
|
+
_meta: object;
|
|
46
|
+
_ctx_out: {
|
|
47
|
+
session: import("../index.js").Session;
|
|
48
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
49
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
50
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
51
|
+
watcher: {
|
|
52
|
+
watch({ path, watchPaths, }: {
|
|
53
|
+
path: string;
|
|
54
|
+
watchPaths?: string[] | undefined;
|
|
55
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
56
|
+
unwatchAll(): Promise<void>;
|
|
57
|
+
};
|
|
58
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
59
|
+
dispose(): Promise<void>;
|
|
60
|
+
};
|
|
61
|
+
_input_in: {
|
|
62
|
+
packageName: string;
|
|
63
|
+
importPath: string;
|
|
64
|
+
filename?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
_input_out: {
|
|
67
|
+
packageName: string;
|
|
68
|
+
importPath: string;
|
|
69
|
+
filename?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
72
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
73
|
+
}, void>;
|
|
74
|
+
getData: import("@trpc/server").BuildProcedure<"query", {
|
|
75
|
+
_config: import("@trpc/server").RootConfig<{
|
|
76
|
+
ctx: {
|
|
77
|
+
session: import("../index.js").Session;
|
|
78
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
79
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
80
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
81
|
+
watcher: {
|
|
82
|
+
watch({ path, watchPaths, }: {
|
|
83
|
+
path: string;
|
|
84
|
+
watchPaths?: string[] | undefined;
|
|
85
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
86
|
+
unwatchAll(): Promise<void>;
|
|
87
|
+
};
|
|
88
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
89
|
+
dispose(): Promise<void>;
|
|
90
|
+
};
|
|
91
|
+
meta: object;
|
|
92
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
93
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
94
|
+
}>;
|
|
95
|
+
_meta: object;
|
|
96
|
+
_ctx_out: {
|
|
97
|
+
session: import("../index.js").Session;
|
|
98
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
99
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
100
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
101
|
+
watcher: {
|
|
102
|
+
watch({ path, watchPaths, }: {
|
|
103
|
+
path: string;
|
|
104
|
+
watchPaths?: string[] | undefined;
|
|
105
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
106
|
+
unwatchAll(): Promise<void>;
|
|
107
|
+
};
|
|
108
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
109
|
+
dispose(): Promise<void>;
|
|
110
|
+
};
|
|
111
|
+
_input_in: {
|
|
112
|
+
path: string[];
|
|
113
|
+
};
|
|
114
|
+
_input_out: {
|
|
115
|
+
path: string[];
|
|
116
|
+
};
|
|
117
|
+
_output_in: any;
|
|
118
|
+
_output_out: any;
|
|
119
|
+
}, any>;
|
|
120
|
+
getSessionId: import("@trpc/server").BuildProcedure<"query", {
|
|
121
|
+
_config: import("@trpc/server").RootConfig<{
|
|
122
|
+
ctx: {
|
|
123
|
+
session: import("../index.js").Session;
|
|
124
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
125
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
126
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
127
|
+
watcher: {
|
|
128
|
+
watch({ path, watchPaths, }: {
|
|
129
|
+
path: string;
|
|
130
|
+
watchPaths?: string[] | undefined;
|
|
131
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
132
|
+
unwatchAll(): Promise<void>;
|
|
133
|
+
};
|
|
134
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
135
|
+
dispose(): Promise<void>;
|
|
136
|
+
};
|
|
137
|
+
meta: object;
|
|
138
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
139
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
140
|
+
}>;
|
|
141
|
+
_meta: object;
|
|
142
|
+
_ctx_out: {
|
|
143
|
+
session: import("../index.js").Session;
|
|
144
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
145
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
146
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
147
|
+
watcher: {
|
|
148
|
+
watch({ path, watchPaths, }: {
|
|
149
|
+
path: string;
|
|
150
|
+
watchPaths?: string[] | undefined;
|
|
151
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
152
|
+
unwatchAll(): Promise<void>;
|
|
153
|
+
};
|
|
154
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
155
|
+
dispose(): Promise<void>;
|
|
156
|
+
};
|
|
157
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
|
158
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
|
159
|
+
_output_in: string | undefined;
|
|
160
|
+
_output_out: string | undefined;
|
|
161
|
+
}, unknown>;
|
|
162
|
+
onDataChanged: import("@trpc/server").BuildProcedure<"subscription", {
|
|
163
|
+
_config: import("@trpc/server").RootConfig<{
|
|
164
|
+
ctx: {
|
|
165
|
+
session: import("../index.js").Session;
|
|
166
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
167
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
168
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
169
|
+
watcher: {
|
|
170
|
+
watch({ path, watchPaths, }: {
|
|
171
|
+
path: string;
|
|
172
|
+
watchPaths?: string[] | undefined;
|
|
173
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
174
|
+
unwatchAll(): Promise<void>;
|
|
175
|
+
};
|
|
176
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
177
|
+
dispose(): Promise<void>;
|
|
178
|
+
};
|
|
179
|
+
meta: object;
|
|
180
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
181
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
182
|
+
}>;
|
|
183
|
+
_meta: object;
|
|
184
|
+
_ctx_out: {
|
|
185
|
+
session: import("../index.js").Session;
|
|
186
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
187
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
188
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
189
|
+
watcher: {
|
|
190
|
+
watch({ path, watchPaths, }: {
|
|
191
|
+
path: string;
|
|
192
|
+
watchPaths?: string[] | undefined;
|
|
193
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
194
|
+
unwatchAll(): Promise<void>;
|
|
195
|
+
};
|
|
196
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
197
|
+
dispose(): Promise<void>;
|
|
198
|
+
};
|
|
199
|
+
_input_in: {
|
|
200
|
+
path: string[];
|
|
201
|
+
};
|
|
202
|
+
_input_out: {
|
|
203
|
+
path: string[];
|
|
204
|
+
};
|
|
205
|
+
_output_in: any;
|
|
206
|
+
_output_out: any;
|
|
207
|
+
}, any>;
|
|
208
|
+
openCodeEditor: import("@trpc/server").BuildProcedure<"mutation", {
|
|
209
|
+
_config: import("@trpc/server").RootConfig<{
|
|
210
|
+
ctx: {
|
|
211
|
+
session: import("../index.js").Session;
|
|
212
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
213
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
214
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
215
|
+
watcher: {
|
|
216
|
+
watch({ path, watchPaths, }: {
|
|
217
|
+
path: string;
|
|
218
|
+
watchPaths?: string[] | undefined;
|
|
219
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
220
|
+
unwatchAll(): Promise<void>;
|
|
221
|
+
};
|
|
222
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
223
|
+
dispose(): Promise<void>;
|
|
224
|
+
};
|
|
225
|
+
meta: object;
|
|
226
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
227
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
228
|
+
}>;
|
|
229
|
+
_meta: object;
|
|
230
|
+
_ctx_out: {
|
|
231
|
+
session: import("../index.js").Session;
|
|
232
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
233
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
234
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
235
|
+
watcher: {
|
|
236
|
+
watch({ path, watchPaths, }: {
|
|
237
|
+
path: string;
|
|
238
|
+
watchPaths?: string[] | undefined;
|
|
239
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
240
|
+
unwatchAll(): Promise<void>;
|
|
241
|
+
};
|
|
242
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
243
|
+
dispose(): Promise<void>;
|
|
244
|
+
};
|
|
245
|
+
_input_in: {
|
|
246
|
+
rootPath: string;
|
|
247
|
+
relativePath?: string | undefined;
|
|
248
|
+
line?: number | undefined;
|
|
249
|
+
column?: number | undefined;
|
|
250
|
+
};
|
|
251
|
+
_input_out: {
|
|
252
|
+
rootPath: string;
|
|
253
|
+
relativePath?: string | undefined;
|
|
254
|
+
line?: number | undefined;
|
|
255
|
+
column?: number | undefined;
|
|
256
|
+
};
|
|
257
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
258
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
259
|
+
}, void>;
|
|
260
|
+
openConfigEditor: import("@trpc/server").BuildProcedure<"mutation", {
|
|
261
|
+
_config: import("@trpc/server").RootConfig<{
|
|
262
|
+
ctx: {
|
|
263
|
+
session: import("../index.js").Session;
|
|
264
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
265
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
266
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
267
|
+
watcher: {
|
|
268
|
+
watch({ path, watchPaths, }: {
|
|
269
|
+
path: string;
|
|
270
|
+
watchPaths?: string[] | undefined;
|
|
271
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
272
|
+
unwatchAll(): Promise<void>;
|
|
273
|
+
};
|
|
274
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
275
|
+
dispose(): Promise<void>;
|
|
276
|
+
};
|
|
277
|
+
meta: object;
|
|
278
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
279
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
280
|
+
}>;
|
|
281
|
+
_ctx_out: {
|
|
282
|
+
session: import("../index.js").Session;
|
|
283
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
284
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
285
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
286
|
+
watcher: {
|
|
287
|
+
watch({ path, watchPaths, }: {
|
|
288
|
+
path: string;
|
|
289
|
+
watchPaths?: string[] | undefined;
|
|
290
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
291
|
+
unwatchAll(): Promise<void>;
|
|
292
|
+
};
|
|
293
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
294
|
+
dispose(): Promise<void>;
|
|
295
|
+
};
|
|
296
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
|
297
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
|
298
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
299
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
300
|
+
_meta: object;
|
|
301
|
+
}, void>;
|
|
302
|
+
openFilePath: import("@trpc/server").BuildProcedure<"mutation", {
|
|
303
|
+
_config: import("@trpc/server").RootConfig<{
|
|
304
|
+
ctx: {
|
|
305
|
+
session: import("../index.js").Session;
|
|
306
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
307
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
308
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
309
|
+
watcher: {
|
|
310
|
+
watch({ path, watchPaths, }: {
|
|
311
|
+
path: string;
|
|
312
|
+
watchPaths?: string[] | undefined;
|
|
313
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
314
|
+
unwatchAll(): Promise<void>;
|
|
315
|
+
};
|
|
316
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
317
|
+
dispose(): Promise<void>;
|
|
318
|
+
};
|
|
319
|
+
meta: object;
|
|
320
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
321
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
322
|
+
}>;
|
|
323
|
+
_meta: object;
|
|
324
|
+
_ctx_out: {
|
|
325
|
+
session: import("../index.js").Session;
|
|
326
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
327
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
328
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
329
|
+
watcher: {
|
|
330
|
+
watch({ path, watchPaths, }: {
|
|
331
|
+
path: string;
|
|
332
|
+
watchPaths?: string[] | undefined;
|
|
333
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
334
|
+
unwatchAll(): Promise<void>;
|
|
335
|
+
};
|
|
336
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
337
|
+
dispose(): Promise<void>;
|
|
338
|
+
};
|
|
339
|
+
_input_in: {
|
|
340
|
+
rootPath: string;
|
|
341
|
+
relativePath?: string | undefined;
|
|
342
|
+
};
|
|
343
|
+
_input_out: {
|
|
344
|
+
rootPath: string;
|
|
345
|
+
relativePath?: string | undefined;
|
|
346
|
+
};
|
|
347
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
348
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
349
|
+
}, void>;
|
|
350
|
+
reportMetric: import("@trpc/server").BuildProcedure<"mutation", {
|
|
351
|
+
_config: import("@trpc/server").RootConfig<{
|
|
352
|
+
ctx: {
|
|
353
|
+
session: import("../index.js").Session;
|
|
354
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
355
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
356
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
357
|
+
watcher: {
|
|
358
|
+
watch({ path, watchPaths, }: {
|
|
359
|
+
path: string;
|
|
360
|
+
watchPaths?: string[] | undefined;
|
|
361
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
362
|
+
unwatchAll(): Promise<void>;
|
|
363
|
+
};
|
|
364
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
365
|
+
dispose(): Promise<void>;
|
|
366
|
+
};
|
|
367
|
+
meta: object;
|
|
368
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
369
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
370
|
+
}>;
|
|
371
|
+
_meta: object;
|
|
372
|
+
_ctx_out: {
|
|
373
|
+
session: import("../index.js").Session;
|
|
374
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
375
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
376
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
377
|
+
watcher: {
|
|
378
|
+
watch({ path, watchPaths, }: {
|
|
379
|
+
path: string;
|
|
380
|
+
watchPaths?: string[] | undefined;
|
|
381
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
382
|
+
unwatchAll(): Promise<void>;
|
|
383
|
+
};
|
|
384
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
385
|
+
dispose(): Promise<void>;
|
|
386
|
+
};
|
|
387
|
+
_input_in: {
|
|
388
|
+
value: number;
|
|
389
|
+
metric: string;
|
|
390
|
+
};
|
|
391
|
+
_input_out: {
|
|
392
|
+
value: number;
|
|
393
|
+
metric: string;
|
|
394
|
+
};
|
|
395
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
396
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
397
|
+
}, void>;
|
|
398
|
+
validatePackageOverride: import("@trpc/server").BuildProcedure<"query", {
|
|
399
|
+
_config: import("@trpc/server").RootConfig<{
|
|
400
|
+
ctx: {
|
|
401
|
+
session: import("../index.js").Session;
|
|
402
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
403
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
404
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
405
|
+
watcher: {
|
|
406
|
+
watch({ path, watchPaths, }: {
|
|
407
|
+
path: string;
|
|
408
|
+
watchPaths?: string[] | undefined;
|
|
409
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
410
|
+
unwatchAll(): Promise<void>;
|
|
411
|
+
};
|
|
412
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
413
|
+
dispose(): Promise<void>;
|
|
414
|
+
};
|
|
415
|
+
meta: object;
|
|
416
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
|
417
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
418
|
+
}>;
|
|
419
|
+
_meta: object;
|
|
420
|
+
_ctx_out: {
|
|
421
|
+
session: import("../index.js").Session;
|
|
422
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
423
|
+
rootSpan: import("@opentelemetry/api").Span | undefined;
|
|
424
|
+
reporter: import("@ms-cloudpack/task-reporter").TaskReporter;
|
|
425
|
+
watcher: {
|
|
426
|
+
watch({ path, watchPaths, }: {
|
|
427
|
+
path: string;
|
|
428
|
+
watchPaths?: string[] | undefined;
|
|
429
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
430
|
+
unwatchAll(): Promise<void>;
|
|
431
|
+
};
|
|
432
|
+
packages: import("@ms-cloudpack/bundler-types").PackageDefinitionsCache;
|
|
433
|
+
dispose(): Promise<void>;
|
|
434
|
+
};
|
|
435
|
+
_input_in: {
|
|
436
|
+
packageName: string;
|
|
437
|
+
importPath: string;
|
|
438
|
+
};
|
|
439
|
+
_input_out: {
|
|
440
|
+
packageName: string;
|
|
441
|
+
importPath: string;
|
|
442
|
+
};
|
|
443
|
+
_output_in: {
|
|
444
|
+
fixable: boolean;
|
|
445
|
+
};
|
|
446
|
+
_output_out: {
|
|
447
|
+
fixable: boolean;
|
|
448
|
+
};
|
|
449
|
+
}, unknown>;
|
|
450
|
+
}>;
|
|
451
|
+
};
|
|
452
|
+
export type AppRouter = ReturnType<typeof createAppRouter>['router'];
|
|
453
|
+
//# sourceMappingURL=createAppRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAppRouter.d.ts","sourceRoot":"","sources":["../../src/trpc/createAppRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAGzC,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK9B;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAppRouter.js","sourceRoot":"","sources":["../../src/trpc/createAppRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,IAAI;QACJ,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC;KACnC,CAAC;AACJ,CAAC","sourcesContent":["import * as apis from '../apis/index.js';\nimport { createRouterFromApis } from './createRouterFromApis.js';\n\nexport function createAppRouter() {\n return {\n apis,\n router: createRouterFromApis(apis),\n };\n}\n\nexport type AppRouter = ReturnType<typeof createAppRouter>['router'];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DataBus } from '@ms-cloudpack/data-bus';
|
|
2
|
+
import type { CreateTRPCProxyClient } from '@trpc/client';
|
|
3
|
+
import type { AppRouter } from './createAppRouter.js';
|
|
4
|
+
import type { TaskReporter } from '@ms-cloudpack/task-reporter';
|
|
5
|
+
export type CloudpackClient = CreateTRPCProxyClient<AppRouter> & {
|
|
6
|
+
bus: DataBus;
|
|
7
|
+
close: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export declare function createCloudpackClient(options: {
|
|
10
|
+
url: string;
|
|
11
|
+
reporter?: TaskReporter;
|
|
12
|
+
}): Promise<CloudpackClient>;
|
|
13
|
+
//# sourceMappingURL=createCloudpackClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCloudpackClient.d.ts","sourceRoot":"","sources":["../../src/trpc/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,SAAS,CAAC,GAAG;IAC/D,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAEF,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB,GAAG,OAAO,CAAC,eAAe,CAAC,CAyD3B"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createDataBus } from '@ms-cloudpack/data-bus';
|
|
2
|
+
import { createTRPCProxyClient, createWSClient, httpBatchLink, splitLink, wsLink } from '@trpc/client';
|
|
3
|
+
import { ensureWebsocketDefined } from '../utilities/ensureWebsocketDefined.js';
|
|
4
|
+
import { connectBusToClient } from './connectBusToClient.js';
|
|
5
|
+
import { ignoreSelfSignedCertErrors } from '../utilities/ignoreSelfSignedCertErrors.js';
|
|
6
|
+
export async function createCloudpackClient(options) {
|
|
7
|
+
// We polyfill websocket in node conditions.
|
|
8
|
+
await ensureWebsocketDefined();
|
|
9
|
+
ignoreSelfSignedCertErrors({ reporter: options.reporter });
|
|
10
|
+
//
|
|
11
|
+
// Create the client.
|
|
12
|
+
const wsClient = createWSClient(options);
|
|
13
|
+
const tempUrl = new URL(options.url);
|
|
14
|
+
// Replace the protocol with http so that we can use the same url for http requests.
|
|
15
|
+
const isSSL = tempUrl.protocol === 'wss:';
|
|
16
|
+
tempUrl.protocol = isSSL ? 'https:' : 'http:';
|
|
17
|
+
const url = tempUrl.toString().replace(/\/$/, '');
|
|
18
|
+
const client = createTRPCProxyClient({
|
|
19
|
+
links: [
|
|
20
|
+
splitLink({
|
|
21
|
+
condition(op) {
|
|
22
|
+
return op.type === 'subscription';
|
|
23
|
+
},
|
|
24
|
+
true: wsLink({
|
|
25
|
+
client: wsClient,
|
|
26
|
+
}),
|
|
27
|
+
false: httpBatchLink({
|
|
28
|
+
url,
|
|
29
|
+
}),
|
|
30
|
+
}),
|
|
31
|
+
],
|
|
32
|
+
});
|
|
33
|
+
// Connect the bus to the client so that local requests are sent remotely.
|
|
34
|
+
const bus = createDataBus();
|
|
35
|
+
connectBusToClient({ bus, client });
|
|
36
|
+
// Ugh. This is a hack to get around the fact that the client is a proxy.
|
|
37
|
+
return new Proxy({
|
|
38
|
+
bus,
|
|
39
|
+
close: () => {
|
|
40
|
+
wsClient.close();
|
|
41
|
+
bus.dispose();
|
|
42
|
+
},
|
|
43
|
+
}, {
|
|
44
|
+
get(target, prop) {
|
|
45
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
46
|
+
if (target.hasOwnProperty(prop)) {
|
|
47
|
+
return target[prop];
|
|
48
|
+
}
|
|
49
|
+
return client[prop];
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=createCloudpackClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../../src/trpc/createCloudpackClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAQxF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAG3C;IACC,4CAA4C;IAC5C,MAAM,sBAAsB,EAAE,CAAC;IAE/B,0BAA0B,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAE3D,EAAE;IACF,qBAAqB;IACrB,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAErC,oFAAoF;IACpF,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,MAAM,CAAC;IAC1C,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;IAE9C,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAClD,MAAM,MAAM,GAAG,qBAAqB,CAAY;QAC9C,KAAK,EAAE;YACL,SAAS,CAAC;gBACR,SAAS,CAAC,EAAE;oBACV,OAAO,EAAE,CAAC,IAAI,KAAK,cAAc,CAAC;gBACpC,CAAC;gBACD,IAAI,EAAE,MAAM,CAAC;oBACX,MAAM,EAAE,QAAQ;iBACjB,CAAC;gBACF,KAAK,EAAE,aAAa,CAAC;oBACnB,GAAG;iBACJ,CAAC;aACH,CAAC;SACH;KACF,CAA+B,CAAC;IAEjC,0EAA0E;IAC1E,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;IAE5B,kBAAkB,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;IAEpC,yEAAyE;IACzE,OAAO,IAAI,KAAK,CACd;QACE,GAAG;QACH,KAAK,EAAE,GAAG,EAAE;YACV,QAAQ,CAAC,KAAK,EAAE,CAAC;YACjB,GAAG,CAAC,OAAO,EAAE,CAAC;QAChB,CAAC;KACF,EACD;QACE,GAAG,CAAC,MAAM,EAAE,IAAI;YACd,iDAAiD;YACjD,IAAI,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;gBAC/B,OAAO,MAAM,CAAC,IAA2B,CAAC,CAAC;aAC5C;YAED,OAAO,MAAM,CAAC,IAA6B,CAAC,CAAC;QAC/C,CAAC;KACF,CACiB,CAAC;AACvB,CAAC","sourcesContent":["import type { DataBus } from '@ms-cloudpack/data-bus';\nimport { createDataBus } from '@ms-cloudpack/data-bus';\nimport type { CreateTRPCProxyClient } from '@trpc/client';\nimport { createTRPCProxyClient, createWSClient, httpBatchLink, splitLink, wsLink } from '@trpc/client';\nimport { ensureWebsocketDefined } from '../utilities/ensureWebsocketDefined.js';\nimport type { AppRouter } from './createAppRouter.js';\nimport { connectBusToClient } from './connectBusToClient.js';\nimport { ignoreSelfSignedCertErrors } from '../utilities/ignoreSelfSignedCertErrors.js';\nimport type { TaskReporter } from '@ms-cloudpack/task-reporter';\n\nexport type CloudpackClient = CreateTRPCProxyClient<AppRouter> & {\n bus: DataBus;\n close: () => Promise<void>;\n};\n\nexport async function createCloudpackClient(options: {\n url: string;\n reporter?: TaskReporter;\n}): Promise<CloudpackClient> {\n // We polyfill websocket in node conditions.\n await ensureWebsocketDefined();\n\n ignoreSelfSignedCertErrors({ reporter: options.reporter });\n\n //\n // Create the client.\n const wsClient = createWSClient(options);\n const tempUrl = new URL(options.url);\n\n // Replace the protocol with http so that we can use the same url for http requests.\n const isSSL = tempUrl.protocol === 'wss:';\n tempUrl.protocol = isSSL ? 'https:' : 'http:';\n\n const url = tempUrl.toString().replace(/\\/$/, '');\n const client = createTRPCProxyClient<AppRouter>({\n links: [\n splitLink({\n condition(op) {\n return op.type === 'subscription';\n },\n true: wsLink({\n client: wsClient,\n }),\n false: httpBatchLink({\n url,\n }),\n }),\n ],\n }) as unknown as CloudpackClient;\n\n // Connect the bus to the client so that local requests are sent remotely.\n const bus = createDataBus();\n\n connectBusToClient({ bus, client });\n\n // Ugh. This is a hack to get around the fact that the client is a proxy.\n return new Proxy(\n {\n bus,\n close: () => {\n wsClient.close();\n bus.dispose();\n },\n },\n {\n get(target, prop) {\n // eslint-disable-next-line no-prototype-builtins\n if (target.hasOwnProperty(prop)) {\n return target[prop as keyof typeof target];\n }\n\n return client[prop as keyof CloudpackClient];\n },\n },\n ) as CloudpackClient;\n}\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { TaskReporter } from '@ms-cloudpack/task-reporter';
|
|
2
|
+
import type { Span } from '@ms-cloudpack/telemetry';
|
|
3
|
+
import type { Session } from '../types/Session.js';
|
|
4
|
+
import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
|
|
5
|
+
export declare function createCloudpackServer(options: {
|
|
6
|
+
session: Session;
|
|
7
|
+
rootSpan: Span | undefined;
|
|
8
|
+
reporter: TaskReporter;
|
|
9
|
+
packages: PackageDefinitionsCache;
|
|
10
|
+
}): Promise<{
|
|
11
|
+
url: string;
|
|
12
|
+
port: number;
|
|
13
|
+
ctx: {
|
|
14
|
+
session: Session;
|
|
15
|
+
bus: import("@ms-cloudpack/data-bus").DataBus;
|
|
16
|
+
rootSpan: Span | undefined;
|
|
17
|
+
reporter: TaskReporter;
|
|
18
|
+
watcher: {
|
|
19
|
+
watch({ path, watchPaths, }: {
|
|
20
|
+
path: string;
|
|
21
|
+
watchPaths?: string[] | undefined;
|
|
22
|
+
}, onPackageChanged: () => void): () => Promise<void>;
|
|
23
|
+
unwatchAll(): Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
packages: PackageDefinitionsCache;
|
|
26
|
+
dispose(): Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
close: () => Promise<void>;
|
|
29
|
+
addPackageOverride: (options: {
|
|
30
|
+
packageName: string;
|
|
31
|
+
importPath: string;
|
|
32
|
+
filename?: string | undefined;
|
|
33
|
+
}) => Promise<void>;
|
|
34
|
+
getData: (options: {
|
|
35
|
+
path: string[];
|
|
36
|
+
}) => any;
|
|
37
|
+
getSessionId: (options: unknown) => string | undefined;
|
|
38
|
+
onDataChanged: (options: {
|
|
39
|
+
path: string[];
|
|
40
|
+
}) => any;
|
|
41
|
+
openCodeEditor: (options: {
|
|
42
|
+
rootPath: string;
|
|
43
|
+
relativePath?: string | undefined;
|
|
44
|
+
line?: number | undefined;
|
|
45
|
+
column?: number | undefined;
|
|
46
|
+
}) => Promise<void>;
|
|
47
|
+
openConfigEditor: (options: unknown) => Promise<void>;
|
|
48
|
+
openFilePath: (options: {
|
|
49
|
+
rootPath: string;
|
|
50
|
+
relativePath?: string | undefined;
|
|
51
|
+
}) => Promise<void>;
|
|
52
|
+
reportMetric: (options: {
|
|
53
|
+
metric: string;
|
|
54
|
+
value: number;
|
|
55
|
+
}) => void;
|
|
56
|
+
validatePackageOverride: (options: {
|
|
57
|
+
packageName: string;
|
|
58
|
+
importPath: string;
|
|
59
|
+
}) => Promise<{
|
|
60
|
+
fixable: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
}>;
|
|
63
|
+
//# sourceMappingURL=createCloudpackServer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCloudpackServer.d.ts","sourceRoot":"","sources":["../../src/trpc/createCloudpackServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,uBAAuB,CAAC;CACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCA"}
|