fix(module): added approval services to providers of their respective modules
This commit is contained in:
parent
44da99e7c1
commit
13a3ccb292
|
|
@ -3,7 +3,7 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"/": {
|
"/": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "ShiftsValidationController_getSummary",
|
"operationId": "ShiftsOverviewController_getSummary",
|
||||||
"parameters": [],
|
"parameters": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"ShiftsValidation"
|
"ShiftsOverview"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -545,9 +545,34 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
"/timesheets/{id}/approval": {
|
||||||
"/auth/v1/login": {
|
"patch": {
|
||||||
=======
|
"operationId": "TimesheetsController_approve",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"required": true,
|
||||||
|
"in": "path",
|
||||||
|
"schema": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"access-token": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"Timesheets"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/Expenses": {
|
"/Expenses": {
|
||||||
"post": {
|
"post": {
|
||||||
"operationId": "ExpensesController_create",
|
"operationId": "ExpensesController_create",
|
||||||
|
|
@ -742,6 +767,34 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/Expenses/{id}/approval": {
|
||||||
|
"patch": {
|
||||||
|
"operationId": "ExpensesController_approve",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"required": true,
|
||||||
|
"in": "path",
|
||||||
|
"schema": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"access-token": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"Expenses"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/shifts": {
|
"/shifts": {
|
||||||
"post": {
|
"post": {
|
||||||
"operationId": "ShiftsController_create",
|
"operationId": "ShiftsController_create",
|
||||||
|
|
@ -936,9 +989,37 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/shifts/{id}/approval": {
|
||||||
|
"patch": {
|
||||||
|
"operationId": "ShiftsController_approve",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"required": true,
|
||||||
|
"in": "path",
|
||||||
|
"schema": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"access-token": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"Shifts"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/export.csv": {
|
"/export.csv": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "ShiftsValidationController_exportCsv",
|
"operationId": "ShiftsOverviewController_exportCsv",
|
||||||
"parameters": [],
|
"parameters": [],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
|
|
@ -946,7 +1027,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"ShiftsValidation"
|
"ShiftsOverview"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1144,8 +1225,35 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/auth/login": {
|
"/leave-requests/{id}/approval": {
|
||||||
>>>>>>> b0406b3a4c00223b9430ef29b60a4775beca4328
|
"patch": {
|
||||||
|
"operationId": "LeaveRequestController_updateApproval",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"required": true,
|
||||||
|
"in": "path",
|
||||||
|
"schema": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"access-token": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"Leave Requests"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/auth/v1/login": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "AuthController_login",
|
"operationId": "AuthController_login",
|
||||||
"parameters": [],
|
"parameters": [],
|
||||||
|
|
@ -1292,6 +1400,29 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/exports/csv": {
|
||||||
|
"get": {
|
||||||
|
"operationId": "CsvExportController_exportCsv",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "period",
|
||||||
|
"required": true,
|
||||||
|
"in": "query",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"CsvExport"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/customers": {
|
"/customers": {
|
||||||
"post": {
|
"post": {
|
||||||
"operationId": "CustomersController_create",
|
"operationId": "CustomersController_create",
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,12 @@ import { ExpensesController } from "./controllers/expenses.controller";
|
||||||
import { Module } from "@nestjs/common";
|
import { Module } from "@nestjs/common";
|
||||||
import { ExpensesService } from "./services/expenses.service";
|
import { ExpensesService } from "./services/expenses.service";
|
||||||
import { BusinessLogicsModule } from "src/modules/business-logics/business-logics.module";
|
import { BusinessLogicsModule } from "src/modules/business-logics/business-logics.module";
|
||||||
|
import { ExpensesApprovalService } from "./services/expenses-approval.service";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [BusinessLogicsModule],
|
imports: [BusinessLogicsModule],
|
||||||
controllers: [ExpensesController],
|
controllers: [ExpensesController],
|
||||||
providers: [ExpensesService],
|
providers: [ExpensesService, ExpensesApprovalService],
|
||||||
exports: [ ExpensesService ],
|
exports: [ ExpensesService ],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,14 @@ import { PayPeriodsService } from "./services/pay-periods.service";
|
||||||
import { PayPeriodsController } from "./controllers/pay-periods.controller";
|
import { PayPeriodsController } from "./controllers/pay-periods.controller";
|
||||||
import { Module } from "@nestjs/common";
|
import { Module } from "@nestjs/common";
|
||||||
import { PayPeriodsOverviewService } from "./services/pay-periods-overview.service";
|
import { PayPeriodsOverviewService } from "./services/pay-periods-overview.service";
|
||||||
|
import { PayPeriodsApprovalService } from "./services/pay-periods-approval.service";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [PrismaModule],
|
imports: [PrismaModule],
|
||||||
providers: [
|
providers: [
|
||||||
PayPeriodsService,
|
PayPeriodsService,
|
||||||
PayPeriodsOverviewService,
|
PayPeriodsOverviewService,
|
||||||
|
PayPeriodsApprovalService,
|
||||||
],
|
],
|
||||||
controllers: [PayPeriodsController],
|
controllers: [PayPeriodsController],
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,12 @@ import { ShiftsService } from './services/shifts.service';
|
||||||
import { BusinessLogicsModule } from 'src/modules/business-logics/business-logics.module';
|
import { BusinessLogicsModule } from 'src/modules/business-logics/business-logics.module';
|
||||||
import { ShiftsOverviewController } from './controllers/shifts-overview.controller';
|
import { ShiftsOverviewController } from './controllers/shifts-overview.controller';
|
||||||
import { ShiftsOverviewService } from './services/shifts-overview.service';
|
import { ShiftsOverviewService } from './services/shifts-overview.service';
|
||||||
|
import { ShiftsApprovalService } from './services/shifts-approval.service';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [BusinessLogicsModule],
|
imports: [BusinessLogicsModule],
|
||||||
controllers: [ShiftsController, ShiftsOverviewController],
|
controllers: [ShiftsController, ShiftsOverviewController],
|
||||||
providers: [ShiftsService, ShiftsOverviewService],
|
providers: [ShiftsService, ShiftsOverviewService, ShiftsApprovalService],
|
||||||
exports: [ShiftsService, ShiftsOverviewService],
|
exports: [ShiftsService, ShiftsOverviewService],
|
||||||
})
|
})
|
||||||
export class ShiftsModule {}
|
export class ShiftsModule {}
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,19 @@ import { Module } from '@nestjs/common';
|
||||||
import { TimesheetsController } from './controllers/timesheets.controller';
|
import { TimesheetsController } from './controllers/timesheets.controller';
|
||||||
import { TimesheetsService } from './services/timesheets.service';
|
import { TimesheetsService } from './services/timesheets.service';
|
||||||
import { BusinessLogicsModule } from 'src/modules/business-logics/business-logics.module';
|
import { BusinessLogicsModule } from 'src/modules/business-logics/business-logics.module';
|
||||||
|
import { TimesheetsApprovalService } from './services/timesheets-approval.service';
|
||||||
|
import { ShiftsApprovalService } from '../shifts/services/shifts-approval.service';
|
||||||
|
import { ExpensesApprovalService } from '../expenses/services/expenses-approval.service';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [BusinessLogicsModule],
|
imports: [BusinessLogicsModule],
|
||||||
controllers: [TimesheetsController],
|
controllers: [TimesheetsController],
|
||||||
providers: [ TimesheetsService ],
|
providers: [
|
||||||
|
TimesheetsService,
|
||||||
|
TimesheetsApprovalService,
|
||||||
|
ShiftsApprovalService,
|
||||||
|
ExpensesApprovalService
|
||||||
|
],
|
||||||
exports: [TimesheetsService],
|
exports: [TimesheetsService],
|
||||||
})
|
})
|
||||||
export class TimesheetsModule {}
|
export class TimesheetsModule {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user