feat(SPG-1234): add action_type at verifier
parent
ec5229645f
commit
af1ee2fbee
|
@ -41,16 +41,19 @@ export class ItemDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Patch(':id/active')
|
@Patch(':id/active')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async active(@Param('id') dataId: string): Promise<string> {
|
async active(@Param('id') dataId: string): Promise<string> {
|
||||||
return await this.orchestrator.active(dataId);
|
return await this.orchestrator.active(dataId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Put('/batch-active')
|
@Put('/batch-active')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async batchActive(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
async batchActive(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
||||||
return await this.orchestrator.batchActive(body.ids);
|
return await this.orchestrator.batchActive(body.ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Patch(':id/confirm')
|
@Patch(':id/confirm')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async confirm(@Param('id') dataId: string): Promise<string> {
|
async confirm(@Param('id') dataId: string): Promise<string> {
|
||||||
return await this.orchestrator.confirm(dataId);
|
return await this.orchestrator.confirm(dataId);
|
||||||
}
|
}
|
||||||
|
@ -71,6 +74,7 @@ export class ItemDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Put(':id')
|
@Put(':id')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async update(
|
async update(
|
||||||
@Param('id') dataId: string,
|
@Param('id') dataId: string,
|
||||||
@Body() data: ItemDto,
|
@Body() data: ItemDto,
|
||||||
|
|
|
@ -80,6 +80,7 @@ export class SeasonPeriodDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
// pemisahan update data dengan update items dikarenakan payload (based on tampilan) berbeda
|
// pemisahan update data dengan update items dikarenakan payload (based on tampilan) berbeda
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
@Put(':id/items')
|
@Put(':id/items')
|
||||||
async updateItems(
|
async updateItems(
|
||||||
@Param('id') dataId: string,
|
@Param('id') dataId: string,
|
||||||
|
|
|
@ -36,21 +36,25 @@ export class UserDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Patch(':id/active')
|
@Patch(':id/active')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async active(@Param('id') dataId: string): Promise<string> {
|
async active(@Param('id') dataId: string): Promise<string> {
|
||||||
return await this.orchestrator.active(dataId);
|
return await this.orchestrator.active(dataId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Put('/batch-active')
|
@Put('/batch-active')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async batchActive(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
async batchActive(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
||||||
return await this.orchestrator.batchActive(body.ids);
|
return await this.orchestrator.batchActive(body.ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Patch(':id/confirm')
|
@Patch(':id/confirm')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async confirm(@Param('id') dataId: string): Promise<string> {
|
async confirm(@Param('id') dataId: string): Promise<string> {
|
||||||
return await this.orchestrator.confirm(dataId);
|
return await this.orchestrator.confirm(dataId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Put('/batch-confirm')
|
@Put('/batch-confirm')
|
||||||
|
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||||
async batchConfirm(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
async batchConfirm(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
||||||
return await this.orchestrator.batchConfirm(body.ids);
|
return await this.orchestrator.batchConfirm(body.ids);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue