Skip to content

Commit

Permalink
Merge branch 'main' into judicial-system/ical-iteration-2
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Jan 11, 2022
2 parents 64923cd + 61bb744 commit b65b63c
Show file tree
Hide file tree
Showing 37 changed files with 132 additions and 133 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'create',
resources: updatedApplication.id,
meta: { type: application.typeId },
Expand Down Expand Up @@ -425,7 +425,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'update',
resources: updatedApplication.id,
meta: { fields: Object.keys(newAnswers) },
Expand Down Expand Up @@ -492,7 +492,7 @@ export class ApplicationController {
}

this.auditService.audit({
user,
auth: user,
action: 'updateExternalData',
resources: updatedApplication.id,
meta: { providers: externalDataDto },
Expand Down Expand Up @@ -574,7 +574,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'submitApplication',
resources: existingApplication.id,
meta: {
Expand Down Expand Up @@ -812,7 +812,7 @@ export class ApplicationController {
})

this.auditService.audit({
user,
auth: user,
action: 'addAttachment',
resources: updatedApplication.id,
meta: {
Expand Down Expand Up @@ -853,7 +853,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'deleteAttachment',
resources: updatedApplication.id,
meta: {
Expand Down Expand Up @@ -889,7 +889,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'generatePdf',
resources: existingApplication.id,
meta: { type: input.type },
Expand Down Expand Up @@ -927,7 +927,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'requestFileSignature',
resources: existingApplication.id,
meta: { type: input.type },
Expand Down Expand Up @@ -963,7 +963,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'uploadSignedFile',
resources: existingApplication.id,
meta: { type: input.type },
Expand Down Expand Up @@ -999,7 +999,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'getPresignedUrl',
resources: existingApplication.id,
meta: { type },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { InjectModel } from '@nestjs/sequelize'
import { Payment } from './payment.model'
import { PaymentService } from './payment.service'
import { PaymentStatusResponseDto } from './dto/paymentStatusResponse.dto'
import { isUuid } from 'uuidv4'
import { CreateChargeInput } from './dto/createChargeInput.dto'
import { PaymentAPI } from '@island.is/clients/payment'

Expand Down Expand Up @@ -87,7 +86,7 @@ export class PaymentController {
const chargeResult = await this.paymentService.createCharge(payment, user)

this.auditService.audit({
user,
auth: user,
action: 'createCharge',
resources: paymentDto.application_id as string,
meta: { applicationId: paymentDto.application_id, id: payment.id },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class ApplicationController {
)

this.auditService.audit({
user,
auth: user,
action: 'findByNationalId',
resources: applications.map((application) => application.id),
})
Expand Down Expand Up @@ -172,7 +172,7 @@ export class ApplicationController {
this.logger.debug(`Application controller: Getting application by id ${id}`)

this.auditService.audit({
user,
auth: user,
action: 'getApplication',
resources: application.id,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class IcelandicNameController {
}

this.auditService.audit({
user,
auth: user,
action: 'updateNameById',
resources: `${id}`,
meta: { fields: Object.keys(body) },
Expand Down Expand Up @@ -142,7 +142,7 @@ export class IcelandicNameController {
): Promise<IcelandicName> {
return this.auditService.auditPromise<IcelandicName>(
{
user,
auth: user,
action: 'createName',
resources: (name) => `${name.id}`,
},
Expand Down Expand Up @@ -173,7 +173,7 @@ export class IcelandicNameController {
}

this.auditService.audit({
user,
auth: user,
action: 'deleteById',
resources: `${id}`,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class AccessController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'udpate',
namespace,
resources: nationalId,
Expand All @@ -148,7 +148,7 @@ export class AccessController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: nationalId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ClientAllowedScopeController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ClientClaimController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: `${clientId}/${claimType}/${claimValue}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ClientGrantTypeController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ClientPostLogoutRedirectUriController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class ClientSecretController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: clientSecret.clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class ClientsController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'update',
namespace,
resources: id,
Expand All @@ -158,7 +158,7 @@ export class ClientsController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class CorsController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class IdpRestrictionController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class RedirectUriController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class GrantTypeController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'updateGrantType',
namespace,
resources: name,
Expand All @@ -180,7 +180,7 @@ export class GrantTypeController {
}
return this.auditService.auditPromise(
{
user,
auth: user,
action: 'deleteGrantType',
namespace,
resources: name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class IdpProviderController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'delete',
namespace,
resources: name,
Expand All @@ -148,7 +148,7 @@ export class IdpProviderController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'update',
namespace,
resources: name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class PersonalRepresentativeController {

return this.auditService.auditPromise(
{
user,
auth: user,
action: 'deleteScopePermission',
namespace,
resources: id,
Expand Down
Loading

0 comments on commit b65b63c

Please sign in to comment.