@uniformdev/mesh-edgehancer-sdk 20.63.1-alpha.12 → 20.63.1-alpha.17
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 +48 -1
- package/dist/index.d.ts +48 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -248,6 +248,45 @@ type AfterAIEditResult = z.infer<typeof afterAIEditResultSchema>;
|
|
|
248
248
|
*/
|
|
249
249
|
type AfterAIEditHookFn = (context: AfterAIEditContext) => Promise<AfterAIEditResult>;
|
|
250
250
|
|
|
251
|
+
/**
|
|
252
|
+
* A normalized record of one bound parameter value that consumed a data
|
|
253
|
+
* resource somewhere in the composition tree. Custom edgehancer authors can
|
|
254
|
+
* use this to derive minimal upstream queries (e.g. GraphQL field selection,
|
|
255
|
+
* downstream `select.*` forwarding) instead of always fetching the full
|
|
256
|
+
* resource shape.
|
|
257
|
+
*/
|
|
258
|
+
type CollectedBinding = {
|
|
259
|
+
/**
|
|
260
|
+
* Data resource name referenced by the binding (post-alias-deref,
|
|
261
|
+
* post-loop-synthesis when surfaced from canvas-sdk's scope walker — the
|
|
262
|
+
* raw parsed name when produced by `collectComponentBindings`). Used as
|
|
263
|
+
* the key into per-DR binding buckets.
|
|
264
|
+
*/
|
|
265
|
+
dataResource: string;
|
|
266
|
+
/**
|
|
267
|
+
* The full effective pointer for this binding, e.g. `/items/fields/title`,
|
|
268
|
+
* _including_ the leading `/<dataResource>` segment. Per-integration
|
|
269
|
+
* translators (UC's `deriveUniformContentProjection`, custom edgehancer
|
|
270
|
+
* authors) scan this for `/fields/<name>` and `/parameters/<name>` segments
|
|
271
|
+
* to derive a minimal upstream query.
|
|
272
|
+
*/
|
|
273
|
+
pointer: string;
|
|
274
|
+
/**
|
|
275
|
+
* The JSON pointer expression _inside_ the data resource, with the leading
|
|
276
|
+
* `/<dataResource>` segment removed. May be undefined if the binding
|
|
277
|
+
* references the whole resource.
|
|
278
|
+
*/
|
|
279
|
+
dataExpression: string | undefined;
|
|
280
|
+
/** Parameter id (property name) where the binding was found. */
|
|
281
|
+
parameterId: string;
|
|
282
|
+
/**
|
|
283
|
+
* Locale the binding's locale-scoped value was found under, if any. The
|
|
284
|
+
* empty string is normalized to undefined.
|
|
285
|
+
*/
|
|
286
|
+
locale: string | undefined;
|
|
287
|
+
/** Condition index, or -1 for the default (non-conditional) value. */
|
|
288
|
+
conditionIndex: number;
|
|
289
|
+
};
|
|
251
290
|
type RequestEdgehancerDataResourceContext = {
|
|
252
291
|
/**
|
|
253
292
|
* The data resource to fetch.
|
|
@@ -551,6 +590,14 @@ type PreRequestEdgehancerDataResourceContext = {
|
|
|
551
590
|
* The data resource definition that will be requested.
|
|
552
591
|
*/
|
|
553
592
|
dataResource: EdgehancerMergedDataType;
|
|
593
|
+
/**
|
|
594
|
+
* The set of bindings in the originating composition/entry that consume this
|
|
595
|
+
* data resource. This can be used to derive a data projection to the target API.
|
|
596
|
+
*
|
|
597
|
+
* Undefined for editor / authoring fetches so the editor can read every
|
|
598
|
+
* field to create new bindings. Never an empty array — unused data resources are automatically skipped from being fetched.
|
|
599
|
+
*/
|
|
600
|
+
bindings?: readonly CollectedBinding[];
|
|
554
601
|
};
|
|
555
602
|
type PreRequestEdgehancerContext = {
|
|
556
603
|
fetchContext: DataResourceFetchContext;
|
|
@@ -761,4 +808,4 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
|
|
|
761
808
|
/** Gets the HTTP headers for a data resource */
|
|
762
809
|
declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
|
|
763
810
|
|
|
764
|
-
export { type AfterAIDataResourceEditContext, type AfterAIDataResourceEditHookFn, type AfterAIDataResourceEditResult, type AfterAIEditContext, type AfterAIEditHookFn, type AfterAIEditResult, COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CreateAIDataResourceEditContext, type CreateAIDataResourceEditHookFn, type CreateAIDataResourceEditResult, type CreateAIEditContext, type CreateAIEditHookFn, type CreateAIEditResult, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerDataIssue, 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, afterAIDataResourceEditContextSchema, afterAIDataResourceEditResultSchema, afterAIEditContextSchema, afterAIEditResultSchema, convertBatchResultsToEdgehancerResult, createAIDataResourceEditContextSchema, createAIDataResourceEditResultSchema, createAIEditContextSchema, createAIEditResultSchema, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema };
|
|
811
|
+
export { type AfterAIDataResourceEditContext, type AfterAIDataResourceEditHookFn, type AfterAIDataResourceEditResult, type AfterAIEditContext, type AfterAIEditHookFn, type AfterAIEditResult, COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type CollectedBinding, type ConvertBatchResultsToEdgehancerResultOptions, type CreateAIDataResourceEditContext, type CreateAIDataResourceEditHookFn, type CreateAIDataResourceEditResult, type CreateAIEditContext, type CreateAIEditHookFn, type CreateAIEditResult, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerDataIssue, 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, afterAIDataResourceEditContextSchema, afterAIDataResourceEditResultSchema, afterAIEditContextSchema, afterAIEditResultSchema, convertBatchResultsToEdgehancerResult, createAIDataResourceEditContextSchema, createAIDataResourceEditResultSchema, createAIEditContextSchema, createAIEditResultSchema, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -248,6 +248,45 @@ type AfterAIEditResult = z.infer<typeof afterAIEditResultSchema>;
|
|
|
248
248
|
*/
|
|
249
249
|
type AfterAIEditHookFn = (context: AfterAIEditContext) => Promise<AfterAIEditResult>;
|
|
250
250
|
|
|
251
|
+
/**
|
|
252
|
+
* A normalized record of one bound parameter value that consumed a data
|
|
253
|
+
* resource somewhere in the composition tree. Custom edgehancer authors can
|
|
254
|
+
* use this to derive minimal upstream queries (e.g. GraphQL field selection,
|
|
255
|
+
* downstream `select.*` forwarding) instead of always fetching the full
|
|
256
|
+
* resource shape.
|
|
257
|
+
*/
|
|
258
|
+
type CollectedBinding = {
|
|
259
|
+
/**
|
|
260
|
+
* Data resource name referenced by the binding (post-alias-deref,
|
|
261
|
+
* post-loop-synthesis when surfaced from canvas-sdk's scope walker — the
|
|
262
|
+
* raw parsed name when produced by `collectComponentBindings`). Used as
|
|
263
|
+
* the key into per-DR binding buckets.
|
|
264
|
+
*/
|
|
265
|
+
dataResource: string;
|
|
266
|
+
/**
|
|
267
|
+
* The full effective pointer for this binding, e.g. `/items/fields/title`,
|
|
268
|
+
* _including_ the leading `/<dataResource>` segment. Per-integration
|
|
269
|
+
* translators (UC's `deriveUniformContentProjection`, custom edgehancer
|
|
270
|
+
* authors) scan this for `/fields/<name>` and `/parameters/<name>` segments
|
|
271
|
+
* to derive a minimal upstream query.
|
|
272
|
+
*/
|
|
273
|
+
pointer: string;
|
|
274
|
+
/**
|
|
275
|
+
* The JSON pointer expression _inside_ the data resource, with the leading
|
|
276
|
+
* `/<dataResource>` segment removed. May be undefined if the binding
|
|
277
|
+
* references the whole resource.
|
|
278
|
+
*/
|
|
279
|
+
dataExpression: string | undefined;
|
|
280
|
+
/** Parameter id (property name) where the binding was found. */
|
|
281
|
+
parameterId: string;
|
|
282
|
+
/**
|
|
283
|
+
* Locale the binding's locale-scoped value was found under, if any. The
|
|
284
|
+
* empty string is normalized to undefined.
|
|
285
|
+
*/
|
|
286
|
+
locale: string | undefined;
|
|
287
|
+
/** Condition index, or -1 for the default (non-conditional) value. */
|
|
288
|
+
conditionIndex: number;
|
|
289
|
+
};
|
|
251
290
|
type RequestEdgehancerDataResourceContext = {
|
|
252
291
|
/**
|
|
253
292
|
* The data resource to fetch.
|
|
@@ -551,6 +590,14 @@ type PreRequestEdgehancerDataResourceContext = {
|
|
|
551
590
|
* The data resource definition that will be requested.
|
|
552
591
|
*/
|
|
553
592
|
dataResource: EdgehancerMergedDataType;
|
|
593
|
+
/**
|
|
594
|
+
* The set of bindings in the originating composition/entry that consume this
|
|
595
|
+
* data resource. This can be used to derive a data projection to the target API.
|
|
596
|
+
*
|
|
597
|
+
* Undefined for editor / authoring fetches so the editor can read every
|
|
598
|
+
* field to create new bindings. Never an empty array — unused data resources are automatically skipped from being fetched.
|
|
599
|
+
*/
|
|
600
|
+
bindings?: readonly CollectedBinding[];
|
|
554
601
|
};
|
|
555
602
|
type PreRequestEdgehancerContext = {
|
|
556
603
|
fetchContext: DataResourceFetchContext;
|
|
@@ -761,4 +808,4 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
|
|
|
761
808
|
/** Gets the HTTP headers for a data resource */
|
|
762
809
|
declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
|
|
763
810
|
|
|
764
|
-
export { type AfterAIDataResourceEditContext, type AfterAIDataResourceEditHookFn, type AfterAIDataResourceEditResult, type AfterAIEditContext, type AfterAIEditHookFn, type AfterAIEditResult, COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CreateAIDataResourceEditContext, type CreateAIDataResourceEditHookFn, type CreateAIDataResourceEditResult, type CreateAIEditContext, type CreateAIEditHookFn, type CreateAIEditResult, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerDataIssue, 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, afterAIDataResourceEditContextSchema, afterAIDataResourceEditResultSchema, afterAIEditContextSchema, afterAIEditResultSchema, convertBatchResultsToEdgehancerResult, createAIDataResourceEditContextSchema, createAIDataResourceEditResultSchema, createAIEditContextSchema, createAIEditResultSchema, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema };
|
|
811
|
+
export { type AfterAIDataResourceEditContext, type AfterAIDataResourceEditHookFn, type AfterAIDataResourceEditResult, type AfterAIEditContext, type AfterAIEditHookFn, type AfterAIEditResult, COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type CollectedBinding, type ConvertBatchResultsToEdgehancerResultOptions, type CreateAIDataResourceEditContext, type CreateAIDataResourceEditHookFn, type CreateAIDataResourceEditResult, type CreateAIEditContext, type CreateAIEditHookFn, type CreateAIEditResult, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerDataIssue, 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, afterAIDataResourceEditContextSchema, afterAIDataResourceEditResultSchema, afterAIEditContextSchema, afterAIEditResultSchema, convertBatchResultsToEdgehancerResult, createAIDataResourceEditContextSchema, createAIDataResourceEditResultSchema, createAIEditContextSchema, createAIEditResultSchema, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-edgehancer-sdk",
|
|
3
|
-
"version": "20.63.1-alpha.
|
|
3
|
+
"version": "20.63.1-alpha.17+cd7eca3818",
|
|
4
4
|
"description": "Uniform Mesh Edgehancer SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"/dist"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@uniformdev/canvas": "20.63.1-alpha.
|
|
50
|
+
"@uniformdev/canvas": "20.63.1-alpha.17+cd7eca3818",
|
|
51
51
|
"tsafe": "1.6.6",
|
|
52
52
|
"zod": "4.3.6"
|
|
53
53
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "cd7eca38189533a6ba5899bf872b72e1331c4aa3"
|
|
64
64
|
}
|