Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
0b9868b
wip use managers in document mock data
madsrasmussen Jan 21, 2024
36c5c2b
add entity types
madsrasmussen Jan 21, 2024
ed2e5e4
start on document detail model
madsrasmussen Jan 21, 2024
3837845
use unique in document tree items
madsrasmussen Jan 21, 2024
c008e96
use unique in document tree item store
madsrasmussen Jan 21, 2024
9b8542a
make unique tree item context generic
madsrasmussen Jan 21, 2024
c6b2e7a
extends unique tree item context for document tree item
madsrasmussen Jan 21, 2024
bee6a32
Merge branch 'main' into improvement/document-model
madsrasmussen Jan 22, 2024
0ff1e0f
add document detail + item repositories
madsrasmussen Jan 22, 2024
9ae99a9
add constraints to item repository base class
madsrasmussen Jan 22, 2024
c48e2bf
add models for document type item
madsrasmussen Jan 22, 2024
13bbb3a
use client side model for document item repo
madsrasmussen Jan 22, 2024
415c9b1
add item server data source base
madsrasmussen Jan 22, 2024
add9032
new server models
madsrasmussen Jan 22, 2024
8c5efac
update document mocks
madsrasmussen Jan 22, 2024
e0de849
Update data-type.data.ts
madsrasmussen Jan 22, 2024
fc514c7
update data type mock mappers
madsrasmussen Jan 22, 2024
2de18b5
Update document-type.data.ts
madsrasmussen Jan 22, 2024
084de72
update doc type mock mapper
madsrasmussen Jan 22, 2024
f03bbfd
update document mock mapper
madsrasmussen Jan 22, 2024
bc9cd12
update mocks + models
madsrasmussen Jan 22, 2024
280d1f1
delete refactored helper
madsrasmussen Jan 22, 2024
1e8e24a
update template mock data
madsrasmussen Jan 22, 2024
5cf2020
update mocks utils
madsrasmussen Jan 22, 2024
e896934
Merge branch 'main' into improvement/document-model
madsrasmussen Jan 23, 2024
d5f02c7
Merge branch 'main' into improvement/document-model
madsrasmussen Jan 25, 2024
51d5063
generate server models
madsrasmussen Jan 25, 2024
0a42d36
Merge branch 'feature/reload-tree-item' into improvement/document-model
madsrasmussen Jan 25, 2024
708193f
fix type imports
madsrasmussen Jan 25, 2024
5a5ab65
update mock data to new models
madsrasmussen Jan 25, 2024
9c583cb
update mocks
madsrasmussen Jan 25, 2024
28335cb
updating models
madsrasmussen Jan 25, 2024
35c4cfb
more model mapping
madsrasmussen Jan 25, 2024
98b39af
move model mapping
madsrasmussen Jan 25, 2024
b912378
mapping
madsrasmussen Jan 25, 2024
2a00fb0
mapping
madsrasmussen Jan 25, 2024
1676969
mapping
madsrasmussen Jan 26, 2024
6477ca3
mapping
madsrasmussen Jan 26, 2024
86107f0
mapping
madsrasmussen Jan 26, 2024
054763e
Merge branch 'main' into improvement/document-model
madsrasmussen Jan 26, 2024
9c8fffe
mapping
madsrasmussen Jan 26, 2024
b566cc7
mapping
madsrasmussen Jan 26, 2024
7f55482
mapping
madsrasmussen Jan 26, 2024
e5cf746
add document type structure repo
madsrasmussen Jan 26, 2024
3234c2b
clean up structure repo
madsrasmussen Jan 26, 2024
769eb00
add doc type structure data handling
madsrasmussen Jan 28, 2024
ac869bb
remove debugger
madsrasmussen Jan 28, 2024
509d7d1
get doc unique from the correct place
madsrasmussen Jan 28, 2024
730cfac
rename modal
madsrasmussen Jan 28, 2024
add5651
extend base for data type item server source
madsrasmussen Jan 28, 2024
8890aca
Merge branch 'main' into improvement/document-model
madsrasmussen Jan 28, 2024
cca438b
use base
madsrasmussen Jan 28, 2024
cc2dc30
mapping
madsrasmussen Jan 28, 2024
bba5177
make local variant model
madsrasmussen Jan 28, 2024
8c4d97a
extend item store that supports unique
madsrasmussen Jan 29, 2024
f2942ac
temp get variant name
madsrasmussen Jan 29, 2024
5e36554
align media repos
madsrasmussen Jan 29, 2024
bbc8337
mapping
madsrasmussen Jan 29, 2024
a4ee675
mapping
madsrasmussen Jan 29, 2024
d04dfd7
add client models
madsrasmussen Jan 29, 2024
6279a1a
mapping
madsrasmussen Jan 29, 2024
dbf5aa5
temp add name
madsrasmussen Jan 29, 2024
46f30c3
mapping
madsrasmussen Jan 29, 2024
0c5fb80
use parent in mock data
madsrasmussen Jan 29, 2024
c3b41bb
pass doctype correctly to scaffold
madsrasmussen Jan 29, 2024
4b297b4
parent is null when there is no parent
nielslyngsoe Jan 29, 2024
2727b22
parent object is null when no parent.
nielslyngsoe Jan 29, 2024
e7e375d
adding comment
nielslyngsoe Jan 29, 2024
1153ae2
remove the
nielslyngsoe Jan 29, 2024
8c3ceaf
further note to comment
nielslyngsoe Jan 29, 2024
3c6fcea
local model of property type to reference data type correctly
madsrasmussen Jan 29, 2024
8876313
Merge branch 'improvement/document-model' of https://github.com/umbra…
madsrasmussen Jan 29, 2024
e691f90
add null check for variants
madsrasmussen Jan 29, 2024
86e4a6f
fix lint errors
madsrasmussen Jan 29, 2024
e933814
remove unused
madsrasmussen Jan 29, 2024
86a9089
Merge branch 'main' into improvement/document-model
madsrasmussen Jan 29, 2024
be67ef9
remove hard-coded folder icon
madsrasmussen Jan 29, 2024
c77c3e4
make icon optional
madsrasmussen Jan 29, 2024
55447dd
render document tree icon
madsrasmussen Jan 29, 2024
3a94abd
get icon from doc type
madsrasmussen Jan 29, 2024
e6b0c7c
new server models
madsrasmussen Jan 29, 2024
7f6c01a
align naming
madsrasmussen Jan 29, 2024
9889fb8
don't request items if it is the tree root
madsrasmussen Jan 29, 2024
66bc09f
remove unused method in structure repo/data-source
madsrasmussen Jan 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 38 additions & 9 deletions src/external/backend-api/src/index.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
/* tslint:disable */
/* eslint-disable */

