change to reference by unique
This commit is contained in:
committed by
Jacob Overgaard
parent
863bb53f19
commit
35f052d4b7
@@ -20,6 +20,6 @@ export interface NumberRangeValueType {
|
||||
max?: number;
|
||||
}
|
||||
|
||||
export interface UmbReferenceById {
|
||||
id: string;
|
||||
export interface UmbReferenceByUnique {
|
||||
unique: string;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { DocumentVariantStateModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { UmbReferenceById } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
|
||||
export interface UmbDocumentItemModel {
|
||||
name: string; // TODO: this is not correct. We need to get it from the variants. This is a temp solution.
|
||||
@@ -9,7 +9,7 @@ export interface UmbDocumentItemModel {
|
||||
documentType: {
|
||||
unique: string;
|
||||
icon: string;
|
||||
collection?: UmbReferenceById;
|
||||
collection?: UmbReferenceByUnique;
|
||||
};
|
||||
variants: Array<UmbDocumentItemVariantModel>;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { UmbDocumentEntityType, UmbDocumentRootEntityType } from '../entity.js';
|
||||
import type { UmbUniqueTreeItemModel, UmbUniqueTreeRootModel } from '@umbraco-cms/backoffice/tree';
|
||||
import type { DocumentVariantStateModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { UmbReferenceById } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
|
||||
export interface UmbDocumentTreeItemModel extends UmbUniqueTreeItemModel {
|
||||
entityType: UmbDocumentEntityType;
|
||||
@@ -11,7 +11,7 @@ export interface UmbDocumentTreeItemModel extends UmbUniqueTreeItemModel {
|
||||
documentType: {
|
||||
unique: string;
|
||||
icon: string;
|
||||
collection?: UmbReferenceById;
|
||||
collection?: UmbReferenceByUnique;
|
||||
};
|
||||
variants: Array<UmbDocumentTreeItemVariantModel>;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import type { UmbDocumentEntityType } from './entity.js';
|
||||
import type { UmbVariantModel } from '@umbraco-cms/backoffice/variant';
|
||||
import type { UmbReferenceById } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
import { DocumentVariantStateModel as UmbDocumentVariantState } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
export { UmbDocumentVariantState };
|
||||
|
||||
export interface UmbDocumentDetailModel {
|
||||
documentType: {
|
||||
unique: string;
|
||||
collection?: UmbReferenceById;
|
||||
collection?: UmbReferenceByUnique;
|
||||
};
|
||||
entityType: UmbDocumentEntityType;
|
||||
isTrashed: boolean;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { UmbReferenceById } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
|
||||
export interface UmbMediaItemModel {
|
||||
unique: string;
|
||||
@@ -6,7 +6,7 @@ export interface UmbMediaItemModel {
|
||||
mediaType: {
|
||||
unique: string;
|
||||
icon: string;
|
||||
collection?: UmbReferenceById;
|
||||
collection?: UmbReferenceByUnique;
|
||||
};
|
||||
variants: Array<UmbMediaItemVariantModel>;
|
||||
name: string; // TODO: get correct variant name
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { UmbMediaEntityType, UmbMediaRootEntityType } from '../entity.js';
|
||||
import type { UmbReferenceById } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbUniqueTreeItemModel, UmbUniqueTreeRootModel } from '@umbraco-cms/backoffice/tree';
|
||||
|
||||
export interface UmbMediaTreeItemModel extends UmbUniqueTreeItemModel {
|
||||
@@ -9,7 +9,7 @@ export interface UmbMediaTreeItemModel extends UmbUniqueTreeItemModel {
|
||||
mediaType: {
|
||||
unique: string;
|
||||
icon: string;
|
||||
collection?: UmbReferenceById;
|
||||
collection?: UmbReferenceByUnique;
|
||||
};
|
||||
variants: Array<UmbMediaTreeItemVariantModel>;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import type { UmbMediaEntityType } from './entity.js';
|
||||
import type { UmbReferenceById } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbVariantModel } from '@umbraco-cms/backoffice/variant';
|
||||
import type { MediaUrlInfoModel, MediaValueModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
|
||||
export interface UmbMediaDetailModel {
|
||||
mediaType: {
|
||||
unique: string;
|
||||
collection: UmbReferenceById | null;
|
||||
collection: UmbReferenceByUnique | null;
|
||||
};
|
||||
entityType: UmbMediaEntityType;
|
||||
isTrashed: boolean;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { UmbReferenceById } from '@umbraco-cms/backoffice/models';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
|
||||
export interface UmbMemberItemModel {
|
||||
unique: string;
|
||||
memberType: {
|
||||
unique: string;
|
||||
icon: string;
|
||||
collection?: UmbReferenceById;
|
||||
collection?: UmbReferenceByUnique;
|
||||
};
|
||||
variants: Array<UmbMemberVariantItemModel>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user