File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/packages/documents/documents/repository/validation Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api' ;
8
8
import { tryExecute } from '@umbraco-cms/backoffice/resources' ;
9
9
import type { UmbVariantId } from '@umbraco-cms/backoffice/variant' ;
10
+ import type { UmbEntityUnique } from '@umbraco-cms/backoffice/entity' ;
10
11
11
12
/**
12
13
* A server data source for Document Validation
@@ -30,10 +31,10 @@ export class UmbDocumentValidationServerDataSource {
30
31
/**
31
32
* Validate a new Document on the server
32
33
* @param {UmbDocumentDetailModel } model - Document Model
33
- * @param parentUnique
34
+ * @param parentUnique - Parent Unique
34
35
* @returns {* }
35
36
*/
36
- async validateCreate ( model : UmbDocumentDetailModel , parentUnique : string | null = null ) {
37
+ async validateCreate ( model : UmbDocumentDetailModel , parentUnique : UmbEntityUnique = null ) {
37
38
if ( ! model ) throw new Error ( 'Document is missing' ) ;
38
39
if ( ! model . unique ) throw new Error ( 'Document unique is missing' ) ;
39
40
if ( parentUnique === undefined ) throw new Error ( 'Parent unique is missing' ) ;
@@ -60,6 +61,7 @@ export class UmbDocumentValidationServerDataSource {
60
61
/**
61
62
* Validate a existing Document
62
63
* @param {UmbDocumentDetailModel } model - Document Model
64
+ * @param {Array<UmbVariantId> } variantIds - Variant Ids
63
65
* @returns {* }
64
66
*/
65
67
async validateUpdate ( model : UmbDocumentDetailModel , variantIds : Array < UmbVariantId > ) {
You can’t perform that action at this time.
0 commit comments