-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
49 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,9 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Altinn.Studio.Designer.Enums | ||
{ | ||
/// <summary> | ||
/// Enum for reference types of resources in the resource registry | ||
/// </summary> | ||
public enum ReferenceType | ||
{ | ||
[EnumMember(Value = "Default")] | ||
Default = 0, | ||
|
||
[EnumMember(Value = "Uri")] | ||
Uri = 1, | ||
|
||
[EnumMember(Value = "DelegationSchemeId")] | ||
DelegationSchemeId = 2, | ||
|
||
[EnumMember(Value = "MaskinportenScope")] | ||
MaskinportenScope = 3, | ||
|
||
[EnumMember(Value = "ServiceCode")] | ||
ServiceCode = 4, | ||
|
||
[EnumMember(Value = "ServiceEditionCode")] | ||
ServiceEditionCode = 5, | ||
|
||
[EnumMember(Value = "ApplicationId")] | ||
ApplicationId = 6, | ||
LayoutSet, | ||
Layout, | ||
Component | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Altinn.Studio.Designer.Enums | ||
{ | ||
/// <summary> | ||
/// Enum for reference types of resources in the resource registry | ||
/// </summary> | ||
public enum ResourceReferenceType | ||
{ | ||
[EnumMember(Value = "Default")] | ||
Default = 0, | ||
|
||
[EnumMember(Value = "Uri")] | ||
Uri = 1, | ||
|
||
[EnumMember(Value = "DelegationSchemeId")] | ||
DelegationSchemeId = 2, | ||
|
||
[EnumMember(Value = "MaskinportenScope")] | ||
MaskinportenScope = 3, | ||
|
||
[EnumMember(Value = "ServiceCode")] | ||
ServiceCode = 4, | ||
|
||
[EnumMember(Value = "ServiceEditionCode")] | ||
ServiceEditionCode = 5, | ||
|
||
[EnumMember(Value = "ApplicationId")] | ||
ApplicationId = 6, | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
backend/src/Designer/EventHandlers/ComponentDeleted/ComponentDeletedLayoutsHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
backend/src/Designer/EventHandlers/LayoutPageDeleted/LayoutPageDeletedLayoutsHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
backend/src/Designer/EventHandlers/LayoutSetDeleted/LayoutSetDeletedLayoutsHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
namespace Altinn.Studio.Designer.Models; | ||
|
||
public record Reference(ReferenceType Type, string LayoutSetName, string Id, string NewId = null); | ||
using Altinn.Studio.Designer.Enums; | ||
|
||
public enum ReferenceType | ||
namespace Altinn.Studio.Designer.Models | ||
{ | ||
LayoutSet, | ||
Layout, | ||
Component | ||
public record Reference(ReferenceType Type, string LayoutSetName, string Id, string NewId = null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters