Расширение для бесшовной интеграции вашего приложения, написанного с использованием ORM Prisma с системой токенизации данных Damask.
npm i @damask-js/prisma-client-extension-for-damask
cd prisma-extensions-for_damask
npm install
DAMASK_API_URL = "https://damask.bssg.ru"
DAMASK_PACK_LENGTH = 100
DAMASK_LIKE_LIMIT = 100000
DAMASK_API_USERNAME = "user"
DAMASK_API_PASSWORD = "password"
DAMASK_DATA_GROUP = "group1"
DAMASK_METADATA_GROUP = "group2",
DAMASK_DATA_GROUP_REGEX = "(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})"
DAMASK_METADATA_DATA_GROUP_REGEX = "(?:\{{0,1}(?:[b]){1}(?:[0-9a-fA-F]){32}\}{0,1})"
import { PrismaClient } from "@prisma/client";
import Damask from "@damask-js/prisma-client-extension-for-damask";
const prisma = new PrismaClient().$extends(Damask())