Apps, web, i18n, UI, partners, payouts, backoffice, bariki, prod infra
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
45d7512d2b
commit
3489e0b816
319 files changed
+45483
-121
No files matched your search
@@ -38,7 +38,16 @@ export const slotAt = (dayOffset: number, hour: number) => {
|
||||
let tgSeq = 1000;
|
||||
|
||||
export async function fixtures() {
|
||||
// шаблоны переезда (в базе их создаёт миграция; тесты чистят все таблицы)
|
||||
const steps = ['consult', 'airport', 'stay', 'flat', 'registration', 'socialCard', 'bankCard', 'residence'];
|
||||
const docs = ['passport', 'diploma', 'criminalRecord'];
|
||||
await wipe();
|
||||
await db.relocationItem.createMany({
|
||||
data: [
|
||||
...steps.map((code, i) => ({ kind: 'STEP' as const, code, name: { ru: code }, sortOrder: i, inTurnkey: code !== 'consult' })),
|
||||
...docs.map((code, i) => ({ kind: 'DOC' as const, code, name: { ru: code }, sortOrder: i, inTurnkey: false })),
|
||||
],
|
||||
});
|
||||
for (const [i, code] of YEREVAN_DISTRICTS.entries()) await db.district.create({ data: { code, sortOrder: i } });
|
||||
const kentron = await db.district.findUniqueOrThrow({ where: { code: 'kentron' } });
|
||||
const home = await db.category.create({ data: { code: 'HOME', barevPlusDiscountPct: DEFAULT_CATEGORY_DISCOUNTS.HOME } });
|
||||
|
||||
Reference in new issue
Block a user