export type RecycleBinItemResponseModel = {
export type AllowedContentTypeModel = {
id: string;
name: string;
type: string;
icon: string;
hasChildren: boolean;
isContainer: boolean;
parentId?: string | null;
description?: string | null;
icon?: string | null;
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { AllowedContentTypeModel } from './AllowedContentTypeModel';

export type AllowedDocumentTypeModel = AllowedContentTypeModel;

9 changes: 9 additions & 0 deletions src/external/backend-api/src/models/AllowedMediaTypeModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { AllowedContentTypeModel } from './AllowedContentTypeModel';

export type AllowedMediaTypeModel = AllowedContentTypeModel;

1 change: 1 addition & 0 deletions src/external/backend-api/src/models/AuditLogBaseModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export type AuditLogBaseModel = {
comment?: string | null;
parameters?: string | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
import type { AuditLogBaseModel } from './AuditLogBaseModel';

export type AuditLogResponseModel = AuditLogBaseModel;

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { AuditLogBaseModel } from './AuditLogBaseModel';

export type AuditLogWithUsernameResponseModel = (AuditLogBaseModel & {
userName?: string | null;
userAvatars: Array<string>;
userName?: string | null;
userAvatars: Array<string>;
});

Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export type ChangePasswordUserRequestModel = {
newPassword: string;
oldPassword?: string | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* tslint:disable */
/* eslint-disable */

export enum ContentTypeCompositionTypeModel {
export enum CompositionTypeModel {
COMPOSITION = 'Composition',
INHERITANCE = 'Inheritance',
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export type ConsentLevelPresentationModel = {
level: TelemetryLevelModel;
description: string;
};

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export type ContentForDocumentResponseModel = {
values: Array<DocumentValueModel>;
variants: Array<DocumentVariantResponseModel>;
id: string;
contentTypeId: string;
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { MediaValueModel } from './MediaValueModel';
import type { MediaVariantResponseModel } from './MediaVariantResponseModel';

export type ContentForMediaResponseModel = {
values: Array<MediaValueModel>;
variants: Array<MediaVariantResponseModel>;
id: string;
};

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import type { EntityTreeItemResponseModel } from './EntityTreeItemResponseModel';

export type ContentTreeItemResponseModel = (EntityTreeItemResponseModel & {
noAccess: boolean;
isTrashed: boolean;
id: string;
noAccess: boolean;
isTrashed: boolean;
id: string;
});

Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export type ContentTypeCleanupModel = {
keepAllVersionsNewerThanDays?: number | null;
keepLatestVersionPerDayForDays?: number | null;
};

11 changes: 0 additions & 11 deletions src/external/backend-api/src/models/ContentTypeCompositionModel.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export type ContentTypeCompositionResponseModelBaseModel = {
name: string;
icon: string;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/* tslint:disable */
/* eslint-disable */

import type { ContentTypeCompositionModel } from './ContentTypeCompositionModel';
import type { ContentTypeSortModel } from './ContentTypeSortModel';
import type { DocumentTypePropertyTypeContainerResponseModel } from './DocumentTypePropertyTypeContainerResponseModel';
import type { DocumentTypePropertyTypeResponseModel } from './DocumentTypePropertyTypeResponseModel';

Expand All @@ -19,7 +17,6 @@ export type ContentTypeForDocumentTypeResponseModel = {
isElement: boolean;
properties: Array<DocumentTypePropertyTypeResponseModel>;
containers: Array<DocumentTypePropertyTypeContainerResponseModel>;
allowedContentTypes: Array<ContentTypeSortModel>;
compositions: Array<ContentTypeCompositionModel>;
id: string;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/* tslint:disable */
/* eslint-disable */

import type { ContentTypeCompositionModel } from './ContentTypeCompositionModel';
import type { ContentTypeSortModel } from './ContentTypeSortModel';
import type { MediaTypePropertyTypeContainerResponseModel } from './MediaTypePropertyTypeContainerResponseModel';
import type { MediaTypePropertyTypeResponseModel } from './MediaTypePropertyTypeResponseModel';

Expand All @@ -19,7 +17,6 @@ export type ContentTypeForMediaTypeResponseModel = {
isElement: boolean;
properties: Array<MediaTypePropertyTypeResponseModel>;
containers: Array<MediaTypePropertyTypeContainerResponseModel>;
allowedContentTypes: Array<ContentTypeSortModel>;
compositions: Array<ContentTypeCompositionModel>;
id: string;
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ContentTypeReferenceResponseModelBaseModel = {
id: string;
icon: string;
hasListView: boolean;
};

1 change: 1 addition & 0 deletions src/external/backend-api/src/models/ContentUrlInfoModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export type ContentUrlInfoModel = {
culture?: string | null;
url: string;
};

Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
export type CopyDataTypeRequestModel = {
targetId?: string | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
/* tslint:disable */
/* eslint-disable */

import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CopyDocumentRequestModel = {
targetId?: string | null;
target?: ReferenceByIdModel | null;
relateToOriginal: boolean;
includeDescendants: boolean;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/* tslint:disable */
/* eslint-disable */

import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CopyDocumentTypeRequestModel = {
targetId?: string | null;
target?: ReferenceByIdModel | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
/* tslint:disable */
/* eslint-disable */

import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CopyMediaTypeRequestModel = {
targetId?: string | null;
target?: ReferenceByIdModel | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

import type { DocumentValueModel } from './DocumentValueModel';
import type { DocumentVariantRequestModel } from './DocumentVariantRequestModel';
import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CreateContentForDocumentRequestModel = {
values: Array<DocumentValueModel>;
variants: Array<DocumentVariantRequestModel>;
id?: string | null;
parentId?: string | null;
parent?: ReferenceByIdModel | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

import type { MediaValueModel } from './MediaValueModel';
import type { MediaVariantRequestModel } from './MediaVariantRequestModel';
import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CreateContentForMediaRequestModel = {
values: Array<MediaValueModel>;
variants: Array<MediaVariantRequestModel>;
id?: string | null;
parentId?: string | null;
parent?: ReferenceByIdModel | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
/* tslint:disable */
/* eslint-disable */

import type { ContentTypeCompositionModel } from './ContentTypeCompositionModel';
import type { ContentTypeSortModel } from './ContentTypeSortModel';
import type { CreateDocumentTypePropertyTypeContainerRequestModel } from './CreateDocumentTypePropertyTypeContainerRequestModel';
import type { CreateDocumentTypePropertyTypeRequestModel } from './CreateDocumentTypePropertyTypeRequestModel';
import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CreateContentTypeForDocumentTypeRequestModel = {
alias: string;
Expand All @@ -19,8 +18,7 @@ export type CreateContentTypeForDocumentTypeRequestModel = {
isElement: boolean;
properties: Array<CreateDocumentTypePropertyTypeRequestModel>;
containers: Array<CreateDocumentTypePropertyTypeContainerRequestModel>;
allowedContentTypes: Array<ContentTypeSortModel>;
compositions: Array<ContentTypeCompositionModel>;
id?: string | null;
containerId?: string | null;
folder?: ReferenceByIdModel | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
/* tslint:disable */
/* eslint-disable */

import type { ContentTypeCompositionModel } from './ContentTypeCompositionModel';
import type { ContentTypeSortModel } from './ContentTypeSortModel';
import type { CreateMediaTypePropertyTypeContainerRequestModel } from './CreateMediaTypePropertyTypeContainerRequestModel';
import type { CreateMediaTypePropertyTypeRequestModel } from './CreateMediaTypePropertyTypeRequestModel';
import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CreateContentTypeForMediaTypeRequestModel = {
alias: string;
Expand All @@ -19,8 +18,7 @@ export type CreateContentTypeForMediaTypeRequestModel = {
isElement: boolean;
properties: Array<CreateMediaTypePropertyTypeRequestModel>;
containers: Array<CreateMediaTypePropertyTypeContainerRequestModel>;
allowedContentTypes: Array<ContentTypeSortModel>;
compositions: Array<ContentTypeCompositionModel>;
id?: string | null;
containerId?: string | null;
folder?: ReferenceByIdModel | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { DataTypeModelBaseModel } from './DataTypeModelBaseModel';

export type CreateDataTypeRequestModel = (DataTypeModelBaseModel & {
id?: string | null;
parentId?: string | null;
id?: string | null;
parentId?: string | null;
});

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { DictionaryItemModelBaseModel } from './DictionaryItemModelBaseModel';

export type CreateDictionaryItemRequestModel = (DictionaryItemModelBaseModel & {
id?: string | null;
parentId?: string | null;
id?: string | null;
parentId?: string | null;
});

Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
/* eslint-disable */

import type { CreateContentForDocumentRequestModel } from './CreateContentForDocumentRequestModel';
import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CreateDocumentRequestModel = (CreateContentForDocumentRequestModel & {
contentTypeId: string;
templateId?: string | null;
documentType: ReferenceByIdModel;
template?: ReferenceByIdModel | null;
});

Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
import type { PropertyTypeContainerModelBaseModel } from './PropertyTypeContainerModelBaseModel';

export type CreateDocumentTypePropertyTypeContainerRequestModel = PropertyTypeContainerModelBaseModel;

Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
import type { PropertyTypeModelBaseModel } from './PropertyTypeModelBaseModel';

export type CreateDocumentTypePropertyTypeRequestModel = PropertyTypeModelBaseModel;

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@

import type { ContentTypeCleanupModel } from './ContentTypeCleanupModel';
import type { CreateContentTypeForDocumentTypeRequestModel } from './CreateContentTypeForDocumentTypeRequestModel';
import type { DocumentTypeCompositionModel } from './DocumentTypeCompositionModel';
import type { DocumentTypeSortModel } from './DocumentTypeSortModel';
import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CreateDocumentTypeRequestModel = (CreateContentTypeForDocumentTypeRequestModel & {
allowedTemplateIds: Array<string>;
defaultTemplateId?: string | null;
cleanup: ContentTypeCleanupModel;
allowedTemplates: Array<ReferenceByIdModel>;
defaultTemplate?: ReferenceByIdModel | null;
cleanup: ContentTypeCleanupModel;
allowedDocumentTypes: Array<DocumentTypeSortModel>;
compositions: Array<DocumentTypeCompositionModel>;
});

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { FolderModelBaseModel } from './FolderModelBaseModel';

export type CreateFolderRequestModel = (FolderModelBaseModel & {
id?: string | null;
parentId?: string | null;
id?: string | null;
parentId?: string | null;
});

Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
import type { VerifyInviteUserRequestModel } from './VerifyInviteUserRequestModel';

export type CreateInitialPasswordUserRequestModel = (VerifyInviteUserRequestModel & {
password: string;
password: string;
});

Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
import type { LanguageModelBaseModel } from './LanguageModelBaseModel';

export type CreateLanguageRequestModel = (LanguageModelBaseModel & {
isoCode: string;
isoCode: string;
});

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
/* eslint-disable */

import type { CreateContentForMediaRequestModel } from './CreateContentForMediaRequestModel';
import type { ReferenceByIdModel } from './ReferenceByIdModel';

export type CreateMediaRequestModel = (CreateContentForMediaRequestModel & {
contentTypeId: string;
mediaType: ReferenceByIdModel;
});

Loading