@fossa-app/bridge 0.1.0 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/.github/dependabot.yml +38 -38
  2. package/.github/release-drafter.yml +52 -52
  3. package/.github/workflows/cicd.yml +87 -106
  4. package/.github/workflows/lint.yml +34 -34
  5. package/.github/workflows/release-drafter.yml +27 -27
  6. package/Fossa.Bridge.slnx +7 -7
  7. package/LICENSE +21 -21
  8. package/README.md +42 -5
  9. package/build.ps1 +11 -11
  10. package/dotnet-tools.json +26 -26
  11. package/format.ps1 +11 -11
  12. package/gig.ps1 +15 -15
  13. package/global.json +6 -6
  14. package/lint.ps1 +20 -20
  15. package/pack.ps1 +11 -11
  16. package/package.json +21 -21
  17. package/publish.ps1 +11 -11
  18. package/restore.ps1 +11 -11
  19. package/src/Fossa.Bridge/Fossa.Bridge.fsproj +16 -16
  20. package/src/Fossa.Bridge/Models/ApiModels.fs +136 -136
  21. package/src/Fossa.Bridge/Services/UrlHelpers.fs +18 -18
  22. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.deps.json +97 -97
  23. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.fable-temp.deps.json +40 -40
  24. package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
  25. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.dgspec.json +82 -80
  26. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.props +24 -25
  27. package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.targets +1 -1
  28. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.dgspec.json +85 -83
  29. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.props +28 -29
  30. package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.targets +1 -1
  31. package/src/Fossa.Bridge/obj/Release/{Fossa.Bridge.0.1.0.nuspec → Fossa.Bridge.0.1.4.nuspec} +19 -19
  32. package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -4
  33. package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
  34. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.AssemblyInfo.fs +11 -11
  35. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.AssemblyInfo.cs +23 -23
  36. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig +17 -17
  37. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt +4 -4
  38. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fsproj.FileListAbsolute.txt +14 -14
  39. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.sourcelink.json +1 -1
  40. package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.xml +6 -6
  41. package/src/Fossa.Bridge/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
  42. package/src/Fossa.Bridge/obj/project.assets.json +229 -228
  43. package/test.ps1 +11 -11
  44. package/tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj +18 -18
  45. package/tests/Fossa.Bridge.Tests/Main.fs +7 -7
  46. package/tests/Fossa.Bridge.Tests/UrlHelpersTests.fs +33 -33
  47. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
  48. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests +0 -0
  49. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.deps.json +805 -805
  50. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.runtimeconfig.json +13 -13
  51. package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
  52. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.dgspec.json +181 -173
  53. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.props +29 -30
  54. package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.targets +10 -10
  55. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
  56. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.AssemblyInfo.fs +10 -10
  57. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.fsproj.FileListAbsolute.txt +190 -191
  58. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.sourcelink.json +1 -1
  59. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
  60. package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/apphost +0 -0
  61. package/tests/Fossa.Bridge.Tests/obj/project.assets.json +2022 -2017
  62. package/trigger.ps1 +32 -32
  63. package/tsconfig.json +15 -15
  64. package/version.ps1 +11 -11
package/dotnet-tools.json CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "version": 1,
3
- "isRoot": true,
4
- "tools": {
5
- "fable": {
6
- "version": "4.29.0",
7
- "commands": [
8
- "fable"
9
- ],
10
- "rollForward": false
11
- },
12
- "fantomas": {
13
- "version": "7.0.5",
14
- "commands": [
15
- "fantomas"
16
- ],
17
- "rollForward": false
18
- },
19
- "gitversion.tool": {
20
- "version": "6.6.0",
21
- "commands": [
22
- "dotnet-gitversion"
23
- ],
24
- "rollForward": false
25
- }
26
- }
1
+ {
2
+ "version": 1,
3
+ "isRoot": true,
4
+ "tools": {
5
+ "fable": {
6
+ "version": "4.29.0",
7
+ "commands": [
8
+ "fable"
9
+ ],
10
+ "rollForward": false
11
+ },
12
+ "fantomas": {
13
+ "version": "7.0.5",
14
+ "commands": [
15
+ "fantomas"
16
+ ],
17
+ "rollForward": false
18
+ },
19
+ "gitversion.tool": {
20
+ "version": "6.6.0",
21
+ "commands": [
22
+ "dotnet-gitversion"
23
+ ],
24
+ "rollForward": false
25
+ }
26
+ }
27
27
  }
