@twin.org/federated-catalogue-service 0.0.1-next.9 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +16 -46
- package/dist/esm/index.mjs +16 -46
- package/docs/changelog.md +43 -0
- package/docs/open-api/spec.json +1506 -27
- package/package.json +17 -17
package/dist/cjs/index.cjs
CHANGED
|
@@ -202,11 +202,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
202
202
|
body: {
|
|
203
203
|
"@context": federatedCatalogueModels.FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
204
204
|
type: standardsSchemaOrg.SchemaOrgTypes.ItemList,
|
|
205
|
-
itemListElement: [
|
|
206
|
-
{
|
|
207
|
-
...participantEntryExample
|
|
208
|
-
}
|
|
209
|
-
]
|
|
205
|
+
itemListElement: [participantEntryExample]
|
|
210
206
|
}
|
|
211
207
|
}
|
|
212
208
|
}
|
|
@@ -241,7 +237,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
241
237
|
{
|
|
242
238
|
id: "participantGetResponseExample",
|
|
243
239
|
response: {
|
|
244
|
-
body:
|
|
240
|
+
body: participantEntryExample
|
|
245
241
|
}
|
|
246
242
|
}
|
|
247
243
|
]
|
|
@@ -324,11 +320,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
324
320
|
body: {
|
|
325
321
|
"@context": federatedCatalogueModels.FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
326
322
|
type: standardsSchemaOrg.SchemaOrgTypes.ItemList,
|
|
327
|
-
itemListElement: [
|
|
328
|
-
{
|
|
329
|
-
...serviceOfferingEntryExample
|
|
330
|
-
}
|
|
331
|
-
]
|
|
323
|
+
itemListElement: [serviceOfferingEntryExample]
|
|
332
324
|
}
|
|
333
325
|
}
|
|
334
326
|
}
|
|
@@ -363,9 +355,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
363
355
|
{
|
|
364
356
|
id: "serviceOfferingGetResponseExample",
|
|
365
357
|
response: {
|
|
366
|
-
body:
|
|
367
|
-
...serviceOfferingEntryExample
|
|
368
|
-
}
|
|
358
|
+
body: serviceOfferingEntryExample
|
|
369
359
|
}
|
|
370
360
|
}
|
|
371
361
|
]
|
|
@@ -432,11 +422,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
432
422
|
body: {
|
|
433
423
|
"@context": federatedCatalogueModels.FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
434
424
|
type: standardsSchemaOrg.SchemaOrgTypes.ItemList,
|
|
435
|
-
itemListElement: [
|
|
436
|
-
{
|
|
437
|
-
...dataResourceEntryExample
|
|
438
|
-
}
|
|
439
|
-
]
|
|
425
|
+
itemListElement: [dataResourceEntryExample]
|
|
440
426
|
}
|
|
441
427
|
}
|
|
442
428
|
}
|
|
@@ -471,9 +457,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
471
457
|
{
|
|
472
458
|
id: "dataResourceGetResponseExample",
|
|
473
459
|
response: {
|
|
474
|
-
body:
|
|
475
|
-
...dataResourceEntryExample
|
|
476
|
-
}
|
|
460
|
+
body: dataResourceEntryExample
|
|
477
461
|
}
|
|
478
462
|
}
|
|
479
463
|
]
|
|
@@ -539,11 +523,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
539
523
|
body: {
|
|
540
524
|
"@context": federatedCatalogueModels.FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
541
525
|
type: standardsSchemaOrg.SchemaOrgTypes.ItemList,
|
|
542
|
-
itemListElement: [
|
|
543
|
-
{
|
|
544
|
-
...dataSpaceConnectorEntryExample
|
|
545
|
-
}
|
|
546
|
-
]
|
|
526
|
+
itemListElement: [dataSpaceConnectorEntryExample]
|
|
547
527
|
}
|
|
548
528
|
}
|
|
549
529
|
}
|
|
@@ -578,9 +558,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
578
558
|
{
|
|
579
559
|
id: "dataSpaceConnectorGetResponseExample",
|
|
580
560
|
response: {
|
|
581
|
-
body:
|
|
582
|
-
...dataSpaceConnectorEntryExample
|
|
583
|
-
}
|
|
561
|
+
body: dataSpaceConnectorEntryExample
|
|
584
562
|
}
|
|
585
563
|
}
|
|
586
564
|
]
|
|
@@ -633,11 +611,9 @@ async function complianceCredentialPresentation(baseRouteName, httpRequestContex
|
|
|
633
611
|
*/
|
|
634
612
|
async function participantList(httpRequestContext, factoryServiceName, request) {
|
|
635
613
|
const service = core.ComponentFactory.get(factoryServiceName);
|
|
636
|
-
const itemsAndCursor = await service.queryParticipants(request?.query?.id, request?.query?.registrationNumber, request?.query?.lrnType, request?.query?.cursor, core.Coerce.
|
|
614
|
+
const itemsAndCursor = await service.queryParticipants(request?.query?.id, request?.query?.registrationNumber, request?.query?.lrnType, request?.query?.cursor, core.Coerce.integer(request?.query?.pageSize));
|
|
637
615
|
return {
|
|
638
|
-
body:
|
|
639
|
-
...itemsAndCursor
|
|
640
|
-
}
|
|
616
|
+
body: itemsAndCursor
|
|
641
617
|
};
|
|
642
618
|
}
|
|
643
619
|
/**
|
|
@@ -689,11 +665,9 @@ async function serviceOfferingCredentialPresentation(baseRouteName, httpRequestC
|
|
|
689
665
|
*/
|
|
690
666
|
async function serviceOfferingList(httpRequestContext, factoryServiceName, request) {
|
|
691
667
|
const service = core.ComponentFactory.get(factoryServiceName);
|
|
692
|
-
const itemsAndCursor = await service.queryServiceOfferings(request?.query
|
|
668
|
+
const itemsAndCursor = await service.queryServiceOfferings(request?.query?.id, request?.query?.providedBy, request?.query?.cursor, core.Coerce.integer(request?.query?.pageSize));
|
|
693
669
|
return {
|
|
694
|
-
body:
|
|
695
|
-
...itemsAndCursor
|
|
696
|
-
}
|
|
670
|
+
body: itemsAndCursor
|
|
697
671
|
};
|
|
698
672
|
}
|
|
699
673
|
/**
|
|
@@ -745,11 +719,9 @@ async function dataResourceCredentialPresentation(baseRouteName, httpRequestCont
|
|
|
745
719
|
*/
|
|
746
720
|
async function dataResourceList(httpRequestContext, factoryServiceName, request) {
|
|
747
721
|
const service = core.ComponentFactory.get(factoryServiceName);
|
|
748
|
-
const itemsAndCursor = await service.queryDataResources(request?.query
|
|
722
|
+
const itemsAndCursor = await service.queryDataResources(request?.query?.id, request?.query?.producedBy, request?.query?.cursor, core.Coerce.integer(request?.query?.pageSize));
|
|
749
723
|
return {
|
|
750
|
-
body:
|
|
751
|
-
...itemsAndCursor
|
|
752
|
-
}
|
|
724
|
+
body: itemsAndCursor
|
|
753
725
|
};
|
|
754
726
|
}
|
|
755
727
|
/**
|
|
@@ -798,11 +770,9 @@ async function dataSpaceConnectorCredentialPresentation(baseRouteName, httpReque
|
|
|
798
770
|
*/
|
|
799
771
|
async function dataSpaceConnectorList(httpRequestContext, factoryServiceName, request) {
|
|
800
772
|
const service = core.ComponentFactory.get(factoryServiceName);
|
|
801
|
-
const itemsAndCursor = await service.queryDataSpaceConnectors(request?.query
|
|
773
|
+
const itemsAndCursor = await service.queryDataSpaceConnectors(request?.query?.id, request?.query?.maintainedBy, request?.query?.cursor, core.Coerce.integer(request?.query?.pageSize));
|
|
802
774
|
return {
|
|
803
|
-
body:
|
|
804
|
-
...itemsAndCursor
|
|
805
|
-
}
|
|
775
|
+
body: itemsAndCursor
|
|
806
776
|
};
|
|
807
777
|
}
|
|
808
778
|
/**
|
package/dist/esm/index.mjs
CHANGED
|
@@ -200,11 +200,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
200
200
|
body: {
|
|
201
201
|
"@context": FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
202
202
|
type: SchemaOrgTypes.ItemList,
|
|
203
|
-
itemListElement: [
|
|
204
|
-
{
|
|
205
|
-
...participantEntryExample
|
|
206
|
-
}
|
|
207
|
-
]
|
|
203
|
+
itemListElement: [participantEntryExample]
|
|
208
204
|
}
|
|
209
205
|
}
|
|
210
206
|
}
|
|
@@ -239,7 +235,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
239
235
|
{
|
|
240
236
|
id: "participantGetResponseExample",
|
|
241
237
|
response: {
|
|
242
|
-
body:
|
|
238
|
+
body: participantEntryExample
|
|
243
239
|
}
|
|
244
240
|
}
|
|
245
241
|
]
|
|
@@ -322,11 +318,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
322
318
|
body: {
|
|
323
319
|
"@context": FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
324
320
|
type: SchemaOrgTypes.ItemList,
|
|
325
|
-
itemListElement: [
|
|
326
|
-
{
|
|
327
|
-
...serviceOfferingEntryExample
|
|
328
|
-
}
|
|
329
|
-
]
|
|
321
|
+
itemListElement: [serviceOfferingEntryExample]
|
|
330
322
|
}
|
|
331
323
|
}
|
|
332
324
|
}
|
|
@@ -361,9 +353,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
361
353
|
{
|
|
362
354
|
id: "serviceOfferingGetResponseExample",
|
|
363
355
|
response: {
|
|
364
|
-
body:
|
|
365
|
-
...serviceOfferingEntryExample
|
|
366
|
-
}
|
|
356
|
+
body: serviceOfferingEntryExample
|
|
367
357
|
}
|
|
368
358
|
}
|
|
369
359
|
]
|
|
@@ -430,11 +420,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
430
420
|
body: {
|
|
431
421
|
"@context": FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
432
422
|
type: SchemaOrgTypes.ItemList,
|
|
433
|
-
itemListElement: [
|
|
434
|
-
{
|
|
435
|
-
...dataResourceEntryExample
|
|
436
|
-
}
|
|
437
|
-
]
|
|
423
|
+
itemListElement: [dataResourceEntryExample]
|
|
438
424
|
}
|
|
439
425
|
}
|
|
440
426
|
}
|
|
@@ -469,9 +455,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
469
455
|
{
|
|
470
456
|
id: "dataResourceGetResponseExample",
|
|
471
457
|
response: {
|
|
472
|
-
body:
|
|
473
|
-
...dataResourceEntryExample
|
|
474
|
-
}
|
|
458
|
+
body: dataResourceEntryExample
|
|
475
459
|
}
|
|
476
460
|
}
|
|
477
461
|
]
|
|
@@ -537,11 +521,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
537
521
|
body: {
|
|
538
522
|
"@context": FederatedCatalogueContextInstances.DEFAULT_LD_CONTEXT_ENTRY_LIST,
|
|
539
523
|
type: SchemaOrgTypes.ItemList,
|
|
540
|
-
itemListElement: [
|
|
541
|
-
{
|
|
542
|
-
...dataSpaceConnectorEntryExample
|
|
543
|
-
}
|
|
544
|
-
]
|
|
524
|
+
itemListElement: [dataSpaceConnectorEntryExample]
|
|
545
525
|
}
|
|
546
526
|
}
|
|
547
527
|
}
|
|
@@ -576,9 +556,7 @@ function generateRestRoutesFederatedCatalogue(baseRouteName, factoryServiceName)
|
|
|
576
556
|
{
|
|
577
557
|
id: "dataSpaceConnectorGetResponseExample",
|
|
578
558
|
response: {
|
|
579
|
-
body:
|
|
580
|
-
...dataSpaceConnectorEntryExample
|
|
581
|
-
}
|
|
559
|
+
body: dataSpaceConnectorEntryExample
|
|
582
560
|
}
|
|
583
561
|
}
|
|
584
562
|
]
|
|
@@ -631,11 +609,9 @@ async function complianceCredentialPresentation(baseRouteName, httpRequestContex
|
|
|
631
609
|
*/
|
|
632
610
|
async function participantList(httpRequestContext, factoryServiceName, request) {
|
|
633
611
|
const service = ComponentFactory.get(factoryServiceName);
|
|
634
|
-
const itemsAndCursor = await service.queryParticipants(request?.query?.id, request?.query?.registrationNumber, request?.query?.lrnType, request?.query?.cursor, Coerce.
|
|
612
|
+
const itemsAndCursor = await service.queryParticipants(request?.query?.id, request?.query?.registrationNumber, request?.query?.lrnType, request?.query?.cursor, Coerce.integer(request?.query?.pageSize));
|
|
635
613
|
return {
|
|
636
|
-
body:
|
|
637
|
-
...itemsAndCursor
|
|
638
|
-
}
|
|
614
|
+
body: itemsAndCursor
|
|
639
615
|
};
|
|
640
616
|
}
|
|
641
617
|
/**
|
|
@@ -687,11 +663,9 @@ async function serviceOfferingCredentialPresentation(baseRouteName, httpRequestC
|
|
|
687
663
|
*/
|
|
688
664
|
async function serviceOfferingList(httpRequestContext, factoryServiceName, request) {
|
|
689
665
|
const service = ComponentFactory.get(factoryServiceName);
|
|
690
|
-
const itemsAndCursor = await service.queryServiceOfferings(request?.query
|
|
666
|
+
const itemsAndCursor = await service.queryServiceOfferings(request?.query?.id, request?.query?.providedBy, request?.query?.cursor, Coerce.integer(request?.query?.pageSize));
|
|
691
667
|
return {
|
|
692
|
-
body:
|
|
693
|
-
...itemsAndCursor
|
|
694
|
-
}
|
|
668
|
+
body: itemsAndCursor
|
|
695
669
|
};
|
|
696
670
|
}
|
|
697
671
|
/**
|
|
@@ -743,11 +717,9 @@ async function dataResourceCredentialPresentation(baseRouteName, httpRequestCont
|
|
|
743
717
|
*/
|
|
744
718
|
async function dataResourceList(httpRequestContext, factoryServiceName, request) {
|
|
745
719
|
const service = ComponentFactory.get(factoryServiceName);
|
|
746
|
-
const itemsAndCursor = await service.queryDataResources(request?.query
|
|
720
|
+
const itemsAndCursor = await service.queryDataResources(request?.query?.id, request?.query?.producedBy, request?.query?.cursor, Coerce.integer(request?.query?.pageSize));
|
|
747
721
|
return {
|
|
748
|
-
body:
|
|
749
|
-
...itemsAndCursor
|
|
750
|
-
}
|
|
722
|
+
body: itemsAndCursor
|
|
751
723
|
};
|
|
752
724
|
}
|
|
753
725
|
/**
|
|
@@ -796,11 +768,9 @@ async function dataSpaceConnectorCredentialPresentation(baseRouteName, httpReque
|
|
|
796
768
|
*/
|
|
797
769
|
async function dataSpaceConnectorList(httpRequestContext, factoryServiceName, request) {
|
|
798
770
|
const service = ComponentFactory.get(factoryServiceName);
|
|
799
|
-
const itemsAndCursor = await service.queryDataSpaceConnectors(request?.query
|
|
771
|
+
const itemsAndCursor = await service.queryDataSpaceConnectors(request?.query?.id, request?.query?.maintainedBy, request?.query?.cursor, Coerce.integer(request?.query?.pageSize));
|
|
800
772
|
return {
|
|
801
|
-
body:
|
|
802
|
-
...itemsAndCursor
|
|
803
|
-
}
|
|
773
|
+
body: itemsAndCursor
|
|
804
774
|
};
|
|
805
775
|
}
|
|
806
776
|
/**
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @twin.org/federated-catalogue-service - Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.1 (2025-07-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* release to production ([c9b5702](https://github.com/twinfoundation/federated-catalogue/commit/c9b570207fae4b31d43fa99e4df99be4baa34db2))
|
|
9
|
+
* version 0 federated catalogue ([#2](https://github.com/twinfoundation/federated-catalogue/issues/2)) ([93fb8bd](https://github.com/twinfoundation/federated-catalogue/commit/93fb8bdbb03aa781ef9e8dc4053beea1b397cc36))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* The following workspace dependencies were updated
|
|
15
|
+
* dependencies
|
|
16
|
+
* @twin.org/federated-catalogue-models bumped from ^0.0.0 to ^0.0.1
|
|
17
|
+
|
|
18
|
+
## [0.0.1-next.11](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-service-v0.0.1-next.10...federated-catalogue-service-v0.0.1-next.11) (2025-06-20)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* query params force coercion ([a532329](https://github.com/twinfoundation/federated-catalogue/commit/a532329089b2b95c7f18cd8bd56ee47482755dc0))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/federated-catalogue-models bumped from 0.0.1-next.10 to 0.0.1-next.11
|
|
31
|
+
|
|
32
|
+
## [0.0.1-next.10](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-service-v0.0.1-next.9...federated-catalogue-service-v0.0.1-next.10) (2025-06-18)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
* update schemas ([58d8581](https://github.com/twinfoundation/federated-catalogue/commit/58d85813231f6576490937d4394e7be0f6d8c58d))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
|
|
42
|
+
* The following workspace dependencies were updated
|
|
43
|
+
* dependencies
|
|
44
|
+
* @twin.org/federated-catalogue-models bumped from 0.0.1-next.9 to 0.0.1-next.10
|
|
45
|
+
|
|
3
46
|
## [0.0.1-next.9](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-service-v0.0.1-next.8...federated-catalogue-service-v0.0.1-next.9) (2025-06-12)
|
|
4
47
|
|
|
5
48
|
|