You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
110
110
111
-
If no collection identifier is specified, the default collection identifier; `root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
111
+
If no collection identifier is specified, the default collection identifier; `:root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
137
137
138
-
If no collection identifier is specified, the default collection identifier; `root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
138
+
If no collection identifier is specified, the default collection identifier; `:root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
165
165
166
-
If no collection identifier is specified, the default collection identifier; `root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
166
+
If no collection identifier is specified, the default collection identifier; `:root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
167
167
168
168
#### List All Collection Items
169
169
@@ -203,7 +203,7 @@ This use case supports the following optional parameters depending on the search
203
203
204
204
#### Create a Collection
205
205
206
-
Creates a new Collection, given a [CollectionDTO](../src/collections/domain/dtos/CollectionDTO.ts) object and an optional parent collection identifier, which defaults to `root`.
206
+
Creates a new Collection, given a [CollectionDTO](../src/collections/domain/dtos/CollectionDTO.ts) object and an optional parent collection identifier, which defaults to `:root`.
The above example creates the new collection in the `root` collection since no collection identifier is specified. If you want to create the collection in a different collection, you must add the collection identifier as a second parameter in the use case call.
231
+
The above example creates the new collection in the root collection since no collection identifier is specified. If you want to create the collection in a different collection, you must add the collection identifier as a second parameter in the use case call.
232
232
233
233
The use case returns a number, which is the identifier of the created collection.
Note that `limit` and `offset` are optional parameters for pagination.
456
456
457
-
Note that `collectionId` is an optional parameter to filter datasets by collection. If not set, the default value is `root`.
457
+
Note that `collectionId` is an optional parameter to filter datasets by collection. If not set, the default value is `:root`.
458
458
459
459
The `DatasetPreviewSubset`returned instance contains a property called `totalDatasetCount` which is necessary for pagination.
460
460
461
461
### Datasets Write Use Cases
462
462
463
463
#### Create a Dataset
464
464
465
-
Creates a new Dataset in a collection, given a [DatasetDTO](../src/datasets/domain/dtos/DatasetDTO.ts) object and an optional collection identifier, which defaults to `root`.
465
+
Creates a new Dataset in a collection, given a [DatasetDTO](../src/datasets/domain/dtos/DatasetDTO.ts) object and an optional collection identifier, which defaults to `:root`.
466
466
467
467
This use case validates the submitted fields of each metadata block and can return errors of type [ResourceValidationError](../src/core/domain/useCases/validators/errors/ResourceValidationError.ts), which include sufficient information to determine which field value is invalid and why.
The above example creates the new dataset in the `root` collection since no collection identifier is specified. If you want to create the dataset in a different collection, you must add the collection identifier as a second parameter in the use case call.
520
+
The above example creates the new dataset in the root collection since no collection identifier is specified. If you want to create the dataset in a different collection, you must add the collection identifier as a second parameter in the use case call.
521
521
522
522
The use case returns a [CreatedDatasetIdentifiers](../src/datasets/domain/models/CreatedDatasetIdentifiers.ts) object, which includes the persistent and numeric identifiers of the created dataset.
@@ -12,11 +12,11 @@ export class GetCollection implements UseCase<Collection> {
12
12
/**
13
13
* Returns a Collection instance, given the search parameters to identify it.
14
14
*
15
-
* @param {number | string} [collectionIdOrAlias = 'root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
16
-
* If this parameter is not set, the default value is: 'root'
15
+
* @param {number | string} [collectionIdOrAlias = ':root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
16
+
* If this parameter is not set, the default value is: ':root'
@@ -13,12 +13,12 @@ export class GetCollectionFacets implements UseCase<CollectionFacet[]> {
13
13
/**
14
14
* Returns a CollectionFacet array containing the facets of the requested collection, given the collection identifier or alias.
15
15
*
16
-
* @param {number | string} [collectionIdOrAlias = 'root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
17
-
* If this parameter is not set, the default value is: 'root'
16
+
* @param {number | string} [collectionIdOrAlias = ':root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
17
+
* If this parameter is not set, the default value is: ':root'
@@ -12,11 +13,13 @@ export class GetCollectionUserPermissions implements UseCase<CollectionUserPermi
12
13
/**
13
14
* Returns an instance of CollectionUserPermissions that includes the permissions that the calling user has on a particular Collection.
14
15
*
15
-
* @param {number | string} [collectionIdOrAlias = 'root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
16
-
* If this parameter is not set, the default value is: 'root'
16
+
* @param {number | string} [collectionIdOrAlias = ':root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
17
+
* If this parameter is not set, the default value is: ':root'
@@ -13,13 +13,13 @@ export class GetCollectionMetadataBlocks implements UseCase<MetadataBlock[]> {
13
13
/**
14
14
* Returns a MetadataBlock array containing the metadata blocks from the requested collection.
15
15
*
16
-
* @param {number | string} [collectionIdOrAlias = 'root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
17
-
* If this parameter is not set, the default value is: 'root'
16
+
* @param {number | string} [collectionIdOrAlias = ':root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId)
17
+
* If this parameter is not set, the default value is: ':root'
18
18
* @param {boolean} [onlyDisplayedOnCreate=false] - Indicates whether or not to return only the metadata blocks that are displayed on dataset creation. The default value is false.
0 commit comments