Skip to content

Commit 062b185

Browse files
authored
Mocks: Replaced signs for flags (#20293)
1 parent 03bb658 commit 062b185

33 files changed

+317
-213
lines changed

src/Umbraco.Web.UI.Client/src/mocks/data/data-type/data-type.data.ts

Lines changed: 47 additions & 47 deletions
Large diffs are not rendered by default.

src/Umbraco.Web.UI.Client/src/mocks/data/data-type/data-type.db.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const treeItemMapper = (model: UmbMockDataTypeModel): DataTypeTreeItemResponseMo
7272
parent: model.parent,
7373
isFolder: model.isFolder,
7474
isDeletable: model.isDeletable,
75-
signs: model.signs,
75+
flags: model.flags,
7676
};
7777
};
7878

@@ -88,7 +88,7 @@ const createFolderMockMapper = (request: CreateFolderRequestModel): UmbMockDataT
8888
isDeletable: true,
8989
canIgnoreStartNodes: false,
9090
values: [],
91-
signs: [],
91+
flags: [],
9292
};
9393
};
9494

@@ -104,7 +104,7 @@ const createDetailMockMapper = (request: CreateDataTypeRequestModel): UmbMockDat
104104
isFolder: false,
105105
hasChildren: false,
106106
isDeletable: true,
107-
signs: [],
107+
flags: [],
108108
};
109109
};
110110

@@ -126,7 +126,7 @@ const itemResponseMapper = (item: UmbMockDataTypeModel): DataTypeItemResponseMod
126126
name: item.name,
127127
editorAlias: item.editorAlias,
128128
isDeletable: item.isDeletable,
129-
signs: item.signs,
129+
flags: item.flags,
130130
};
131131
};
132132

src/Umbraco.Web.UI.Client/src/mocks/data/dictionary/dictionary.data.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const data: Array<UmbMockDictionaryModel> = [
2727
translation: 'Dette er et forbudt ordbogsobjekt',
2828
},
2929
],
30-
signs: [],
30+
flags: [],
3131
},
3232
{
3333
name: 'Hello',
@@ -45,7 +45,7 @@ export const data: Array<UmbMockDictionaryModel> = [
4545
translation: '',
4646
},
4747
],
48-
signs: [],
48+
flags: [],
4949
},
5050
{
5151
name: 'Hello again',
@@ -63,7 +63,7 @@ export const data: Array<UmbMockDictionaryModel> = [
6363
translation: 'Hello in da',
6464
},
6565
],
66-
signs: [],
66+
flags: [],
6767
},
6868
{
6969
name: 'Nested Hello again',
@@ -81,6 +81,6 @@ export const data: Array<UmbMockDictionaryModel> = [
8181
translation: 'Nested Hello in da',
8282
},
8383
],
84-
signs: [],
84+
flags: [],
8585
},
8686
];

src/Umbraco.Web.UI.Client/src/mocks/data/dictionary/dictionary.db.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const treeItemMapper = (model: UmbMockDictionaryModel): NamedEntityTreeItemRespo
4444
id: model.id,
4545
parent: model.parent,
4646
hasChildren: model.hasChildren,
47-
signs: model.signs,
47+
flags: model.flags,
4848
};
4949
};
5050

@@ -56,7 +56,7 @@ const createMockMapper = (request: CreateDictionaryItemRequestModel): UmbMockDic
5656
translations: request.translations,
5757
hasChildren: false,
5858
translatedIsoCodes: [],
59-
signs: [],
59+
flags: [],
6060
};
6161
};
6262

@@ -72,7 +72,7 @@ const itemMapper = (model: UmbMockDictionaryModel): DictionaryItemItemResponseMo
7272
return {
7373
name: model.name,
7474
id: model.id,
75-
signs: model.signs,
75+
flags: model.flags,
7676
};
7777
};
7878

src/Umbraco.Web.UI.Client/src/mocks/data/document-blueprint/document-blueprint.data.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export const data: Array<UmbMockDocumentBlueprintModel> = [
2929
name: 'The Simplest Document Blueprint',
3030
createDate: '2023-02-06T15:32:05.350038',
3131
updateDate: '2023-02-06T15:32:24.957009',
32+
id: 'the-simplest-document-type-id-blueprint',
33+
flags: [],
3234
},
3335
],
3436
values: [
@@ -40,7 +42,7 @@ export const data: Array<UmbMockDocumentBlueprintModel> = [
4042
value: 'my blueprint value',
4143
},
4244
],
43-
signs: [],
45+
flags: [],
4446
},
4547
{
4648
id: 'forbidden',
@@ -61,6 +63,8 @@ export const data: Array<UmbMockDocumentBlueprintModel> = [
6163
name: 'A Forbidden Document Blueprint',
6264
createDate: '2023-02-06T15:32:05.350038',
6365
updateDate: '2023-02-06T15:32:24.957009',
66+
id: 'forbidden-blueprint',
67+
flags: [],
6468
},
6569
],
6670
values: [
@@ -72,6 +76,6 @@ export const data: Array<UmbMockDocumentBlueprintModel> = [
7276
value: 'my blueprint value',
7377
},
7478
],
75-
signs: [],
79+
flags: [],
7680
},
7781
];

