This commit is contained in:
pfych 2024-10-12 14:08:09 +11:00
commit 0029086b3f
148 changed files with 19047 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import { {{ nameFirst }} } from '@baseline/types/{{ nameKebab }}';
import { getDynamodbConnection } from '@baselinejs/dynamodb';
import { ServiceObject } from '../../util/service-object';
const dynamoDb = getDynamodbConnection({
region: `${process.env.API_REGION}`,
});
export const {{ nameCamel }}Service = new ServiceObject<{{ nameFirst }}>({
dynamoDb: dynamoDb,
objectName: '{{ nameFirst }}',
table: `${process.env.APP_NAME}-${process.env.NODE_ENV}-{{ nameKebab }}`,
primaryKey: '{{ primaryKey }}',
});