@uniformdev/mesh-edgehancer-sdk 20.86.0 → 20.86.1-alpha.1.sha-047a8346cd
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.esm.js +71 -1
- package/dist/index.js +76 -2
- package/dist/index.mjs +71 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -794,4 +794,16 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
|
|
|
794
794
|
/** Gets the HTTP headers for a data resource */
|
|
795
795
|
declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
|
|
796
796
|
|
|
797
|
-
|
|
797
|
+
/** A data type archetype of the Uniform Content data connector: the request it makes and the variables it reads. */
|
|
798
|
+
interface UniformContentArchetype {
|
|
799
|
+
archetype: string;
|
|
800
|
+
method: 'GET';
|
|
801
|
+
path: string;
|
|
802
|
+
variables: DataType['variables'];
|
|
803
|
+
}
|
|
804
|
+
declare const singleEntry: UniformContentArchetype;
|
|
805
|
+
declare const singleEntryBySlug: UniformContentArchetype;
|
|
806
|
+
declare const multipleEntries: UniformContentArchetype;
|
|
807
|
+
declare const queryEntries: UniformContentArchetype;
|
|
808
|
+
|
|
809
|
+
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, type UniformContentArchetype, afterAIDataResourceEditContextSchema, afterAIDataResourceEditResultSchema, afterAIEditContextSchema, afterAIEditResultSchema, convertBatchResultsToEdgehancerResult, createAIDataResourceEditContextSchema, createAIDataResourceEditResultSchema, createAIEditContextSchema, createAIEditResultSchema, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, multipleEntries, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, queryEntries, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema, singleEntry, singleEntryBySlug };
|
package/dist/index.d.ts
CHANGED
|
@@ -794,4 +794,16 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
|
|
|
794
794
|
/** Gets the HTTP headers for a data resource */
|
|
795
795
|
declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
|
|
796
796
|
|
|
797
|
-
|
|
797
|
+
/** A data type archetype of the Uniform Content data connector: the request it makes and the variables it reads. */
|
|
798
|
+
interface UniformContentArchetype {
|
|
799
|
+
archetype: string;
|
|
800
|
+
method: 'GET';
|
|
801
|
+
path: string;
|
|
802
|
+
variables: DataType['variables'];
|
|
803
|
+
}
|
|
804
|
+
declare const singleEntry: UniformContentArchetype;
|
|
805
|
+
declare const singleEntryBySlug: UniformContentArchetype;
|
|
806
|
+
declare const multipleEntries: UniformContentArchetype;
|
|
807
|
+
declare const queryEntries: UniformContentArchetype;
|
|
808
|
+
|
|
809
|
+
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, type UniformContentArchetype, afterAIDataResourceEditContextSchema, afterAIDataResourceEditResultSchema, afterAIEditContextSchema, afterAIEditResultSchema, convertBatchResultsToEdgehancerResult, createAIDataResourceEditContextSchema, createAIDataResourceEditResultSchema, createAIEditContextSchema, createAIEditResultSchema, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, multipleEntries, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, queryEntries, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema, singleEntry, singleEntryBySlug };
|
package/dist/index.esm.js
CHANGED
|
@@ -439,6 +439,72 @@ var requestEdgehancerDataResourceResolutionResultSchema = z10.strictObject({
|
|
|
439
439
|
var requestEdgehancerResultSchema = z10.strictObject({
|
|
440
440
|
results: z10.array(requestEdgehancerDataResourceResolutionResultSchema)
|
|
441
441
|
});
|
|
442
|
+
|
|
443
|
+
// src/uniformContentDataTypes.ts
|
|
444
|
+
var singleEntry = {
|
|
445
|
+
archetype: "singleEntry",
|
|
446
|
+
method: "GET",
|
|
447
|
+
path: "/single",
|
|
448
|
+
variables: {
|
|
449
|
+
entryId: {
|
|
450
|
+
type: "text",
|
|
451
|
+
default: ""
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
var singleEntryBySlug = {
|
|
456
|
+
archetype: "singleEntryBySlug",
|
|
457
|
+
method: "GET",
|
|
458
|
+
path: "/single-by-slug",
|
|
459
|
+
variables: {
|
|
460
|
+
slug: {
|
|
461
|
+
type: "text",
|
|
462
|
+
default: ""
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
var multipleEntries = {
|
|
467
|
+
archetype: "multipleEntries",
|
|
468
|
+
method: "GET",
|
|
469
|
+
path: "/multiple",
|
|
470
|
+
variables: {
|
|
471
|
+
entryIds: {
|
|
472
|
+
type: "text",
|
|
473
|
+
default: ""
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
var queryEntries = {
|
|
478
|
+
archetype: "queryEntries",
|
|
479
|
+
method: "GET",
|
|
480
|
+
path: "/query",
|
|
481
|
+
variables: {
|
|
482
|
+
contentTypes: {
|
|
483
|
+
type: "text",
|
|
484
|
+
default: ""
|
|
485
|
+
},
|
|
486
|
+
orderBy: {
|
|
487
|
+
type: "text",
|
|
488
|
+
default: ""
|
|
489
|
+
},
|
|
490
|
+
offset: {
|
|
491
|
+
type: "text",
|
|
492
|
+
default: `${COLLECTION_DEFAULT_OFFSET}`
|
|
493
|
+
},
|
|
494
|
+
limit: {
|
|
495
|
+
type: "text",
|
|
496
|
+
default: `${COLLECTION_DEFAULT_LIMIT}`
|
|
497
|
+
},
|
|
498
|
+
filters: {
|
|
499
|
+
type: "text",
|
|
500
|
+
default: "{}"
|
|
501
|
+
},
|
|
502
|
+
search: {
|
|
503
|
+
type: "text",
|
|
504
|
+
default: ""
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
};
|
|
442
508
|
export {
|
|
443
509
|
COLLECTION_DEFAULT_LIMIT,
|
|
444
510
|
COLLECTION_DEFAULT_OFFSET,
|
|
@@ -459,10 +525,14 @@ export {
|
|
|
459
525
|
getDataResourceQueryString,
|
|
460
526
|
getDataResourceUrl,
|
|
461
527
|
mergedDataTypeSchema,
|
|
528
|
+
multipleEntries,
|
|
462
529
|
preRequestEdgehancerDataResourceResultSchema,
|
|
463
530
|
preRequestEdgehancerResultSchema,
|
|
531
|
+
queryEntries,
|
|
464
532
|
requestEdgehancerDataResourceResolutionResultSchema,
|
|
465
533
|
requestEdgehancerResultSchema,
|
|
466
534
|
resolveBatchFetchIds,
|
|
467
|
-
resolvingIssueSchema
|
|
535
|
+
resolvingIssueSchema,
|
|
536
|
+
singleEntry,
|
|
537
|
+
singleEntryBySlug
|
|
468
538
|
};
|
package/dist/index.js
CHANGED
|
@@ -49,12 +49,16 @@ __export(index_exports, {
|
|
|
49
49
|
getDataResourceQueryString: () => getDataResourceQueryString,
|
|
50
50
|
getDataResourceUrl: () => getDataResourceUrl,
|
|
51
51
|
mergedDataTypeSchema: () => mergedDataTypeSchema,
|
|
52
|
+
multipleEntries: () => multipleEntries,
|
|
52
53
|
preRequestEdgehancerDataResourceResultSchema: () => preRequestEdgehancerDataResourceResultSchema,
|
|
53
54
|
preRequestEdgehancerResultSchema: () => preRequestEdgehancerResultSchema,
|
|
55
|
+
queryEntries: () => queryEntries,
|
|
54
56
|
requestEdgehancerDataResourceResolutionResultSchema: () => requestEdgehancerDataResourceResolutionResultSchema,
|
|
55
57
|
requestEdgehancerResultSchema: () => requestEdgehancerResultSchema,
|
|
56
58
|
resolveBatchFetchIds: () => resolveBatchFetchIds,
|
|
57
|
-
resolvingIssueSchema: () => resolvingIssueSchema
|
|
59
|
+
resolvingIssueSchema: () => resolvingIssueSchema,
|
|
60
|
+
singleEntry: () => singleEntry,
|
|
61
|
+
singleEntryBySlug: () => singleEntryBySlug
|
|
58
62
|
});
|
|
59
63
|
module.exports = __toCommonJS(index_exports);
|
|
60
64
|
|
|
@@ -499,6 +503,72 @@ var requestEdgehancerDataResourceResolutionResultSchema = z10.strictObject({
|
|
|
499
503
|
var requestEdgehancerResultSchema = z10.strictObject({
|
|
500
504
|
results: z10.array(requestEdgehancerDataResourceResolutionResultSchema)
|
|
501
505
|
});
|
|
506
|
+
|
|
507
|
+
// src/uniformContentDataTypes.ts
|
|
508
|
+
var singleEntry = {
|
|
509
|
+
archetype: "singleEntry",
|
|
510
|
+
method: "GET",
|
|
511
|
+
path: "/single",
|
|
512
|
+
variables: {
|
|
513
|
+
entryId: {
|
|
514
|
+
type: "text",
|
|
515
|
+
default: ""
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
var singleEntryBySlug = {
|
|
520
|
+
archetype: "singleEntryBySlug",
|
|
521
|
+
method: "GET",
|
|
522
|
+
path: "/single-by-slug",
|
|
523
|
+
variables: {
|
|
524
|
+
slug: {
|
|
525
|
+
type: "text",
|
|
526
|
+
default: ""
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
var multipleEntries = {
|
|
531
|
+
archetype: "multipleEntries",
|
|
532
|
+
method: "GET",
|
|
533
|
+
path: "/multiple",
|
|
534
|
+
variables: {
|
|
535
|
+
entryIds: {
|
|
536
|
+
type: "text",
|
|
537
|
+
default: ""
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
var queryEntries = {
|
|
542
|
+
archetype: "queryEntries",
|
|
543
|
+
method: "GET",
|
|
544
|
+
path: "/query",
|
|
545
|
+
variables: {
|
|
546
|
+
contentTypes: {
|
|
547
|
+
type: "text",
|
|
548
|
+
default: ""
|
|
549
|
+
},
|
|
550
|
+
orderBy: {
|
|
551
|
+
type: "text",
|
|
552
|
+
default: ""
|
|
553
|
+
},
|
|
554
|
+
offset: {
|
|
555
|
+
type: "text",
|
|
556
|
+
default: `${COLLECTION_DEFAULT_OFFSET}`
|
|
557
|
+
},
|
|
558
|
+
limit: {
|
|
559
|
+
type: "text",
|
|
560
|
+
default: `${COLLECTION_DEFAULT_LIMIT}`
|
|
561
|
+
},
|
|
562
|
+
filters: {
|
|
563
|
+
type: "text",
|
|
564
|
+
default: "{}"
|
|
565
|
+
},
|
|
566
|
+
search: {
|
|
567
|
+
type: "text",
|
|
568
|
+
default: ""
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
};
|
|
502
572
|
// Annotate the CommonJS export names for ESM import in node:
|
|
503
573
|
0 && (module.exports = {
|
|
504
574
|
COLLECTION_DEFAULT_LIMIT,
|
|
@@ -520,10 +590,14 @@ var requestEdgehancerResultSchema = z10.strictObject({
|
|
|
520
590
|
getDataResourceQueryString,
|
|
521
591
|
getDataResourceUrl,
|
|
522
592
|
mergedDataTypeSchema,
|
|
593
|
+
multipleEntries,
|
|
523
594
|
preRequestEdgehancerDataResourceResultSchema,
|
|
524
595
|
preRequestEdgehancerResultSchema,
|
|
596
|
+
queryEntries,
|
|
525
597
|
requestEdgehancerDataResourceResolutionResultSchema,
|
|
526
598
|
requestEdgehancerResultSchema,
|
|
527
599
|
resolveBatchFetchIds,
|
|
528
|
-
resolvingIssueSchema
|
|
600
|
+
resolvingIssueSchema,
|
|
601
|
+
singleEntry,
|
|
602
|
+
singleEntryBySlug
|
|
529
603
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -439,6 +439,72 @@ var requestEdgehancerDataResourceResolutionResultSchema = z10.strictObject({
|
|
|
439
439
|
var requestEdgehancerResultSchema = z10.strictObject({
|
|
440
440
|
results: z10.array(requestEdgehancerDataResourceResolutionResultSchema)
|
|
441
441
|
});
|
|
442
|
+
|
|
443
|
+
// src/uniformContentDataTypes.ts
|
|
444
|
+
var singleEntry = {
|
|
445
|
+
archetype: "singleEntry",
|
|
446
|
+
method: "GET",
|
|
447
|
+
path: "/single",
|
|
448
|
+
variables: {
|
|
449
|
+
entryId: {
|
|
450
|
+
type: "text",
|
|
451
|
+
default: ""
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
var singleEntryBySlug = {
|
|
456
|
+
archetype: "singleEntryBySlug",
|
|
457
|
+
method: "GET",
|
|
458
|
+
path: "/single-by-slug",
|
|
459
|
+
variables: {
|
|
460
|
+
slug: {
|
|
461
|
+
type: "text",
|
|
462
|
+
default: ""
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
var multipleEntries = {
|
|
467
|
+
archetype: "multipleEntries",
|
|
468
|
+
method: "GET",
|
|
469
|
+
path: "/multiple",
|
|
470
|
+
variables: {
|
|
471
|
+
entryIds: {
|
|
472
|
+
type: "text",
|
|
473
|
+
default: ""
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
var queryEntries = {
|
|
478
|
+
archetype: "queryEntries",
|
|
479
|
+
method: "GET",
|
|
480
|
+
path: "/query",
|
|
481
|
+
variables: {
|
|
482
|
+
contentTypes: {
|
|
483
|
+
type: "text",
|
|
484
|
+
default: ""
|
|
485
|
+
},
|
|
486
|
+
orderBy: {
|
|
487
|
+
type: "text",
|
|
488
|
+
default: ""
|
|
489
|
+
},
|
|
490
|
+
offset: {
|
|
491
|
+
type: "text",
|
|
492
|
+
default: `${COLLECTION_DEFAULT_OFFSET}`
|
|
493
|
+
},
|
|
494
|
+
limit: {
|
|
495
|
+
type: "text",
|
|
496
|
+
default: `${COLLECTION_DEFAULT_LIMIT}`
|
|
497
|
+
},
|
|
498
|
+
filters: {
|
|
499
|
+
type: "text",
|
|
500
|
+
default: "{}"
|
|
501
|
+
},
|
|
502
|
+
search: {
|
|
503
|
+
type: "text",
|
|
504
|
+
default: ""
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
};
|
|
442
508
|
export {
|
|
443
509
|
COLLECTION_DEFAULT_LIMIT,
|
|
444
510
|
COLLECTION_DEFAULT_OFFSET,
|
|
@@ -459,10 +525,14 @@ export {
|
|
|
459
525
|
getDataResourceQueryString,
|
|
460
526
|
getDataResourceUrl,
|
|
461
527
|
mergedDataTypeSchema,
|
|
528
|
+
multipleEntries,
|
|
462
529
|
preRequestEdgehancerDataResourceResultSchema,
|
|
463
530
|
preRequestEdgehancerResultSchema,
|
|
531
|
+
queryEntries,
|
|
464
532
|
requestEdgehancerDataResourceResolutionResultSchema,
|
|
465
533
|
requestEdgehancerResultSchema,
|
|
466
534
|
resolveBatchFetchIds,
|
|
467
|
-
resolvingIssueSchema
|
|
535
|
+
resolvingIssueSchema,
|
|
536
|
+
singleEntry,
|
|
537
|
+
singleEntryBySlug
|
|
468
538
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-edgehancer-sdk",
|
|
3
|
-
"version": "20.86.
|
|
3
|
+
"version": "20.86.1-alpha.1.sha-047a8346cd",
|
|
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.86.
|
|
50
|
+
"@uniformdev/canvas": "20.86.1-alpha.1.sha-047a8346cd",
|
|
51
51
|
"tsafe": "1.8.12",
|
|
52
52
|
"zod": "^4.4.3"
|
|
53
53
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "047a8346cd83803ac47f6bd28a9a59276b83ffc7"
|
|
64
64
|
}
|