src/Umbraco.Web.UI.Client/src/mocks/data/document-blueprint/document-blueprint.db.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const treeItemMapper = (model: UmbMockDocumentBlueprintModel): DocumentBlueprint
3939
isFolder: model.isFolder,
4040
name: model.name,
4141
parent: model.parent,
42-
signs: model.signs,
42+
flags: model.flags,
4343
};
4444
};
4545

@@ -72,9 +72,11 @@ const createMockDocumentBlueprintMapper = (
7272
updateDate: now,
7373
state: DocumentVariantStateModel.DRAFT,
7474
publishDate: null,
75+
id: UmbId.new(),
76+
flags: [],
7577
};
7678
}),
77-
signs: [],
79+
flags: [],
7880
};
7981
};
8082

@@ -84,7 +86,7 @@ const detailResponseMapper = (model: UmbMockDocumentBlueprintModel): DocumentBlu
8486
id: model.id,
8587
values: model.values,
8688
variants: model.variants,
87-
signs: model.signs,
89+
flags: model.flags,
8890
};
8991
};
9092

@@ -97,7 +99,7 @@ const itemMapper = (model: UmbMockDocumentBlueprintModel): DocumentBlueprintItem
9799
},
98100
id: model.id,
99101
name: model.name,
100-
signs: model.signs,
102+
flags: model.flags,
101103
};
102104
};
103105

src/Umbraco.Web.UI.Client/src/mocks/data/document-type/document-type.data.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
6363
keepAllVersionsNewerThanDays: null,
6464
keepLatestVersionPerDayForDays: null,
6565
},
66-
signs: [],
66+
flags: [],
6767
},
6868

