Merge pull request #20 from StevanFreeborn/stevanfreeborn/fix/pass-correct-ids-in-report-constructor

fix: make sure proper ids are passed to constructor
This commit is contained in:
Stevan Freeborn
2025-04-15 21:21:00 -05:00
committed by GitHub
5 changed files with 1074 additions and 822 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ jobs:
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload build artifact - name: Upload build artifact
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4
with: with:
name: build name: build
path: ./dist path: ./dist
+3 -3
View File
@@ -114,9 +114,9 @@ jobs:
TEST_SURVEY_RECORD_ID: ${{ vars.TEST_SURVEY_RECORD_ID }} TEST_SURVEY_RECORD_ID: ${{ vars.TEST_SURVEY_RECORD_ID }}
TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }} TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }}
- name: Upload test coverage artifact - name: Upload test coverage artifact
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v4
with: with:
name: coverage name: coverage-${{ matrix.node-version }}
path: ./coverage path: ./coverage
publish_test_coverage: publish_test_coverage:
needs: test needs: test
@@ -128,7 +128,7 @@ jobs:
- name: Download test coverage artifact - name: Download test coverage artifact
uses: actions/download-artifact@v4.1.7 uses: actions/download-artifact@v4.1.7
with: with:
name: coverage name: coverage-20.x
path: ./coverage path: ./coverage
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@v4
+1056 -804
View File
File diff suppressed because it is too large Load Diff
+13 -13
View File
@@ -63,34 +63,34 @@
"@commitlint/cli": "^17.8.1", "@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1", "@commitlint/config-conventional": "^17.8.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2", "@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.16", "@types/chai": "^4.3.20",
"@types/mocha": "^10.0.7", "@types/mocha": "^10.0.10",
"@types/node": "^18.19.41", "@types/node": "^18.19.86",
"@types/sinon": "^10.0.20", "@types/sinon": "^10.0.20",
"@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0", "@typescript-eslint/parser": "^5.62.0",
"chai": "^4.4.1", "chai": "^4.5.0",
"dotenv": "^16.4.5", "dotenv": "^16.5.0",
"eslint": "^8.57.0", "eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.0", "eslint-config-prettier": "^8.10.0",
"eslint-config-standard-with-typescript": "^34.0.1", "eslint-config-standard-with-typescript": "^34.0.1",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-import": "^2.31.0",
"eslint-plugin-mocha": "^10.4.3", "eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-n": "^15.7.0", "eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.4.0", "eslint-plugin-promise": "^6.6.0",
"husky": "^8.0.3", "husky": "^8.0.3",
"mocha": "^10.6.0", "mocha": "^10.8.2",
"nyc": "^15.1.0", "nyc": "^15.1.0",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"pretty-quick": "^3.3.1", "pretty-quick": "^3.3.1",
"sinon": "^15.2.0", "sinon": "^15.2.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typedoc": "^0.25.13", "typedoc": "^0.25.13",
"typedoc-material-theme": "^1.1.0", "typedoc-material-theme": "^1.4.0",
"typescript": "^4.9.5" "typescript": "^4.9.5"
}, },
"dependencies": { "dependencies": {
"axios": "^1.7.4", "axios": "^1.8.4",
"form-data": "^4.0.0" "form-data": "^4.0.2"
} }
} }
+1 -1
View File
@@ -323,7 +323,7 @@ export class ApiResponse<T> {
const apiResponse = this as ApiResponse<any>; const apiResponse = this as ApiResponse<any>;
const reports = apiResponse.data.items.map((item: any) => { const reports = apiResponse.data.items.map((item: any) => {
return new Report(item.id, item.appId, item.name, item.description); return new Report(item.appId, item.id, item.name, item.description);
}); });
const getPagedReportsResponse = new GetPagedReportsResponse( const getPagedReportsResponse = new GetPagedReportsResponse(