@twin.org/federated-catalogue-models 0.0.3-next.17 → 0.0.3-next.19
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/es/index.js +6 -2
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IFederatedCatalogueComponent.js.map +1 -1
- package/dist/es/models/IFederatedCatalogueFilter.js.map +1 -1
- package/dist/es/models/api/ICatalogRequestRequest.js.map +1 -1
- package/dist/es/models/api/IDatasetGetRequest.js +2 -0
- package/dist/es/models/api/IDatasetGetRequest.js.map +1 -0
- package/dist/es/models/api/IDatasetGetResponse.js +2 -0
- package/dist/es/models/api/{IGetDatasetResponse.js.map → IDatasetGetResponse.js.map} +1 -1
- package/dist/es/models/api/IDatasetRemoveRequest.js +2 -0
- package/dist/es/models/api/IDatasetRemoveRequest.js.map +1 -0
- package/dist/es/models/api/IDatasetRemoveResponse.js +2 -0
- package/dist/es/models/api/IDatasetRemoveResponse.js.map +1 -0
- package/dist/es/models/api/IDatasetSetRequest.js +2 -0
- package/dist/es/models/api/IDatasetSetRequest.js.map +1 -0
- package/dist/es/models/api/IDatasetSetResponse.js +2 -0
- package/dist/es/models/api/IDatasetSetResponse.js.map +1 -0
- package/dist/types/index.d.ts +6 -2
- package/dist/types/models/IFederatedCatalogueComponent.d.ts +12 -8
- package/dist/types/models/IFederatedCatalogueFilter.d.ts +2 -2
- package/dist/types/models/api/ICatalogRequestRequest.d.ts +7 -0
- package/dist/types/models/api/IDatasetGetRequest.d.ts +21 -0
- package/dist/types/models/api/{IGetDatasetResponse.d.ts → IDatasetGetResponse.d.ts} +1 -1
- package/dist/types/models/api/IDatasetRemoveRequest.d.ts +21 -0
- package/dist/types/models/api/IDatasetRemoveResponse.d.ts +15 -0
- package/dist/types/models/api/IDatasetSetRequest.d.ts +17 -0
- package/dist/types/models/api/IDatasetSetResponse.d.ts +21 -0
- package/docs/changelog.md +14 -0
- package/docs/reference/index.md +6 -2
- package/docs/reference/interfaces/ICatalogRequestRequest.md +12 -0
- package/docs/reference/interfaces/IDatasetGetRequest.md +29 -0
- package/docs/reference/interfaces/{IGetDatasetResponse.md → IDatasetGetResponse.md} +1 -1
- package/docs/reference/interfaces/IDatasetRemoveRequest.md +29 -0
- package/docs/reference/interfaces/IDatasetRemoveResponse.md +19 -0
- package/docs/reference/interfaces/IDatasetSetRequest.md +23 -0
- package/docs/reference/interfaces/IDatasetSetResponse.md +31 -0
- package/docs/reference/interfaces/IFederatedCatalogueComponent.md +40 -16
- package/docs/reference/interfaces/IFederatedCatalogueFilter.md +2 -2
- package/package.json +3 -3
- package/dist/es/models/api/IGetDatasetRequest.js +0 -4
- package/dist/es/models/api/IGetDatasetRequest.js.map +0 -1
- package/dist/es/models/api/IGetDatasetResponse.js +0 -2
- package/dist/types/models/api/IGetDatasetRequest.d.ts +0 -14
- package/docs/reference/interfaces/IGetDatasetRequest.md +0 -17
package/dist/es/index.js
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
export * from "./factories/federatedCatalogueFilterFactory.js";
|
|
4
4
|
export * from "./models/api/ICatalogRequestRequest.js";
|
|
5
5
|
export * from "./models/api/ICatalogRequestResponse.js";
|
|
6
|
-
export * from "./models/api/
|
|
7
|
-
export * from "./models/api/
|
|
6
|
+
export * from "./models/api/IDatasetGetRequest.js";
|
|
7
|
+
export * from "./models/api/IDatasetGetResponse.js";
|
|
8
|
+
export * from "./models/api/IDatasetRemoveRequest.js";
|
|
9
|
+
export * from "./models/api/IDatasetRemoveResponse.js";
|
|
10
|
+
export * from "./models/api/IDatasetSetRequest.js";
|
|
11
|
+
export * from "./models/api/IDatasetSetResponse.js";
|
|
8
12
|
export * from "./models/IFederatedCatalogueComponent.js";
|
|
9
13
|
export * from "./models/IFederatedCatalogueFilter.js";
|
|
10
14
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./factories/federatedCatalogueFilterFactory.js\";\nexport * from \"./models/api/ICatalogRequestRequest.js\";\nexport * from \"./models/api/ICatalogRequestResponse.js\";\nexport * from \"./models/api/
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./factories/federatedCatalogueFilterFactory.js\";\nexport * from \"./models/api/ICatalogRequestRequest.js\";\nexport * from \"./models/api/ICatalogRequestResponse.js\";\nexport * from \"./models/api/IDatasetGetRequest.js\";\nexport * from \"./models/api/IDatasetGetResponse.js\";\nexport * from \"./models/api/IDatasetRemoveRequest.js\";\nexport * from \"./models/api/IDatasetRemoveResponse.js\";\nexport * from \"./models/api/IDatasetSetRequest.js\";\nexport * from \"./models/api/IDatasetSetResponse.js\";\nexport * from \"./models/IFederatedCatalogueComponent.js\";\nexport * from \"./models/IFederatedCatalogueFilter.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFederatedCatalogueComponent.js","sourceRoot":"","sources":["../../../src/models/IFederatedCatalogueComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {\n\tIDataspaceProtocolCatalog,\n\tIDataspaceProtocolCatalogError\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\n\n/**\n * Interface describing a federated catalogue component.\n * Provides Dataspace Protocol-compliant catalog endpoints for dataset registry and query.\n */\nexport interface IFederatedCatalogueComponent extends IComponent {\n\t/**\n\t * Retrieve a dataset by its unique identifier.\n\t * @param
|
|
1
|
+
{"version":3,"file":"IFederatedCatalogueComponent.js","sourceRoot":"","sources":["../../../src/models/IFederatedCatalogueComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {\n\tIDataspaceProtocolCatalog,\n\tIDataspaceProtocolCatalogError\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\n\n/**\n * Interface describing a federated catalogue component.\n * Provides Dataspace Protocol-compliant catalog endpoints for dataset registry and query.\n */\nexport interface IFederatedCatalogueComponent extends IComponent {\n\t/**\n\t * Retrieve a dataset by its unique identifier.\n\t * @param datasetId The unique identifier of the dataset.\n\t * @param trustPayload Optional payload for trust evaluation, if applicable.\n\t * @returns The dataset if found, or a CatalogError if not found or an error occurs.\n\t */\n\tget(\n\t\tdatasetId: string,\n\t\ttrustPayload: unknown\n\t): Promise<IDcatDataset | IDataspaceProtocolCatalogError>;\n\n\t/**\n\t * Insert or update a dataset in the catalogue.\n\t * This method is internal and should not be exposed via REST endpoints.\n\t * @param dataset The dataset to store.\n\t * @param trustPayload Optional payload for trust evaluation, if applicable.\n\t * @returns The unique identifier of the stored dataset, or a CatalogError if an error occurs.\n\t */\n\tset(\n\t\tdataset: IDcatDataset,\n\t\ttrustPayload: unknown\n\t): Promise<string | IDataspaceProtocolCatalogError>;\n\n\t/**\n\t * Execute a query against the catalogue using registered filter plugins.\n\t * Returns a DS Protocol compliant Catalog object with participantId.\n\t *\n\t * The root catalog's participantId is the requesting participant (from context).\n\t * Own datasets (matching requestingParticipantId) go directly in root dataset[].\n\t * Other participants' datasets are grouped in nested catalog[] entries.\n\t *\n\t * For anonymous requests (no context), uses the first publisher found as fallback.\n\t * Returns CatalogError 404 when no datasets exist.\n\t *\n\t * @param filter The filter criteria containing @type.\n\t * @param cursor Optional cursor for pagination.\n\t * @param limit Optional limit for pagination.\n\t * @param trustPayload Optional payload for trust evaluation, if applicable.\n\t * @returns Complete IDataspaceProtocolCatalog with @context, @id, @type, participantId, dataset/catalog,\n\t * or IDataspaceProtocolCatalogError if no datasets found.\n\t */\n\tquery(\n\t\tfilter: unknown[] | undefined,\n\t\tcursor: string | undefined,\n\t\tlimit: number | undefined,\n\t\ttrustPayload: unknown\n\t): Promise<{\n\t\tresult: IDataspaceProtocolCatalog | IDataspaceProtocolCatalogError;\n\t\tcursor?: string;\n\t}>;\n\n\t/**\n\t * Remove a dataset from the catalogue by its unique identifier.\n\t * @param datasetId The unique identifier of the dataset to remove.\n\t * @param trustPayload Optional payload for trust evaluation, if applicable.\n\t * @returns Nothing.\n\t */\n\tremove(\n\t\tdatasetId: string,\n\t\ttrustPayload: unknown\n\t): Promise<IDataspaceProtocolCatalogError | undefined>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFederatedCatalogueFilter.js","sourceRoot":"","sources":["../../../src/models/IFederatedCatalogueFilter.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\n\n/**\n * Interface describing a filter plugin for the federated catalogue.\n * Filter plugins provide extensible query semantics and indexing strategies.\n * Filters are registered by name in the FilterFactory and do not need to self-identify.\n */\nexport interface IFederatedCatalogueFilter extends IComponent {\n\t/**\n\t * Execute a filter-specific query over the catalogue.\n\t * Each filter interprets the payload according to its own semantics.\n\t * @param filter The filter criteria (structure depends on the filter implementation).\n\t * @param cursor The pagination cursor from the previous query, if any.\n\t * @param limit The maximum number of results to return.\n\t * @returns Object containing datasets matching the filter criteria and optional cursor for next page.\n\t */\n\tquery(\n\t\tfilter: unknown,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{ datasets: IDcatDataset[]; cursor?: string }>;\n\n\t/**\n\t * Generate filter indexes for a dataset to optimize future queries.\n\t * Indexes are stored as properties on the dataset entity itself.\n\t * @param
|
|
1
|
+
{"version":3,"file":"IFederatedCatalogueFilter.js","sourceRoot":"","sources":["../../../src/models/IFederatedCatalogueFilter.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\n\n/**\n * Interface describing a filter plugin for the federated catalogue.\n * Filter plugins provide extensible query semantics and indexing strategies.\n * Filters are registered by name in the FilterFactory and do not need to self-identify.\n */\nexport interface IFederatedCatalogueFilter extends IComponent {\n\t/**\n\t * Execute a filter-specific query over the catalogue.\n\t * Each filter interprets the payload according to its own semantics.\n\t * @param filter The filter criteria (structure depends on the filter implementation).\n\t * @param cursor The pagination cursor from the previous query, if any.\n\t * @param limit The maximum number of results to return.\n\t * @returns Object containing datasets matching the filter criteria and optional cursor for next page.\n\t */\n\tquery(\n\t\tfilter: unknown,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{ datasets: IDcatDataset[]; cursor?: string }>;\n\n\t/**\n\t * Generate filter indexes for a dataset to optimize future queries.\n\t * Indexes are stored as properties on the dataset entity itself.\n\t * @param dataset The dataset to index.\n\t * @returns Record mapping filter-specific index keys to values.\n\t */\n\tcreateIndex(dataset: IDcatDataset): Promise<{ [key: string]: unknown }>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICatalogRequestRequest.js","sourceRoot":"","sources":["../../../../src/models/api/ICatalogRequestRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolCatalogRequestMessage } from \"@twin.org/standards-dataspace-protocol\";\n\n/**\n * The request parameters for the catalog request method.\n */\nexport interface ICatalogRequestRequest {\n\t/**\n\t * The request body containing the catalog query.\n\t */\n\tbody: IDataspaceProtocolCatalogRequestMessage;\n\n\t/**\n\t * Optional query parameters for pagination.\n\t * Used when following Link header URLs per DS Protocol spec.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * Opaque cursor token for pagination.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit for pagination.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ICatalogRequestRequest.js","sourceRoot":"","sources":["../../../../src/models/api/ICatalogRequestRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolCatalogRequestMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes } from \"@twin.org/web\";\n\n/**\n * The request parameters for the catalog request method.\n */\nexport interface ICatalogRequestRequest {\n\t/**\n\t * The request headers. Authorization header carries the trust token (Bearer scheme).\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The request body containing the catalog query.\n\t */\n\tbody: IDataspaceProtocolCatalogRequestMessage;\n\n\t/**\n\t * Optional query parameters for pagination.\n\t * Used when following Link header URLs per DS Protocol spec.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * Opaque cursor token for pagination.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit for pagination.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDatasetGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IDatasetGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes } from \"@twin.org/web\";\n\n/**\n * The request parameters for the get dataset method.\n */\nexport interface IDatasetGetRequest {\n\t/**\n\t * The request headers. Authorization header carries the trust token (Bearer scheme).\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The unique identifier of the dataset.\n\t\t */\n\t\tdatasetId: string;\n\t};\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"IDatasetGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IDatasetGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolCatalogError } from \"@twin.org/standards-dataspace-protocol\";\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\nimport type { HttpStatusCode } from \"@twin.org/web\";\n\n/**\n * The response payload for the get dataset method.\n */\nexport interface IDatasetGetResponse {\n\t/**\n\t * Response status code.\n\t */\n\tstatusCode?: HttpStatusCode;\n\n\t/**\n\t * The response payload containing the dataset or error.\n\t */\n\tbody: IDcatDataset | IDataspaceProtocolCatalogError;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDatasetRemoveRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IDatasetRemoveRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes } from \"@twin.org/web\";\n\n/**\n * The request parameters for the remove dataset method.\n */\nexport interface IDatasetRemoveRequest {\n\t/**\n\t * The request headers. Authorization header carries the trust token (Bearer scheme).\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The unique identifier of the dataset.\n\t\t */\n\t\tdatasetId: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDatasetRemoveResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IDatasetRemoveResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolCatalogError } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HttpStatusCode } from \"@twin.org/web\";\n\n/**\n * The response payload for the remove dataset method.\n */\nexport interface IDatasetRemoveResponse {\n\t/**\n\t * Response status code.\n\t */\n\tstatusCode?: HttpStatusCode;\n\n\t/**\n\t * The response payload containing the dataset or error.\n\t */\n\tbody?: IDataspaceProtocolCatalogError;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDatasetSetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IDatasetSetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDcatDataset } from \"@twin.org/standards-w3c-dcat\";\nimport type { HeaderTypes } from \"@twin.org/web\";\n\n/**\n * The request parameters for the set dataset method.\n */\nexport interface IDatasetSetRequest {\n\t/**\n\t * The request headers. Authorization header carries the trust token (Bearer scheme).\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The response payload containing the dataset or error.\n\t */\n\tbody: IDcatDataset;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDatasetSetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IDatasetSetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolCatalogError } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, HttpStatusCode } from \"@twin.org/web\";\n\n/**\n * The response payload for the set dataset method.\n */\nexport interface IDatasetSetResponse {\n\t/**\n\t * Response status code.\n\t */\n\tstatusCode?: HttpStatusCode;\n\n\t/**\n\t * Optional headers.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Location]?: string;\n\t};\n\n\t/**\n\t * The response payload containing the dataset or error.\n\t */\n\tbody?: IDataspaceProtocolCatalogError;\n}\n"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export * from "./factories/federatedCatalogueFilterFactory.js";
|
|
2
2
|
export * from "./models/api/ICatalogRequestRequest.js";
|
|
3
3
|
export * from "./models/api/ICatalogRequestResponse.js";
|
|
4
|
-
export * from "./models/api/
|
|
5
|
-
export * from "./models/api/
|
|
4
|
+
export * from "./models/api/IDatasetGetRequest.js";
|
|
5
|
+
export * from "./models/api/IDatasetGetResponse.js";
|
|
6
|
+
export * from "./models/api/IDatasetRemoveRequest.js";
|
|
7
|
+
export * from "./models/api/IDatasetRemoveResponse.js";
|
|
8
|
+
export * from "./models/api/IDatasetSetRequest.js";
|
|
9
|
+
export * from "./models/api/IDatasetSetResponse.js";
|
|
6
10
|
export * from "./models/IFederatedCatalogueComponent.js";
|
|
7
11
|
export * from "./models/IFederatedCatalogueFilter.js";
|
|
@@ -8,17 +8,19 @@ import type { IDcatDataset } from "@twin.org/standards-w3c-dcat";
|
|
|
8
8
|
export interface IFederatedCatalogueComponent extends IComponent {
|
|
9
9
|
/**
|
|
10
10
|
* Retrieve a dataset by its unique identifier.
|
|
11
|
-
* @param
|
|
11
|
+
* @param datasetId The unique identifier of the dataset.
|
|
12
|
+
* @param trustPayload Optional payload for trust evaluation, if applicable.
|
|
12
13
|
* @returns The dataset if found, or a CatalogError if not found or an error occurs.
|
|
13
14
|
*/
|
|
14
|
-
get(
|
|
15
|
+
get(datasetId: string, trustPayload: unknown): Promise<IDcatDataset | IDataspaceProtocolCatalogError>;
|
|
15
16
|
/**
|
|
16
17
|
* Insert or update a dataset in the catalogue.
|
|
17
18
|
* This method is internal and should not be exposed via REST endpoints.
|
|
18
|
-
* @param
|
|
19
|
-
* @
|
|
19
|
+
* @param dataset The dataset to store.
|
|
20
|
+
* @param trustPayload Optional payload for trust evaluation, if applicable.
|
|
21
|
+
* @returns The unique identifier of the stored dataset, or a CatalogError if an error occurs.
|
|
20
22
|
*/
|
|
21
|
-
set(
|
|
23
|
+
set(dataset: IDcatDataset, trustPayload: unknown): Promise<string | IDataspaceProtocolCatalogError>;
|
|
22
24
|
/**
|
|
23
25
|
* Execute a query against the catalogue using registered filter plugins.
|
|
24
26
|
* Returns a DS Protocol compliant Catalog object with participantId.
|
|
@@ -33,17 +35,19 @@ export interface IFederatedCatalogueComponent extends IComponent {
|
|
|
33
35
|
* @param filter The filter criteria containing @type.
|
|
34
36
|
* @param cursor Optional cursor for pagination.
|
|
35
37
|
* @param limit Optional limit for pagination.
|
|
38
|
+
* @param trustPayload Optional payload for trust evaluation, if applicable.
|
|
36
39
|
* @returns Complete IDataspaceProtocolCatalog with @context, @id, @type, participantId, dataset/catalog,
|
|
37
40
|
* or IDataspaceProtocolCatalogError if no datasets found.
|
|
38
41
|
*/
|
|
39
|
-
query(filter
|
|
42
|
+
query(filter: unknown[] | undefined, cursor: string | undefined, limit: number | undefined, trustPayload: unknown): Promise<{
|
|
40
43
|
result: IDataspaceProtocolCatalog | IDataspaceProtocolCatalogError;
|
|
41
44
|
cursor?: string;
|
|
42
45
|
}>;
|
|
43
46
|
/**
|
|
44
47
|
* Remove a dataset from the catalogue by its unique identifier.
|
|
45
|
-
* @param
|
|
48
|
+
* @param datasetId The unique identifier of the dataset to remove.
|
|
49
|
+
* @param trustPayload Optional payload for trust evaluation, if applicable.
|
|
46
50
|
* @returns Nothing.
|
|
47
51
|
*/
|
|
48
|
-
remove(
|
|
52
|
+
remove(datasetId: string, trustPayload: unknown): Promise<IDataspaceProtocolCatalogError | undefined>;
|
|
49
53
|
}
|
|
@@ -21,10 +21,10 @@ export interface IFederatedCatalogueFilter extends IComponent {
|
|
|
21
21
|
/**
|
|
22
22
|
* Generate filter indexes for a dataset to optimize future queries.
|
|
23
23
|
* Indexes are stored as properties on the dataset entity itself.
|
|
24
|
-
* @param
|
|
24
|
+
* @param dataset The dataset to index.
|
|
25
25
|
* @returns Record mapping filter-specific index keys to values.
|
|
26
26
|
*/
|
|
27
|
-
createIndex(
|
|
27
|
+
createIndex(dataset: IDcatDataset): Promise<{
|
|
28
28
|
[key: string]: unknown;
|
|
29
29
|
}>;
|
|
30
30
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import type { IDataspaceProtocolCatalogRequestMessage } from "@twin.org/standards-dataspace-protocol";
|
|
2
|
+
import type { HeaderTypes } from "@twin.org/web";
|
|
2
3
|
/**
|
|
3
4
|
* The request parameters for the catalog request method.
|
|
4
5
|
*/
|
|
5
6
|
export interface ICatalogRequestRequest {
|
|
7
|
+
/**
|
|
8
|
+
* The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
9
|
+
*/
|
|
10
|
+
headers?: {
|
|
11
|
+
[HeaderTypes.Authorization]?: string;
|
|
12
|
+
};
|
|
6
13
|
/**
|
|
7
14
|
* The request body containing the catalog query.
|
|
8
15
|
*/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HeaderTypes } from "@twin.org/web";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the get dataset method.
|
|
4
|
+
*/
|
|
5
|
+
export interface IDatasetGetRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
8
|
+
*/
|
|
9
|
+
headers?: {
|
|
10
|
+
[HeaderTypes.Authorization]?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The path parameters.
|
|
14
|
+
*/
|
|
15
|
+
pathParams: {
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of the dataset.
|
|
18
|
+
*/
|
|
19
|
+
datasetId: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HeaderTypes } from "@twin.org/web";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the remove dataset method.
|
|
4
|
+
*/
|
|
5
|
+
export interface IDatasetRemoveRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
8
|
+
*/
|
|
9
|
+
headers?: {
|
|
10
|
+
[HeaderTypes.Authorization]?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The path parameters.
|
|
14
|
+
*/
|
|
15
|
+
pathParams: {
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of the dataset.
|
|
18
|
+
*/
|
|
19
|
+
datasetId: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IDataspaceProtocolCatalogError } from "@twin.org/standards-dataspace-protocol";
|
|
2
|
+
import type { HttpStatusCode } from "@twin.org/web";
|
|
3
|
+
/**
|
|
4
|
+
* The response payload for the remove dataset method.
|
|
5
|
+
*/
|
|
6
|
+
export interface IDatasetRemoveResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Response status code.
|
|
9
|
+
*/
|
|
10
|
+
statusCode?: HttpStatusCode;
|
|
11
|
+
/**
|
|
12
|
+
* The response payload containing the dataset or error.
|
|
13
|
+
*/
|
|
14
|
+
body?: IDataspaceProtocolCatalogError;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IDcatDataset } from "@twin.org/standards-w3c-dcat";
|
|
2
|
+
import type { HeaderTypes } from "@twin.org/web";
|
|
3
|
+
/**
|
|
4
|
+
* The request parameters for the set dataset method.
|
|
5
|
+
*/
|
|
6
|
+
export interface IDatasetSetRequest {
|
|
7
|
+
/**
|
|
8
|
+
* The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
9
|
+
*/
|
|
10
|
+
headers?: {
|
|
11
|
+
[HeaderTypes.Authorization]?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The response payload containing the dataset or error.
|
|
15
|
+
*/
|
|
16
|
+
body: IDcatDataset;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IDataspaceProtocolCatalogError } from "@twin.org/standards-dataspace-protocol";
|
|
2
|
+
import type { HeaderTypes, HttpStatusCode } from "@twin.org/web";
|
|
3
|
+
/**
|
|
4
|
+
* The response payload for the set dataset method.
|
|
5
|
+
*/
|
|
6
|
+
export interface IDatasetSetResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Response status code.
|
|
9
|
+
*/
|
|
10
|
+
statusCode?: HttpStatusCode;
|
|
11
|
+
/**
|
|
12
|
+
* Optional headers.
|
|
13
|
+
*/
|
|
14
|
+
headers?: {
|
|
15
|
+
[HeaderTypes.Location]?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The response payload containing the dataset or error.
|
|
19
|
+
*/
|
|
20
|
+
body?: IDataspaceProtocolCatalogError;
|
|
21
|
+
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.19](https://github.com/iotaledger/twin-federated-catalogue/compare/federated-catalogue-models-v0.0.3-next.18...federated-catalogue-models-v0.0.3-next.19) (2026-06-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* replace sync storage with shared DB and trust-token auth ([#79](https://github.com/iotaledger/twin-federated-catalogue/issues/79)) ([3a07f02](https://github.com/iotaledger/twin-federated-catalogue/commit/3a07f02aba8d6f3540a23e5c2cebc7b0e579ef30))
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.18](https://github.com/iotaledger/twin-federated-catalogue/compare/federated-catalogue-models-v0.0.3-next.17...federated-catalogue-models-v0.0.3-next.18) (2026-06-01)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **federated-catalogue-models:** Synchronize repo versions
|
|
16
|
+
|
|
3
17
|
## [0.0.3-next.17](https://github.com/iotaledger/twin-federated-catalogue/compare/federated-catalogue-models-v0.0.3-next.16...federated-catalogue-models-v0.0.3-next.17) (2026-05-20)
|
|
4
18
|
|
|
5
19
|
|
package/docs/reference/index.md
CHANGED
|
@@ -6,8 +6,12 @@
|
|
|
6
6
|
- [IFederatedCatalogueFilter](interfaces/IFederatedCatalogueFilter.md)
|
|
7
7
|
- [ICatalogRequestRequest](interfaces/ICatalogRequestRequest.md)
|
|
8
8
|
- [ICatalogRequestResponse](interfaces/ICatalogRequestResponse.md)
|
|
9
|
-
- [
|
|
10
|
-
- [
|
|
9
|
+
- [IDatasetGetRequest](interfaces/IDatasetGetRequest.md)
|
|
10
|
+
- [IDatasetGetResponse](interfaces/IDatasetGetResponse.md)
|
|
11
|
+
- [IDatasetRemoveRequest](interfaces/IDatasetRemoveRequest.md)
|
|
12
|
+
- [IDatasetRemoveResponse](interfaces/IDatasetRemoveResponse.md)
|
|
13
|
+
- [IDatasetSetRequest](interfaces/IDatasetSetRequest.md)
|
|
14
|
+
- [IDatasetSetResponse](interfaces/IDatasetSetResponse.md)
|
|
11
15
|
|
|
12
16
|
## Variables
|
|
13
17
|
|
|
@@ -4,6 +4,18 @@ The request parameters for the catalog request method.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
12
|
+
|
|
13
|
+
#### authorization?
|
|
14
|
+
|
|
15
|
+
> `optional` **authorization?**: `string`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
7
19
|
### body {#body}
|
|
8
20
|
|
|
9
21
|
> **body**: `IDataspaceProtocolCatalogRequestMessage`
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Interface: IDatasetGetRequest
|
|
2
|
+
|
|
3
|
+
The request parameters for the get dataset method.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
12
|
+
|
|
13
|
+
#### authorization?
|
|
14
|
+
|
|
15
|
+
> `optional` **authorization?**: `string`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
|
+
|
|
21
|
+
> **pathParams**: `object`
|
|
22
|
+
|
|
23
|
+
The path parameters.
|
|
24
|
+
|
|
25
|
+
#### datasetId
|
|
26
|
+
|
|
27
|
+
> **datasetId**: `string`
|
|
28
|
+
|
|
29
|
+
The unique identifier of the dataset.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Interface: IDatasetRemoveRequest
|
|
2
|
+
|
|
3
|
+
The request parameters for the remove dataset method.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
12
|
+
|
|
13
|
+
#### authorization?
|
|
14
|
+
|
|
15
|
+
> `optional` **authorization?**: `string`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
|
+
|
|
21
|
+
> **pathParams**: `object`
|
|
22
|
+
|
|
23
|
+
The path parameters.
|
|
24
|
+
|
|
25
|
+
#### datasetId
|
|
26
|
+
|
|
27
|
+
> **datasetId**: `string`
|
|
28
|
+
|
|
29
|
+
The unique identifier of the dataset.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: IDatasetRemoveResponse
|
|
2
|
+
|
|
3
|
+
The response payload for the remove dataset method.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### statusCode? {#statuscode}
|
|
8
|
+
|
|
9
|
+
> `optional` **statusCode?**: `HttpStatusCode`
|
|
10
|
+
|
|
11
|
+
Response status code.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### body? {#body}
|
|
16
|
+
|
|
17
|
+
> `optional` **body?**: `IDataspaceProtocolCatalogError`
|
|
18
|
+
|
|
19
|
+
The response payload containing the dataset or error.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IDatasetSetRequest
|
|
2
|
+
|
|
3
|
+
The request parameters for the set dataset method.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The request headers. Authorization header carries the trust token (Bearer scheme).
|
|
12
|
+
|
|
13
|
+
#### authorization?
|
|
14
|
+
|
|
15
|
+
> `optional` **authorization?**: `string`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### body {#body}
|
|
20
|
+
|
|
21
|
+
> **body**: `IDcatDataset`
|
|
22
|
+
|
|
23
|
+
The response payload containing the dataset or error.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Interface: IDatasetSetResponse
|
|
2
|
+
|
|
3
|
+
The response payload for the set dataset method.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### statusCode? {#statuscode}
|
|
8
|
+
|
|
9
|
+
> `optional` **statusCode?**: `HttpStatusCode`
|
|
10
|
+
|
|
11
|
+
Response status code.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### headers? {#headers}
|
|
16
|
+
|
|
17
|
+
> `optional` **headers?**: `object`
|
|
18
|
+
|
|
19
|
+
Optional headers.
|
|
20
|
+
|
|
21
|
+
#### location?
|
|
22
|
+
|
|
23
|
+
> `optional` **location?**: `string`
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### body? {#body}
|
|
28
|
+
|
|
29
|
+
> `optional` **body?**: `IDataspaceProtocolCatalogError`
|
|
30
|
+
|
|
31
|
+
The response payload containing the dataset or error.
|
|
@@ -11,18 +11,24 @@ Provides Dataspace Protocol-compliant catalog endpoints for dataset registry and
|
|
|
11
11
|
|
|
12
12
|
### get() {#get}
|
|
13
13
|
|
|
14
|
-
> **get**(`
|
|
14
|
+
> **get**(`datasetId`, `trustPayload`): `Promise`\<`IDcatDataset` \| `IDataspaceProtocolCatalogError`\>
|
|
15
15
|
|
|
16
16
|
Retrieve a dataset by its unique identifier.
|
|
17
17
|
|
|
18
18
|
#### Parameters
|
|
19
19
|
|
|
20
|
-
#####
|
|
20
|
+
##### datasetId
|
|
21
21
|
|
|
22
22
|
`string`
|
|
23
23
|
|
|
24
24
|
The unique identifier of the dataset.
|
|
25
25
|
|
|
26
|
+
##### trustPayload
|
|
27
|
+
|
|
28
|
+
`unknown`
|
|
29
|
+
|
|
30
|
+
Optional payload for trust evaluation, if applicable.
|
|
31
|
+
|
|
26
32
|
#### Returns
|
|
27
33
|
|
|
28
34
|
`Promise`\<`IDcatDataset` \| `IDataspaceProtocolCatalogError`\>
|
|
@@ -33,30 +39,36 @@ The dataset if found, or a CatalogError if not found or an error occurs.
|
|
|
33
39
|
|
|
34
40
|
### set() {#set}
|
|
35
41
|
|
|
36
|
-
> **set**(`
|
|
42
|
+
> **set**(`dataset`, `trustPayload`): `Promise`\<`string` \| `IDataspaceProtocolCatalogError`\>
|
|
37
43
|
|
|
38
44
|
Insert or update a dataset in the catalogue.
|
|
39
45
|
This method is internal and should not be exposed via REST endpoints.
|
|
40
46
|
|
|
41
47
|
#### Parameters
|
|
42
48
|
|
|
43
|
-
#####
|
|
49
|
+
##### dataset
|
|
44
50
|
|
|
45
51
|
`IDcatDataset`
|
|
46
52
|
|
|
47
53
|
The dataset to store.
|
|
48
54
|
|
|
55
|
+
##### trustPayload
|
|
56
|
+
|
|
57
|
+
`unknown`
|
|
58
|
+
|
|
59
|
+
Optional payload for trust evaluation, if applicable.
|
|
60
|
+
|
|
49
61
|
#### Returns
|
|
50
62
|
|
|
51
|
-
`Promise`\<`
|
|
63
|
+
`Promise`\<`string` \| `IDataspaceProtocolCatalogError`\>
|
|
52
64
|
|
|
53
|
-
|
|
65
|
+
The unique identifier of the stored dataset, or a CatalogError if an error occurs.
|
|
54
66
|
|
|
55
67
|
***
|
|
56
68
|
|
|
57
69
|
### query() {#query}
|
|
58
70
|
|
|
59
|
-
> **query**(`filter
|
|
71
|
+
> **query**(`filter`, `cursor`, `limit`, `trustPayload`): `Promise`\<\{ `result`: `IDataspaceProtocolCatalog` \| `IDataspaceProtocolCatalogError`; `cursor?`: `string`; \}\>
|
|
60
72
|
|
|
61
73
|
Execute a query against the catalogue using registered filter plugins.
|
|
62
74
|
Returns a DS Protocol compliant Catalog object with participantId.
|
|
@@ -70,24 +82,30 @@ Returns CatalogError 404 when no datasets exist.
|
|
|
70
82
|
|
|
71
83
|
#### Parameters
|
|
72
84
|
|
|
73
|
-
##### filter
|
|
85
|
+
##### filter
|
|
74
86
|
|
|
75
|
-
`unknown`[]
|
|
87
|
+
`unknown`[] \| `undefined`
|
|
76
88
|
|
|
77
89
|
The filter criteria containing @type.
|
|
78
90
|
|
|
79
|
-
##### cursor
|
|
91
|
+
##### cursor
|
|
80
92
|
|
|
81
|
-
`string`
|
|
93
|
+
`string` \| `undefined`
|
|
82
94
|
|
|
83
95
|
Optional cursor for pagination.
|
|
84
96
|
|
|
85
|
-
##### limit
|
|
97
|
+
##### limit
|
|
86
98
|
|
|
87
|
-
`number`
|
|
99
|
+
`number` \| `undefined`
|
|
88
100
|
|
|
89
101
|
Optional limit for pagination.
|
|
90
102
|
|
|
103
|
+
##### trustPayload
|
|
104
|
+
|
|
105
|
+
`unknown`
|
|
106
|
+
|
|
107
|
+
Optional payload for trust evaluation, if applicable.
|
|
108
|
+
|
|
91
109
|
#### Returns
|
|
92
110
|
|
|
93
111
|
`Promise`\<\{ `result`: `IDataspaceProtocolCatalog` \| `IDataspaceProtocolCatalogError`; `cursor?`: `string`; \}\>
|
|
@@ -99,20 +117,26 @@ or IDataspaceProtocolCatalogError if no datasets found.
|
|
|
99
117
|
|
|
100
118
|
### remove() {#remove}
|
|
101
119
|
|
|
102
|
-
> **remove**(`
|
|
120
|
+
> **remove**(`datasetId`, `trustPayload`): `Promise`\<`IDataspaceProtocolCatalogError` \| `undefined`\>
|
|
103
121
|
|
|
104
122
|
Remove a dataset from the catalogue by its unique identifier.
|
|
105
123
|
|
|
106
124
|
#### Parameters
|
|
107
125
|
|
|
108
|
-
#####
|
|
126
|
+
##### datasetId
|
|
109
127
|
|
|
110
128
|
`string`
|
|
111
129
|
|
|
112
130
|
The unique identifier of the dataset to remove.
|
|
113
131
|
|
|
132
|
+
##### trustPayload
|
|
133
|
+
|
|
134
|
+
`unknown`
|
|
135
|
+
|
|
136
|
+
Optional payload for trust evaluation, if applicable.
|
|
137
|
+
|
|
114
138
|
#### Returns
|
|
115
139
|
|
|
116
|
-
`Promise`\<`
|
|
140
|
+
`Promise`\<`IDataspaceProtocolCatalogError` \| `undefined`\>
|
|
117
141
|
|
|
118
142
|
Nothing.
|
|
@@ -47,14 +47,14 @@ Object containing datasets matching the filter criteria and optional cursor for
|
|
|
47
47
|
|
|
48
48
|
### createIndex() {#createindex}
|
|
49
49
|
|
|
50
|
-
> **createIndex**(`
|
|
50
|
+
> **createIndex**(`dataset`): `Promise`\<\{\[`key`: `string`\]: `unknown`; \}\>
|
|
51
51
|
|
|
52
52
|
Generate filter indexes for a dataset to optimize future queries.
|
|
53
53
|
Indexes are stored as properties on the dataset entity itself.
|
|
54
54
|
|
|
55
55
|
#### Parameters
|
|
56
56
|
|
|
57
|
-
#####
|
|
57
|
+
##### dataset
|
|
58
58
|
|
|
59
59
|
`IDcatDataset`
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/federated-catalogue-models",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.19",
|
|
4
4
|
"description": "Models which define the structure of the Federated Catalogue Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/iotaledger/federated-catalogue.git",
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-federated-catalogue.git",
|
|
8
8
|
"directory": "packages/federated-catalogue-models"
|
|
9
9
|
},
|
|
10
10
|
"author": "cornel.filip@iota.org",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"schemas"
|
|
52
52
|
],
|
|
53
53
|
"bugs": {
|
|
54
|
-
"url": "git+https://github.com/iotaledger/federated-catalogue/issues"
|
|
54
|
+
"url": "git+https://github.com/iotaledger/twin-federated-catalogue/issues"
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://twindev.org"
|
|
57
57
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IGetDatasetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IGetDatasetRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request parameters for the get dataset method.\n */\nexport interface IGetDatasetRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The unique identifier of the dataset.\n\t\t */\n\t\tdatasetId: string;\n\t};\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Interface: IGetDatasetRequest
|
|
2
|
-
|
|
3
|
-
The request parameters for the get dataset method.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### pathParams {#pathparams}
|
|
8
|
-
|
|
9
|
-
> **pathParams**: `object`
|
|
10
|
-
|
|
11
|
-
The path parameters.
|
|
12
|
-
|
|
13
|
-
#### datasetId
|
|
14
|
-
|
|
15
|
-
> **datasetId**: `string`
|
|
16
|
-
|
|
17
|
-
The unique identifier of the dataset.
|