6969
{
@@ -81,7 +81,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
8181
hasChildren: false,
8282
parent: null,
8383
isFolder: false,
84-
signs: [],
84+
flags: [],
8585
properties: [
8686
{
8787
id: '1_tipTap',
@@ -792,7 +792,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
792792
hasChildren: false,
793793
parent: null,
794794
isFolder: false,
795-
signs: [],
795+
flags: [],
796796
properties: [
797797
{
798798
id: '6',
@@ -871,7 +871,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
871871
hasChildren: false,
872872
parent: null,
873873
isFolder: false,
874-
signs: [],
874+
flags: [],
875875
properties: [
876876
{
877877
id: '5b4ca208-134e-4865-b423-06e5e97adf3c',
@@ -1043,7 +1043,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
10431043
hasChildren: false,
10441044
parent: null,
10451045
isFolder: false,
1046-
signs: [],
1046+
flags: [],
10471047
properties: [
10481048
{
10491049
id: '5e5f7456-c751-4846-9f2b-47965cc96ec6',
@@ -1098,7 +1098,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
10981098
hasChildren: false,
10991099
parent: null,
11001100
isFolder: false,
1101-
signs: [],
1101+
flags: [],
11021102
properties: [
11031103
{
11041104
id: 'b92de6ac-1a22-4a45-a481-b6cae1cccbbf',
@@ -1200,7 +1200,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
12001200
hasChildren: false,
12011201
parent: null,
12021202
isFolder: false,
1203-
signs: [],
1203+
flags: [],
12041204
properties: [
12051205
{
12061206
id: 'b92de6ac-1a22-4a45-a481-b6cae1cccbb0',
@@ -1265,7 +1265,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
12651265
hasChildren: false,
12661266
parent: null,
12671267
isFolder: false,
1268-
signs: [],
1268+
flags: [],
12691269
properties: [
12701270
{
12711271
id: '1680d4d2-cda8-4ac2-affd-a69fc10382b1',
@@ -1323,7 +1323,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
13231323
hasChildren: false,
13241324
parent: null,
13251325
isFolder: false,
1326-
signs: [],
1326+
flags: [],
13271327
properties: [
13281328
{
13291329
id: '82d4b050-b128-42fe-ac8e-d5586e533592',
@@ -1407,7 +1407,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
14071407
},
14081408
properties: [],
14091409
containers: [],
1410-
signs: [],
1410+
flags: [],
14111411
},
14121412
{
14131413
allowedTemplates: [],
@@ -1431,7 +1431,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
14311431
keepAllVersionsNewerThanDays: null,
14321432
keepLatestVersionPerDayForDays: null,
14331433
},
1434-
signs: [],
1434+
flags: [],
14351435
properties: [
14361436
{
14371437
id: 'coffee-name-id',
@@ -1506,7 +1506,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
15061506
keepAllVersionsNewerThanDays: null,
15071507
keepLatestVersionPerDayForDays: null,
15081508
},
1509-
signs: [],
1509+
flags: [],
15101510
properties: [
15111511
{
15121512
id: 'headline-id',
@@ -1561,7 +1561,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
15611561
keepAllVersionsNewerThanDays: null,
15621562
keepLatestVersionPerDayForDays: null,
15631563
},
1564-
signs: [],
1564+
flags: [],
15651565
properties: [
15661566
{
15671567
id: 'block-alignment-id',
@@ -1616,7 +1616,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
16161616
keepAllVersionsNewerThanDays: null,
16171617
keepLatestVersionPerDayForDays: null,
16181618
},
1619-
signs: [],
1619+
flags: [],
16201620
properties: [
16211621
{
16221622
id: 'image-id',
@@ -1671,7 +1671,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
16711671
keepAllVersionsNewerThanDays: null,
16721672
keepLatestVersionPerDayForDays: null,
16731673
},
1674-
signs: [],
1674+
flags: [],
16751675
properties: [
16761676
{
16771677
id: 'rich-text-id',
@@ -1730,7 +1730,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
17301730
},
17311731
properties: [],
17321732
containers: [],
1733-
signs: [],
1733+
flags: [],
17341734
},
17351735
{
17361736
allowedTemplates: [],
@@ -1754,7 +1754,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
17541754
keepAllVersionsNewerThanDays: null,
17551755
keepLatestVersionPerDayForDays: null,
17561756
},
1757-
signs: [],
1757+
flags: [],
17581758
properties: [],
17591759
containers: [],
17601760
},
@@ -1773,7 +1773,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
17731773
hasChildren: false,
17741774
parent: null,
17751775
isFolder: false,
1776-
signs: [],
1776+
flags: [],
17771777
properties: [
17781778
{
17791779
id: '1dd0d4d2-cda8-4ac2-affd-a69fc10382b1',
@@ -1829,7 +1829,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
18291829
hasChildren: false,
18301830
parent: null,
18311831
isFolder: false,
1832-
signs: [],
1832+
flags: [],
18331833
properties: [
18341834
{
18351835
id: '18',
@@ -1904,7 +1904,7 @@ export const data: Array<UmbMockDocumentTypeModel> = [
19041904
hasChildren: false,
19051905
parent: null,
19061906
isFolder: false,
1907-
signs: [],
1907+
flags: [],
19081908
properties: [
19091909
{
19101910
id: '1680d4d2-cda8-4ac2-affd-a69fc10382b1',

src/Umbraco.Web.UI.Client/src/mocks/data/document-type/document-type.db.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const createMockDocumentTypeFolderMapper = (request: CreateFolderRequestModel):
7171
keepAllVersionsNewerThanDays: null,
7272
keepLatestVersionPerDayForDays: null,
7373
},
74-
signs: [],
74+
flags: [],
7575
};
7676
};
7777

@@ -99,7 +99,7 @@ const createMockDocumentTypeMapper = (request: CreateDocumentTypeRequestModel):
9999
keepAllVersionsNewerThanDays: null,
100100
keepLatestVersionPerDayForDays: null,
101101
},
102-
signs: [],
102+
flags: [],
103103
};
104104
};
105105

@@ -133,7 +133,7 @@ const documentTypeTreeItemMapper = (item: UmbMockDocumentTypeModel): DocumentTyp
133133
isFolder: item.isFolder,
134134
icon: item.icon,
135135
isElement: item.isElement,
136-
signs: item.signs,
136+
flags: item.flags,
137137
};
138138
};
139139

@@ -144,7 +144,7 @@ const documentTypeItemMapper = (item: UmbMockDocumentTypeModel): DocumentTypeIte
144144
icon: item.icon,
145145
isElement: item.isElement,
146146
description: item.description ?? undefined,
147-
signs: item.signs,
147+
flags: item.flags,
148148
};
149149
};
150150

0 commit comments

Comments
 (0)