callman-mcp 0.6.1 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +14 -7
- package/dist/client/api.d.ts +17 -4
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +6 -1
- package/dist/client/api.js.map +1 -1
- package/dist/client/types.d.ts +19 -4
- package/dist/client/types.d.ts.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -1
- package/dist/config.js.map +1 -1
- package/dist/domain/diagram/patch.d.ts +2 -2
- package/dist/domain/requestIntegrations.d.ts +13 -468
- package/dist/domain/requestIntegrations.d.ts.map +1 -1
- package/dist/domain/requestIntegrations.js +4 -95
- package/dist/domain/requestIntegrations.js.map +1 -1
- package/dist/domain/requestShape.d.ts +37 -679
- package/dist/domain/requestShape.d.ts.map +1 -1
- package/dist/domain/requestShape.js +2 -2
- package/dist/domain/requestShape.js.map +1 -1
- package/dist/domain/scenario/build.d.ts +6 -6
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/dist/resources/docs/collectionScripts.d.ts +2 -0
- package/dist/resources/docs/collectionScripts.d.ts.map +1 -0
- package/dist/resources/docs/collectionScripts.js +51 -0
- package/dist/resources/docs/collectionScripts.js.map +1 -0
- package/dist/resources/docs/overview.d.ts +1 -1
- package/dist/resources/docs/overview.d.ts.map +1 -1
- package/dist/resources/docs/overview.js +6 -2
- package/dist/resources/docs/overview.js.map +1 -1
- package/dist/resources/docs/requestSchema.d.ts +1 -1
- package/dist/resources/docs/requestSchema.d.ts.map +1 -1
- package/dist/resources/docs/requestSchema.js +11 -16
- package/dist/resources/docs/requestSchema.js.map +1 -1
- package/dist/resources/generated/aiPacks.d.ts +1 -1
- package/dist/resources/generated/aiPacks.js +5 -5
- package/dist/resources/generated/aiPacks.js.map +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +3 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/run/executeCollection.d.ts.map +1 -1
- package/dist/run/executeCollection.js +24 -4
- package/dist/run/executeCollection.js.map +1 -1
- package/dist/run/loadBundle.d.ts.map +1 -1
- package/dist/run/loadBundle.js +77 -5
- package/dist/run/loadBundle.js.map +1 -1
- package/dist/run/summarize.d.ts +28 -4
- package/dist/run/summarize.d.ts.map +1 -1
- package/dist/run/summarize.js +19 -1
- package/dist/run/summarize.js.map +1 -1
- package/dist/run/types.d.ts +6 -1
- package/dist/run/types.d.ts.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +13 -2
- package/dist/server.js.map +1 -1
- package/dist/tools/catalog.d.ts.map +1 -1
- package/dist/tools/catalog.js +3 -0
- package/dist/tools/catalog.js.map +1 -1
- package/dist/tools/collections.d.ts.map +1 -1
- package/dist/tools/collections.js +137 -16
- package/dist/tools/collections.js.map +1 -1
- package/dist/tools/index.d.ts +9 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +29 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/loadTest.d.ts +4 -0
- package/dist/tools/loadTest.d.ts.map +1 -0
- package/dist/tools/loadTest.js +299 -0
- package/dist/tools/loadTest.js.map +1 -0
- package/dist/tools/requests.js +3 -3
- package/dist/tools/requests.js.map +1 -1
- package/dist/tools/run.d.ts +17 -0
- package/dist/tools/run.d.ts.map +1 -1
- package/dist/tools/run.js +20 -30
- package/dist/tools/run.js.map +1 -1
- package/dist-cjs/client/api.js +6 -1
- package/dist-cjs/config.js +10 -1
- package/dist-cjs/domain/requestIntegrations.js +4 -95
- package/dist-cjs/domain/requestShape.js +2 -2
- package/dist-cjs/resources/docs/collectionScripts.js +53 -0
- package/dist-cjs/resources/docs/overview.js +6 -2
- package/dist-cjs/resources/docs/requestSchema.js +11 -16
- package/dist-cjs/resources/generated/aiPacks.js +5 -5
- package/dist-cjs/resources/index.js +3 -1
- package/dist-cjs/run/executeCollection.js +23 -3
- package/dist-cjs/run/loadBundle.js +77 -5
- package/dist-cjs/run/summarize.js +19 -1
- package/dist-cjs/server.js +13 -2
- package/dist-cjs/tools/catalog.js +3 -0
- package/dist-cjs/tools/collections.js +137 -16
- package/dist-cjs/tools/index.js +32 -7
- package/dist-cjs/tools/loadTest.js +335 -0
- package/dist-cjs/tools/requests.js +3 -3
- package/dist-cjs/tools/run.js +23 -32
- package/package.json +3 -3
|
@@ -50,232 +50,6 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
50
50
|
enabled?: boolean | undefined;
|
|
51
51
|
} | null | undefined;
|
|
52
52
|
}>;
|
|
53
|
-
declare const kafkaSchema: z.ZodObject<{
|
|
54
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
-
connectionId: z.ZodOptional<z.ZodString>;
|
|
56
|
-
topic: z.ZodOptional<z.ZodString>;
|
|
57
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
58
|
-
matchMode: z.ZodOptional<z.ZodEnum<["regex", "rules"]>>;
|
|
59
|
-
matchPattern: z.ZodOptional<z.ZodString>;
|
|
60
|
-
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
-
id: z.ZodOptional<z.ZodString>;
|
|
62
|
-
name: z.ZodString;
|
|
63
|
-
field: z.ZodString;
|
|
64
|
-
operator: z.ZodEnum<["equals", "not_equals", "exists", "gt", "lt"]>;
|
|
65
|
-
valueType: z.ZodOptional<z.ZodEnum<["static", "template"]>>;
|
|
66
|
-
value: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, "strict", z.ZodTypeAny, {
|
|
68
|
-
name: string;
|
|
69
|
-
field: string;
|
|
70
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
71
|
-
value?: string | undefined;
|
|
72
|
-
id?: string | undefined;
|
|
73
|
-
valueType?: "static" | "template" | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
name: string;
|
|
76
|
-
field: string;
|
|
77
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
78
|
-
value?: string | undefined;
|
|
79
|
-
id?: string | undefined;
|
|
80
|
-
valueType?: "static" | "template" | undefined;
|
|
81
|
-
}>, "many">>;
|
|
82
|
-
prePublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
-
connectionId: z.ZodString;
|
|
85
|
-
topic: z.ZodString;
|
|
86
|
-
valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
|
|
87
|
-
key: z.ZodOptional<z.ZodString>;
|
|
88
|
-
value: z.ZodString;
|
|
89
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
|
-
id: z.ZodOptional<z.ZodString>;
|
|
91
|
-
key: z.ZodString;
|
|
92
|
-
value: z.ZodDefault<z.ZodString>;
|
|
93
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
}, "strict", z.ZodTypeAny, {
|
|
95
|
-
key: string;
|
|
96
|
-
value: string;
|
|
97
|
-
id?: string | undefined;
|
|
98
|
-
enabled?: boolean | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
key: string;
|
|
101
|
-
value?: string | undefined;
|
|
102
|
-
id?: string | undefined;
|
|
103
|
-
enabled?: boolean | undefined;
|
|
104
|
-
}>, "many">>;
|
|
105
|
-
continueOnFailure: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
-
}, "strict", z.ZodTypeAny, {
|
|
107
|
-
value: string;
|
|
108
|
-
connectionId: string;
|
|
109
|
-
topic: string;
|
|
110
|
-
key?: string | undefined;
|
|
111
|
-
headers?: {
|
|
112
|
-
key: string;
|
|
113
|
-
value: string;
|
|
114
|
-
id?: string | undefined;
|
|
115
|
-
enabled?: boolean | undefined;
|
|
116
|
-
}[] | undefined;
|
|
117
|
-
enabled?: boolean | undefined;
|
|
118
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
119
|
-
continueOnFailure?: boolean | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
value: string;
|
|
122
|
-
connectionId: string;
|
|
123
|
-
topic: string;
|
|
124
|
-
key?: string | undefined;
|
|
125
|
-
headers?: {
|
|
126
|
-
key: string;
|
|
127
|
-
value?: string | undefined;
|
|
128
|
-
id?: string | undefined;
|
|
129
|
-
enabled?: boolean | undefined;
|
|
130
|
-
}[] | undefined;
|
|
131
|
-
enabled?: boolean | undefined;
|
|
132
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
133
|
-
continueOnFailure?: boolean | undefined;
|
|
134
|
-
}>>>;
|
|
135
|
-
postPublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
136
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
-
connectionId: z.ZodString;
|
|
138
|
-
topic: z.ZodString;
|
|
139
|
-
valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
|
|
140
|
-
key: z.ZodOptional<z.ZodString>;
|
|
141
|
-
value: z.ZodString;
|
|
142
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
-
id: z.ZodOptional<z.ZodString>;
|
|
144
|
-
key: z.ZodString;
|
|
145
|
-
value: z.ZodDefault<z.ZodString>;
|
|
146
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
-
}, "strict", z.ZodTypeAny, {
|
|
148
|
-
key: string;
|
|
149
|
-
value: string;
|
|
150
|
-
id?: string | undefined;
|
|
151
|
-
enabled?: boolean | undefined;
|
|
152
|
-
}, {
|
|
153
|
-
key: string;
|
|
154
|
-
value?: string | undefined;
|
|
155
|
-
id?: string | undefined;
|
|
156
|
-
enabled?: boolean | undefined;
|
|
157
|
-
}>, "many">>;
|
|
158
|
-
continueOnFailure: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
-
}, "strict", z.ZodTypeAny, {
|
|
160
|
-
value: string;
|
|
161
|
-
connectionId: string;
|
|
162
|
-
topic: string;
|
|
163
|
-
key?: string | undefined;
|
|
164
|
-
headers?: {
|
|
165
|
-
key: string;
|
|
166
|
-
value: string;
|
|
167
|
-
id?: string | undefined;
|
|
168
|
-
enabled?: boolean | undefined;
|
|
169
|
-
}[] | undefined;
|
|
170
|
-
enabled?: boolean | undefined;
|
|
171
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
172
|
-
continueOnFailure?: boolean | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
value: string;
|
|
175
|
-
connectionId: string;
|
|
176
|
-
topic: string;
|
|
177
|
-
key?: string | undefined;
|
|
178
|
-
headers?: {
|
|
179
|
-
key: string;
|
|
180
|
-
value?: string | undefined;
|
|
181
|
-
id?: string | undefined;
|
|
182
|
-
enabled?: boolean | undefined;
|
|
183
|
-
}[] | undefined;
|
|
184
|
-
enabled?: boolean | undefined;
|
|
185
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
186
|
-
continueOnFailure?: boolean | undefined;
|
|
187
|
-
}>>>;
|
|
188
|
-
}, "strict", z.ZodTypeAny, {
|
|
189
|
-
timeoutMs?: number | undefined;
|
|
190
|
-
enabled?: boolean | undefined;
|
|
191
|
-
connectionId?: string | undefined;
|
|
192
|
-
topic?: string | undefined;
|
|
193
|
-
matchMode?: "regex" | "rules" | undefined;
|
|
194
|
-
matchPattern?: string | undefined;
|
|
195
|
-
assertions?: {
|
|
196
|
-
name: string;
|
|
197
|
-
field: string;
|
|
198
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
199
|
-
value?: string | undefined;
|
|
200
|
-
id?: string | undefined;
|
|
201
|
-
valueType?: "static" | "template" | undefined;
|
|
202
|
-
}[] | undefined;
|
|
203
|
-
prePublish?: {
|
|
204
|
-
value: string;
|
|
205
|
-
connectionId: string;
|
|
206
|
-
topic: string;
|
|
207
|
-
key?: string | undefined;
|
|
208
|
-
headers?: {
|
|
209
|
-
key: string;
|
|
210
|
-
value: string;
|
|
211
|
-
id?: string | undefined;
|
|
212
|
-
enabled?: boolean | undefined;
|
|
213
|
-
}[] | undefined;
|
|
214
|
-
enabled?: boolean | undefined;
|
|
215
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
216
|
-
continueOnFailure?: boolean | undefined;
|
|
217
|
-
} | null | undefined;
|
|
218
|
-
postPublish?: {
|
|
219
|
-
value: string;
|
|
220
|
-
connectionId: string;
|
|
221
|
-
topic: string;
|
|
222
|
-
key?: string | undefined;
|
|
223
|
-
headers?: {
|
|
224
|
-
key: string;
|
|
225
|
-
value: string;
|
|
226
|
-
id?: string | undefined;
|
|
227
|
-
enabled?: boolean | undefined;
|
|
228
|
-
}[] | undefined;
|
|
229
|
-
enabled?: boolean | undefined;
|
|
230
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
231
|
-
continueOnFailure?: boolean | undefined;
|
|
232
|
-
} | null | undefined;
|
|
233
|
-
}, {
|
|
234
|
-
timeoutMs?: number | undefined;
|
|
235
|
-
enabled?: boolean | undefined;
|
|
236
|
-
connectionId?: string | undefined;
|
|
237
|
-
topic?: string | undefined;
|
|
238
|
-
matchMode?: "regex" | "rules" | undefined;
|
|
239
|
-
matchPattern?: string | undefined;
|
|
240
|
-
assertions?: {
|
|
241
|
-
name: string;
|
|
242
|
-
field: string;
|
|
243
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
244
|
-
value?: string | undefined;
|
|
245
|
-
id?: string | undefined;
|
|
246
|
-
valueType?: "static" | "template" | undefined;
|
|
247
|
-
}[] | undefined;
|
|
248
|
-
prePublish?: {
|
|
249
|
-
value: string;
|
|
250
|
-
connectionId: string;
|
|
251
|
-
topic: string;
|
|
252
|
-
key?: string | undefined;
|
|
253
|
-
headers?: {
|
|
254
|
-
key: string;
|
|
255
|
-
value?: string | undefined;
|
|
256
|
-
id?: string | undefined;
|
|
257
|
-
enabled?: boolean | undefined;
|
|
258
|
-
}[] | undefined;
|
|
259
|
-
enabled?: boolean | undefined;
|
|
260
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
261
|
-
continueOnFailure?: boolean | undefined;
|
|
262
|
-
} | null | undefined;
|
|
263
|
-
postPublish?: {
|
|
264
|
-
value: string;
|
|
265
|
-
connectionId: string;
|
|
266
|
-
topic: string;
|
|
267
|
-
key?: string | undefined;
|
|
268
|
-
headers?: {
|
|
269
|
-
key: string;
|
|
270
|
-
value?: string | undefined;
|
|
271
|
-
id?: string | undefined;
|
|
272
|
-
enabled?: boolean | undefined;
|
|
273
|
-
}[] | undefined;
|
|
274
|
-
enabled?: boolean | undefined;
|
|
275
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
276
|
-
continueOnFailure?: boolean | undefined;
|
|
277
|
-
} | null | undefined;
|
|
278
|
-
}>;
|
|
279
53
|
declare const redisSchema: z.ZodObject<{
|
|
280
54
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
281
55
|
connectionId: z.ZodString;
|
|
@@ -303,6 +77,8 @@ declare const redisSchema: z.ZodObject<{
|
|
|
303
77
|
}, "strict", z.ZodTypeAny, {
|
|
304
78
|
connectionId: string;
|
|
305
79
|
enabled?: boolean | undefined;
|
|
80
|
+
preCommands?: string[] | undefined;
|
|
81
|
+
postCommands?: string[] | undefined;
|
|
306
82
|
assertions?: {
|
|
307
83
|
key: string;
|
|
308
84
|
name: string;
|
|
@@ -310,11 +86,11 @@ declare const redisSchema: z.ZodObject<{
|
|
|
310
86
|
value?: string | undefined;
|
|
311
87
|
id?: string | undefined;
|
|
312
88
|
}[] | undefined;
|
|
313
|
-
preCommands?: string[] | undefined;
|
|
314
|
-
postCommands?: string[] | undefined;
|
|
315
89
|
}, {
|
|
316
90
|
connectionId: string;
|
|
317
91
|
enabled?: boolean | undefined;
|
|
92
|
+
preCommands?: string[] | undefined;
|
|
93
|
+
postCommands?: string[] | undefined;
|
|
318
94
|
assertions?: {
|
|
319
95
|
key: string;
|
|
320
96
|
name: string;
|
|
@@ -322,8 +98,6 @@ declare const redisSchema: z.ZodObject<{
|
|
|
322
98
|
value?: string | undefined;
|
|
323
99
|
id?: string | undefined;
|
|
324
100
|
}[] | undefined;
|
|
325
|
-
preCommands?: string[] | undefined;
|
|
326
|
-
postCommands?: string[] | undefined;
|
|
327
101
|
}>;
|
|
328
102
|
declare const dbAssertionSchema: z.ZodObject<{
|
|
329
103
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -336,16 +110,16 @@ declare const dbAssertionSchema: z.ZodObject<{
|
|
|
336
110
|
}, "strict", z.ZodTypeAny, {
|
|
337
111
|
name: string;
|
|
338
112
|
source: "db_pre" | "db_post";
|
|
339
|
-
field: string;
|
|
340
113
|
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
114
|
+
field: string;
|
|
341
115
|
value?: string | undefined;
|
|
342
116
|
id?: string | undefined;
|
|
343
117
|
valueType?: "static" | "response" | undefined;
|
|
344
118
|
}, {
|
|
345
119
|
name: string;
|
|
346
120
|
source: "db_pre" | "db_post";
|
|
347
|
-
field: string;
|
|
348
121
|
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
122
|
+
field: string;
|
|
349
123
|
value?: string | undefined;
|
|
350
124
|
id?: string | undefined;
|
|
351
125
|
valueType?: "static" | "response" | undefined;
|
|
@@ -401,232 +175,6 @@ export declare const requestIntegrationFields: {
|
|
|
401
175
|
enabled?: boolean | undefined;
|
|
402
176
|
} | null | undefined;
|
|
403
177
|
}>>;
|
|
404
|
-
kafka: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
405
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
406
|
-
connectionId: z.ZodOptional<z.ZodString>;
|
|
407
|
-
topic: z.ZodOptional<z.ZodString>;
|
|
408
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
409
|
-
matchMode: z.ZodOptional<z.ZodEnum<["regex", "rules"]>>;
|
|
410
|
-
matchPattern: z.ZodOptional<z.ZodString>;
|
|
411
|
-
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
412
|
-
id: z.ZodOptional<z.ZodString>;
|
|
413
|
-
name: z.ZodString;
|
|
414
|
-
field: z.ZodString;
|
|
415
|
-
operator: z.ZodEnum<["equals", "not_equals", "exists", "gt", "lt"]>;
|
|
416
|
-
valueType: z.ZodOptional<z.ZodEnum<["static", "template"]>>;
|
|
417
|
-
value: z.ZodOptional<z.ZodString>;
|
|
418
|
-
}, "strict", z.ZodTypeAny, {
|
|
419
|
-
name: string;
|
|
420
|
-
field: string;
|
|
421
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
422
|
-
value?: string | undefined;
|
|
423
|
-
id?: string | undefined;
|
|
424
|
-
valueType?: "static" | "template" | undefined;
|
|
425
|
-
}, {
|
|
426
|
-
name: string;
|
|
427
|
-
field: string;
|
|
428
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
429
|
-
value?: string | undefined;
|
|
430
|
-
id?: string | undefined;
|
|
431
|
-
valueType?: "static" | "template" | undefined;
|
|
432
|
-
}>, "many">>;
|
|
433
|
-
prePublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
434
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
435
|
-
connectionId: z.ZodString;
|
|
436
|
-
topic: z.ZodString;
|
|
437
|
-
valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
|
|
438
|
-
key: z.ZodOptional<z.ZodString>;
|
|
439
|
-
value: z.ZodString;
|
|
440
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
441
|
-
id: z.ZodOptional<z.ZodString>;
|
|
442
|
-
key: z.ZodString;
|
|
443
|
-
value: z.ZodDefault<z.ZodString>;
|
|
444
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
-
}, "strict", z.ZodTypeAny, {
|
|
446
|
-
key: string;
|
|
447
|
-
value: string;
|
|
448
|
-
id?: string | undefined;
|
|
449
|
-
enabled?: boolean | undefined;
|
|
450
|
-
}, {
|
|
451
|
-
key: string;
|
|
452
|
-
value?: string | undefined;
|
|
453
|
-
id?: string | undefined;
|
|
454
|
-
enabled?: boolean | undefined;
|
|
455
|
-
}>, "many">>;
|
|
456
|
-
continueOnFailure: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
-
}, "strict", z.ZodTypeAny, {
|
|
458
|
-
value: string;
|
|
459
|
-
connectionId: string;
|
|
460
|
-
topic: string;
|
|
461
|
-
key?: string | undefined;
|
|
462
|
-
headers?: {
|
|
463
|
-
key: string;
|
|
464
|
-
value: string;
|
|
465
|
-
id?: string | undefined;
|
|
466
|
-
enabled?: boolean | undefined;
|
|
467
|
-
}[] | undefined;
|
|
468
|
-
enabled?: boolean | undefined;
|
|
469
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
470
|
-
continueOnFailure?: boolean | undefined;
|
|
471
|
-
}, {
|
|
472
|
-
value: string;
|
|
473
|
-
connectionId: string;
|
|
474
|
-
topic: string;
|
|
475
|
-
key?: string | undefined;
|
|
476
|
-
headers?: {
|
|
477
|
-
key: string;
|
|
478
|
-
value?: string | undefined;
|
|
479
|
-
id?: string | undefined;
|
|
480
|
-
enabled?: boolean | undefined;
|
|
481
|
-
}[] | undefined;
|
|
482
|
-
enabled?: boolean | undefined;
|
|
483
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
484
|
-
continueOnFailure?: boolean | undefined;
|
|
485
|
-
}>>>;
|
|
486
|
-
postPublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
487
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
-
connectionId: z.ZodString;
|
|
489
|
-
topic: z.ZodString;
|
|
490
|
-
valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
|
|
491
|
-
key: z.ZodOptional<z.ZodString>;
|
|
492
|
-
value: z.ZodString;
|
|
493
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
494
|
-
id: z.ZodOptional<z.ZodString>;
|
|
495
|
-
key: z.ZodString;
|
|
496
|
-
value: z.ZodDefault<z.ZodString>;
|
|
497
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
498
|
-
}, "strict", z.ZodTypeAny, {
|
|
499
|
-
key: string;
|
|
500
|
-
value: string;
|
|
501
|
-
id?: string | undefined;
|
|
502
|
-
enabled?: boolean | undefined;
|
|
503
|
-
}, {
|
|
504
|
-
key: string;
|
|
505
|
-
value?: string | undefined;
|
|
506
|
-
id?: string | undefined;
|
|
507
|
-
enabled?: boolean | undefined;
|
|
508
|
-
}>, "many">>;
|
|
509
|
-
continueOnFailure: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
-
}, "strict", z.ZodTypeAny, {
|
|
511
|
-
value: string;
|
|
512
|
-
connectionId: string;
|
|
513
|
-
topic: string;
|
|
514
|
-
key?: string | undefined;
|
|
515
|
-
headers?: {
|
|
516
|
-
key: string;
|
|
517
|
-
value: string;
|
|
518
|
-
id?: string | undefined;
|
|
519
|
-
enabled?: boolean | undefined;
|
|
520
|
-
}[] | undefined;
|
|
521
|
-
enabled?: boolean | undefined;
|
|
522
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
523
|
-
continueOnFailure?: boolean | undefined;
|
|
524
|
-
}, {
|
|
525
|
-
value: string;
|
|
526
|
-
connectionId: string;
|
|
527
|
-
topic: string;
|
|
528
|
-
key?: string | undefined;
|
|
529
|
-
headers?: {
|
|
530
|
-
key: string;
|
|
531
|
-
value?: string | undefined;
|
|
532
|
-
id?: string | undefined;
|
|
533
|
-
enabled?: boolean | undefined;
|
|
534
|
-
}[] | undefined;
|
|
535
|
-
enabled?: boolean | undefined;
|
|
536
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
537
|
-
continueOnFailure?: boolean | undefined;
|
|
538
|
-
}>>>;
|
|
539
|
-
}, "strict", z.ZodTypeAny, {
|
|
540
|
-
timeoutMs?: number | undefined;
|
|
541
|
-
enabled?: boolean | undefined;
|
|
542
|
-
connectionId?: string | undefined;
|
|
543
|
-
topic?: string | undefined;
|
|
544
|
-
matchMode?: "regex" | "rules" | undefined;
|
|
545
|
-
matchPattern?: string | undefined;
|
|
546
|
-
assertions?: {
|
|
547
|
-
name: string;
|
|
548
|
-
field: string;
|
|
549
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
550
|
-
value?: string | undefined;
|
|
551
|
-
id?: string | undefined;
|
|
552
|
-
valueType?: "static" | "template" | undefined;
|
|
553
|
-
}[] | undefined;
|
|
554
|
-
prePublish?: {
|
|
555
|
-
value: string;
|
|
556
|
-
connectionId: string;
|
|
557
|
-
topic: string;
|
|
558
|
-
key?: string | undefined;
|
|
559
|
-
headers?: {
|
|
560
|
-
key: string;
|
|
561
|
-
value: string;
|
|
562
|
-
id?: string | undefined;
|
|
563
|
-
enabled?: boolean | undefined;
|
|
564
|
-
}[] | undefined;
|
|
565
|
-
enabled?: boolean | undefined;
|
|
566
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
567
|
-
continueOnFailure?: boolean | undefined;
|
|
568
|
-
} | null | undefined;
|
|
569
|
-
postPublish?: {
|
|
570
|
-
value: string;
|
|
571
|
-
connectionId: string;
|
|
572
|
-
topic: string;
|
|
573
|
-
key?: string | undefined;
|
|
574
|
-
headers?: {
|
|
575
|
-
key: string;
|
|
576
|
-
value: string;
|
|
577
|
-
id?: string | undefined;
|
|
578
|
-
enabled?: boolean | undefined;
|
|
579
|
-
}[] | undefined;
|
|
580
|
-
enabled?: boolean | undefined;
|
|
581
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
582
|
-
continueOnFailure?: boolean | undefined;
|
|
583
|
-
} | null | undefined;
|
|
584
|
-
}, {
|
|
585
|
-
timeoutMs?: number | undefined;
|
|
586
|
-
enabled?: boolean | undefined;
|
|
587
|
-
connectionId?: string | undefined;
|
|
588
|
-
topic?: string | undefined;
|
|
589
|
-
matchMode?: "regex" | "rules" | undefined;
|
|
590
|
-
matchPattern?: string | undefined;
|
|
591
|
-
assertions?: {
|
|
592
|
-
name: string;
|
|
593
|
-
field: string;
|
|
594
|
-
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
595
|
-
value?: string | undefined;
|
|
596
|
-
id?: string | undefined;
|
|
597
|
-
valueType?: "static" | "template" | undefined;
|
|
598
|
-
}[] | undefined;
|
|
599
|
-
prePublish?: {
|
|
600
|
-
value: string;
|
|
601
|
-
connectionId: string;
|
|
602
|
-
topic: string;
|
|
603
|
-
key?: string | undefined;
|
|
604
|
-
headers?: {
|
|
605
|
-
key: string;
|
|
606
|
-
value?: string | undefined;
|
|
607
|
-
id?: string | undefined;
|
|
608
|
-
enabled?: boolean | undefined;
|
|
609
|
-
}[] | undefined;
|
|
610
|
-
enabled?: boolean | undefined;
|
|
611
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
612
|
-
continueOnFailure?: boolean | undefined;
|
|
613
|
-
} | null | undefined;
|
|
614
|
-
postPublish?: {
|
|
615
|
-
value: string;
|
|
616
|
-
connectionId: string;
|
|
617
|
-
topic: string;
|
|
618
|
-
key?: string | undefined;
|
|
619
|
-
headers?: {
|
|
620
|
-
key: string;
|
|
621
|
-
value?: string | undefined;
|
|
622
|
-
id?: string | undefined;
|
|
623
|
-
enabled?: boolean | undefined;
|
|
624
|
-
}[] | undefined;
|
|
625
|
-
enabled?: boolean | undefined;
|
|
626
|
-
valueFormat?: "json" | "raw" | undefined;
|
|
627
|
-
continueOnFailure?: boolean | undefined;
|
|
628
|
-
} | null | undefined;
|
|
629
|
-
}>>>;
|
|
630
178
|
redis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
631
179
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
632
180
|
connectionId: z.ZodString;
|
|
@@ -654,6 +202,8 @@ export declare const requestIntegrationFields: {
|
|
|
654
202
|
}, "strict", z.ZodTypeAny, {
|
|
655
203
|
connectionId: string;
|
|
656
204
|
enabled?: boolean | undefined;
|
|
205
|
+
preCommands?: string[] | undefined;
|
|
206
|
+
postCommands?: string[] | undefined;
|
|
657
207
|
assertions?: {
|
|
658
208
|
key: string;
|
|
659
209
|
name: string;
|
|
@@ -661,11 +211,11 @@ export declare const requestIntegrationFields: {
|
|
|
661
211
|
value?: string | undefined;
|
|
662
212
|
id?: string | undefined;
|
|
663
213
|
}[] | undefined;
|
|
664
|
-
preCommands?: string[] | undefined;
|
|
665
|
-
postCommands?: string[] | undefined;
|
|
666
214
|
}, {
|
|
667
215
|
connectionId: string;
|
|
668
216
|
enabled?: boolean | undefined;
|
|
217
|
+
preCommands?: string[] | undefined;
|
|
218
|
+
postCommands?: string[] | undefined;
|
|
669
219
|
assertions?: {
|
|
670
220
|
key: string;
|
|
671
221
|
name: string;
|
|
@@ -673,8 +223,6 @@ export declare const requestIntegrationFields: {
|
|
|
673
223
|
value?: string | undefined;
|
|
674
224
|
id?: string | undefined;
|
|
675
225
|
}[] | undefined;
|
|
676
|
-
preCommands?: string[] | undefined;
|
|
677
|
-
postCommands?: string[] | undefined;
|
|
678
226
|
}>>>;
|
|
679
227
|
dbAssertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
680
228
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -687,31 +235,28 @@ export declare const requestIntegrationFields: {
|
|
|
687
235
|
}, "strict", z.ZodTypeAny, {
|
|
688
236
|
name: string;
|
|
689
237
|
source: "db_pre" | "db_post";
|
|
690
|
-
field: string;
|
|
691
238
|
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
239
|
+
field: string;
|
|
692
240
|
value?: string | undefined;
|
|
693
241
|
id?: string | undefined;
|
|
694
242
|
valueType?: "static" | "response" | undefined;
|
|
695
243
|
}, {
|
|
696
244
|
name: string;
|
|
697
245
|
source: "db_pre" | "db_post";
|
|
698
|
-
field: string;
|
|
699
246
|
operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
|
|
247
|
+
field: string;
|
|
700
248
|
value?: string | undefined;
|
|
701
249
|
id?: string | undefined;
|
|
702
250
|
valueType?: "static" | "response" | undefined;
|
|
703
251
|
}>, "many">>;
|
|
704
|
-
kafkaScript: z.ZodOptional<z.ZodString>;
|
|
705
252
|
};
|
|
706
253
|
type IntegrationInput = {
|
|
707
254
|
database?: z.infer<typeof databaseSchema>;
|
|
708
|
-
kafka?: z.infer<typeof kafkaSchema> | null;
|
|
709
255
|
redis?: z.infer<typeof redisSchema> | null;
|
|
710
256
|
dbAssertions?: Array<z.infer<typeof dbAssertionSchema>>;
|
|
711
|
-
kafkaScript?: string;
|
|
712
257
|
};
|
|
713
258
|
export declare const hasIntegrations: (input: IntegrationInput) => boolean;
|
|
714
|
-
export type ConnectionResolver = (ref: string, type: "database" | "
|
|
259
|
+
export type ConnectionResolver = (ref: string, type: "database" | "redis", where: string) => string;
|
|
715
260
|
export declare const connectionResolver: (connections: ConnectionRecord[]) => ConnectionResolver;
|
|
716
261
|
export declare const toIntegrationPayload: (input: IntegrationInput, resolve: ConnectionResolver, current?: ApiRequest) => Record<string, unknown>;
|
|
717
262
|
export declare const integrationsInputView: (request: ApiRequest) => Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestIntegrations.d.ts","sourceRoot":"","sources":["../../src/domain/requestIntegrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAoBvE,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM4D,CAAC;
|
|
1
|
+
{"version":3,"file":"requestIntegrations.d.ts","sourceRoot":"","sources":["../../src/domain/requestIntegrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAoBvE,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM4D,CAAC;AAIjF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhB,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAWtB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,GAAG,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,gBAAgB,KAAG,OACqC,CAAC;AAKhG,MAAM,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAIpG,eAAO,MAAM,kBAAkB,GAAI,aAAa,gBAAgB,EAAE,KAAG,kBAYpE,CAAC;AASF,eAAO,MAAM,oBAAoB,GAAI,OAAO,gBAAgB,EAAE,SAAS,kBAAkB,EAAE,UAAU,UAAU,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAmCvI,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,SAAS,UAAU,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAkBrF,CAAC"}
|