Skip to content

Commit 5327534

Browse files
authored
Merge pull request #4853 from bcgov/feat/4845
chore(4845): resolve typescript type errors
2 parents 84d859d + 89da2c0 commit 5327534

File tree

40 files changed

+95
-81
lines changed

40 files changed

+95
-81
lines changed

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@ localmac:
1212

1313
.PHONY: dev
1414
dev:
15-
@DATABASE_URL=$$(grep -m 1 '^DATABASE_URL=' app/.env.local | cut -d '=' -f 2-) \
16-
npm run prisma-push --prefix app && \
17-
npm run dev --prefix app
15+
pnpm --dir app run prisma-push
16+
pnpm --dir app run dev
1817

1918
.PHONY: install
2019
install:
2120
pnpm install
22-
npm install --prefix app
23-
npm install --prefix data-migrations
21+
pnpm --dir app install
22+
pnpm --dir data-migrations install
23+
pnpm --dir sandbox/_packages/keycloak-admin install
24+
pnpm --dir sandbox/keycloak-provision install
25+
pnpm --dir sandbox/m365mock install
26+
pnpm --dir sandbox/nats-provision install
2427

2528
.PHONY: asdf-install
2629
asdf-install:

app/app/api/private-cloud/products/_operations/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default async function updateOp({
123123
return OkResponse(newRequest);
124124
}
125125

126-
const proms = [];
126+
const proms: any[] = [];
127127

128128
proms.push(
129129
sendRequestNatsMessage(newRequest, {

app/app/api/private-cloud/products/download/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ describe('Download Private Cloud Products - Validations', () => {
221221
it('should successfully create products by admin', async () => {
222222
await mockSessionByRole(GlobalRole.Admin);
223223

224-
const datasets = [];
224+
const datasets: any[] = [];
225225
datasets.push(
226226
createSamplePrivateCloudProductData({ data: { ministry: Ministry.AEST, cluster: Cluster.CLAB } }),
227227
createSamplePrivateCloudProductData({ data: { ministry: Ministry.AEST, cluster: Cluster.KLAB } }),

app/app/api/private-cloud/products/search/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('Search Private Cloud Products - Validations', () => {
169169
it('should successfully create products by admin', async () => {
170170
await mockSessionByRole(GlobalRole.Admin);
171171

172-
const datasets = [];
172+
const datasets: any[] = [];
173173
datasets.push(
174174
createSamplePrivateCloudProductData({ data: { ministry: Ministry.AEST, cluster: Cluster.CLAB } }),
175175
createSamplePrivateCloudProductData({ data: { ministry: Ministry.AEST, cluster: Cluster.KLAB } }),

app/app/api/private-cloud/requests/[id]/decision/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const POST = apiHandler(async ({ pathParams, body, session }) => {
109109
return OkResponse(updatedRequestDecorated);
110110
}
111111

112-
const proms = [];
112+
const proms: any[] = [];
113113

114114
proms.push(
115115
sendRequestNatsMessage(updatedRequestDecorated, {

app/app/api/private-cloud/requests/search/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ describe('Search Private Cloud Requests - Validations', () => {
172172
it('should successfully create products by admin', async () => {
173173
await mockSessionByRole(GlobalRole.PrivateAdmin);
174174

175-
const datasets = [];
175+
const datasets: any[] = [];
176176
datasets.push(
177177
createSamplePrivateCloudProductData({ data: { ministry: Ministry.AEST, cluster: Cluster.CLAB } }),
178178
createSamplePrivateCloudProductData({ data: { ministry: Ministry.AEST, cluster: Cluster.KLAB } }),

app/app/api/public-cloud/aws-roles/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import KcAdminClient from '@keycloak/keycloak-admin-client';
2+
import GroupRepresentation from '@keycloak/keycloak-admin-client/lib/defs/groupRepresentation';
23
import { Credentials } from '@keycloak/keycloak-admin-client/lib/utils/auth';
34
import _compact from 'lodash-es/compact';
45
import _kebabCase from 'lodash-es/kebabCase';
@@ -173,7 +174,7 @@ async function findParentGroup(groupName = PROJECT_GROUP) {
173174
}
174175

175176
async function listSubGroups({ parentId, search }: { parentId: string; search?: string }) {
176-
const subGroups = [];
177+
const subGroups: GroupRepresentation[] = [];
177178

178179
const max = 100;
179180
let first = 0;

app/app/api/public-cloud/products/_operations/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default async function createOp({ session, body }: { session: Session; bo
8989
)
9090
).data;
9191

92-
const proms = [];
92+
const proms: any[] = [];
9393

9494
// Assign a task to the expense authority for new billing
9595
if (newRequest.decisionData.expenseAuthorityId && !newRequest.decisionData.billing.signed) {

app/app/api/public-cloud/products/download/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('Download Public Cloud Products - Validations', () => {
275275
it('should successfully create products by admin', async () => {
276276
await mockSessionByRole(GlobalRole.Admin);
277277

278-
const datasets = [];
278+
const datasets: any[] = [];
279279
datasets.push(
280280
createSamplePublicCloudProductData({ data: { ministry: Ministry.AEST, provider: Provider.AWS } }),
281281
createSamplePublicCloudProductData({ data: { ministry: Ministry.AEST, provider: Provider.AZURE } }),

app/app/api/public-cloud/products/search/route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ describe('Search Public Cloud Products - Validations', () => {
217217
it('should successfully create products by admin', async () => {
218218
await mockSessionByRole(GlobalRole.Admin);
219219

220-
const datasets = [];
220+
const datasets: any[] = [];
221221
datasets.push(
222222
createSamplePublicCloudProductData({ data: { ministry: Ministry.AEST, provider: Provider.AWS } }),
223223
createSamplePublicCloudProductData({ data: { ministry: Ministry.AEST, provider: Provider.AZURE } }),

0 commit comments

Comments
 (0)