@uniformdev/mesh-edgehancer-sdk 19.184.1-alpha.22 → 19.184.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +39 -1024
- package/dist/index.d.ts +39 -1024
- package/dist/index.esm.js +1 -14
- package/dist/index.js +1 -14
- package/dist/index.mjs +1 -14
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { DataType, DataSource
|
|
3
|
+
import { DataType, DataSource } from '@uniformdev/canvas';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The context we are fetching the data resource in:
|
|
@@ -30,7 +30,6 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
30
30
|
allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
31
|
badgeIconUrl: z.ZodOptional<z.ZodString>;
|
|
32
32
|
connectorType: z.ZodString;
|
|
33
|
-
path: z.ZodString;
|
|
34
33
|
url: z.ZodString;
|
|
35
34
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
35
|
key: z.ZodString;
|
|
@@ -98,161 +97,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
98
97
|
request?: string | undefined;
|
|
99
98
|
}>>;
|
|
100
99
|
uiBadgeText: z.ZodOptional<z.ZodString>;
|
|
101
|
-
variants: z.ZodOptional<z.ZodObject<{
|
|
102
|
-
unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
103
|
-
baseUrl: z.ZodString;
|
|
104
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
-
key: z.ZodString;
|
|
106
|
-
value: z.ZodString;
|
|
107
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
key: string;
|
|
110
|
-
value: string;
|
|
111
|
-
omitIfEmpty?: boolean | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
key: string;
|
|
114
|
-
value: string;
|
|
115
|
-
omitIfEmpty?: boolean | undefined;
|
|
116
|
-
}>, "many">>;
|
|
117
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
-
key: z.ZodString;
|
|
119
|
-
value: z.ZodString;
|
|
120
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
key: string;
|
|
123
|
-
value: string;
|
|
124
|
-
omitIfEmpty?: boolean | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
key: string;
|
|
127
|
-
value: string;
|
|
128
|
-
omitIfEmpty?: boolean | undefined;
|
|
129
|
-
}>, "many">>;
|
|
130
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
131
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
132
|
-
type: z.ZodOptional<z.ZodString>;
|
|
133
|
-
default: z.ZodString;
|
|
134
|
-
helpText: z.ZodOptional<z.ZodString>;
|
|
135
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
136
|
-
source: z.ZodOptional<z.ZodString>;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
default: string;
|
|
139
|
-
type?: string | undefined;
|
|
140
|
-
displayName?: string | undefined;
|
|
141
|
-
helpText?: string | undefined;
|
|
142
|
-
order?: number | undefined;
|
|
143
|
-
source?: string | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
default: string;
|
|
146
|
-
type?: string | undefined;
|
|
147
|
-
displayName?: string | undefined;
|
|
148
|
-
helpText?: string | undefined;
|
|
149
|
-
order?: number | undefined;
|
|
150
|
-
source?: string | undefined;
|
|
151
|
-
}>>>;
|
|
152
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
153
|
-
customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
baseUrl: string;
|
|
156
|
-
headers?: {
|
|
157
|
-
key: string;
|
|
158
|
-
value: string;
|
|
159
|
-
omitIfEmpty?: boolean | undefined;
|
|
160
|
-
}[] | undefined;
|
|
161
|
-
parameters?: {
|
|
162
|
-
key: string;
|
|
163
|
-
value: string;
|
|
164
|
-
omitIfEmpty?: boolean | undefined;
|
|
165
|
-
}[] | undefined;
|
|
166
|
-
variables?: Record<string, {
|
|
167
|
-
default: string;
|
|
168
|
-
type?: string | undefined;
|
|
169
|
-
displayName?: string | undefined;
|
|
170
|
-
helpText?: string | undefined;
|
|
171
|
-
order?: number | undefined;
|
|
172
|
-
source?: string | undefined;
|
|
173
|
-
}> | undefined;
|
|
174
|
-
custom?: Record<string, unknown> | undefined;
|
|
175
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
176
|
-
}, {
|
|
177
|
-
baseUrl: string;
|
|
178
|
-
headers?: {
|
|
179
|
-
key: string;
|
|
180
|
-
value: string;
|
|
181
|
-
omitIfEmpty?: boolean | undefined;
|
|
182
|
-
}[] | undefined;
|
|
183
|
-
parameters?: {
|
|
184
|
-
key: string;
|
|
185
|
-
value: string;
|
|
186
|
-
omitIfEmpty?: boolean | undefined;
|
|
187
|
-
}[] | undefined;
|
|
188
|
-
variables?: Record<string, {
|
|
189
|
-
default: string;
|
|
190
|
-
type?: string | undefined;
|
|
191
|
-
displayName?: string | undefined;
|
|
192
|
-
helpText?: string | undefined;
|
|
193
|
-
order?: number | undefined;
|
|
194
|
-
source?: string | undefined;
|
|
195
|
-
}> | undefined;
|
|
196
|
-
custom?: Record<string, unknown> | undefined;
|
|
197
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
198
|
-
}>>>;
|
|
199
|
-
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
unpublished?: {
|
|
201
|
-
baseUrl: string;
|
|
202
|
-
headers?: {
|
|
203
|
-
key: string;
|
|
204
|
-
value: string;
|
|
205
|
-
omitIfEmpty?: boolean | undefined;
|
|
206
|
-
}[] | undefined;
|
|
207
|
-
parameters?: {
|
|
208
|
-
key: string;
|
|
209
|
-
value: string;
|
|
210
|
-
omitIfEmpty?: boolean | undefined;
|
|
211
|
-
}[] | undefined;
|
|
212
|
-
variables?: Record<string, {
|
|
213
|
-
default: string;
|
|
214
|
-
type?: string | undefined;
|
|
215
|
-
displayName?: string | undefined;
|
|
216
|
-
helpText?: string | undefined;
|
|
217
|
-
order?: number | undefined;
|
|
218
|
-
source?: string | undefined;
|
|
219
|
-
}> | undefined;
|
|
220
|
-
custom?: Record<string, unknown> | undefined;
|
|
221
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
222
|
-
} | undefined;
|
|
223
|
-
}, {
|
|
224
|
-
unpublished?: {
|
|
225
|
-
baseUrl: string;
|
|
226
|
-
headers?: {
|
|
227
|
-
key: string;
|
|
228
|
-
value: string;
|
|
229
|
-
omitIfEmpty?: boolean | undefined;
|
|
230
|
-
}[] | undefined;
|
|
231
|
-
parameters?: {
|
|
232
|
-
key: string;
|
|
233
|
-
value: string;
|
|
234
|
-
omitIfEmpty?: boolean | undefined;
|
|
235
|
-
}[] | undefined;
|
|
236
|
-
variables?: Record<string, {
|
|
237
|
-
default: string;
|
|
238
|
-
type?: string | undefined;
|
|
239
|
-
displayName?: string | undefined;
|
|
240
|
-
helpText?: string | undefined;
|
|
241
|
-
order?: number | undefined;
|
|
242
|
-
source?: string | undefined;
|
|
243
|
-
}> | undefined;
|
|
244
|
-
custom?: Record<string, unknown> | undefined;
|
|
245
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
246
|
-
} | undefined;
|
|
247
|
-
}>>;
|
|
248
|
-
dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
|
|
249
100
|
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
path: string;
|
|
251
101
|
displayName: string;
|
|
252
102
|
id: string;
|
|
253
103
|
connectorType: string;
|
|
254
104
|
url: string;
|
|
255
105
|
method: "GET" | "POST" | "HEAD";
|
|
106
|
+
archetype?: string | undefined;
|
|
107
|
+
allowedOnComponents?: string[] | undefined;
|
|
108
|
+
badgeIconUrl?: string | undefined;
|
|
256
109
|
headers?: {
|
|
257
110
|
key: string;
|
|
258
111
|
value: string;
|
|
@@ -263,6 +116,8 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
263
116
|
value: string;
|
|
264
117
|
omitIfEmpty?: boolean | undefined;
|
|
265
118
|
}[] | undefined;
|
|
119
|
+
body?: string | undefined;
|
|
120
|
+
custom?: Record<string, unknown> | undefined;
|
|
266
121
|
variables?: Record<string, {
|
|
267
122
|
default: string;
|
|
268
123
|
type?: string | undefined;
|
|
@@ -271,12 +126,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
271
126
|
order?: number | undefined;
|
|
272
127
|
source?: string | undefined;
|
|
273
128
|
}> | undefined;
|
|
274
|
-
custom?: Record<string, unknown> | undefined;
|
|
275
129
|
customPublic?: Record<string, unknown> | undefined;
|
|
276
|
-
archetype?: string | undefined;
|
|
277
|
-
allowedOnComponents?: string[] | undefined;
|
|
278
|
-
badgeIconUrl?: string | undefined;
|
|
279
|
-
body?: string | undefined;
|
|
280
130
|
ttl?: number | undefined;
|
|
281
131
|
purgeKey?: string | undefined;
|
|
282
132
|
localeMapping?: Record<string, string> | undefined;
|
|
@@ -285,39 +135,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
285
135
|
request?: string | undefined;
|
|
286
136
|
} | undefined;
|
|
287
137
|
uiBadgeText?: string | undefined;
|
|
288
|
-
variants?: {
|
|
289
|
-
unpublished?: {
|
|
290
|
-
baseUrl: string;
|
|
291
|
-
headers?: {
|
|
292
|
-
key: string;
|
|
293
|
-
value: string;
|
|
294
|
-
omitIfEmpty?: boolean | undefined;
|
|
295
|
-
}[] | undefined;
|
|
296
|
-
parameters?: {
|
|
297
|
-
key: string;
|
|
298
|
-
value: string;
|
|
299
|
-
omitIfEmpty?: boolean | undefined;
|
|
300
|
-
}[] | undefined;
|
|
301
|
-
variables?: Record<string, {
|
|
302
|
-
default: string;
|
|
303
|
-
type?: string | undefined;
|
|
304
|
-
displayName?: string | undefined;
|
|
305
|
-
helpText?: string | undefined;
|
|
306
|
-
order?: number | undefined;
|
|
307
|
-
source?: string | undefined;
|
|
308
|
-
}> | undefined;
|
|
309
|
-
custom?: Record<string, unknown> | undefined;
|
|
310
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
} | undefined;
|
|
313
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
314
138
|
}, {
|
|
315
|
-
path: string;
|
|
316
139
|
displayName: string;
|
|
317
140
|
id: string;
|
|
318
141
|
connectorType: string;
|
|
319
142
|
url: string;
|
|
320
143
|
method: "GET" | "POST" | "HEAD";
|
|
144
|
+
archetype?: string | undefined;
|
|
145
|
+
allowedOnComponents?: string[] | undefined;
|
|
146
|
+
badgeIconUrl?: string | undefined;
|
|
321
147
|
headers?: {
|
|
322
148
|
key: string;
|
|
323
149
|
value: string;
|
|
@@ -328,6 +154,8 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
328
154
|
value: string;
|
|
329
155
|
omitIfEmpty?: boolean | undefined;
|
|
330
156
|
}[] | undefined;
|
|
157
|
+
body?: string | undefined;
|
|
158
|
+
custom?: Record<string, unknown> | undefined;
|
|
331
159
|
variables?: Record<string, {
|
|
332
160
|
default: string;
|
|
333
161
|
type?: string | undefined;
|
|
@@ -336,12 +164,7 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
336
164
|
order?: number | undefined;
|
|
337
165
|
source?: string | undefined;
|
|
338
166
|
}> | undefined;
|
|
339
|
-
custom?: Record<string, unknown> | undefined;
|
|
340
167
|
customPublic?: Record<string, unknown> | undefined;
|
|
341
|
-
archetype?: string | undefined;
|
|
342
|
-
allowedOnComponents?: string[] | undefined;
|
|
343
|
-
badgeIconUrl?: string | undefined;
|
|
344
|
-
body?: string | undefined;
|
|
345
168
|
ttl?: number | undefined;
|
|
346
169
|
purgeKey?: string | undefined;
|
|
347
170
|
localeMapping?: Record<string, string> | undefined;
|
|
@@ -350,39 +173,13 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
350
173
|
request?: string | undefined;
|
|
351
174
|
} | undefined;
|
|
352
175
|
uiBadgeText?: string | undefined;
|
|
353
|
-
variants?: {
|
|
354
|
-
unpublished?: {
|
|
355
|
-
baseUrl: string;
|
|
356
|
-
headers?: {
|
|
357
|
-
key: string;
|
|
358
|
-
value: string;
|
|
359
|
-
omitIfEmpty?: boolean | undefined;
|
|
360
|
-
}[] | undefined;
|
|
361
|
-
parameters?: {
|
|
362
|
-
key: string;
|
|
363
|
-
value: string;
|
|
364
|
-
omitIfEmpty?: boolean | undefined;
|
|
365
|
-
}[] | undefined;
|
|
366
|
-
variables?: Record<string, {
|
|
367
|
-
default: string;
|
|
368
|
-
type?: string | undefined;
|
|
369
|
-
displayName?: string | undefined;
|
|
370
|
-
helpText?: string | undefined;
|
|
371
|
-
order?: number | undefined;
|
|
372
|
-
source?: string | undefined;
|
|
373
|
-
}> | undefined;
|
|
374
|
-
custom?: Record<string, unknown> | undefined;
|
|
375
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
376
|
-
} | undefined;
|
|
377
|
-
} | undefined;
|
|
378
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
379
176
|
}>;
|
|
380
177
|
/** Declaration of custom edgehancer hooks on a merged data type */
|
|
381
178
|
type CustomEdgehancerDefinition = z.infer<typeof customEdgehancerDefinitionSchema>;
|
|
382
179
|
/**
|
|
383
180
|
* The result of merging a data source with a data type into a single request object
|
|
384
181
|
*/
|
|
385
|
-
type MergedDataType = Omit<DataType, 'dataSourceId'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic'
|
|
182
|
+
type MergedDataType = Omit<DataType, 'path' | 'dataSourceId'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic'> & {
|
|
386
183
|
/** Merged base URL from the data source with the relative URL from the data type */
|
|
387
184
|
url: string;
|
|
388
185
|
/**
|
|
@@ -396,7 +193,6 @@ type MergedDataType = Omit<DataType, 'dataSourceId'> & Pick<DataSource, 'connect
|
|
|
396
193
|
* Max length 12
|
|
397
194
|
*/
|
|
398
195
|
uiBadgeText?: string;
|
|
399
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
400
196
|
};
|
|
401
197
|
declare const dataResourceSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
|
|
402
198
|
/** A data resource of JSON data retrieved from a data type/data source */
|
|
@@ -415,12 +211,6 @@ type RequestEdgehancerContext = {
|
|
|
415
211
|
* that the handler is registered for.
|
|
416
212
|
*/
|
|
417
213
|
dataResources: readonly RequestEdgehancerDataResourceContext[];
|
|
418
|
-
/**
|
|
419
|
-
* Which Data Source variant to use for the request. For example in case of "unpublished" variant Request hook can add aditional data modification, add unpublished mode related warnings, etc.
|
|
420
|
-
*
|
|
421
|
-
* Make sure that you implement PreRequest hook as well to handle request modification before edgehancer will make a cache lookup.
|
|
422
|
-
*/
|
|
423
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
424
214
|
};
|
|
425
215
|
declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
|
|
426
216
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -525,7 +315,6 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
525
315
|
allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
526
316
|
badgeIconUrl: z.ZodOptional<z.ZodString>;
|
|
527
317
|
connectorType: z.ZodString;
|
|
528
|
-
path: z.ZodString;
|
|
529
318
|
url: z.ZodString;
|
|
530
319
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
531
320
|
key: z.ZodString;
|
|
@@ -593,159 +382,11 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
593
382
|
request?: string | undefined;
|
|
594
383
|
}>>;
|
|
595
384
|
uiBadgeText: z.ZodOptional<z.ZodString>;
|
|
596
|
-
|
|
597
|
-
unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
598
|
-
baseUrl: z.ZodString;
|
|
599
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
600
|
-
key: z.ZodString;
|
|
601
|
-
value: z.ZodString;
|
|
602
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
603
|
-
}, "strip", z.ZodTypeAny, {
|
|
604
|
-
key: string;
|
|
605
|
-
value: string;
|
|
606
|
-
omitIfEmpty?: boolean | undefined;
|
|
607
|
-
}, {
|
|
608
|
-
key: string;
|
|
609
|
-
value: string;
|
|
610
|
-
omitIfEmpty?: boolean | undefined;
|
|
611
|
-
}>, "many">>;
|
|
612
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
613
|
-
key: z.ZodString;
|
|
614
|
-
value: z.ZodString;
|
|
615
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
616
|
-
}, "strip", z.ZodTypeAny, {
|
|
617
|
-
key: string;
|
|
618
|
-
value: string;
|
|
619
|
-
omitIfEmpty?: boolean | undefined;
|
|
620
|
-
}, {
|
|
621
|
-
key: string;
|
|
622
|
-
value: string;
|
|
623
|
-
omitIfEmpty?: boolean | undefined;
|
|
624
|
-
}>, "many">>;
|
|
625
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
626
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
627
|
-
type: z.ZodOptional<z.ZodString>;
|
|
628
|
-
default: z.ZodString;
|
|
629
|
-
helpText: z.ZodOptional<z.ZodString>;
|
|
630
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
631
|
-
source: z.ZodOptional<z.ZodString>;
|
|
632
|
-
}, "strip", z.ZodTypeAny, {
|
|
633
|
-
default: string;
|
|
634
|
-
type?: string | undefined;
|
|
635
|
-
displayName?: string | undefined;
|
|
636
|
-
helpText?: string | undefined;
|
|
637
|
-
order?: number | undefined;
|
|
638
|
-
source?: string | undefined;
|
|
639
|
-
}, {
|
|
640
|
-
default: string;
|
|
641
|
-
type?: string | undefined;
|
|
642
|
-
displayName?: string | undefined;
|
|
643
|
-
helpText?: string | undefined;
|
|
644
|
-
order?: number | undefined;
|
|
645
|
-
source?: string | undefined;
|
|
646
|
-
}>>>;
|
|
647
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
648
|
-
customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
649
|
-
}, "strip", z.ZodTypeAny, {
|
|
650
|
-
baseUrl: string;
|
|
651
|
-
headers?: {
|
|
652
|
-
key: string;
|
|
653
|
-
value: string;
|
|
654
|
-
omitIfEmpty?: boolean | undefined;
|
|
655
|
-
}[] | undefined;
|
|
656
|
-
parameters?: {
|
|
657
|
-
key: string;
|
|
658
|
-
value: string;
|
|
659
|
-
omitIfEmpty?: boolean | undefined;
|
|
660
|
-
}[] | undefined;
|
|
661
|
-
variables?: Record<string, {
|
|
662
|
-
default: string;
|
|
663
|
-
type?: string | undefined;
|
|
664
|
-
displayName?: string | undefined;
|
|
665
|
-
helpText?: string | undefined;
|
|
666
|
-
order?: number | undefined;
|
|
667
|
-
source?: string | undefined;
|
|
668
|
-
}> | undefined;
|
|
669
|
-
custom?: Record<string, unknown> | undefined;
|
|
670
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
671
|
-
}, {
|
|
672
|
-
baseUrl: string;
|
|
673
|
-
headers?: {
|
|
674
|
-
key: string;
|
|
675
|
-
value: string;
|
|
676
|
-
omitIfEmpty?: boolean | undefined;
|
|
677
|
-
}[] | undefined;
|
|
678
|
-
parameters?: {
|
|
679
|
-
key: string;
|
|
680
|
-
value: string;
|
|
681
|
-
omitIfEmpty?: boolean | undefined;
|
|
682
|
-
}[] | undefined;
|
|
683
|
-
variables?: Record<string, {
|
|
684
|
-
default: string;
|
|
685
|
-
type?: string | undefined;
|
|
686
|
-
displayName?: string | undefined;
|
|
687
|
-
helpText?: string | undefined;
|
|
688
|
-
order?: number | undefined;
|
|
689
|
-
source?: string | undefined;
|
|
690
|
-
}> | undefined;
|
|
691
|
-
custom?: Record<string, unknown> | undefined;
|
|
692
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
693
|
-
}>>>;
|
|
694
|
-
}, "strip", z.ZodTypeAny, {
|
|
695
|
-
unpublished?: {
|
|
696
|
-
baseUrl: string;
|
|
697
|
-
headers?: {
|
|
698
|
-
key: string;
|
|
699
|
-
value: string;
|
|
700
|
-
omitIfEmpty?: boolean | undefined;
|
|
701
|
-
}[] | undefined;
|
|
702
|
-
parameters?: {
|
|
703
|
-
key: string;
|
|
704
|
-
value: string;
|
|
705
|
-
omitIfEmpty?: boolean | undefined;
|
|
706
|
-
}[] | undefined;
|
|
707
|
-
variables?: Record<string, {
|
|
708
|
-
default: string;
|
|
709
|
-
type?: string | undefined;
|
|
710
|
-
displayName?: string | undefined;
|
|
711
|
-
helpText?: string | undefined;
|
|
712
|
-
order?: number | undefined;
|
|
713
|
-
source?: string | undefined;
|
|
714
|
-
}> | undefined;
|
|
715
|
-
custom?: Record<string, unknown> | undefined;
|
|
716
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
717
|
-
} | undefined;
|
|
718
|
-
}, {
|
|
719
|
-
unpublished?: {
|
|
720
|
-
baseUrl: string;
|
|
721
|
-
headers?: {
|
|
722
|
-
key: string;
|
|
723
|
-
value: string;
|
|
724
|
-
omitIfEmpty?: boolean | undefined;
|
|
725
|
-
}[] | undefined;
|
|
726
|
-
parameters?: {
|
|
727
|
-
key: string;
|
|
728
|
-
value: string;
|
|
729
|
-
omitIfEmpty?: boolean | undefined;
|
|
730
|
-
}[] | undefined;
|
|
731
|
-
variables?: Record<string, {
|
|
732
|
-
default: string;
|
|
733
|
-
type?: string | undefined;
|
|
734
|
-
displayName?: string | undefined;
|
|
735
|
-
helpText?: string | undefined;
|
|
736
|
-
order?: number | undefined;
|
|
737
|
-
source?: string | undefined;
|
|
738
|
-
}> | undefined;
|
|
739
|
-
custom?: Record<string, unknown> | undefined;
|
|
740
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
741
|
-
} | undefined;
|
|
742
|
-
}>>;
|
|
743
|
-
dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
|
|
744
|
-
}, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
|
|
745
|
-
path: string;
|
|
385
|
+
}, "displayName" | "id" | "allowedOnComponents" | "badgeIconUrl" | "variables" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
|
|
746
386
|
connectorType: string;
|
|
747
387
|
url: string;
|
|
748
388
|
method: "GET" | "POST" | "HEAD";
|
|
389
|
+
archetype?: string | undefined;
|
|
749
390
|
headers?: {
|
|
750
391
|
key: string;
|
|
751
392
|
value: string;
|
|
@@ -756,44 +397,17 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
756
397
|
value: string;
|
|
757
398
|
omitIfEmpty?: boolean | undefined;
|
|
758
399
|
}[] | undefined;
|
|
400
|
+
body?: string | undefined;
|
|
759
401
|
custom?: Record<string, unknown> | undefined;
|
|
760
402
|
customPublic?: Record<string, unknown> | undefined;
|
|
761
|
-
archetype?: string | undefined;
|
|
762
|
-
body?: string | undefined;
|
|
763
403
|
ttl?: number | undefined;
|
|
764
404
|
localeMapping?: Record<string, string> | undefined;
|
|
765
405
|
uiBadgeText?: string | undefined;
|
|
766
|
-
variants?: {
|
|
767
|
-
unpublished?: {
|
|
768
|
-
baseUrl: string;
|
|
769
|
-
headers?: {
|
|
770
|
-
key: string;
|
|
771
|
-
value: string;
|
|
772
|
-
omitIfEmpty?: boolean | undefined;
|
|
773
|
-
}[] | undefined;
|
|
774
|
-
parameters?: {
|
|
775
|
-
key: string;
|
|
776
|
-
value: string;
|
|
777
|
-
omitIfEmpty?: boolean | undefined;
|
|
778
|
-
}[] | undefined;
|
|
779
|
-
variables?: Record<string, {
|
|
780
|
-
default: string;
|
|
781
|
-
type?: string | undefined;
|
|
782
|
-
displayName?: string | undefined;
|
|
783
|
-
helpText?: string | undefined;
|
|
784
|
-
order?: number | undefined;
|
|
785
|
-
source?: string | undefined;
|
|
786
|
-
}> | undefined;
|
|
787
|
-
custom?: Record<string, unknown> | undefined;
|
|
788
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
789
|
-
} | undefined;
|
|
790
|
-
} | undefined;
|
|
791
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
792
406
|
}, {
|
|
793
|
-
path: string;
|
|
794
407
|
connectorType: string;
|
|
795
408
|
url: string;
|
|
796
409
|
method: "GET" | "POST" | "HEAD";
|
|
410
|
+
archetype?: string | undefined;
|
|
797
411
|
headers?: {
|
|
798
412
|
key: string;
|
|
799
413
|
value: string;
|
|
@@ -804,39 +418,12 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
804
418
|
value: string;
|
|
805
419
|
omitIfEmpty?: boolean | undefined;
|
|
806
420
|
}[] | undefined;
|
|
421
|
+
body?: string | undefined;
|
|
807
422
|
custom?: Record<string, unknown> | undefined;
|
|
808
423
|
customPublic?: Record<string, unknown> | undefined;
|
|
809
|
-
archetype?: string | undefined;
|
|
810
|
-
body?: string | undefined;
|
|
811
424
|
ttl?: number | undefined;
|
|
812
425
|
localeMapping?: Record<string, string> | undefined;
|
|
813
426
|
uiBadgeText?: string | undefined;
|
|
814
|
-
variants?: {
|
|
815
|
-
unpublished?: {
|
|
816
|
-
baseUrl: string;
|
|
817
|
-
headers?: {
|
|
818
|
-
key: string;
|
|
819
|
-
value: string;
|
|
820
|
-
omitIfEmpty?: boolean | undefined;
|
|
821
|
-
}[] | undefined;
|
|
822
|
-
parameters?: {
|
|
823
|
-
key: string;
|
|
824
|
-
value: string;
|
|
825
|
-
omitIfEmpty?: boolean | undefined;
|
|
826
|
-
}[] | undefined;
|
|
827
|
-
variables?: Record<string, {
|
|
828
|
-
default: string;
|
|
829
|
-
type?: string | undefined;
|
|
830
|
-
displayName?: string | undefined;
|
|
831
|
-
helpText?: string | undefined;
|
|
832
|
-
order?: number | undefined;
|
|
833
|
-
source?: string | undefined;
|
|
834
|
-
}> | undefined;
|
|
835
|
-
custom?: Record<string, unknown> | undefined;
|
|
836
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
837
|
-
} | undefined;
|
|
838
|
-
} | undefined;
|
|
839
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
840
427
|
}>;
|
|
841
428
|
type EdgehancerMergedDataType = z.infer<typeof edgehancerMergedDataTypeSchema>;
|
|
842
429
|
type PreRequestEdgehancerDataResourceContext = {
|
|
@@ -852,10 +439,6 @@ type PreRequestEdgehancerContext = {
|
|
|
852
439
|
* that the hook is registered for.
|
|
853
440
|
*/
|
|
854
441
|
dataResources: readonly PreRequestEdgehancerDataResourceContext[];
|
|
855
|
-
/**
|
|
856
|
-
* Which Data Source variant to use for the request. For example in case of "unpublished" variant PreRequest hook can change from Delivery API to Preview API and change authentication headers.
|
|
857
|
-
*/
|
|
858
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
859
442
|
};
|
|
860
443
|
declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
861
444
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -868,7 +451,6 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
868
451
|
allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
869
452
|
badgeIconUrl: z.ZodOptional<z.ZodString>;
|
|
870
453
|
connectorType: z.ZodString;
|
|
871
|
-
path: z.ZodString;
|
|
872
454
|
url: z.ZodString;
|
|
873
455
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
874
456
|
key: z.ZodString;
|
|
@@ -936,159 +518,11 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
936
518
|
request?: string | undefined;
|
|
937
519
|
}>>;
|
|
938
520
|
uiBadgeText: z.ZodOptional<z.ZodString>;
|
|
939
|
-
|
|
940
|
-
unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
941
|
-
baseUrl: z.ZodString;
|
|
942
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
943
|
-
key: z.ZodString;
|
|
944
|
-
value: z.ZodString;
|
|
945
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
946
|
-
}, "strip", z.ZodTypeAny, {
|
|
947
|
-
key: string;
|
|
948
|
-
value: string;
|
|
949
|
-
omitIfEmpty?: boolean | undefined;
|
|
950
|
-
}, {
|
|
951
|
-
key: string;
|
|
952
|
-
value: string;
|
|
953
|
-
omitIfEmpty?: boolean | undefined;
|
|
954
|
-
}>, "many">>;
|
|
955
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
956
|
-
key: z.ZodString;
|
|
957
|
-
value: z.ZodString;
|
|
958
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
959
|
-
}, "strip", z.ZodTypeAny, {
|
|
960
|
-
key: string;
|
|
961
|
-
value: string;
|
|
962
|
-
omitIfEmpty?: boolean | undefined;
|
|
963
|
-
}, {
|
|
964
|
-
key: string;
|
|
965
|
-
value: string;
|
|
966
|
-
omitIfEmpty?: boolean | undefined;
|
|
967
|
-
}>, "many">>;
|
|
968
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
969
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
970
|
-
type: z.ZodOptional<z.ZodString>;
|
|
971
|
-
default: z.ZodString;
|
|
972
|
-
helpText: z.ZodOptional<z.ZodString>;
|
|
973
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
974
|
-
source: z.ZodOptional<z.ZodString>;
|
|
975
|
-
}, "strip", z.ZodTypeAny, {
|
|
976
|
-
default: string;
|
|
977
|
-
type?: string | undefined;
|
|
978
|
-
displayName?: string | undefined;
|
|
979
|
-
helpText?: string | undefined;
|
|
980
|
-
order?: number | undefined;
|
|
981
|
-
source?: string | undefined;
|
|
982
|
-
}, {
|
|
983
|
-
default: string;
|
|
984
|
-
type?: string | undefined;
|
|
985
|
-
displayName?: string | undefined;
|
|
986
|
-
helpText?: string | undefined;
|
|
987
|
-
order?: number | undefined;
|
|
988
|
-
source?: string | undefined;
|
|
989
|
-
}>>>;
|
|
990
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
991
|
-
customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
992
|
-
}, "strip", z.ZodTypeAny, {
|
|
993
|
-
baseUrl: string;
|
|
994
|
-
headers?: {
|
|
995
|
-
key: string;
|
|
996
|
-
value: string;
|
|
997
|
-
omitIfEmpty?: boolean | undefined;
|
|
998
|
-
}[] | undefined;
|
|
999
|
-
parameters?: {
|
|
1000
|
-
key: string;
|
|
1001
|
-
value: string;
|
|
1002
|
-
omitIfEmpty?: boolean | undefined;
|
|
1003
|
-
}[] | undefined;
|
|
1004
|
-
variables?: Record<string, {
|
|
1005
|
-
default: string;
|
|
1006
|
-
type?: string | undefined;
|
|
1007
|
-
displayName?: string | undefined;
|
|
1008
|
-
helpText?: string | undefined;
|
|
1009
|
-
order?: number | undefined;
|
|
1010
|
-
source?: string | undefined;
|
|
1011
|
-
}> | undefined;
|
|
1012
|
-
custom?: Record<string, unknown> | undefined;
|
|
1013
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1014
|
-
}, {
|
|
1015
|
-
baseUrl: string;
|
|
1016
|
-
headers?: {
|
|
1017
|
-
key: string;
|
|
1018
|
-
value: string;
|
|
1019
|
-
omitIfEmpty?: boolean | undefined;
|
|
1020
|
-
}[] | undefined;
|
|
1021
|
-
parameters?: {
|
|
1022
|
-
key: string;
|
|
1023
|
-
value: string;
|
|
1024
|
-
omitIfEmpty?: boolean | undefined;
|
|
1025
|
-
}[] | undefined;
|
|
1026
|
-
variables?: Record<string, {
|
|
1027
|
-
default: string;
|
|
1028
|
-
type?: string | undefined;
|
|
1029
|
-
displayName?: string | undefined;
|
|
1030
|
-
helpText?: string | undefined;
|
|
1031
|
-
order?: number | undefined;
|
|
1032
|
-
source?: string | undefined;
|
|
1033
|
-
}> | undefined;
|
|
1034
|
-
custom?: Record<string, unknown> | undefined;
|
|
1035
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1036
|
-
}>>>;
|
|
1037
|
-
}, "strip", z.ZodTypeAny, {
|
|
1038
|
-
unpublished?: {
|
|
1039
|
-
baseUrl: string;
|
|
1040
|
-
headers?: {
|
|
1041
|
-
key: string;
|
|
1042
|
-
value: string;
|
|
1043
|
-
omitIfEmpty?: boolean | undefined;
|
|
1044
|
-
}[] | undefined;
|
|
1045
|
-
parameters?: {
|
|
1046
|
-
key: string;
|
|
1047
|
-
value: string;
|
|
1048
|
-
omitIfEmpty?: boolean | undefined;
|
|
1049
|
-
}[] | undefined;
|
|
1050
|
-
variables?: Record<string, {
|
|
1051
|
-
default: string;
|
|
1052
|
-
type?: string | undefined;
|
|
1053
|
-
displayName?: string | undefined;
|
|
1054
|
-
helpText?: string | undefined;
|
|
1055
|
-
order?: number | undefined;
|
|
1056
|
-
source?: string | undefined;
|
|
1057
|
-
}> | undefined;
|
|
1058
|
-
custom?: Record<string, unknown> | undefined;
|
|
1059
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1060
|
-
} | undefined;
|
|
1061
|
-
}, {
|
|
1062
|
-
unpublished?: {
|
|
1063
|
-
baseUrl: string;
|
|
1064
|
-
headers?: {
|
|
1065
|
-
key: string;
|
|
1066
|
-
value: string;
|
|
1067
|
-
omitIfEmpty?: boolean | undefined;
|
|
1068
|
-
}[] | undefined;
|
|
1069
|
-
parameters?: {
|
|
1070
|
-
key: string;
|
|
1071
|
-
value: string;
|
|
1072
|
-
omitIfEmpty?: boolean | undefined;
|
|
1073
|
-
}[] | undefined;
|
|
1074
|
-
variables?: Record<string, {
|
|
1075
|
-
default: string;
|
|
1076
|
-
type?: string | undefined;
|
|
1077
|
-
displayName?: string | undefined;
|
|
1078
|
-
helpText?: string | undefined;
|
|
1079
|
-
order?: number | undefined;
|
|
1080
|
-
source?: string | undefined;
|
|
1081
|
-
}> | undefined;
|
|
1082
|
-
custom?: Record<string, unknown> | undefined;
|
|
1083
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1084
|
-
} | undefined;
|
|
1085
|
-
}>>;
|
|
1086
|
-
dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
|
|
1087
|
-
}, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
|
|
1088
|
-
path: string;
|
|
521
|
+
}, "displayName" | "id" | "allowedOnComponents" | "badgeIconUrl" | "variables" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
|
|
1089
522
|
connectorType: string;
|
|
1090
523
|
url: string;
|
|
1091
524
|
method: "GET" | "POST" | "HEAD";
|
|
525
|
+
archetype?: string | undefined;
|
|
1092
526
|
headers?: {
|
|
1093
527
|
key: string;
|
|
1094
528
|
value: string;
|
|
@@ -1099,44 +533,17 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
1099
533
|
value: string;
|
|
1100
534
|
omitIfEmpty?: boolean | undefined;
|
|
1101
535
|
}[] | undefined;
|
|
536
|
+
body?: string | undefined;
|
|
1102
537
|
custom?: Record<string, unknown> | undefined;
|
|
1103
538
|
customPublic?: Record<string, unknown> | undefined;
|
|
1104
|
-
archetype?: string | undefined;
|
|
1105
|
-
body?: string | undefined;
|
|
1106
539
|
ttl?: number | undefined;
|
|
1107
540
|
localeMapping?: Record<string, string> | undefined;
|
|
1108
541
|
uiBadgeText?: string | undefined;
|
|
1109
|
-
variants?: {
|
|
1110
|
-
unpublished?: {
|
|
1111
|
-
baseUrl: string;
|
|
1112
|
-
headers?: {
|
|
1113
|
-
key: string;
|
|
1114
|
-
value: string;
|
|
1115
|
-
omitIfEmpty?: boolean | undefined;
|
|
1116
|
-
}[] | undefined;
|
|
1117
|
-
parameters?: {
|
|
1118
|
-
key: string;
|
|
1119
|
-
value: string;
|
|
1120
|
-
omitIfEmpty?: boolean | undefined;
|
|
1121
|
-
}[] | undefined;
|
|
1122
|
-
variables?: Record<string, {
|
|
1123
|
-
default: string;
|
|
1124
|
-
type?: string | undefined;
|
|
1125
|
-
displayName?: string | undefined;
|
|
1126
|
-
helpText?: string | undefined;
|
|
1127
|
-
order?: number | undefined;
|
|
1128
|
-
source?: string | undefined;
|
|
1129
|
-
}> | undefined;
|
|
1130
|
-
custom?: Record<string, unknown> | undefined;
|
|
1131
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1132
|
-
} | undefined;
|
|
1133
|
-
} | undefined;
|
|
1134
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1135
542
|
}, {
|
|
1136
|
-
path: string;
|
|
1137
543
|
connectorType: string;
|
|
1138
544
|
url: string;
|
|
1139
545
|
method: "GET" | "POST" | "HEAD";
|
|
546
|
+
archetype?: string | undefined;
|
|
1140
547
|
headers?: {
|
|
1141
548
|
key: string;
|
|
1142
549
|
value: string;
|
|
@@ -1147,46 +554,19 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
1147
554
|
value: string;
|
|
1148
555
|
omitIfEmpty?: boolean | undefined;
|
|
1149
556
|
}[] | undefined;
|
|
557
|
+
body?: string | undefined;
|
|
1150
558
|
custom?: Record<string, unknown> | undefined;
|
|
1151
559
|
customPublic?: Record<string, unknown> | undefined;
|
|
1152
|
-
archetype?: string | undefined;
|
|
1153
|
-
body?: string | undefined;
|
|
1154
560
|
ttl?: number | undefined;
|
|
1155
561
|
localeMapping?: Record<string, string> | undefined;
|
|
1156
562
|
uiBadgeText?: string | undefined;
|
|
1157
|
-
variants?: {
|
|
1158
|
-
unpublished?: {
|
|
1159
|
-
baseUrl: string;
|
|
1160
|
-
headers?: {
|
|
1161
|
-
key: string;
|
|
1162
|
-
value: string;
|
|
1163
|
-
omitIfEmpty?: boolean | undefined;
|
|
1164
|
-
}[] | undefined;
|
|
1165
|
-
parameters?: {
|
|
1166
|
-
key: string;
|
|
1167
|
-
value: string;
|
|
1168
|
-
omitIfEmpty?: boolean | undefined;
|
|
1169
|
-
}[] | undefined;
|
|
1170
|
-
variables?: Record<string, {
|
|
1171
|
-
default: string;
|
|
1172
|
-
type?: string | undefined;
|
|
1173
|
-
displayName?: string | undefined;
|
|
1174
|
-
helpText?: string | undefined;
|
|
1175
|
-
order?: number | undefined;
|
|
1176
|
-
source?: string | undefined;
|
|
1177
|
-
}> | undefined;
|
|
1178
|
-
custom?: Record<string, unknown> | undefined;
|
|
1179
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1180
|
-
} | undefined;
|
|
1181
|
-
} | undefined;
|
|
1182
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1183
563
|
}>;
|
|
1184
564
|
}, "strict", z.ZodTypeAny, {
|
|
1185
565
|
dataResource: {
|
|
1186
|
-
path: string;
|
|
1187
566
|
connectorType: string;
|
|
1188
567
|
url: string;
|
|
1189
568
|
method: "GET" | "POST" | "HEAD";
|
|
569
|
+
archetype?: string | undefined;
|
|
1190
570
|
headers?: {
|
|
1191
571
|
key: string;
|
|
1192
572
|
value: string;
|
|
@@ -1197,49 +577,22 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
1197
577
|
value: string;
|
|
1198
578
|
omitIfEmpty?: boolean | undefined;
|
|
1199
579
|
}[] | undefined;
|
|
580
|
+
body?: string | undefined;
|
|
1200
581
|
custom?: Record<string, unknown> | undefined;
|
|
1201
582
|
customPublic?: Record<string, unknown> | undefined;
|
|
1202
|
-
archetype?: string | undefined;
|
|
1203
|
-
body?: string | undefined;
|
|
1204
583
|
ttl?: number | undefined;
|
|
1205
584
|
localeMapping?: Record<string, string> | undefined;
|
|
1206
585
|
uiBadgeText?: string | undefined;
|
|
1207
|
-
variants?: {
|
|
1208
|
-
unpublished?: {
|
|
1209
|
-
baseUrl: string;
|
|
1210
|
-
headers?: {
|
|
1211
|
-
key: string;
|
|
1212
|
-
value: string;
|
|
1213
|
-
omitIfEmpty?: boolean | undefined;
|
|
1214
|
-
}[] | undefined;
|
|
1215
|
-
parameters?: {
|
|
1216
|
-
key: string;
|
|
1217
|
-
value: string;
|
|
1218
|
-
omitIfEmpty?: boolean | undefined;
|
|
1219
|
-
}[] | undefined;
|
|
1220
|
-
variables?: Record<string, {
|
|
1221
|
-
default: string;
|
|
1222
|
-
type?: string | undefined;
|
|
1223
|
-
displayName?: string | undefined;
|
|
1224
|
-
helpText?: string | undefined;
|
|
1225
|
-
order?: number | undefined;
|
|
1226
|
-
source?: string | undefined;
|
|
1227
|
-
}> | undefined;
|
|
1228
|
-
custom?: Record<string, unknown> | undefined;
|
|
1229
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1230
|
-
} | undefined;
|
|
1231
|
-
} | undefined;
|
|
1232
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1233
586
|
};
|
|
1234
587
|
errors?: string[] | undefined;
|
|
1235
588
|
warnings?: string[] | undefined;
|
|
1236
589
|
infos?: string[] | undefined;
|
|
1237
590
|
}, {
|
|
1238
591
|
dataResource: {
|
|
1239
|
-
path: string;
|
|
1240
592
|
connectorType: string;
|
|
1241
593
|
url: string;
|
|
1242
594
|
method: "GET" | "POST" | "HEAD";
|
|
595
|
+
archetype?: string | undefined;
|
|
1243
596
|
headers?: {
|
|
1244
597
|
key: string;
|
|
1245
598
|
value: string;
|
|
@@ -1250,39 +603,12 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
1250
603
|
value: string;
|
|
1251
604
|
omitIfEmpty?: boolean | undefined;
|
|
1252
605
|
}[] | undefined;
|
|
606
|
+
body?: string | undefined;
|
|
1253
607
|
custom?: Record<string, unknown> | undefined;
|
|
1254
608
|
customPublic?: Record<string, unknown> | undefined;
|
|
1255
|
-
archetype?: string | undefined;
|
|
1256
|
-
body?: string | undefined;
|
|
1257
609
|
ttl?: number | undefined;
|
|
1258
610
|
localeMapping?: Record<string, string> | undefined;
|
|
1259
611
|
uiBadgeText?: string | undefined;
|
|
1260
|
-
variants?: {
|
|
1261
|
-
unpublished?: {
|
|
1262
|
-
baseUrl: string;
|
|
1263
|
-
headers?: {
|
|
1264
|
-
key: string;
|
|
1265
|
-
value: string;
|
|
1266
|
-
omitIfEmpty?: boolean | undefined;
|
|
1267
|
-
}[] | undefined;
|
|
1268
|
-
parameters?: {
|
|
1269
|
-
key: string;
|
|
1270
|
-
value: string;
|
|
1271
|
-
omitIfEmpty?: boolean | undefined;
|
|
1272
|
-
}[] | undefined;
|
|
1273
|
-
variables?: Record<string, {
|
|
1274
|
-
default: string;
|
|
1275
|
-
type?: string | undefined;
|
|
1276
|
-
displayName?: string | undefined;
|
|
1277
|
-
helpText?: string | undefined;
|
|
1278
|
-
order?: number | undefined;
|
|
1279
|
-
source?: string | undefined;
|
|
1280
|
-
}> | undefined;
|
|
1281
|
-
custom?: Record<string, unknown> | undefined;
|
|
1282
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1283
|
-
} | undefined;
|
|
1284
|
-
} | undefined;
|
|
1285
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1286
612
|
};
|
|
1287
613
|
errors?: string[] | undefined;
|
|
1288
614
|
warnings?: string[] | undefined;
|
|
@@ -1300,7 +626,6 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1300
626
|
allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1301
627
|
badgeIconUrl: z.ZodOptional<z.ZodString>;
|
|
1302
628
|
connectorType: z.ZodString;
|
|
1303
|
-
path: z.ZodString;
|
|
1304
629
|
url: z.ZodString;
|
|
1305
630
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1306
631
|
key: z.ZodString;
|
|
@@ -1368,159 +693,11 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1368
693
|
request?: string | undefined;
|
|
1369
694
|
}>>;
|
|
1370
695
|
uiBadgeText: z.ZodOptional<z.ZodString>;
|
|
1371
|
-
|
|
1372
|
-
unpublished: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1373
|
-
baseUrl: z.ZodString;
|
|
1374
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1375
|
-
key: z.ZodString;
|
|
1376
|
-
value: z.ZodString;
|
|
1377
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
1378
|
-
}, "strip", z.ZodTypeAny, {
|
|
1379
|
-
key: string;
|
|
1380
|
-
value: string;
|
|
1381
|
-
omitIfEmpty?: boolean | undefined;
|
|
1382
|
-
}, {
|
|
1383
|
-
key: string;
|
|
1384
|
-
value: string;
|
|
1385
|
-
omitIfEmpty?: boolean | undefined;
|
|
1386
|
-
}>, "many">>;
|
|
1387
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1388
|
-
key: z.ZodString;
|
|
1389
|
-
value: z.ZodString;
|
|
1390
|
-
omitIfEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
1391
|
-
}, "strip", z.ZodTypeAny, {
|
|
1392
|
-
key: string;
|
|
1393
|
-
value: string;
|
|
1394
|
-
omitIfEmpty?: boolean | undefined;
|
|
1395
|
-
}, {
|
|
1396
|
-
key: string;
|
|
1397
|
-
value: string;
|
|
1398
|
-
omitIfEmpty?: boolean | undefined;
|
|
1399
|
-
}>, "many">>;
|
|
1400
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1401
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
1402
|
-
type: z.ZodOptional<z.ZodString>;
|
|
1403
|
-
default: z.ZodString;
|
|
1404
|
-
helpText: z.ZodOptional<z.ZodString>;
|
|
1405
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
1406
|
-
source: z.ZodOptional<z.ZodString>;
|
|
1407
|
-
}, "strip", z.ZodTypeAny, {
|
|
1408
|
-
default: string;
|
|
1409
|
-
type?: string | undefined;
|
|
1410
|
-
displayName?: string | undefined;
|
|
1411
|
-
helpText?: string | undefined;
|
|
1412
|
-
order?: number | undefined;
|
|
1413
|
-
source?: string | undefined;
|
|
1414
|
-
}, {
|
|
1415
|
-
default: string;
|
|
1416
|
-
type?: string | undefined;
|
|
1417
|
-
displayName?: string | undefined;
|
|
1418
|
-
helpText?: string | undefined;
|
|
1419
|
-
order?: number | undefined;
|
|
1420
|
-
source?: string | undefined;
|
|
1421
|
-
}>>>;
|
|
1422
|
-
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1423
|
-
customPublic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1424
|
-
}, "strip", z.ZodTypeAny, {
|
|
1425
|
-
baseUrl: string;
|
|
1426
|
-
headers?: {
|
|
1427
|
-
key: string;
|
|
1428
|
-
value: string;
|
|
1429
|
-
omitIfEmpty?: boolean | undefined;
|
|
1430
|
-
}[] | undefined;
|
|
1431
|
-
parameters?: {
|
|
1432
|
-
key: string;
|
|
1433
|
-
value: string;
|
|
1434
|
-
omitIfEmpty?: boolean | undefined;
|
|
1435
|
-
}[] | undefined;
|
|
1436
|
-
variables?: Record<string, {
|
|
1437
|
-
default: string;
|
|
1438
|
-
type?: string | undefined;
|
|
1439
|
-
displayName?: string | undefined;
|
|
1440
|
-
helpText?: string | undefined;
|
|
1441
|
-
order?: number | undefined;
|
|
1442
|
-
source?: string | undefined;
|
|
1443
|
-
}> | undefined;
|
|
1444
|
-
custom?: Record<string, unknown> | undefined;
|
|
1445
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1446
|
-
}, {
|
|
1447
|
-
baseUrl: string;
|
|
1448
|
-
headers?: {
|
|
1449
|
-
key: string;
|
|
1450
|
-
value: string;
|
|
1451
|
-
omitIfEmpty?: boolean | undefined;
|
|
1452
|
-
}[] | undefined;
|
|
1453
|
-
parameters?: {
|
|
1454
|
-
key: string;
|
|
1455
|
-
value: string;
|
|
1456
|
-
omitIfEmpty?: boolean | undefined;
|
|
1457
|
-
}[] | undefined;
|
|
1458
|
-
variables?: Record<string, {
|
|
1459
|
-
default: string;
|
|
1460
|
-
type?: string | undefined;
|
|
1461
|
-
displayName?: string | undefined;
|
|
1462
|
-
helpText?: string | undefined;
|
|
1463
|
-
order?: number | undefined;
|
|
1464
|
-
source?: string | undefined;
|
|
1465
|
-
}> | undefined;
|
|
1466
|
-
custom?: Record<string, unknown> | undefined;
|
|
1467
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1468
|
-
}>>>;
|
|
1469
|
-
}, "strip", z.ZodTypeAny, {
|
|
1470
|
-
unpublished?: {
|
|
1471
|
-
baseUrl: string;
|
|
1472
|
-
headers?: {
|
|
1473
|
-
key: string;
|
|
1474
|
-
value: string;
|
|
1475
|
-
omitIfEmpty?: boolean | undefined;
|
|
1476
|
-
}[] | undefined;
|
|
1477
|
-
parameters?: {
|
|
1478
|
-
key: string;
|
|
1479
|
-
value: string;
|
|
1480
|
-
omitIfEmpty?: boolean | undefined;
|
|
1481
|
-
}[] | undefined;
|
|
1482
|
-
variables?: Record<string, {
|
|
1483
|
-
default: string;
|
|
1484
|
-
type?: string | undefined;
|
|
1485
|
-
displayName?: string | undefined;
|
|
1486
|
-
helpText?: string | undefined;
|
|
1487
|
-
order?: number | undefined;
|
|
1488
|
-
source?: string | undefined;
|
|
1489
|
-
}> | undefined;
|
|
1490
|
-
custom?: Record<string, unknown> | undefined;
|
|
1491
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1492
|
-
} | undefined;
|
|
1493
|
-
}, {
|
|
1494
|
-
unpublished?: {
|
|
1495
|
-
baseUrl: string;
|
|
1496
|
-
headers?: {
|
|
1497
|
-
key: string;
|
|
1498
|
-
value: string;
|
|
1499
|
-
omitIfEmpty?: boolean | undefined;
|
|
1500
|
-
}[] | undefined;
|
|
1501
|
-
parameters?: {
|
|
1502
|
-
key: string;
|
|
1503
|
-
value: string;
|
|
1504
|
-
omitIfEmpty?: boolean | undefined;
|
|
1505
|
-
}[] | undefined;
|
|
1506
|
-
variables?: Record<string, {
|
|
1507
|
-
default: string;
|
|
1508
|
-
type?: string | undefined;
|
|
1509
|
-
displayName?: string | undefined;
|
|
1510
|
-
helpText?: string | undefined;
|
|
1511
|
-
order?: number | undefined;
|
|
1512
|
-
source?: string | undefined;
|
|
1513
|
-
}> | undefined;
|
|
1514
|
-
custom?: Record<string, unknown> | undefined;
|
|
1515
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1516
|
-
} | undefined;
|
|
1517
|
-
}>>;
|
|
1518
|
-
dataSourceVariant: z.ZodOptional<z.ZodEnum<["unpublished"]>>;
|
|
1519
|
-
}, "displayName" | "variables" | "id" | "allowedOnComponents" | "badgeIconUrl" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
|
|
1520
|
-
path: string;
|
|
696
|
+
}, "displayName" | "id" | "allowedOnComponents" | "badgeIconUrl" | "variables" | "purgeKey" | "edgehancer">, "strip", z.ZodTypeAny, {
|
|
1521
697
|
connectorType: string;
|
|
1522
698
|
url: string;
|
|
1523
699
|
method: "GET" | "POST" | "HEAD";
|
|
700
|
+
archetype?: string | undefined;
|
|
1524
701
|
headers?: {
|
|
1525
702
|
key: string;
|
|
1526
703
|
value: string;
|
|
@@ -1531,44 +708,17 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1531
708
|
value: string;
|
|
1532
709
|
omitIfEmpty?: boolean | undefined;
|
|
1533
710
|
}[] | undefined;
|
|
711
|
+
body?: string | undefined;
|
|
1534
712
|
custom?: Record<string, unknown> | undefined;
|
|
1535
713
|
customPublic?: Record<string, unknown> | undefined;
|
|
1536
|
-
archetype?: string | undefined;
|
|
1537
|
-
body?: string | undefined;
|
|
1538
714
|
ttl?: number | undefined;
|
|
1539
715
|
localeMapping?: Record<string, string> | undefined;
|
|
1540
716
|
uiBadgeText?: string | undefined;
|
|
1541
|
-
variants?: {
|
|
1542
|
-
unpublished?: {
|
|
1543
|
-
baseUrl: string;
|
|
1544
|
-
headers?: {
|
|
1545
|
-
key: string;
|
|
1546
|
-
value: string;
|
|
1547
|
-
omitIfEmpty?: boolean | undefined;
|
|
1548
|
-
}[] | undefined;
|
|
1549
|
-
parameters?: {
|
|
1550
|
-
key: string;
|
|
1551
|
-
value: string;
|
|
1552
|
-
omitIfEmpty?: boolean | undefined;
|
|
1553
|
-
}[] | undefined;
|
|
1554
|
-
variables?: Record<string, {
|
|
1555
|
-
default: string;
|
|
1556
|
-
type?: string | undefined;
|
|
1557
|
-
displayName?: string | undefined;
|
|
1558
|
-
helpText?: string | undefined;
|
|
1559
|
-
order?: number | undefined;
|
|
1560
|
-
source?: string | undefined;
|
|
1561
|
-
}> | undefined;
|
|
1562
|
-
custom?: Record<string, unknown> | undefined;
|
|
1563
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1564
|
-
} | undefined;
|
|
1565
|
-
} | undefined;
|
|
1566
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1567
717
|
}, {
|
|
1568
|
-
path: string;
|
|
1569
718
|
connectorType: string;
|
|
1570
719
|
url: string;
|
|
1571
720
|
method: "GET" | "POST" | "HEAD";
|
|
721
|
+
archetype?: string | undefined;
|
|
1572
722
|
headers?: {
|
|
1573
723
|
key: string;
|
|
1574
724
|
value: string;
|
|
@@ -1579,46 +729,19 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1579
729
|
value: string;
|
|
1580
730
|
omitIfEmpty?: boolean | undefined;
|
|
1581
731
|
}[] | undefined;
|
|
732
|
+
body?: string | undefined;
|
|
1582
733
|
custom?: Record<string, unknown> | undefined;
|
|
1583
734
|
customPublic?: Record<string, unknown> | undefined;
|
|
1584
|
-
archetype?: string | undefined;
|
|
1585
|
-
body?: string | undefined;
|
|
1586
735
|
ttl?: number | undefined;
|
|
1587
736
|
localeMapping?: Record<string, string> | undefined;
|
|
1588
737
|
uiBadgeText?: string | undefined;
|
|
1589
|
-
variants?: {
|
|
1590
|
-
unpublished?: {
|
|
1591
|
-
baseUrl: string;
|
|
1592
|
-
headers?: {
|
|
1593
|
-
key: string;
|
|
1594
|
-
value: string;
|
|
1595
|
-
omitIfEmpty?: boolean | undefined;
|
|
1596
|
-
}[] | undefined;
|
|
1597
|
-
parameters?: {
|
|
1598
|
-
key: string;
|
|
1599
|
-
value: string;
|
|
1600
|
-
omitIfEmpty?: boolean | undefined;
|
|
1601
|
-
}[] | undefined;
|
|
1602
|
-
variables?: Record<string, {
|
|
1603
|
-
default: string;
|
|
1604
|
-
type?: string | undefined;
|
|
1605
|
-
displayName?: string | undefined;
|
|
1606
|
-
helpText?: string | undefined;
|
|
1607
|
-
order?: number | undefined;
|
|
1608
|
-
source?: string | undefined;
|
|
1609
|
-
}> | undefined;
|
|
1610
|
-
custom?: Record<string, unknown> | undefined;
|
|
1611
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1612
|
-
} | undefined;
|
|
1613
|
-
} | undefined;
|
|
1614
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1615
738
|
}>;
|
|
1616
739
|
}, "strict", z.ZodTypeAny, {
|
|
1617
740
|
dataResource: {
|
|
1618
|
-
path: string;
|
|
1619
741
|
connectorType: string;
|
|
1620
742
|
url: string;
|
|
1621
743
|
method: "GET" | "POST" | "HEAD";
|
|
744
|
+
archetype?: string | undefined;
|
|
1622
745
|
headers?: {
|
|
1623
746
|
key: string;
|
|
1624
747
|
value: string;
|
|
@@ -1629,49 +752,22 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1629
752
|
value: string;
|
|
1630
753
|
omitIfEmpty?: boolean | undefined;
|
|
1631
754
|
}[] | undefined;
|
|
755
|
+
body?: string | undefined;
|
|
1632
756
|
custom?: Record<string, unknown> | undefined;
|
|
1633
757
|
customPublic?: Record<string, unknown> | undefined;
|
|
1634
|
-
archetype?: string | undefined;
|
|
1635
|
-
body?: string | undefined;
|
|
1636
758
|
ttl?: number | undefined;
|
|
1637
759
|
localeMapping?: Record<string, string> | undefined;
|
|
1638
760
|
uiBadgeText?: string | undefined;
|
|
1639
|
-
variants?: {
|
|
1640
|
-
unpublished?: {
|
|
1641
|
-
baseUrl: string;
|
|
1642
|
-
headers?: {
|
|
1643
|
-
key: string;
|
|
1644
|
-
value: string;
|
|
1645
|
-
omitIfEmpty?: boolean | undefined;
|
|
1646
|
-
}[] | undefined;
|
|
1647
|
-
parameters?: {
|
|
1648
|
-
key: string;
|
|
1649
|
-
value: string;
|
|
1650
|
-
omitIfEmpty?: boolean | undefined;
|
|
1651
|
-
}[] | undefined;
|
|
1652
|
-
variables?: Record<string, {
|
|
1653
|
-
default: string;
|
|
1654
|
-
type?: string | undefined;
|
|
1655
|
-
displayName?: string | undefined;
|
|
1656
|
-
helpText?: string | undefined;
|
|
1657
|
-
order?: number | undefined;
|
|
1658
|
-
source?: string | undefined;
|
|
1659
|
-
}> | undefined;
|
|
1660
|
-
custom?: Record<string, unknown> | undefined;
|
|
1661
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1662
|
-
} | undefined;
|
|
1663
|
-
} | undefined;
|
|
1664
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1665
761
|
};
|
|
1666
762
|
errors?: string[] | undefined;
|
|
1667
763
|
warnings?: string[] | undefined;
|
|
1668
764
|
infos?: string[] | undefined;
|
|
1669
765
|
}, {
|
|
1670
766
|
dataResource: {
|
|
1671
|
-
path: string;
|
|
1672
767
|
connectorType: string;
|
|
1673
768
|
url: string;
|
|
1674
769
|
method: "GET" | "POST" | "HEAD";
|
|
770
|
+
archetype?: string | undefined;
|
|
1675
771
|
headers?: {
|
|
1676
772
|
key: string;
|
|
1677
773
|
value: string;
|
|
@@ -1682,39 +778,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1682
778
|
value: string;
|
|
1683
779
|
omitIfEmpty?: boolean | undefined;
|
|
1684
780
|
}[] | undefined;
|
|
781
|
+
body?: string | undefined;
|
|
1685
782
|
custom?: Record<string, unknown> | undefined;
|
|
1686
783
|
customPublic?: Record<string, unknown> | undefined;
|
|
1687
|
-
archetype?: string | undefined;
|
|
1688
|
-
body?: string | undefined;
|
|
1689
784
|
ttl?: number | undefined;
|
|
1690
785
|
localeMapping?: Record<string, string> | undefined;
|
|
1691
786
|
uiBadgeText?: string | undefined;
|
|
1692
|
-
variants?: {
|
|
1693
|
-
unpublished?: {
|
|
1694
|
-
baseUrl: string;
|
|
1695
|
-
headers?: {
|
|
1696
|
-
key: string;
|
|
1697
|
-
value: string;
|
|
1698
|
-
omitIfEmpty?: boolean | undefined;
|
|
1699
|
-
}[] | undefined;
|
|
1700
|
-
parameters?: {
|
|
1701
|
-
key: string;
|
|
1702
|
-
value: string;
|
|
1703
|
-
omitIfEmpty?: boolean | undefined;
|
|
1704
|
-
}[] | undefined;
|
|
1705
|
-
variables?: Record<string, {
|
|
1706
|
-
default: string;
|
|
1707
|
-
type?: string | undefined;
|
|
1708
|
-
displayName?: string | undefined;
|
|
1709
|
-
helpText?: string | undefined;
|
|
1710
|
-
order?: number | undefined;
|
|
1711
|
-
source?: string | undefined;
|
|
1712
|
-
}> | undefined;
|
|
1713
|
-
custom?: Record<string, unknown> | undefined;
|
|
1714
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1715
|
-
} | undefined;
|
|
1716
|
-
} | undefined;
|
|
1717
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1718
787
|
};
|
|
1719
788
|
errors?: string[] | undefined;
|
|
1720
789
|
warnings?: string[] | undefined;
|
|
@@ -1723,10 +792,10 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1723
792
|
}, "strict", z.ZodTypeAny, {
|
|
1724
793
|
dataResources: {
|
|
1725
794
|
dataResource: {
|
|
1726
|
-
path: string;
|
|
1727
795
|
connectorType: string;
|
|
1728
796
|
url: string;
|
|
1729
797
|
method: "GET" | "POST" | "HEAD";
|
|
798
|
+
archetype?: string | undefined;
|
|
1730
799
|
headers?: {
|
|
1731
800
|
key: string;
|
|
1732
801
|
value: string;
|
|
@@ -1737,39 +806,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1737
806
|
value: string;
|
|
1738
807
|
omitIfEmpty?: boolean | undefined;
|
|
1739
808
|
}[] | undefined;
|
|
809
|
+
body?: string | undefined;
|
|
1740
810
|
custom?: Record<string, unknown> | undefined;
|
|
1741
811
|
customPublic?: Record<string, unknown> | undefined;
|
|
1742
|
-
archetype?: string | undefined;
|
|
1743
|
-
body?: string | undefined;
|
|
1744
812
|
ttl?: number | undefined;
|
|
1745
813
|
localeMapping?: Record<string, string> | undefined;
|
|
1746
814
|
uiBadgeText?: string | undefined;
|
|
1747
|
-
variants?: {
|
|
1748
|
-
unpublished?: {
|
|
1749
|
-
baseUrl: string;
|
|
1750
|
-
headers?: {
|
|
1751
|
-
key: string;
|
|
1752
|
-
value: string;
|
|
1753
|
-
omitIfEmpty?: boolean | undefined;
|
|
1754
|
-
}[] | undefined;
|
|
1755
|
-
parameters?: {
|
|
1756
|
-
key: string;
|
|
1757
|
-
value: string;
|
|
1758
|
-
omitIfEmpty?: boolean | undefined;
|
|
1759
|
-
}[] | undefined;
|
|
1760
|
-
variables?: Record<string, {
|
|
1761
|
-
default: string;
|
|
1762
|
-
type?: string | undefined;
|
|
1763
|
-
displayName?: string | undefined;
|
|
1764
|
-
helpText?: string | undefined;
|
|
1765
|
-
order?: number | undefined;
|
|
1766
|
-
source?: string | undefined;
|
|
1767
|
-
}> | undefined;
|
|
1768
|
-
custom?: Record<string, unknown> | undefined;
|
|
1769
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1770
|
-
} | undefined;
|
|
1771
|
-
} | undefined;
|
|
1772
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1773
815
|
};
|
|
1774
816
|
errors?: string[] | undefined;
|
|
1775
817
|
warnings?: string[] | undefined;
|
|
@@ -1778,10 +820,10 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1778
820
|
}, {
|
|
1779
821
|
dataResources: {
|
|
1780
822
|
dataResource: {
|
|
1781
|
-
path: string;
|
|
1782
823
|
connectorType: string;
|
|
1783
824
|
url: string;
|
|
1784
825
|
method: "GET" | "POST" | "HEAD";
|
|
826
|
+
archetype?: string | undefined;
|
|
1785
827
|
headers?: {
|
|
1786
828
|
key: string;
|
|
1787
829
|
value: string;
|
|
@@ -1792,39 +834,12 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
1792
834
|
value: string;
|
|
1793
835
|
omitIfEmpty?: boolean | undefined;
|
|
1794
836
|
}[] | undefined;
|
|
837
|
+
body?: string | undefined;
|
|
1795
838
|
custom?: Record<string, unknown> | undefined;
|
|
1796
839
|
customPublic?: Record<string, unknown> | undefined;
|
|
1797
|
-
archetype?: string | undefined;
|
|
1798
|
-
body?: string | undefined;
|
|
1799
840
|
ttl?: number | undefined;
|
|
1800
841
|
localeMapping?: Record<string, string> | undefined;
|
|
1801
842
|
uiBadgeText?: string | undefined;
|
|
1802
|
-
variants?: {
|
|
1803
|
-
unpublished?: {
|
|
1804
|
-
baseUrl: string;
|
|
1805
|
-
headers?: {
|
|
1806
|
-
key: string;
|
|
1807
|
-
value: string;
|
|
1808
|
-
omitIfEmpty?: boolean | undefined;
|
|
1809
|
-
}[] | undefined;
|
|
1810
|
-
parameters?: {
|
|
1811
|
-
key: string;
|
|
1812
|
-
value: string;
|
|
1813
|
-
omitIfEmpty?: boolean | undefined;
|
|
1814
|
-
}[] | undefined;
|
|
1815
|
-
variables?: Record<string, {
|
|
1816
|
-
default: string;
|
|
1817
|
-
type?: string | undefined;
|
|
1818
|
-
displayName?: string | undefined;
|
|
1819
|
-
helpText?: string | undefined;
|
|
1820
|
-
order?: number | undefined;
|
|
1821
|
-
source?: string | undefined;
|
|
1822
|
-
}> | undefined;
|
|
1823
|
-
custom?: Record<string, unknown> | undefined;
|
|
1824
|
-
customPublic?: Record<string, unknown> | undefined;
|
|
1825
|
-
} | undefined;
|
|
1826
|
-
} | undefined;
|
|
1827
|
-
dataSourceVariant?: "unpublished" | undefined;
|
|
1828
843
|
};
|
|
1829
844
|
errors?: string[] | undefined;
|
|
1830
845
|
warnings?: string[] | undefined;
|