package/format.ps1 CHANGED
@@ -1,11 +1,11 @@
1
- [CmdletBinding()]
2
- param (
3
- [Parameter()]
4
- [string]
5
- $Version,
6
- [Parameter()]
7
- [string]
8
- $Instance
9
- )
10
-
11
- .\trigger.ps1 -Task Format -Instance $Instance -Version $Version
1
+ [CmdletBinding()]
2
+ param (
3
+ [Parameter()]
4
+ [string]
5
+ $Version,
6
+ [Parameter()]
7
+ [string]
8
+ $Instance
9
+ )
10
+
11
+ .\trigger.ps1 -Task Format -Instance $Instance -Version $Version
package/gig.ps1 CHANGED
@@ -1,16 +1,16 @@
1
- #For PowerShell v3
2
- Function gig {
3
- param(
4
- [Parameter(Mandatory = $true)]
5
- [string[]]$list
6
- )
7
- $params = ($list | ForEach-Object { [uri]::EscapeDataString($_) }) -join ','
8
- Invoke-WebRequest -Uri "https://www.toptal.com/developers/gitignore/api/$params"
9
- | Select-Object -ExpandProperty content | Out-File -FilePath $(Join-Path -Path $pwd -ChildPath '.gitignore') -Encoding ascii
10
- }
11
-
12
- gig -list visualstudio, visualstudiocode, rider, fsharp, powershell, macos, intellij+all
13
-
14
- Add-Content -Path .\.gitignore -Value '# Repository Specific' -Encoding ascii
15
- Add-Content -Path .\.gitignore -Value '.trash' -Encoding ascii
1
+ #For PowerShell v3
2
+ Function gig {
3
+ param(
4
+ [Parameter(Mandatory = $true)]
5
+ [string[]]$list
6
+ )
7
+ $params = ($list | ForEach-Object { [uri]::EscapeDataString($_) }) -join ','
8
+ Invoke-WebRequest -Uri "https://www.toptal.com/developers/gitignore/api/$params"
9
+ | Select-Object -ExpandProperty content | Out-File -FilePath $(Join-Path -Path $pwd -ChildPath '.gitignore') -Encoding ascii
10
+ }
11
+
12
+ gig -list visualstudio, visualstudiocode, rider, fsharp, powershell, macos, intellij+all
13
+
14
+ Add-Content -Path .\.gitignore -Value '# Repository Specific' -Encoding ascii
15
+ Add-Content -Path .\.gitignore -Value '.trash' -Encoding ascii
16
16
  Add-Content -Path .\.gitignore -Value '.idea/' -Encoding ascii
