@uniformdev/mesh-edgehancer-sdk 19.135.0 → 19.135.1-alpha.11
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 +34 -13
- package/dist/index.d.ts +34 -13
- package/dist/index.esm.js +12 -0
- package/dist/index.js +15 -0
- package/dist/index.mjs +12 -0
- package/dist/webhooks/index.d.mts +2 -2
- package/dist/webhooks/index.d.ts +2 -2
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
@@ -68,15 +68,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
68
68
|
source: z.ZodOptional<z.ZodString>;
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
70
70
|
default: string;
|
71
|
-
displayName?: string | undefined;
|
72
71
|
type?: string | undefined;
|
72
|
+
displayName?: string | undefined;
|
73
73
|
helpText?: string | undefined;
|
74
74
|
order?: number | undefined;
|
75
75
|
source?: string | undefined;
|
76
76
|
}, {
|
77
77
|
default: string;
|
78
|
-
displayName?: string | undefined;
|
79
78
|
type?: string | undefined;
|
79
|
+
displayName?: string | undefined;
|
80
80
|
helpText?: string | undefined;
|
81
81
|
order?: number | undefined;
|
82
82
|
source?: string | undefined;
|
@@ -117,15 +117,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
117
117
|
omitIfEmpty?: boolean | undefined;
|
118
118
|
}[] | undefined;
|
119
119
|
body?: string | undefined;
|
120
|
+
custom?: Record<string, unknown> | undefined;
|
120
121
|
variables?: Record<string, {
|
121
122
|
default: string;
|
122
|
-
displayName?: string | undefined;
|
123
123
|
type?: string | undefined;
|
124
|
+
displayName?: string | undefined;
|
124
125
|
helpText?: string | undefined;
|
125
126
|
order?: number | undefined;
|
126
127
|
source?: string | undefined;
|
127
128
|
}> | undefined;
|
128
|
-
custom?: Record<string, unknown> | undefined;
|
129
129
|
customPublic?: Record<string, unknown> | undefined;
|
130
130
|
ttl?: number | undefined;
|
131
131
|
purgeKey?: string | undefined;
|
@@ -155,15 +155,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
155
155
|
omitIfEmpty?: boolean | undefined;
|
156
156
|
}[] | undefined;
|
157
157
|
body?: string | undefined;
|
158
|
+
custom?: Record<string, unknown> | undefined;
|
158
159
|
variables?: Record<string, {
|
159
160
|
default: string;
|
160
|
-
displayName?: string | undefined;
|
161
161
|
type?: string | undefined;
|
162
|
+
displayName?: string | undefined;
|
162
163
|
helpText?: string | undefined;
|
163
164
|
order?: number | undefined;
|
164
165
|
source?: string | undefined;
|
165
166
|
}> | undefined;
|
166
|
-
custom?: Record<string, unknown> | undefined;
|
167
167
|
customPublic?: Record<string, unknown> | undefined;
|
168
168
|
ttl?: number | undefined;
|
169
169
|
purgeKey?: string | undefined;
|
@@ -215,16 +215,19 @@ type RequestEdgehancerContext = {
|
|
215
215
|
declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
|
216
216
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
217
217
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
218
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
218
219
|
surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
219
220
|
result: 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]>;
|
220
221
|
}, "strict", z.ZodTypeAny, {
|
221
222
|
errors?: string[] | undefined;
|
222
223
|
warnings?: string[] | undefined;
|
224
|
+
infos?: string[] | undefined;
|
223
225
|
surrogateKeys?: string[] | undefined;
|
224
226
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
225
227
|
}, {
|
226
228
|
errors?: string[] | undefined;
|
227
229
|
warnings?: string[] | undefined;
|
230
|
+
infos?: string[] | undefined;
|
228
231
|
surrogateKeys?: string[] | undefined;
|
229
232
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
230
233
|
}>;
|
@@ -232,16 +235,19 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
|
|
232
235
|
results: z.ZodArray<z.ZodObject<{
|
233
236
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
234
237
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
238
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
235
239
|
surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
236
240
|
result: 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]>;
|
237
241
|
}, "strict", z.ZodTypeAny, {
|
238
242
|
errors?: string[] | undefined;
|
239
243
|
warnings?: string[] | undefined;
|
244
|
+
infos?: string[] | undefined;
|
240
245
|
surrogateKeys?: string[] | undefined;
|
241
246
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
242
247
|
}, {
|
243
248
|
errors?: string[] | undefined;
|
244
249
|
warnings?: string[] | undefined;
|
250
|
+
infos?: string[] | undefined;
|
245
251
|
surrogateKeys?: string[] | undefined;
|
246
252
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
247
253
|
}>, "many">;
|
@@ -249,6 +255,7 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
|
|
249
255
|
results: {
|
250
256
|
errors?: string[] | undefined;
|
251
257
|
warnings?: string[] | undefined;
|
258
|
+
infos?: string[] | undefined;
|
252
259
|
surrogateKeys?: string[] | undefined;
|
253
260
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
254
261
|
}[];
|
@@ -256,6 +263,7 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
|
|
256
263
|
results: {
|
257
264
|
errors?: string[] | undefined;
|
258
265
|
warnings?: string[] | undefined;
|
266
|
+
infos?: string[] | undefined;
|
259
267
|
surrogateKeys?: string[] | undefined;
|
260
268
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
261
269
|
}[];
|
@@ -278,6 +286,7 @@ type ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem extends DataR
|
|
278
286
|
declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends DataResource>({ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }: ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>): {
|
279
287
|
errors?: string[] | undefined;
|
280
288
|
warnings?: string[] | undefined;
|
289
|
+
infos?: string[] | undefined;
|
281
290
|
surrogateKeys?: string[] | undefined;
|
282
291
|
result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
|
283
292
|
}[];
|
@@ -295,6 +304,10 @@ type ResolveBatchIdsResult<TID> = {
|
|
295
304
|
*/
|
296
305
|
declare function resolveBatchFetchIds<TID>(batch: readonly RequestEdgehancerDataResourceContext[], resolveBatchItemIdFn: (dataResource: RequestEdgehancerDataResourceContext) => TID | undefined): ResolveBatchIdsResult<TID>;
|
297
306
|
|
307
|
+
declare const COLLECTION_DEFAULT_LIMIT = 20;
|
308
|
+
declare const COLLECTION_MAX_LIMIT = 50;
|
309
|
+
declare const COLLECTION_DEFAULT_OFFSET = 0;
|
310
|
+
|
298
311
|
declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
299
312
|
id: z.ZodString;
|
300
313
|
displayName: z.ZodString;
|
@@ -340,15 +353,15 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
340
353
|
source: z.ZodOptional<z.ZodString>;
|
341
354
|
}, "strip", z.ZodTypeAny, {
|
342
355
|
default: string;
|
343
|
-
displayName?: string | undefined;
|
344
356
|
type?: string | undefined;
|
357
|
+
displayName?: string | undefined;
|
345
358
|
helpText?: string | undefined;
|
346
359
|
order?: number | undefined;
|
347
360
|
source?: string | undefined;
|
348
361
|
}, {
|
349
362
|
default: string;
|
350
|
-
displayName?: string | undefined;
|
351
363
|
type?: string | undefined;
|
364
|
+
displayName?: string | undefined;
|
352
365
|
helpText?: string | undefined;
|
353
366
|
order?: number | undefined;
|
354
367
|
source?: string | undefined;
|
@@ -430,6 +443,7 @@ type PreRequestEdgehancerContext = {
|
|
430
443
|
declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
431
444
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
432
445
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
446
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
433
447
|
dataResource: z.ZodObject<Omit<{
|
434
448
|
id: z.ZodString;
|
435
449
|
displayName: z.ZodString;
|
@@ -475,15 +489,15 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
475
489
|
source: z.ZodOptional<z.ZodString>;
|
476
490
|
}, "strip", z.ZodTypeAny, {
|
477
491
|
default: string;
|
478
|
-
displayName?: string | undefined;
|
479
492
|
type?: string | undefined;
|
493
|
+
displayName?: string | undefined;
|
480
494
|
helpText?: string | undefined;
|
481
495
|
order?: number | undefined;
|
482
496
|
source?: string | undefined;
|
483
497
|
}, {
|
484
498
|
default: string;
|
485
|
-
displayName?: string | undefined;
|
486
499
|
type?: string | undefined;
|
500
|
+
displayName?: string | undefined;
|
487
501
|
helpText?: string | undefined;
|
488
502
|
order?: number | undefined;
|
489
503
|
source?: string | undefined;
|
@@ -572,6 +586,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
572
586
|
};
|
573
587
|
errors?: string[] | undefined;
|
574
588
|
warnings?: string[] | undefined;
|
589
|
+
infos?: string[] | undefined;
|
575
590
|
}, {
|
576
591
|
dataResource: {
|
577
592
|
connectorType: string;
|
@@ -597,11 +612,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
597
612
|
};
|
598
613
|
errors?: string[] | undefined;
|
599
614
|
warnings?: string[] | undefined;
|
615
|
+
infos?: string[] | undefined;
|
600
616
|
}>;
|
601
617
|
declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
602
618
|
dataResources: z.ZodArray<z.ZodObject<{
|
603
619
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
604
620
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
621
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
605
622
|
dataResource: z.ZodObject<Omit<{
|
606
623
|
id: z.ZodString;
|
607
624
|
displayName: z.ZodString;
|
@@ -647,15 +664,15 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
647
664
|
source: z.ZodOptional<z.ZodString>;
|
648
665
|
}, "strip", z.ZodTypeAny, {
|
649
666
|
default: string;
|
650
|
-
displayName?: string | undefined;
|
651
667
|
type?: string | undefined;
|
668
|
+
displayName?: string | undefined;
|
652
669
|
helpText?: string | undefined;
|
653
670
|
order?: number | undefined;
|
654
671
|
source?: string | undefined;
|
655
672
|
}, {
|
656
673
|
default: string;
|
657
|
-
displayName?: string | undefined;
|
658
674
|
type?: string | undefined;
|
675
|
+
displayName?: string | undefined;
|
659
676
|
helpText?: string | undefined;
|
660
677
|
order?: number | undefined;
|
661
678
|
source?: string | undefined;
|
@@ -744,6 +761,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
744
761
|
};
|
745
762
|
errors?: string[] | undefined;
|
746
763
|
warnings?: string[] | undefined;
|
764
|
+
infos?: string[] | undefined;
|
747
765
|
}, {
|
748
766
|
dataResource: {
|
749
767
|
connectorType: string;
|
@@ -769,6 +787,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
769
787
|
};
|
770
788
|
errors?: string[] | undefined;
|
771
789
|
warnings?: string[] | undefined;
|
790
|
+
infos?: string[] | undefined;
|
772
791
|
}>, "many">;
|
773
792
|
}, "strict", z.ZodTypeAny, {
|
774
793
|
dataResources: {
|
@@ -796,6 +815,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
796
815
|
};
|
797
816
|
errors?: string[] | undefined;
|
798
817
|
warnings?: string[] | undefined;
|
818
|
+
infos?: string[] | undefined;
|
799
819
|
}[];
|
800
820
|
}, {
|
801
821
|
dataResources: {
|
@@ -823,6 +843,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
823
843
|
};
|
824
844
|
errors?: string[] | undefined;
|
825
845
|
warnings?: string[] | undefined;
|
846
|
+
infos?: string[] | undefined;
|
826
847
|
}[];
|
827
848
|
}>;
|
828
849
|
type PreRequestEdgehancerResult = z.infer<typeof preRequestEdgehancerResultSchema>;
|
@@ -838,4 +859,4 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
|
|
838
859
|
/** Gets the HTTP headers for a data resource */
|
839
860
|
declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
|
840
861
|
|
841
|
-
export { type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, convertBatchResultsToEdgehancerResult, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds };
|
862
|
+
export { COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, convertBatchResultsToEdgehancerResult, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds };
|
package/dist/index.d.ts
CHANGED
@@ -68,15 +68,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
68
68
|
source: z.ZodOptional<z.ZodString>;
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
70
70
|
default: string;
|
71
|
-
displayName?: string | undefined;
|
72
71
|
type?: string | undefined;
|
72
|
+
displayName?: string | undefined;
|
73
73
|
helpText?: string | undefined;
|
74
74
|
order?: number | undefined;
|
75
75
|
source?: string | undefined;
|
76
76
|
}, {
|
77
77
|
default: string;
|
78
|
-
displayName?: string | undefined;
|
79
78
|
type?: string | undefined;
|
79
|
+
displayName?: string | undefined;
|
80
80
|
helpText?: string | undefined;
|
81
81
|
order?: number | undefined;
|
82
82
|
source?: string | undefined;
|
@@ -117,15 +117,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
117
117
|
omitIfEmpty?: boolean | undefined;
|
118
118
|
}[] | undefined;
|
119
119
|
body?: string | undefined;
|
120
|
+
custom?: Record<string, unknown> | undefined;
|
120
121
|
variables?: Record<string, {
|
121
122
|
default: string;
|
122
|
-
displayName?: string | undefined;
|
123
123
|
type?: string | undefined;
|
124
|
+
displayName?: string | undefined;
|
124
125
|
helpText?: string | undefined;
|
125
126
|
order?: number | undefined;
|
126
127
|
source?: string | undefined;
|
127
128
|
}> | undefined;
|
128
|
-
custom?: Record<string, unknown> | undefined;
|
129
129
|
customPublic?: Record<string, unknown> | undefined;
|
130
130
|
ttl?: number | undefined;
|
131
131
|
purgeKey?: string | undefined;
|
@@ -155,15 +155,15 @@ declare const mergedDataTypeSchema: z.ZodObject<{
|
|
155
155
|
omitIfEmpty?: boolean | undefined;
|
156
156
|
}[] | undefined;
|
157
157
|
body?: string | undefined;
|
158
|
+
custom?: Record<string, unknown> | undefined;
|
158
159
|
variables?: Record<string, {
|
159
160
|
default: string;
|
160
|
-
displayName?: string | undefined;
|
161
161
|
type?: string | undefined;
|
162
|
+
displayName?: string | undefined;
|
162
163
|
helpText?: string | undefined;
|
163
164
|
order?: number | undefined;
|
164
165
|
source?: string | undefined;
|
165
166
|
}> | undefined;
|
166
|
-
custom?: Record<string, unknown> | undefined;
|
167
167
|
customPublic?: Record<string, unknown> | undefined;
|
168
168
|
ttl?: number | undefined;
|
169
169
|
purgeKey?: string | undefined;
|
@@ -215,16 +215,19 @@ type RequestEdgehancerContext = {
|
|
215
215
|
declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
|
216
216
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
217
217
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
218
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
218
219
|
surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
219
220
|
result: 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]>;
|
220
221
|
}, "strict", z.ZodTypeAny, {
|
221
222
|
errors?: string[] | undefined;
|
222
223
|
warnings?: string[] | undefined;
|
224
|
+
infos?: string[] | undefined;
|
223
225
|
surrogateKeys?: string[] | undefined;
|
224
226
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
225
227
|
}, {
|
226
228
|
errors?: string[] | undefined;
|
227
229
|
warnings?: string[] | undefined;
|
230
|
+
infos?: string[] | undefined;
|
228
231
|
surrogateKeys?: string[] | undefined;
|
229
232
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
230
233
|
}>;
|
@@ -232,16 +235,19 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
|
|
232
235
|
results: z.ZodArray<z.ZodObject<{
|
233
236
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
234
237
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
238
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
235
239
|
surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
236
240
|
result: 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]>;
|
237
241
|
}, "strict", z.ZodTypeAny, {
|
238
242
|
errors?: string[] | undefined;
|
239
243
|
warnings?: string[] | undefined;
|
244
|
+
infos?: string[] | undefined;
|
240
245
|
surrogateKeys?: string[] | undefined;
|
241
246
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
242
247
|
}, {
|
243
248
|
errors?: string[] | undefined;
|
244
249
|
warnings?: string[] | undefined;
|
250
|
+
infos?: string[] | undefined;
|
245
251
|
surrogateKeys?: string[] | undefined;
|
246
252
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
247
253
|
}>, "many">;
|
@@ -249,6 +255,7 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
|
|
249
255
|
results: {
|
250
256
|
errors?: string[] | undefined;
|
251
257
|
warnings?: string[] | undefined;
|
258
|
+
infos?: string[] | undefined;
|
252
259
|
surrogateKeys?: string[] | undefined;
|
253
260
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
254
261
|
}[];
|
@@ -256,6 +263,7 @@ declare const requestEdgehancerResultSchema: z.ZodObject<{
|
|
256
263
|
results: {
|
257
264
|
errors?: string[] | undefined;
|
258
265
|
warnings?: string[] | undefined;
|
266
|
+
infos?: string[] | undefined;
|
259
267
|
surrogateKeys?: string[] | undefined;
|
260
268
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
261
269
|
}[];
|
@@ -278,6 +286,7 @@ type ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem extends DataR
|
|
278
286
|
declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends DataResource>({ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }: ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>): {
|
279
287
|
errors?: string[] | undefined;
|
280
288
|
warnings?: string[] | undefined;
|
289
|
+
infos?: string[] | undefined;
|
281
290
|
surrogateKeys?: string[] | undefined;
|
282
291
|
result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
|
283
292
|
}[];
|
@@ -295,6 +304,10 @@ type ResolveBatchIdsResult<TID> = {
|
|
295
304
|
*/
|
296
305
|
declare function resolveBatchFetchIds<TID>(batch: readonly RequestEdgehancerDataResourceContext[], resolveBatchItemIdFn: (dataResource: RequestEdgehancerDataResourceContext) => TID | undefined): ResolveBatchIdsResult<TID>;
|
297
306
|
|
307
|
+
declare const COLLECTION_DEFAULT_LIMIT = 20;
|
308
|
+
declare const COLLECTION_MAX_LIMIT = 50;
|
309
|
+
declare const COLLECTION_DEFAULT_OFFSET = 0;
|
310
|
+
|
298
311
|
declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
299
312
|
id: z.ZodString;
|
300
313
|
displayName: z.ZodString;
|
@@ -340,15 +353,15 @@ declare const edgehancerMergedDataTypeSchema: z.ZodObject<Omit<{
|
|
340
353
|
source: z.ZodOptional<z.ZodString>;
|
341
354
|
}, "strip", z.ZodTypeAny, {
|
342
355
|
default: string;
|
343
|
-
displayName?: string | undefined;
|
344
356
|
type?: string | undefined;
|
357
|
+
displayName?: string | undefined;
|
345
358
|
helpText?: string | undefined;
|
346
359
|
order?: number | undefined;
|
347
360
|
source?: string | undefined;
|
348
361
|
}, {
|
349
362
|
default: string;
|
350
|
-
displayName?: string | undefined;
|
351
363
|
type?: string | undefined;
|
364
|
+
displayName?: string | undefined;
|
352
365
|
helpText?: string | undefined;
|
353
366
|
order?: number | undefined;
|
354
367
|
source?: string | undefined;
|
@@ -430,6 +443,7 @@ type PreRequestEdgehancerContext = {
|
|
430
443
|
declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
431
444
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
432
445
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
446
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
433
447
|
dataResource: z.ZodObject<Omit<{
|
434
448
|
id: z.ZodString;
|
435
449
|
displayName: z.ZodString;
|
@@ -475,15 +489,15 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
475
489
|
source: z.ZodOptional<z.ZodString>;
|
476
490
|
}, "strip", z.ZodTypeAny, {
|
477
491
|
default: string;
|
478
|
-
displayName?: string | undefined;
|
479
492
|
type?: string | undefined;
|
493
|
+
displayName?: string | undefined;
|
480
494
|
helpText?: string | undefined;
|
481
495
|
order?: number | undefined;
|
482
496
|
source?: string | undefined;
|
483
497
|
}, {
|
484
498
|
default: string;
|
485
|
-
displayName?: string | undefined;
|
486
499
|
type?: string | undefined;
|
500
|
+
displayName?: string | undefined;
|
487
501
|
helpText?: string | undefined;
|
488
502
|
order?: number | undefined;
|
489
503
|
source?: string | undefined;
|
@@ -572,6 +586,7 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
572
586
|
};
|
573
587
|
errors?: string[] | undefined;
|
574
588
|
warnings?: string[] | undefined;
|
589
|
+
infos?: string[] | undefined;
|
575
590
|
}, {
|
576
591
|
dataResource: {
|
577
592
|
connectorType: string;
|
@@ -597,11 +612,13 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
597
612
|
};
|
598
613
|
errors?: string[] | undefined;
|
599
614
|
warnings?: string[] | undefined;
|
615
|
+
infos?: string[] | undefined;
|
600
616
|
}>;
|
601
617
|
declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
602
618
|
dataResources: z.ZodArray<z.ZodObject<{
|
603
619
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
604
620
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
621
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
605
622
|
dataResource: z.ZodObject<Omit<{
|
606
623
|
id: z.ZodString;
|
607
624
|
displayName: z.ZodString;
|
@@ -647,15 +664,15 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
647
664
|
source: z.ZodOptional<z.ZodString>;
|
648
665
|
}, "strip", z.ZodTypeAny, {
|
649
666
|
default: string;
|
650
|
-
displayName?: string | undefined;
|
651
667
|
type?: string | undefined;
|
668
|
+
displayName?: string | undefined;
|
652
669
|
helpText?: string | undefined;
|
653
670
|
order?: number | undefined;
|
654
671
|
source?: string | undefined;
|
655
672
|
}, {
|
656
673
|
default: string;
|
657
|
-
displayName?: string | undefined;
|
658
674
|
type?: string | undefined;
|
675
|
+
displayName?: string | undefined;
|
659
676
|
helpText?: string | undefined;
|
660
677
|
order?: number | undefined;
|
661
678
|
source?: string | undefined;
|
@@ -744,6 +761,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
744
761
|
};
|
745
762
|
errors?: string[] | undefined;
|
746
763
|
warnings?: string[] | undefined;
|
764
|
+
infos?: string[] | undefined;
|
747
765
|
}, {
|
748
766
|
dataResource: {
|
749
767
|
connectorType: string;
|
@@ -769,6 +787,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
769
787
|
};
|
770
788
|
errors?: string[] | undefined;
|
771
789
|
warnings?: string[] | undefined;
|
790
|
+
infos?: string[] | undefined;
|
772
791
|
}>, "many">;
|
773
792
|
}, "strict", z.ZodTypeAny, {
|
774
793
|
dataResources: {
|
@@ -796,6 +815,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
796
815
|
};
|
797
816
|
errors?: string[] | undefined;
|
798
817
|
warnings?: string[] | undefined;
|
818
|
+
infos?: string[] | undefined;
|
799
819
|
}[];
|
800
820
|
}, {
|
801
821
|
dataResources: {
|
@@ -823,6 +843,7 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
823
843
|
};
|
824
844
|
errors?: string[] | undefined;
|
825
845
|
warnings?: string[] | undefined;
|
846
|
+
infos?: string[] | undefined;
|
826
847
|
}[];
|
827
848
|
}>;
|
828
849
|
type PreRequestEdgehancerResult = z.infer<typeof preRequestEdgehancerResultSchema>;
|
@@ -838,4 +859,4 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
|
|
838
859
|
/** Gets the HTTP headers for a data resource */
|
839
860
|
declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
|
840
861
|
|
841
|
-
export { type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, convertBatchResultsToEdgehancerResult, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds };
|
862
|
+
export { COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, convertBatchResultsToEdgehancerResult, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds };
|
package/dist/index.esm.js
CHANGED
@@ -52,6 +52,11 @@ function resolveBatchFetchIds(batch, resolveBatchItemIdFn) {
|
|
52
52
|
return result;
|
53
53
|
}
|
54
54
|
|
55
|
+
// src/contentConstants.ts
|
56
|
+
var COLLECTION_DEFAULT_LIMIT = 20;
|
57
|
+
var COLLECTION_MAX_LIMIT = 50;
|
58
|
+
var COLLECTION_DEFAULT_OFFSET = 0;
|
59
|
+
|
55
60
|
// src/fetchUtils.ts
|
56
61
|
function getDataResourceAsRequest(data) {
|
57
62
|
var _a;
|
@@ -157,6 +162,7 @@ var edgehancerMergedDataTypeSchema = mergedDataTypeSchema.omit({
|
|
157
162
|
var preRequestEdgehancerDataResourceResultSchema = z2.strictObject({
|
158
163
|
errors: z2.array(z2.string()).optional(),
|
159
164
|
warnings: z2.array(z2.string()).optional(),
|
165
|
+
infos: z2.array(z2.string()).optional(),
|
160
166
|
dataResource: edgehancerMergedDataTypeSchema
|
161
167
|
});
|
162
168
|
var preRequestEdgehancerResultSchema = z2.strictObject({
|
@@ -170,6 +176,9 @@ var requestEdgehancerDataResourceResolutionResultSchema = z3.strictObject({
|
|
170
176
|
"Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
|
171
177
|
),
|
172
178
|
warnings: z3.array(z3.string()).optional().describe("Warnings that occurred while running your code to return with the API response, if any."),
|
179
|
+
infos: z3.array(z3.string()).optional().describe(
|
180
|
+
"Informational messages that occurred while running your code to return with the API response, if any."
|
181
|
+
),
|
173
182
|
surrogateKeys: z3.array(z3.string()).optional().describe(
|
174
183
|
"Extra surrogate keys for the data that was fetched. These act as auxiliary cache keys that can allow granular purging of cached data."
|
175
184
|
),
|
@@ -179,6 +188,9 @@ var requestEdgehancerResultSchema = z3.strictObject({
|
|
179
188
|
results: z3.array(requestEdgehancerDataResourceResolutionResultSchema)
|
180
189
|
});
|
181
190
|
export {
|
191
|
+
COLLECTION_DEFAULT_LIMIT,
|
192
|
+
COLLECTION_DEFAULT_OFFSET,
|
193
|
+
COLLECTION_MAX_LIMIT,
|
182
194
|
convertBatchResultsToEdgehancerResult,
|
183
195
|
dataResourceSchema,
|
184
196
|
edgehancerMergedDataTypeSchema,
|
package/dist/index.js
CHANGED
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
20
20
|
// src/index.ts
|
21
21
|
var src_exports = {};
|
22
22
|
__export(src_exports, {
|
23
|
+
COLLECTION_DEFAULT_LIMIT: () => COLLECTION_DEFAULT_LIMIT,
|
24
|
+
COLLECTION_DEFAULT_OFFSET: () => COLLECTION_DEFAULT_OFFSET,
|
25
|
+
COLLECTION_MAX_LIMIT: () => COLLECTION_MAX_LIMIT,
|
23
26
|
convertBatchResultsToEdgehancerResult: () => convertBatchResultsToEdgehancerResult,
|
24
27
|
dataResourceSchema: () => dataResourceSchema,
|
25
28
|
edgehancerMergedDataTypeSchema: () => edgehancerMergedDataTypeSchema,
|
@@ -90,6 +93,11 @@ function resolveBatchFetchIds(batch, resolveBatchItemIdFn) {
|
|
90
93
|
return result;
|
91
94
|
}
|
92
95
|
|
96
|
+
// src/contentConstants.ts
|
97
|
+
var COLLECTION_DEFAULT_LIMIT = 20;
|
98
|
+
var COLLECTION_MAX_LIMIT = 50;
|
99
|
+
var COLLECTION_DEFAULT_OFFSET = 0;
|
100
|
+
|
93
101
|
// src/fetchUtils.ts
|
94
102
|
function getDataResourceAsRequest(data) {
|
95
103
|
var _a;
|
@@ -195,6 +203,7 @@ var edgehancerMergedDataTypeSchema = mergedDataTypeSchema.omit({
|
|
195
203
|
var preRequestEdgehancerDataResourceResultSchema = import_zod2.z.strictObject({
|
196
204
|
errors: import_zod2.z.array(import_zod2.z.string()).optional(),
|
197
205
|
warnings: import_zod2.z.array(import_zod2.z.string()).optional(),
|
206
|
+
infos: import_zod2.z.array(import_zod2.z.string()).optional(),
|
198
207
|
dataResource: edgehancerMergedDataTypeSchema
|
199
208
|
});
|
200
209
|
var preRequestEdgehancerResultSchema = import_zod2.z.strictObject({
|
@@ -208,6 +217,9 @@ var requestEdgehancerDataResourceResolutionResultSchema = import_zod3.z.strictOb
|
|
208
217
|
"Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
|
209
218
|
),
|
210
219
|
warnings: import_zod3.z.array(import_zod3.z.string()).optional().describe("Warnings that occurred while running your code to return with the API response, if any."),
|
220
|
+
infos: import_zod3.z.array(import_zod3.z.string()).optional().describe(
|
221
|
+
"Informational messages that occurred while running your code to return with the API response, if any."
|
222
|
+
),
|
211
223
|
surrogateKeys: import_zod3.z.array(import_zod3.z.string()).optional().describe(
|
212
224
|
"Extra surrogate keys for the data that was fetched. These act as auxiliary cache keys that can allow granular purging of cached data."
|
213
225
|
),
|
@@ -218,6 +230,9 @@ var requestEdgehancerResultSchema = import_zod3.z.strictObject({
|
|
218
230
|
});
|
219
231
|
// Annotate the CommonJS export names for ESM import in node:
|
220
232
|
0 && (module.exports = {
|
233
|
+
COLLECTION_DEFAULT_LIMIT,
|
234
|
+
COLLECTION_DEFAULT_OFFSET,
|
235
|
+
COLLECTION_MAX_LIMIT,
|
221
236
|
convertBatchResultsToEdgehancerResult,
|
222
237
|
dataResourceSchema,
|
223
238
|
edgehancerMergedDataTypeSchema,
|
package/dist/index.mjs
CHANGED
@@ -52,6 +52,11 @@ function resolveBatchFetchIds(batch, resolveBatchItemIdFn) {
|
|
52
52
|
return result;
|
53
53
|
}
|
54
54
|
|
55
|
+
// src/contentConstants.ts
|
56
|
+
var COLLECTION_DEFAULT_LIMIT = 20;
|
57
|
+
var COLLECTION_MAX_LIMIT = 50;
|
58
|
+
var COLLECTION_DEFAULT_OFFSET = 0;
|
59
|
+
|
55
60
|
// src/fetchUtils.ts
|
56
61
|
function getDataResourceAsRequest(data) {
|
57
62
|
var _a;
|
@@ -157,6 +162,7 @@ var edgehancerMergedDataTypeSchema = mergedDataTypeSchema.omit({
|
|
157
162
|
var preRequestEdgehancerDataResourceResultSchema = z2.strictObject({
|
158
163
|
errors: z2.array(z2.string()).optional(),
|
159
164
|
warnings: z2.array(z2.string()).optional(),
|
165
|
+
infos: z2.array(z2.string()).optional(),
|
160
166
|
dataResource: edgehancerMergedDataTypeSchema
|
161
167
|
});
|
162
168
|
var preRequestEdgehancerResultSchema = z2.strictObject({
|
@@ -170,6 +176,9 @@ var requestEdgehancerDataResourceResolutionResultSchema = z3.strictObject({
|
|
170
176
|
"Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
|
171
177
|
),
|
172
178
|
warnings: z3.array(z3.string()).optional().describe("Warnings that occurred while running your code to return with the API response, if any."),
|
179
|
+
infos: z3.array(z3.string()).optional().describe(
|
180
|
+
"Informational messages that occurred while running your code to return with the API response, if any."
|
181
|
+
),
|
173
182
|
surrogateKeys: z3.array(z3.string()).optional().describe(
|
174
183
|
"Extra surrogate keys for the data that was fetched. These act as auxiliary cache keys that can allow granular purging of cached data."
|
175
184
|
),
|
@@ -179,6 +188,9 @@ var requestEdgehancerResultSchema = z3.strictObject({
|
|
179
188
|
results: z3.array(requestEdgehancerDataResourceResolutionResultSchema)
|
180
189
|
});
|
181
190
|
export {
|
191
|
+
COLLECTION_DEFAULT_LIMIT,
|
192
|
+
COLLECTION_DEFAULT_OFFSET,
|
193
|
+
COLLECTION_MAX_LIMIT,
|
182
194
|
convertBatchResultsToEdgehancerResult,
|
183
195
|
dataResourceSchema,
|
184
196
|
edgehancerMergedDataTypeSchema,
|
@@ -33,8 +33,8 @@ declare const createPurger: ({ projectId, purgeKey, dataTypeId, edgeApiHost, log
|
|
33
33
|
projectId: string;
|
34
34
|
purgeKey: string;
|
35
35
|
dataTypeId: string;
|
36
|
-
edgeApiHost?: string
|
37
|
-
logger?: Console
|
36
|
+
edgeApiHost?: string;
|
37
|
+
logger?: Console;
|
38
38
|
}) => Purger;
|
39
39
|
|
40
40
|
type handleNextJSWebhookRequestArgs = {
|
package/dist/webhooks/index.d.ts
CHANGED
@@ -33,8 +33,8 @@ declare const createPurger: ({ projectId, purgeKey, dataTypeId, edgeApiHost, log
|
|
33
33
|
projectId: string;
|
34
34
|
purgeKey: string;
|
35
35
|
dataTypeId: string;
|
36
|
-
edgeApiHost?: string
|
37
|
-
logger?: Console
|
36
|
+
edgeApiHost?: string;
|
37
|
+
logger?: Console;
|
38
38
|
}) => Purger;
|
39
39
|
|
40
40
|
type handleNextJSWebhookRequestArgs = {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/mesh-edgehancer-sdk",
|
3
|
-
"version": "19.135.
|
3
|
+
"version": "19.135.1-alpha.11+9f52e6cfd6",
|
4
4
|
"description": "Uniform Mesh Edgehancer SDK",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -48,12 +48,12 @@
|
|
48
48
|
"/dist"
|
49
49
|
],
|
50
50
|
"dependencies": {
|
51
|
-
"@uniformdev/canvas": "19.135.
|
51
|
+
"@uniformdev/canvas": "19.135.1-alpha.11+9f52e6cfd6",
|
52
52
|
"tsafe": "1.6.6",
|
53
|
-
"zod": "3.
|
53
|
+
"zod": "3.23.8"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
|
-
"next": "
|
56
|
+
"next": "14.2.5"
|
57
57
|
},
|
58
58
|
"peerDependencies": {
|
59
59
|
"next": ">13"
|
@@ -61,5 +61,5 @@
|
|
61
61
|
"publishConfig": {
|
62
62
|
"access": "public"
|
63
63
|
},
|
64
|
-
"gitHead": "
|
64
|
+
"gitHead": "9f52e6cfd6e562e9c759735ba2a44378388a2a82"
|
65
65
|
}
|