@fossa-app/bridge 0.1.1 → 0.1.5
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.
- package/.build.ps1 +17 -25
- package/.github/dependabot.yml +38 -38
- package/.github/release-drafter.yml +52 -52
- package/.github/workflows/cicd.yml +87 -106
- package/.github/workflows/lint.yml +34 -34
- package/.github/workflows/release-drafter.yml +27 -27
- package/Fossa.Bridge.slnx +7 -7
- package/LICENSE +21 -21
- package/README.md +42 -42
- package/build.ps1 +11 -11
- package/dotnet-tools.json +26 -26
- package/format.ps1 +11 -11
- package/gig.ps1 +15 -15
- package/global.json +6 -6
- package/lint.ps1 +20 -20
- package/pack.ps1 +11 -11
- package/package.json +21 -21
- package/publish.ps1 +11 -11
- package/restore.ps1 +11 -11
- package/src/Fossa.Bridge/Fossa.Bridge.fsproj +26 -16
- package/src/Fossa.Bridge/Models/ApiModels.fs +142 -136
- package/src/Fossa.Bridge/Services/Clients/BranchClient.fs +46 -0
- package/src/Fossa.Bridge/Services/Clients/CompanyClient.fs +24 -0
- package/src/Fossa.Bridge/Services/Clients/CompanyLicenseClient.fs +17 -0
- package/src/Fossa.Bridge/Services/Clients/CompanySettingsClient.fs +24 -0
- package/src/Fossa.Bridge/Services/Clients/DepartmentClient.fs +48 -0
- package/src/Fossa.Bridge/Services/Clients/EmployeeClient.fs +71 -0
- package/src/Fossa.Bridge/Services/Clients/IdentityClient.fs +9 -0
- package/src/Fossa.Bridge/Services/Clients/SystemLicenseClient.fs +11 -0
- package/src/Fossa.Bridge/Services/Endpoints.fs +13 -0
- package/src/Fossa.Bridge/Services/IHttpTransport.fs +10 -0
- package/src/Fossa.Bridge/Services/UrlHelpers.fs +18 -18
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.deps.json +97 -97
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.fable-temp.deps.json +40 -40
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.dgspec.json +82 -80
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.props +24 -25
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.targets +1 -1
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.dgspec.json +85 -83
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.props +28 -29
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.targets +1 -1
- package/src/Fossa.Bridge/obj/Release/{Fossa.Bridge.0.1.1.nuspec → Fossa.Bridge.0.1.5.nuspec} +19 -19
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -4
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.AssemblyInfo.fs +11 -11
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.AssemblyInfo.cs +23 -23
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig +17 -17
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt +4 -4
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fsproj.FileListAbsolute.txt +14 -14
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.sourcelink.json +1 -1
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/src/Fossa.Bridge/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
- package/src/Fossa.Bridge/obj/project.assets.json +229 -228
- package/test.ps1 +11 -11
- package/tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj +18 -18
- package/tests/Fossa.Bridge.Tests/Main.fs +7 -7
- package/tests/Fossa.Bridge.Tests/UrlHelpersTests.fs +33 -33
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests +0 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.deps.json +805 -805
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.runtimeconfig.json +13 -13
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.dgspec.json +181 -173
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.props +29 -30
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.targets +10 -10
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.AssemblyInfo.fs +10 -10
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.fsproj.FileListAbsolute.txt +190 -191
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.sourcelink.json +1 -1
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/apphost +0 -0
- package/tests/Fossa.Bridge.Tests/obj/project.assets.json +2022 -2017
- package/trigger.ps1 +32 -32
- package/tsconfig.json +15 -15
- package/version.ps1 +11 -11
package/README.md
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
# FossaApp Bridge
|
|
2
|
-
[](https://www.nuget.org/packages/Fossa.Bridge/)
|
|
3
|
-
[](https://www.npmjs.com/package/@fossa-app/bridge)
|
|
4
|
-
[](https://tiksn.com/)
|
|
5
|
-
[](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
|
|
6
|
-
|
|
7
|
-
The FossaApp Bridge provides shared frontend and backend functionality.
|
|
8
|
-
|
|
9
|
-
## Project Purpose
|
|
10
|
-
The Fossa.Bridge project is a shared F# library designed to encapsulate logic, validation, and domain models that are common to both the .NET backend and the TypeScript/JavaScript frontend. By using [Fable](https://fable.io/), the F# code is transpiled into JavaScript/TypeScript for the frontend environment while simultaneously being compiled into a standard .NET library for the backend. This ensures a single source of truth for core business logic, API models, and data validation rules, reducing duplication and preventing synchronization issues between the client and server.
|
|
11
|
-
|
|
12
|
-
## Package Usage
|
|
13
|
-
|
|
14
|
-
### For .NET Backends (C# / F#)
|
|
15
|
-
Install the NuGet package:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
dotnet add package Fossa.Bridge
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### For JavaScript / TypeScript Frontends
|
|
22
|
-
Install the NPM package:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
npm install @fossa-app/bridge
|
|
26
|
-
```
|
|
27
|
-
or using Yarn:
|
|
28
|
-
```bash
|
|
29
|
-
yarn add @fossa-app/bridge
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Features
|
|
33
|
-
- Shared API domain models.
|
|
34
|
-
- Common validation and helper logic.
|
|
35
|
-
- Consistent behavior across client and server.
|
|
36
|
-
|
|
37
|
-
## Building and Packaging
|
|
38
|
-
To build both NPM and NuGet packages locally, run the included PowerShell script:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
.\pack.ps1
|
|
42
|
-
```
|
|
1
|
+
# FossaApp Bridge
|
|
2
|
+
[](https://www.nuget.org/packages/Fossa.Bridge/)
|
|
3
|
+
[](https://www.npmjs.com/package/@fossa-app/bridge)
|
|
4
|
+
[](https://tiksn.com/)
|
|
5
|
+
[](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
|
|
6
|
+
|
|
7
|
+
The FossaApp Bridge provides shared frontend and backend functionality.
|
|
8
|
+
|
|
9
|
+
## Project Purpose
|
|
10
|
+
The Fossa.Bridge project is a shared F# library designed to encapsulate logic, validation, and domain models that are common to both the .NET backend and the TypeScript/JavaScript frontend. By using [Fable](https://fable.io/), the F# code is transpiled into JavaScript/TypeScript for the frontend environment while simultaneously being compiled into a standard .NET library for the backend. This ensures a single source of truth for core business logic, API models, and data validation rules, reducing duplication and preventing synchronization issues between the client and server.
|
|
11
|
+
|
|
12
|
+
## Package Usage
|
|
13
|
+
|
|
14
|
+
### For .NET Backends (C# / F#)
|
|
15
|
+
Install the NuGet package:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
dotnet add package Fossa.Bridge
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### For JavaScript / TypeScript Frontends
|
|
22
|
+
Install the NPM package:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @fossa-app/bridge
|
|
26
|
+
```
|
|
27
|
+
or using Yarn:
|
|
28
|
+
```bash
|
|
29
|
+
yarn add @fossa-app/bridge
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
- Shared API domain models.
|
|
34
|
+
- Common validation and helper logic.
|
|
35
|
+
- Consistent behavior across client and server.
|
|
36
|
+
|
|
37
|
+
## Building and Packaging
|
|
38
|
+
To build both NPM and NuGet packages locally, run the included PowerShell script:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
.\pack.ps1
|
|
42
|
+
```
|
package/build.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 Build -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 Build -Instance $Instance -Version $Version
|
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.
|
|
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.5",
|
|
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,27 @@
|
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
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
|
+
<Compile Include="Services\Endpoints.fs" />
|
|
14
|
+
<Compile Include="Services\IHttpTransport.fs" />
|
|
15
|
+
<Compile Include="Services\Clients\CompanyClient.fs" />
|
|
16
|
+
<Compile Include="Services\Clients\CompanySettingsClient.fs" />
|
|
17
|
+
<Compile Include="Services\Clients\EmployeeClient.fs" />
|
|
18
|
+
<Compile Include="Services\Clients\IdentityClient.fs" />
|
|
19
|
+
<Compile Include="Services\Clients\BranchClient.fs" />
|
|
20
|
+
<Compile Include="Services\Clients\DepartmentClient.fs" />
|
|
21
|
+
<Compile Include="Services\Clients\CompanyLicenseClient.fs" />
|
|
22
|
+
<Compile Include="Services\Clients\SystemLicenseClient.fs" />
|
|
23
|
+
</ItemGroup>
|
|
24
|
+
<ItemGroup>
|
|
25
|
+
<PackageReference Include="Fable.Core" Version="4.5.0" />
|
|
26
|
+
</ItemGroup>
|
|
17
27
|
</Project>
|