package/global.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "sdk": {
3
- "version": "10.0.100",
4
- "rollForward": "latestMajor"
5
- }
6
- }
1
+ {
2
+ "sdk": {
3
+ "version": "10.0.100",
4
+ "rollForward": "latestMajor"
5
+ }
6
+ }
package/lint.ps1 CHANGED
@@ -1,20 +1,20 @@
1
- docker run --rm `
2
- -e CREATE_LOG_FILE=true `
3
- -e DEFAULT_BRANCH=main `
4
- -e ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true `
5
- -e FIX_ENV=true `
6
- -e FIX_JAVASCRIPT_ES=true `
7
- -e FIX_JAVASCRIPT_PRETTIER=true `
8
- -e FIX_JSON=true `
9
- -e FIX_JSON_PRETTIER=true `
10
- -e FIX_MARKDOWN=true `
11
- -e FIX_MARKDOWN_PRETTIER=true `
12
- -e FIX_NATURAL_LANGUAGE=true `
13
- -e FIX_SHELL_SHFMT=true `
14
- -e FIX_YAML_PRETTIER=true `
15
- -e LOG_LEVEL=DEBUG `
16
- -e RUN_LOCAL=true `
17
- -e VALIDATE_JSCPD=false `
18
- -e VALIDATE_ALL_CODEBASE=true `
19
- -v .:/tmp/lint `
20
- ghcr.io/super-linter/super-linter:latest
1
+ docker run --rm `
2
+ -e CREATE_LOG_FILE=true `
3
+ -e DEFAULT_BRANCH=main `
4
+ -e ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true `
5
+ -e FIX_ENV=true `
6
+ -e FIX_JAVASCRIPT_ES=true `
7
+ -e FIX_JAVASCRIPT_PRETTIER=true `
8
+ -e FIX_JSON=true `
9
+ -e FIX_JSON_PRETTIER=true `
10
+ -e FIX_MARKDOWN=true `
11
+ -e FIX_MARKDOWN_PRETTIER=true `
12
+ -e FIX_NATURAL_LANGUAGE=true `
13
+ -e FIX_SHELL_SHFMT=true `
14
+ -e FIX_YAML_PRETTIER=true `
15
+ -e LOG_LEVEL=DEBUG `
16
+ -e RUN_LOCAL=true `
17
+ -e VALIDATE_JSCPD=false `
18
+ -e VALIDATE_ALL_CODEBASE=true `
19
+ -v .:/tmp/lint `
20
+ ghcr.io/super-linter/super-linter:latest
package/pack.ps1 CHANGED
@@ -1,11 +1,11 @@
1
- [CmdletBinding()]
2
- param (
3
- [Parameter()]
4
- [string]
5
- $Version,
6
- [Parameter()]
7
- [string]
8
- $Instance
9
- )
10
-
11
- .\trigger.ps1 -Task Pack -Instance $Instance -Version $Version
1
+ [CmdletBinding()]
2
+ param (
3
+ [Parameter()]
4
+ [string]
5
+ $Version,
6
+ [Parameter()]
7
+ [string]
8
+ $Instance
9
+ )
10
+
11
+ .\trigger.ps1 -Task Pack -Instance $Instance -Version $Version
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
- {
2
- "name": "@fossa-app/bridge",
3
- "version": "0.1.0",
4
- "description": "Shared Domain Models and DTOs for Fossa UI and API",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "tsc"
9
- },
10
- "keywords": [
11
- "fossa",
12
- "fsharp",
13
- "fable"
14
- ],
15
- "author": "",
16
- "license": "MIT",
17
- "devDependencies": {
18
- "@types/node": "^25.3.0",
19
- "typescript": "^5.4.5"
20
- }
21
- }
1
+ {
2
+ "name": "@fossa-app/bridge",
3
+ "version": "0.1.4",
4
+ "description": "Shared Domain Models and DTOs for Fossa UI and API",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "keywords": [
11
+ "fossa",
12
+ "fsharp",
13
+ "fable"
14
+ ],
15
+ "author": "",
16
+ "license": "MIT",
17
+ "devDependencies": {
18
+ "@types/node": "^25.3.0",
19
+ "typescript": "^5.4.5"
20
+ }
21
+ }
package/publish.ps1 CHANGED
@@ -1,11 +1,11 @@
1
- [CmdletBinding()]
2
- param (
3
- [Parameter()]
4
- [string]
5
- $Version,
6
- [Parameter()]
7
- [string]
8
- $Instance
9
- )
10
-
11
- .\trigger.ps1 -Task Publish -Instance $Instance -Version $Version
1
+ [CmdletBinding()]
2
+ param (
3
+ [Parameter()]
4
+ [string]
5
+ $Version,
6
+ [Parameter()]
7
+ [string]
8
+ $Instance
9
+ )
10
+
11
+ .\trigger.ps1 -Task Publish -Instance $Instance -Version $Version
package/restore.ps1 CHANGED
@@ -1,11 +1,11 @@
1
- [CmdletBinding()]
2
- param (
3
- [Parameter()]
4
- [string]
5
- $Version,
6
- [Parameter()]
7
- [string]
8
- $Instance
9
- )
10
-
11
- .\trigger.ps1 -Task Restore -Instance $Instance -Version $Version
1
+ [CmdletBinding()]
2
+ param (
3
+ [Parameter()]
4
+ [string]
5
+ $Version,
6
+ [Parameter()]
7
+ [string]
8
+ $Instance
9
+ )
10
+
11
+ .\trigger.ps1 -Task Restore -Instance $Instance -Version $Version
@@ -1,17 +1,17 @@
1
- <Project Sdk="Microsoft.NET.Sdk">
2
- <PropertyGroup>
3
- <TargetFramework>net8.0</TargetFramework>
4
- <GenerateDocumentationFile>true</GenerateDocumentationFile>
5
- <PackageId>Fossa.Bridge</PackageId>
6
- <Version>1.0.0</Version>
7
- <Authors>TIKSN</Authors>
8
- <Description>Shared Domain Models and DTOs for Fossa UI and API</Description>
9
- </PropertyGroup>
10
- <ItemGroup>
11
- <Compile Include="Models\ApiModels.fs" />
12
- <Compile Include="Services\UrlHelpers.fs" />
13
- </ItemGroup>
14
- <ItemGroup>
15
- <PackageReference Include="Fable.Core" Version="4.5.0" />
16
- </ItemGroup>
1
+ <Project Sdk="Microsoft.NET.Sdk">
2
+ <PropertyGroup>
3
+ <TargetFramework>net8.0</TargetFramework>
4
+ <GenerateDocumentationFile>true</GenerateDocumentationFile>
5
+ <PackageId>Fossa.Bridge</PackageId>
6
+ <Version>1.0.0</Version>
7
+ <Authors>TIKSN</Authors>
8
+ <Description>Shared Domain Models and DTOs for Fossa UI and API</Description>
9
+ </PropertyGroup>
10
+ <ItemGroup>
11
+ <Compile Include="Models\ApiModels.fs" />
12
+ <Compile Include="Services\UrlHelpers.fs" />
13
+ </ItemGroup>
14
+ <ItemGroup>
15
+ <PackageReference Include="Fable.Core" Version="4.5.0" />
16
+ </ItemGroup>
17
17
  </Project>
@@ -1,136 +1,136 @@
1
- namespace Fossa.Bridge.Models
2
-
3
- open System
4
- open System.Collections.Generic
5
-
6
- type AddressModel =
7
- { Line1: string
8
- Line2: string
9
- City: string
10
- Subdivision: string
11
- PostalCode: string
12
- CountryCode: string }
13
-
14
- type BranchModificationModel =
15
- { Name: string
16
- TimeZoneId: string
17
- Address: AddressModel }
18
-
19
- type BranchQueryRequestModel =
20
- { Id: IReadOnlyList<int64>
21
- Search: string
22
- PageNumber: Nullable<int>
23
- PageSize: Nullable<int> }
24
-
25
- type BranchRetrievalModel =
26
- { Id: int64
27
- CompanyId: int64
28
- Name: string
29
- TimeZoneId: string
30
- Address: AddressModel }
31
-
32
- type CompanyEntitlementsModel =
33
- { CompanyId: int64
34
- MaximumBranchCount: int
35
- MaximumEmployeeCount: int
36
- MaximumDepartmentCount: int }
37
-
38
- type CompanyModificationModel = { Name: string; CountryCode: string }
39
-
40
- type CompanyRetrievalModel =
41
- { Id: int64
42
- Name: string
43
- CountryCode: string }
44
-
45
- type CompanySettingsModificationModel = { ColorSchemeId: string }
46
-
47
- type CompanySettingsRetrievalModel =
48
- { Id: int64
49
- CompanyId: int64
50
- ColorSchemeId: string }
51
-
52
- type CountryModel = { Name: string; Code: string }
53
-
54
- type DepartmentModificationModel =
55
- { Name: string
56
- ParentDepartmentId: Nullable<int64>
57
- ManagerId: Nullable<int64> }
58
-
59
- type DepartmentQueryRequestModel =
60
- { Id: IReadOnlyList<int64>
61
- Search: string
62
- PageNumber: Nullable<int>
63
- PageSize: Nullable<int> }
64
-
65
- type DepartmentRetrievalModel =
66
- { Id: int64
67
- Name: string
68
- ParentDepartmentId: Nullable<int64>
69
- ManagerId: int64 }
70
-
71
- type EmployeeManagementModel =
72
- { AssignedBranchId: Nullable<int64>
73
- AssignedDepartmentId: Nullable<int64>
74
- ReportsToId: Nullable<int64>
75
- JobTitle: string }
76
-
77
- type EmployeeModificationModel =
78
- { FirstName: string
79
- LastName: string
80
- FullName: string }
81
-
82
- type EmployeePagingRequestModel =
83
- { Search: string
84
- PageNumber: Nullable<int>
85
- PageSize: Nullable<int> }
86
-
87
- type EmployeeQueryRequestModel =
88
- { Id: IReadOnlyList<int64>
89
- Search: string
90
- PageNumber: Nullable<int>
91
- PageSize: Nullable<int>
92
- ReportsToId: Nullable<int64>
93
- TopLevelOnly: Nullable<bool> }
94
-
95
- type EmployeeRetrievalModel =
96
- { Id: int64
97
- CompanyId: int64
98
- AssignedBranchId: Nullable<int64>
99
- AssignedDepartmentId: Nullable<int64>
100
- ReportsToId: Nullable<int64>
101
- JobTitle: string
102
- FirstName: string
103
- LastName: string
104
- FullName: string }
105
-
106
- type TimeZoneModel =
107
- { Id: string
108
- Name: string
109
- CountryCode: string
110
- CurrentOffset: TimeSpan }
111
-
112
- type PartyModel = { LongName: string; ShortName: string }
113
-
114
- type LicenseTermsModel =
115
- { Licensor: PartyModel
116
- Licensee: PartyModel
117
- NotBefore: DateTimeOffset
118
- NotAfter: DateTimeOffset }
119
-
120
- type LicenseResponseModel<'TEntitlementsModel> =
121
- { Terms: LicenseTermsModel
122
- Entitlements: 'TEntitlementsModel }
123
-
124
- type PagingResponseModel<'T> =
125
- { PageNumber: Nullable<int>
126
- PageSize: Nullable<int>
127
- Items: IReadOnlyCollection<'T>
128
- TotalItems: Nullable<int64>
129
- TotalPages: Nullable<int64> }
130
-
131
- type SystemEntitlementsModel =
132
- { EnvironmentName: string
133
- EnvironmentKind: string
134
- Countries: IReadOnlyList<CountryModel>
135
- TimeZones: IReadOnlyList<TimeZoneModel>
136
- MaximumCompanyCount: int }
1
+ namespace Fossa.Bridge.Models
2
+
3
+ open System
4
+ open System.Collections.Generic
5
+
6
+ type AddressModel =
7
+ { Line1: string
8
+ Line2: string
9
+ City: string
10
+ Subdivision: string
11
+ PostalCode: string
12
+ CountryCode: string }
13
+
14
+ type BranchModificationModel =
15
+ { Name: string
16
+ TimeZoneId: string
17
+ Address: AddressModel }
18
+
19
+ type BranchQueryRequestModel =
20
+ { Id: IReadOnlyList<int64>
21
+ Search: string
22
+ PageNumber: Nullable<int>
23
+ PageSize: Nullable<int> }
24
+
25
+ type BranchRetrievalModel =
26
+ { Id: int64
27
+ CompanyId: int64
28
+ Name: string
29
+ TimeZoneId: string
30
+ Address: AddressModel }
31
+
32
+ type CompanyEntitlementsModel =
33
+ { CompanyId: int64
34
+ MaximumBranchCount: int
35
+ MaximumEmployeeCount: int
36
+ MaximumDepartmentCount: int }
37
+
38
+ type CompanyModificationModel = { Name: string; CountryCode: string }
39
+
40
+ type CompanyRetrievalModel =
41
+ { Id: int64
42
+ Name: string
43
+ CountryCode: string }
44
+
45
+ type CompanySettingsModificationModel = { ColorSchemeId: string }
46
+
47
+ type CompanySettingsRetrievalModel =
48
+ { Id: int64
49
+ CompanyId: int64
50
+ ColorSchemeId: string }
51
+
52
+ type CountryModel = { Name: string; Code: string }
53
+
54
+ type DepartmentModificationModel =
55
+ { Name: string
56
+ ParentDepartmentId: Nullable<int64>
57
+ ManagerId: Nullable<int64> }
58
+
59
+ type DepartmentQueryRequestModel =
60
+ { Id: IReadOnlyList<int64>
61
+ Search: string
62
+ PageNumber: Nullable<int>
63
+ PageSize: Nullable<int> }
64
+
65
+ type DepartmentRetrievalModel =
66
+ { Id: int64
67
+ Name: string
68
+ ParentDepartmentId: Nullable<int64>
69
+ ManagerId: int64 }
70
+
71
+ type EmployeeManagementModel =
72
+ { AssignedBranchId: Nullable<int64>
73
+ AssignedDepartmentId: Nullable<int64>
74
+ ReportsToId: Nullable<int64>
75
+ JobTitle: string }
76
+
77
+ type EmployeeModificationModel =
78
+ { FirstName: string
79
+ LastName: string
80
+ FullName: string }
81
+
82
+ type EmployeePagingRequestModel =
83
+ { Search: string
84
+ PageNumber: Nullable<int>
85
+ PageSize: Nullable<int> }
86
+
87
+ type EmployeeQueryRequestModel =
88
+ { Id: IReadOnlyList<int64>
89
+ Search: string
90
+ PageNumber: Nullable<int>
91
+ PageSize: Nullable<int>
92
+ ReportsToId: Nullable<int64>
93
+ TopLevelOnly: Nullable<bool> }
94
+
95
+ type EmployeeRetrievalModel =
96
+ { Id: int64
97
+ CompanyId: int64
98
+ AssignedBranchId: Nullable<int64>
99
+ AssignedDepartmentId: Nullable<int64>
100
+ ReportsToId: Nullable<int64>
101
+ JobTitle: string
102
+ FirstName: string
103
+ LastName: string
104
+ FullName: string }
105
+
106
+ type TimeZoneModel =
107
+ { Id: string
108
+ Name: string
109
+ CountryCode: string
110
+ CurrentOffset: TimeSpan }
111
+
112
+ type PartyModel = { LongName: string; ShortName: string }
113
+
114
+ type LicenseTermsModel =
115
+ { Licensor: PartyModel
116
+ Licensee: PartyModel
117
+ NotBefore: DateTimeOffset
118
+ NotAfter: DateTimeOffset }
119
+
120
+ type LicenseResponseModel<'TEntitlementsModel> =
121
+ { Terms: LicenseTermsModel
122
+ Entitlements: 'TEntitlementsModel }
123
+
124
+ type PagingResponseModel<'T> =
125
+ { PageNumber: Nullable<int>
126
+ PageSize: Nullable<int>
127
+ Items: IReadOnlyCollection<'T>
128
+ TotalItems: Nullable<int64>
129
+ TotalPages: Nullable<int64> }
130
+
131
+ type SystemEntitlementsModel =
132
+ { EnvironmentName: string
133
+ EnvironmentKind: string
134
+ Countries: IReadOnlyList<CountryModel>
135
+ TimeZones: IReadOnlyList<TimeZoneModel>
136
+ MaximumCompanyCount: int }
@@ -1,18 +1,18 @@
1
- module Fossa.Bridge.Services.UrlHelpers
2
-
3
- let private suffixMappings =
4
- [ ".dev.localhost:4211", ".dev.localhost:5210"
5
- ".test.localhost:4210", ".test.localhost:5211"
6
- ".test.localhost:4211", ".test.localhost:5211"
7
- ".localhost:4210", ".localhost:5210" ]
8
-
9
- let getBackendOrigin (frontendOrigin: string) : string =
10
- let mapping =
11
- suffixMappings
12
- |> List.tryFind (fun (frontendSuffix, _) -> frontendOrigin.EndsWith(frontendSuffix))
13
-
14
- match mapping with
15
- | Some(frontendSuffix, backendSuffix) ->
16
- let prefixLength = frontendOrigin.Length - frontendSuffix.Length
17
- frontendOrigin.Substring(0, prefixLength) + backendSuffix
18
- | None -> frontendOrigin
1
+ module Fossa.Bridge.Services.UrlHelpers
2
+
3
+ let private suffixMappings =
4
+ [ ".dev.localhost:4211", ".dev.localhost:5210"
5
+ ".test.localhost:4210", ".test.localhost:5211"
6
+ ".test.localhost:4211", ".test.localhost:5211"
7
+ ".localhost:4210", ".localhost:5210" ]
8
+
9
+ let getBackendOrigin (frontendOrigin: string) : string =
10
+ let mapping =
11
+ suffixMappings
12
+ |> List.tryFind (fun (frontendSuffix, _) -> frontendOrigin.EndsWith(frontendSuffix))
13
+
14
+ match mapping with
15
+ | Some(frontendSuffix, backendSuffix) ->
16
+ let prefixLength = frontendOrigin.Length - frontendSuffix.Length
17
+ frontendOrigin.Substring(0, prefixLength) + backendSuffix
18
+ | None -> frontendOrigin