@uniformdev/mesh-edgehancer-sdk 19.184.1 → 19.184.3-alpha.32
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 +1024 -39
- package/dist/index.d.ts +1024 -39
- package/dist/index.esm.js +14 -1
- package/dist/index.js +14 -1
- package/dist/index.mjs +14 -1
- 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 } from '@uniformdev/canvas';
|
|
3
|
+
import { DataType, DataSource, DataSourceVariantsKeys } from '@uniformdev/canvas';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The context we are fetching the data resource in:
|
|
@@ -30,6 +30,7 @@ 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;
|
|
33
34
|
url: z.ZodString;
|
|
34
35
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
36
|
key: z.ZodString;
|
|
@@ -97,15 +98,161 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
97
98
|
request?: string | undefined;
|
|
98
99
|
}>>;
|
|
99
100
|
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"]>>;
|
|
100
249
|
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
path: string;
|
|
101
251
|
displayName: string;
|
|
102
252
|
id: string;
|
|
103
253
|
connectorType: string;
|
|
104
254
|
url: string;
|
|
105
255
|
method: "GET" | "POST" | "HEAD";
|
|
106
|
-
archetype?: string | undefined;
|
|
107
|
-
allowedOnComponents?: string[] | undefined;
|
|
108
|
-
badgeIconUrl?: string | undefined;
|
|
109
256
|
headers?: {
|
|
110
257
|
key: string;
|
|
111
258
|
value: string;
|
|
@@ -116,8 +263,6 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
116
263
|
value: string;
|
|
117
264
|
omitIfEmpty?: boolean | undefined;
|
|
118
265
|
}[] | undefined;
|
|
119
|
-
body?: string | undefined;
|
|
120
|
-
custom?: Record<string, unknown> | undefined;
|
|
121
266
|
variables?: Record<string, {
|
|
122
267
|
default: string;
|
|
123
268
|
type?: string | undefined;
|
|
@@ -126,7 +271,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
126
271
|
order?: number | undefined;
|
|
127
272
|
source?: string | undefined;
|
|
128
273
|
}> | undefined;
|
|
274
|
+
custom?: Record<string, unknown> | undefined;
|
|
129
275
|
customPublic?: Record<string, unknown> | undefined;
|
|
276
|
+
archetype?: string | undefined;
|
|
277
|
+
allowedOnComponents?: string[] | undefined;
|
|
278
|
+
badgeIconUrl?: string | undefined;
|
|
279
|
+
body?: string | undefined;
|
|
130
280
|
ttl?: number | undefined;
|
|
131
281
|
purgeKey?: string | undefined;
|
|
132
282
|
localeMapping?: Record<string, string> | undefined;
|
|
@@ -135,15 +285,39 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
135
285
|
request?: string | undefined;
|
|
136
286
|
} | undefined;
|
|
137
287
|
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;
|
|
138
314
|
}, {
|
|
315
|
+
path: string;
|
|
139
316
|
displayName: string;
|
|
140
317
|
id: string;
|
|
141
318
|
connectorType: string;
|
|
142
319
|
url: string;
|
|
143
320
|
method: "GET" | "POST" | "HEAD";
|
|
144
|
-
archetype?: string | undefined;
|
|
145
|
-
allowedOnComponents?: string[] | undefined;
|
|
146
|
-
badgeIconUrl?: string | undefined;
|
|
147
321
|
headers?: {
|
|
148
322
|
key: string;
|
|
149
323
|
value: string;
|
|
@@ -154,8 +328,6 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
154
328
|
value: string;
|
|
155
329
|
omitIfEmpty?: boolean | undefined;
|
|
156
330
|
}[] | undefined;
|
|
157
|
-
body?: string | undefined;
|
|
158
|
-
custom?: Record<string, unknown> | undefined;
|
|
159
331
|
variables?: Record<string, {
|
|
160
332
|
default: string;
|
|
161
333
|
type?: string | undefined;
|
|
@@ -164,7 +336,12 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
164
336
|
order?: number | undefined;
|
|
165
337
|
source?: string | undefined;
|
|
166
338
|
}> | undefined;
|
|
339
|
+
custom?: Record<string, unknown> | undefined;
|
|
167
340
|
customPublic?: Record<string, unknown> | undefined;
|
|
341
|
+
archetype?: string | undefined;
|
|
342
|
+
allowedOnComponents?: string[] | undefined;
|
|
343
|
+
badgeIconUrl?: string | undefined;
|
|
344
|
+
body?: string | undefined;
|
|
168
345
|
ttl?: number | undefined;
|
|
169
346
|
purgeKey?: string | undefined;
|
|
170
347
|
localeMapping?: Record<string, string> | undefined;
|
|
@@ -173,13 +350,39 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
|
173
350
|
request?: string | undefined;
|
|
174
351
|
} | undefined;
|
|
175
352
|
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;
|
|
176
379
|
}>;
|
|
177
380
|
/** Declaration of custom edgehancer hooks on a merged data type */
|
|
178
381
|
type CustomEdgehancerDefinition = z.infer<typeof customEdgehancerDefinitionSchema>;
|
|
179
382
|
/**
|
|
180
383
|
* The result of merging a data source with a data type into a single request object
|
|
181
384
|
*/
|
|
182
|
-
type MergedDataType = Omit<DataType, '
|
|
385
|
+
type MergedDataType = Omit<DataType, 'dataSourceId'> & Pick<DataSource, 'connectorType' | 'localeMapping' | 'customPublic' | 'variants'> & {
|
|
183
386
|
/** Merged base URL from the data source with the relative URL from the data type */
|
|
184
387
|
url: string;
|
|
185
388
|
/**
|
|
@@ -193,6 +396,7 @@ type MergedDataType = Omit<DataType, 'path' | 'dataSourceId'> & Pick<DataSource,
|
|
|
193
396
|
* Max length 12
|
|
194
397
|
*/
|
|
195
398
|
uiBadgeText?: string;
|
|
399
|
+
dataSourceVariant?: DataSourceVariantsKeys;
|
|
196
400
|
};
|
|
197
401
|
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]>;
|
|
198
402
|
/** A data resource of JSON data retrieved from a data type/data source */
|
|
@@ -211,6 +415,12 @@ type RequestEdgehancerContext = {
|
|
|
211
415
|
* that the handler is registered for.
|
|
212
416
|
*/
|
|
213
417
|
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;
|
|
214
424
|
};
|
|
215
425
|
declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
|
|
216
426
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -315,6 +525,7 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
315
525
|
allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
316
526
|
badgeIconUrl: z.ZodOptional<z.ZodString>;
|
|
317
527
|
connectorType: z.ZodString;
|
|
528
|
+
path: z.ZodString;
|
|
318
529
|
url: z.ZodString;
|
|
319
530
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
320
531
|
key: z.ZodString;
|
|
@@ -382,11 +593,159 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
382
593
|
request?: string | undefined;
|
|
383
594
|
}>>;
|
|
384
595
|
uiBadgeText: z.ZodOptional<z.ZodString>;
|
|
385
|
-
|
|
596
|
+
variants: z.ZodOptional<z.ZodObject<{
|
|
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;
|
|
386
746
|
connectorType: string;
|
|
387
747
|
url: string;
|
|
388
748
|
method: "GET" | "POST" | "HEAD";
|
|
389
|
-
archetype?: string | undefined;
|
|
390
749
|
headers?: {
|
|
391
750
|
key: string;
|
|
392
751
|
value: string;
|
|
@@ -397,17 +756,44 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
397
756
|
value: string;
|
|
398
757
|
omitIfEmpty?: boolean | undefined;
|
|
399
758
|
}[] | undefined;
|
|
400
|
-
body?: string | undefined;
|
|
401
759
|
custom?: Record<string, unknown> | undefined;
|
|
402
760
|
customPublic?: Record<string, unknown> | undefined;
|
|
761
|
+
archetype?: string | undefined;
|
|
762
|
+
body?: string | undefined;
|
|
403
763
|
ttl?: number | undefined;
|
|
404
764
|
localeMapping?: Record<string, string> | undefined;
|
|
405
765
|
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;
|
|
406
792
|
}, {
|
|
793
|
+
path: string;
|
|
407
794
|
connectorType: string;
|
|
408
795
|
url: string;
|
|
409
796
|
method: "GET" | "POST" | "HEAD";
|
|
410
|
-
archetype?: string | undefined;
|
|
411
797
|
headers?: {
|
|
412
798
|
key: string;
|
|
413
799
|
value: string;
|
|
@@ -418,12 +804,39 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
|
418
804
|
value: string;
|
|
419
805
|
omitIfEmpty?: boolean | undefined;
|
|
420
806
|
}[] | undefined;
|
|
421
|
-
body?: string | undefined;
|
|
422
807
|
custom?: Record<string, unknown> | undefined;
|
|
423
808
|
customPublic?: Record<string, unknown> | undefined;
|
|
809
|
+
archetype?: string | undefined;
|
|
810
|
+
body?: string | undefined;
|
|
424
811
|
ttl?: number | undefined;
|
|
425
812
|
localeMapping?: Record<string, string> | undefined;
|
|
426
813
|
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;
|
|
427
840
|
}>;
|
|
428
841
|
type EdgehancerMergedDataType = z.infer<typeof edgehancerMergedDataTypeSchema>;
|
|
429
842
|
type PreRequestEdgehancerDataResourceContext = {
|
|
@@ -439,6 +852,10 @@ type PreRequestEdgehancerContext = {
|
|
|
439
852
|
* that the hook is registered for.
|
|
440
853
|
*/
|
|
441
854
|
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;
|
|
442
859
|
};
|
|
443
860
|
declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
444
861
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -451,6 +868,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
451
868
|
allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
452
869
|
badgeIconUrl: z.ZodOptional<z.ZodString>;
|
|
453
870
|
connectorType: z.ZodString;
|
|
871
|
+
path: z.ZodString;
|
|
454
872
|
url: z.ZodString;
|
|
455
873
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
456
874
|
key: z.ZodString;
|
|
@@ -518,11 +936,159 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
518
936
|
request?: string | undefined;
|
|
519
937
|
}>>;
|
|
520
938
|
uiBadgeText: z.ZodOptional<z.ZodString>;
|
|
521
|
-
|
|
939
|
+
variants: z.ZodOptional<z.ZodObject<{
|
|
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;
|
|
522
1089
|
connectorType: string;
|
|
523
1090
|
url: string;
|
|
524
1091
|
method: "GET" | "POST" | "HEAD";
|
|
525
|
-
archetype?: string | undefined;
|
|
526
1092
|
headers?: {
|
|
527
1093
|
key: string;
|
|
528
1094
|
value: string;
|
|
@@ -533,17 +1099,44 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
533
1099
|
value: string;
|
|
534
1100
|
omitIfEmpty?: boolean | undefined;
|
|
535
1101
|
}[] | undefined;
|
|
536
|
-
body?: string | undefined;
|
|
537
1102
|
custom?: Record<string, unknown> | undefined;
|
|
538
1103
|
customPublic?: Record<string, unknown> | undefined;
|
|
1104
|
+
archetype?: string | undefined;
|
|
1105
|
+
body?: string | undefined;
|
|
539
1106
|
ttl?: number | undefined;
|
|
540
1107
|
localeMapping?: Record<string, string> | undefined;
|
|
541
1108
|
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;
|
|
542
1135
|
}, {
|
|
1136
|
+
path: string;
|
|
543
1137
|
connectorType: string;
|
|
544
1138
|
url: string;
|
|
545
1139
|
method: "GET" | "POST" | "HEAD";
|
|
546
|
-
archetype?: string | undefined;
|
|
547
1140
|
headers?: {
|
|
548
1141
|
key: string;
|
|
549
1142
|
value: string;
|
|
@@ -554,19 +1147,46 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
554
1147
|
value: string;
|
|
555
1148
|
omitIfEmpty?: boolean | undefined;
|
|
556
1149
|
}[] | undefined;
|
|
557
|
-
body?: string | undefined;
|
|
558
1150
|
custom?: Record<string, unknown> | undefined;
|
|
559
1151
|
customPublic?: Record<string, unknown> | undefined;
|
|
1152
|
+
archetype?: string | undefined;
|
|
1153
|
+
body?: string | undefined;
|
|
560
1154
|
ttl?: number | undefined;
|
|
561
1155
|
localeMapping?: Record<string, string> | undefined;
|
|
562
1156
|
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;
|
|
563
1183
|
}>;
|
|
564
1184
|
}, "strict", z.ZodTypeAny, {
|
|
565
1185
|
dataResource: {
|
|
1186
|
+
path: string;
|
|
566
1187
|
connectorType: string;
|
|
567
1188
|
url: string;
|
|
568
1189
|
method: "GET" | "POST" | "HEAD";
|
|
569
|
-
archetype?: string | undefined;
|
|
570
1190
|
headers?: {
|
|
571
1191
|
key: string;
|
|
572
1192
|
value: string;
|
|
@@ -577,22 +1197,49 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
577
1197
|
value: string;
|
|
578
1198
|
omitIfEmpty?: boolean | undefined;
|
|
579
1199
|
}[] | undefined;
|
|
580
|
-
body?: string | undefined;
|
|
581
1200
|
custom?: Record<string, unknown> | undefined;
|
|
582
1201
|
customPublic?: Record<string, unknown> | undefined;
|
|
1202
|
+
archetype?: string | undefined;
|
|
1203
|
+
body?: string | undefined;
|
|
583
1204
|
ttl?: number | undefined;
|
|
584
1205
|
localeMapping?: Record<string, string> | undefined;
|
|
585
1206
|
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;
|
|
586
1233
|
};
|
|
587
1234
|
errors?: string[] | undefined;
|
|
588
1235
|
warnings?: string[] | undefined;
|
|
589
1236
|
infos?: string[] | undefined;
|
|
590
1237
|
}, {
|
|
591
1238
|
dataResource: {
|
|
1239
|
+
path: string;
|
|
592
1240
|
connectorType: string;
|
|
593
1241
|
url: string;
|
|
594
1242
|
method: "GET" | "POST" | "HEAD";
|
|
595
|
-
archetype?: string | undefined;
|
|
596
1243
|
headers?: {
|
|
597
1244
|
key: string;
|
|
598
1245
|
value: string;
|
|
@@ -603,12 +1250,39 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
|
603
1250
|
value: string;
|
|
604
1251
|
omitIfEmpty?: boolean | undefined;
|
|
605
1252
|
}[] | undefined;
|
|
606
|
-
body?: string | undefined;
|
|
607
1253
|
custom?: Record<string, unknown> | undefined;
|
|
608
1254
|
customPublic?: Record<string, unknown> | undefined;
|
|
1255
|
+
archetype?: string | undefined;
|
|
1256
|
+
body?: string | undefined;
|
|
609
1257
|
ttl?: number | undefined;
|
|
610
1258
|
localeMapping?: Record<string, string> | undefined;
|
|
611
1259
|
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;
|
|
612
1286
|
};
|
|
613
1287
|
errors?: string[] | undefined;
|
|
614
1288
|
warnings?: string[] | undefined;
|
|
@@ -626,6 +1300,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
626
1300
|
allowedOnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
627
1301
|
badgeIconUrl: z.ZodOptional<z.ZodString>;
|
|
628
1302
|
connectorType: z.ZodString;
|
|
1303
|
+
path: z.ZodString;
|
|
629
1304
|
url: z.ZodString;
|
|
630
1305
|
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
631
1306
|
key: z.ZodString;
|
|
@@ -693,11 +1368,159 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
693
1368
|
request?: string | undefined;
|
|
694
1369
|
}>>;
|
|
695
1370
|
uiBadgeText: z.ZodOptional<z.ZodString>;
|
|
696
|
-
|
|
1371
|
+
variants: z.ZodOptional<z.ZodObject<{
|
|
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;
|
|
697
1521
|
connectorType: string;
|
|
698
1522
|
url: string;
|
|
699
1523
|
method: "GET" | "POST" | "HEAD";
|
|
700
|
-
archetype?: string | undefined;
|
|
701
1524
|
headers?: {
|
|
702
1525
|
key: string;
|
|
703
1526
|
value: string;
|
|
@@ -708,17 +1531,44 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
708
1531
|
value: string;
|
|
709
1532
|
omitIfEmpty?: boolean | undefined;
|
|
710
1533
|
}[] | undefined;
|
|
711
|
-
body?: string | undefined;
|
|
712
1534
|
custom?: Record<string, unknown> | undefined;
|
|
713
1535
|
customPublic?: Record<string, unknown> | undefined;
|
|
1536
|
+
archetype?: string | undefined;
|
|
1537
|
+
body?: string | undefined;
|
|
714
1538
|
ttl?: number | undefined;
|
|
715
1539
|
localeMapping?: Record<string, string> | undefined;
|
|
716
1540
|
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;
|
|
717
1567
|
}, {
|
|
1568
|
+
path: string;
|
|
718
1569
|
connectorType: string;
|
|
719
1570
|
url: string;
|
|
720
1571
|
method: "GET" | "POST" | "HEAD";
|
|
721
|
-
archetype?: string | undefined;
|
|
722
1572
|
headers?: {
|
|
723
1573
|
key: string;
|
|
724
1574
|
value: string;
|
|
@@ -729,19 +1579,46 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
729
1579
|
value: string;
|
|
730
1580
|
omitIfEmpty?: boolean | undefined;
|
|
731
1581
|
}[] | undefined;
|
|
732
|
-
body?: string | undefined;
|
|
733
1582
|
custom?: Record<string, unknown> | undefined;
|
|
734
1583
|
customPublic?: Record<string, unknown> | undefined;
|
|
1584
|
+
archetype?: string | undefined;
|
|
1585
|
+
body?: string | undefined;
|
|
735
1586
|
ttl?: number | undefined;
|
|
736
1587
|
localeMapping?: Record<string, string> | undefined;
|
|
737
1588
|
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;
|
|
738
1615
|
}>;
|
|
739
1616
|
}, "strict", z.ZodTypeAny, {
|
|
740
1617
|
dataResource: {
|
|
1618
|
+
path: string;
|
|
741
1619
|
connectorType: string;
|
|
742
1620
|
url: string;
|
|
743
1621
|
method: "GET" | "POST" | "HEAD";
|
|
744
|
-
archetype?: string | undefined;
|
|
745
1622
|
headers?: {
|
|
746
1623
|
key: string;
|
|
747
1624
|
value: string;
|
|
@@ -752,22 +1629,49 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
752
1629
|
value: string;
|
|
753
1630
|
omitIfEmpty?: boolean | undefined;
|
|
754
1631
|
}[] | undefined;
|
|
755
|
-
body?: string | undefined;
|
|
756
1632
|
custom?: Record<string, unknown> | undefined;
|
|
757
1633
|
customPublic?: Record<string, unknown> | undefined;
|
|
1634
|
+
archetype?: string | undefined;
|
|
1635
|
+
body?: string | undefined;
|
|
758
1636
|
ttl?: number | undefined;
|
|
759
1637
|
localeMapping?: Record<string, string> | undefined;
|
|
760
1638
|
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;
|
|
761
1665
|
};
|
|
762
1666
|
errors?: string[] | undefined;
|
|
763
1667
|
warnings?: string[] | undefined;
|
|
764
1668
|
infos?: string[] | undefined;
|
|
765
1669
|
}, {
|
|
766
1670
|
dataResource: {
|
|
1671
|
+
path: string;
|
|
767
1672
|
connectorType: string;
|
|
768
1673
|
url: string;
|
|
769
1674
|
method: "GET" | "POST" | "HEAD";
|
|
770
|
-
archetype?: string | undefined;
|
|
771
1675
|
headers?: {
|
|
772
1676
|
key: string;
|
|
773
1677
|
value: string;
|
|
@@ -778,12 +1682,39 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
778
1682
|
value: string;
|
|
779
1683
|
omitIfEmpty?: boolean | undefined;
|
|
780
1684
|
}[] | undefined;
|
|
781
|
-
body?: string | undefined;
|
|
782
1685
|
custom?: Record<string, unknown> | undefined;
|
|
783
1686
|
customPublic?: Record<string, unknown> | undefined;
|
|
1687
|
+
archetype?: string | undefined;
|
|
1688
|
+
body?: string | undefined;
|
|
784
1689
|
ttl?: number | undefined;
|
|
785
1690
|
localeMapping?: Record<string, string> | undefined;
|
|
786
1691
|
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;
|
|
787
1718
|
};
|
|
788
1719
|
errors?: string[] | undefined;
|
|
789
1720
|
warnings?: string[] | undefined;
|
|
@@ -792,10 +1723,10 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
792
1723
|
}, "strict", z.ZodTypeAny, {
|
|
793
1724
|
dataResources: {
|
|
794
1725
|
dataResource: {
|
|
1726
|
+
path: string;
|
|
795
1727
|
connectorType: string;
|
|
796
1728
|
url: string;
|
|
797
1729
|
method: "GET" | "POST" | "HEAD";
|
|
798
|
-
archetype?: string | undefined;
|
|
799
1730
|
headers?: {
|
|
800
1731
|
key: string;
|
|
801
1732
|
value: string;
|
|
@@ -806,12 +1737,39 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
806
1737
|
value: string;
|
|
807
1738
|
omitIfEmpty?: boolean | undefined;
|
|
808
1739
|
}[] | undefined;
|
|
809
|
-
body?: string | undefined;
|
|
810
1740
|
custom?: Record<string, unknown> | undefined;
|
|
811
1741
|
customPublic?: Record<string, unknown> | undefined;
|
|
1742
|
+
archetype?: string | undefined;
|
|
1743
|
+
body?: string | undefined;
|
|
812
1744
|
ttl?: number | undefined;
|
|
813
1745
|
localeMapping?: Record<string, string> | undefined;
|
|
814
1746
|
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;
|
|
815
1773
|
};
|
|
816
1774
|
errors?: string[] | undefined;
|
|
817
1775
|
warnings?: string[] | undefined;
|
|
@@ -820,10 +1778,10 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
820
1778
|
}, {
|
|
821
1779
|
dataResources: {
|
|
822
1780
|
dataResource: {
|
|
1781
|
+
path: string;
|
|
823
1782
|
connectorType: string;
|
|
824
1783
|
url: string;
|
|
825
1784
|
method: "GET" | "POST" | "HEAD";
|
|
826
|
-
archetype?: string | undefined;
|
|
827
1785
|
headers?: {
|
|
828
1786
|
key: string;
|
|
829
1787
|
value: string;
|
|
@@ -834,12 +1792,39 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
|
834
1792
|
value: string;
|
|
835
1793
|
omitIfEmpty?: boolean | undefined;
|
|
836
1794
|
}[] | undefined;
|
|
837
|
-
body?: string | undefined;
|
|
838
1795
|
custom?: Record<string, unknown> | undefined;
|
|
839
1796
|
customPublic?: Record<string, unknown> | undefined;
|
|
1797
|
+
archetype?: string | undefined;
|
|
1798
|
+
body?: string | undefined;
|
|
840
1799
|
ttl?: number | undefined;
|
|
841
1800
|
localeMapping?: Record<string, string> | undefined;
|
|
842
1801
|
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;
|
|
843
1828
|
};
|
|
844
1829
|
errors?: string[] | undefined;
|
|
845
1830
|
warnings?: string[] | undefined;
|