|
|
@ -20,9 +20,7 @@ import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard'; |
|
|
|
export class BulkDataAliasController { |
|
|
|
export class BulkDataAliasController { |
|
|
|
constructor(private bulkDataAliasService: BulkDataAliasService) {} |
|
|
|
constructor(private bulkDataAliasService: BulkDataAliasService) {} |
|
|
|
|
|
|
|
|
|
|
|
@Post([ |
|
|
|
@Post(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName']) |
|
|
|
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName', |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
@HttpCode(200) |
|
|
|
@HttpCode(200) |
|
|
|
@Acl('bulkDataInsert') |
|
|
|
@Acl('bulkDataInsert') |
|
|
|
async bulkDataInsert( |
|
|
|
async bulkDataInsert( |
|
|
@ -42,9 +40,7 @@ export class BulkDataAliasController { |
|
|
|
res.json(exists); |
|
|
|
res.json(exists); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Patch([ |
|
|
|
@Patch(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName']) |
|
|
|
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName', |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
@Acl('bulkDataUpdate') |
|
|
|
@Acl('bulkDataUpdate') |
|
|
|
async bulkDataUpdate( |
|
|
|
async bulkDataUpdate( |
|
|
|
@Request() req, |
|
|
|
@Request() req, |
|
|
@ -61,9 +57,7 @@ export class BulkDataAliasController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// todo: Integrate with filterArrJson bulkDataUpdateAll
|
|
|
|
// todo: Integrate with filterArrJson bulkDataUpdateAll
|
|
|
|
@Patch([ |
|
|
|
@Patch(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all']) |
|
|
|
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all', |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
@Acl('bulkDataUpdateAll') |
|
|
|
@Acl('bulkDataUpdateAll') |
|
|
|
async bulkDataUpdateAll( |
|
|
|
async bulkDataUpdateAll( |
|
|
|
@Request() req, |
|
|
|
@Request() req, |
|
|
@ -80,9 +74,7 @@ export class BulkDataAliasController { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Delete([ |
|
|
|
@Delete(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName']) |
|
|
|
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName', |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
@Acl('bulkDataDelete') |
|
|
|
@Acl('bulkDataDelete') |
|
|
|
async bulkDataDelete( |
|
|
|
async bulkDataDelete( |
|
|
|
@Request() req, |
|
|
|
@Request() req, |
|
|
@ -100,9 +92,7 @@ export class BulkDataAliasController { |
|
|
|
|
|
|
|
|
|
|
|
// todo: Integrate with filterArrJson bulkDataDeleteAll
|
|
|
|
// todo: Integrate with filterArrJson bulkDataDeleteAll
|
|
|
|
|
|
|
|
|
|
|
|
@Delete([ |
|
|
|
@Delete(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all']) |
|
|
|
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all', |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
@Acl('bulkDataDeleteAll') |
|
|
|
@Acl('bulkDataDeleteAll') |
|
|
|
async bulkDataDeleteAll( |
|
|
|
async bulkDataDeleteAll( |
|
|
|
@Request() req, |
|
|
|
@Request() req, |
|
|
|