feat(payment): implement complete Zibal IPG, EBank, Wallets, Refunds and Trust Seals
Deploy Canina / deploy (push) Successful in 1m51s

This commit is contained in:
parsa aghaei committed 2026-08-22 13:40:42 +03:30
1 parent 7203915e15
commit a2b8afccc3
21 files changed
+143035 -8553

No files matched your search

@@ -0,0 +1,55 @@
import {
IsNotEmpty,
IsString,
IsNumber,
IsOptional,
Min,
} from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class CreateEBankCheckoutDto {
@ApiProperty({ description: 'مبلغ انتقال وجه به ریال' })
@IsNumber()
@Min(10000)
amount: number;
@ApiProperty({ description: 'شماره شبا حساب مقصد (IR...)' })
@IsString()
@IsNotEmpty()
iban: string;
@ApiPropertyOptional({ description: 'شناسه حساب مبدا پذیرنده' })
@IsString()
@IsOptional()
accountId?: string;
@ApiPropertyOptional({ description: 'کد دلیل انتقال وجه' })
@IsNumber()
@IsOptional()
reasonCode?: number;
@ApiPropertyOptional({ description: 'میزان تاخیر به دقیقه' })
@IsNumber()
@IsOptional()
delay?: number;
@ApiPropertyOptional({ description: 'شناسه یکتای اختصاصی' })
@IsString()
@IsOptional()
uniqueCode?: string;
@ApiPropertyOptional({ description: 'توضیحات انتقال وجه' })
@IsString()
@IsOptional()
description?: string;
@ApiPropertyOptional({ description: 'شناسه واریز' })
@IsString()
@IsOptional()
paymentNumber?: string;
@ApiPropertyOptional({ description: 'آدرس کال‌بک وب‌هوک' })
@IsString()
@IsOptional()
callbackUrl?: string;
}
+256
View File
@@ -2,6 +2,7 @@ import {
Controller,
Get,
Post,
Put,
Body,
Query,
Param,
@@ -16,6 +17,8 @@ import {
import type { Request, Response } from 'express';
import { PaymentService } from './payment.service';
import { ZibalService } from './zibal.service';
import { ZibalEBankService } from './zibal-ebank.service';
import { CreateEBankCheckoutDto } from './dto/ebank-checkout.dto';
import {
InitiatePaymentDto,
InitiateWalletTopupDto,
@@ -39,6 +42,7 @@ export class PaymentController {
constructor(
private readonly paymentService: PaymentService,
private readonly zibalService: ZibalService,
private readonly zibalEBankService: ZibalEBankService,
) {}
@UseGuards(JwtAuthGuard)
@@ -200,6 +204,258 @@ export class PaymentController {
return this.paymentService.getTransaction(trackId);
}
// ==========================================
// ADMIN: ZIBAL WALLETS, REFUNDS & GATEWAY REPORTS
// ==========================================
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Get('admin/wallets')
@ApiOperation({ summary: 'دریافت لیست کیف‌پول‌های زیبال و موجودی آن‌ها' })
async getAdminWallets() {
return this.zibalService.getWalletList();
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/refund')
@ApiOperation({ summary: 'درخواست استرداد وجه تراکنش (Refund یا Reverse)' })
async createRefund(
@Body()
body: {
trackId: string | number;
amount?: number;
tryReverse?: boolean;
cardNumber?: string;
description?: string;
},
) {
return this.zibalService.requestRefund(body);
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/refund/inquiry')
@ApiOperation({ summary: 'استعلام وضعیت استرداد وجه' })
async inquireRefund(
@Body() body: { refundId?: string | number; transactionTrackId?: string | number },
) {
return this.zibalService.inquireRefund(body);
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/refund/list')
@ApiOperation({ summary: 'گزارش لیست استردادهای انجام شده' })
async getRefundList(
@Body()
body: {
status?: number[];
type?: number;
page?: number;
size?: number;
fromDate?: string;
toDate?: string;
},
) {
return this.zibalService.getRefundList(body);
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/gateway-report')
@ApiOperation({ summary: 'گزارش مستقیم تراکنش‌های درگاه زیبال از سرور زیبال' })
async getGatewayReport(
@Body()
body: {
fromDate?: string;
toDate?: string;
trackId?: number;
status?: number;
orderId?: string;
mobile?: string;
amount?: number;
cardNumber?: string;
page?: number;
size?: number;
},
) {
return this.zibalService.getGatewayTransactionsReport(body);
}
// ==========================================
// ADMIN: SUB-MERCHANTS (ذی‌نفع‌های تسهیم)
// ==========================================
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Get('admin/sub-merchants')
@ApiOperation({ summary: 'لیست ذی‌نفع‌های ثبت‌شده در زیبال' })
async getSubMerchants(
@Query('page') page = '1',
@Query('size') size = '20',
) {
return this.zibalService.getSubMerchantList(Number(page), Number(size));
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/sub-merchants')
@ApiOperation({ summary: 'ثبت ذی‌نفع جدید برای تسهیم' })
async createSubMerchant(
@Body() body: { bankAccount: string; name: string; callbackUrl?: string },
) {
return this.zibalService.createSubMerchant(body);
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Put('admin/sub-merchants')
@ApiOperation({ summary: 'ویرایش ذی‌نفع غیرفعال' })
async editSubMerchant(
@Body() body: { id: string; bankAccount: string; name: string },
) {
return this.zibalService.editSubMerchant(body);
}
// ==========================================
// ADMIN: CORPORATE BANKING (EBANK API)
// ==========================================
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Get('admin/ebank/accounts')
@ApiOperation({ summary: 'لیست حساب‌های متصل به بانکداری شرکتی زیبال' })
async getEBankAccounts(@Query('active') active?: string) {
const activeAccounts = active !== undefined ? active === 'true' : undefined;
return this.zibalEBankService.getAccountList(activeAccounts);
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Get('admin/ebank/balance')
@ApiOperation({ summary: 'دریافت موجودی حساب بانکداری شرکتی' })
async getEBankBalance(
@Query('accountId') accountId?: string,
@Query('update') update?: string,
) {
return this.zibalEBankService.getAccountBalance(accountId, update === 'true');
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Get('admin/ebank/statements')
@ApiOperation({ summary: 'دریافت صورت‌حساب بانکی حساب متصل' })
async getEBankStatements(
@Query('accountId') accountId?: string,
@Query('fromDate') fromDate?: string,
@Query('toDate') toDate?: string,
@Query('update') update?: string,
@Query('size') size = '20',
@Query('page') page = '1',
) {
return this.zibalEBankService.getStatementList({
accountId,
fromDate,
toDate,
update: update === 'true',
size: Number(size),
page: Number(page),
});
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/ebank/checkout')
@ApiOperation({ summary: 'ثبت انتقال وجه پایا / ساتنا / پل از حساب بانکی' })
async createEBankCheckout(@Body() body: CreateEBankCheckoutDto) {
return this.zibalEBankService.createCheckout(body);
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Get('admin/ebank/checkouts')
@ApiOperation({ summary: 'لیست انتقال وجه‌های بانکداری شرکتی' })
async getEBankCheckoutList(
@Query('accountId') accountId?: string,
@Query('fromDate') fromDate?: string,
@Query('toDate') toDate?: string,
@Query('status') status?: string,
@Query('size') size = '20',
@Query('page') page = '1',
) {
return this.zibalEBankService.getCheckoutList({
accountId,
fromDate,
toDate,
status: status ? Number(status) : undefined,
size: Number(size),
page: Number(page),
});
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/ebank/checkout/cancel')
@ApiOperation({ summary: 'لغو انتقال وجه‌های در صف' })
async cancelEBankCheckout(
@Body() body: { checkoutIds: string[]; accountId?: string },
) {
return this.zibalEBankService.cancelCheckout(body.checkoutIds, body.accountId);
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Get('admin/ebank/identified-payments')
@ApiOperation({ summary: 'لیست واریزی‌های شناسه دار' })
async getEBankIdentifiedPayments(
@Query('accountId') accountId?: string,
@Query('fromDate') fromDate?: string,
@Query('toDate') toDate?: string,
@Query('status') status?: string,
@Query('size') size = '20',
@Query('page') page = '1',
) {
return this.zibalEBankService.getIdentifiedPaymentList({
accountId,
fromDate,
toDate,
status: status ? Number(status) : undefined,
size: Number(size),
page: Number(page),
});
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Post('admin/ebank/identified-payments/status')
@ApiOperation({ summary: 'تایید یا رد واریزی شناسه دار' })
async changeIdentifiedPaymentStatus(
@Body() body: { transactionId: string; status: 2 | 3; accountId?: string },
) {
return this.zibalEBankService.changeIdentifiedPaymentStatus(
body.transactionId,
body.status,
body.accountId,
);
}
// --- ADMIN ENDPOINTS FOR TRANSACTION LOGS, DIAGNOSTICS & HEALTH CHECK ---
@UseGuards(JwtAuthGuard, RolesGuard)
+3 -2
View File
@@ -2,13 +2,14 @@ import { Module } from '@nestjs/common';
import { PaymentController } from './payment.controller';
import { PaymentService } from './payment.service';
import { ZibalService } from './zibal.service';
import { ZibalEBankService } from './zibal-ebank.service';
import { PrismaModule } from '../prisma/prisma.module';
import { SmsModule } from '../common/sms.module';
@Module({
imports: [PrismaModule, SmsModule],
controllers: [PaymentController],
providers: [PaymentService, ZibalService],
exports: [PaymentService, ZibalService],
providers: [PaymentService, ZibalService, ZibalEBankService],
exports: [PaymentService, ZibalService, ZibalEBankService],
})
export class PaymentModule {}
+337
View File
@@ -0,0 +1,337 @@
import { Injectable, Logger } from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
export interface EBankCheckoutOptions {
amount: number; // Rial
iban: string; // IR...
accountId?: string;
reasonCode?: number; // 1-19 (e.g. 18 for goods, 4 for debt settlement)
delay?: number; // -1: instant, 0: closest cycle, 60: 1 hour, etc.
uniqueCode?: string;
description?: string;
paymentNumber?: string;
callbackUrl?: string;
}
export interface EBankCheckoutListFilter {
accountId?: string;
fromDate?: string;
toDate?: string;
status?: number;
size?: number;
page?: number;
}
export interface EBankStatementFilter {
accountId?: string;
fromDate?: string;
toDate?: string;
update?: boolean;
size?: number;
page?: number;
}
export interface EBankIdentifiedPaymentFilter {
accountId?: string;
fromDate?: string;
toDate?: string;
status?: number; // 0: pending, 2: verified, 3: rejected
size?: number;
page?: number;
}
@Injectable()
export class ZibalEBankService {
private readonly logger = new Logger(ZibalEBankService.name);
private readonly baseUrl = 'https://api.zibal.ir';
constructor(private readonly prisma: PrismaService) {}
/**
* Retrieves Bearer Access Token for Zibal EBank API
*/
async getAccessToken(): Promise<string> {
try {
const setting = await this.prisma.uiText.findUnique({
where: { key: 'ZIBAL_EBANK_TOKEN' },
});
if (setting && setting.value && setting.value.trim() !== '') {
return setting.value.trim();
}
} catch (e) {
this.logger.warn(`Could not read ZIBAL_EBANK_TOKEN from db: ${e}`);
}
return process.env.ZIBAL_EBANK_TOKEN || '';
}
/**
* Retrieves default Account ID for Zibal EBank API
*/
async getDefaultAccountId(): Promise<string> {
try {
const setting = await this.prisma.uiText.findUnique({
where: { key: 'ZIBAL_EBANK_ACCOUNT_ID' },
});
if (setting && setting.value && setting.value.trim() !== '') {
return setting.value.trim();
}
} catch (e) {
this.logger.warn(`Could not read ZIBAL_EBANK_ACCOUNT_ID from db: ${e}`);
}
return process.env.ZIBAL_EBANK_ACCOUNT_ID || '';
}
private async request<T>(
endpoint: string,
options: {
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
body?: Record<string, any>;
params?: Record<string, any>;
} = {},
): Promise<T> {
const token = await this.getAccessToken();
if (!token) {
throw new Error('توکن دسترسی بانکداری شرکتی زیبال (ZIBAL_EBANK_TOKEN) تنظیم نشده است.');
}
let url = `${this.baseUrl}${endpoint}`;
if (options.params) {
const queryParams = new URLSearchParams();
for (const [k, v] of Object.entries(options.params)) {
if (v !== undefined && v !== null && v !== '') {
queryParams.append(k, String(v));
}
}
const qs = queryParams.toString();
if (qs) {
url += (url.includes('?') ? '&' : '?') + qs;
}
}
const headers: Record<string, string> = {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
};
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 15000);
try {
this.logger.log(`[Zibal EBank API] ${options.method || 'GET'} ${url}`);
const response = await fetch(url, {
method: options.method || 'GET',
headers,
body: options.body ? JSON.stringify(options.body) : undefined,
signal: controller.signal,
});
const data = await response.json();
return data as T;
} catch (err: unknown) {
const msg = err instanceof Error ? err.message : String(err);
this.logger.error(`[Zibal EBank API] Error requesting ${endpoint}: ${msg}`);
throw err;
} finally {
clearTimeout(timeoutId);
}
}
// ==========================================
// 1. انتقال وجه (Checkouts & Payouts)
// ==========================================
/**
* ثبت درخواست انتقال وجه (پایا / ساتنا / پل)
*/
async createCheckout(options: EBankCheckoutOptions) {
const accountId = options.accountId || (await this.getDefaultAccountId());
if (!accountId) {
throw new Error('شناسه حساب زیبال (accountId) الزامی است.');
}
const payload = {
accountId,
amount: options.amount,
iban: options.iban.replace(/\s+/g, '').toUpperCase(),
reasonCode: options.reasonCode || 18, // 18: خرید کالا
delay: options.delay ?? -1, // -1: instant
uniqueCode: options.uniqueCode || `PAY-${Date.now()}`,
description: options.description || 'انتقال وجه کنینا',
paymentNumber: options.paymentNumber,
callbackUrl: options.callbackUrl,
};
return this.request<any>('/ebank/v1/account/checkout/create/', {
method: 'POST',
body: payload,
});
}
/**
* استعلام انتقال وجه با uniqueCode یا trackerId
*/
async inquireCheckout(params: {
accountId?: string;
uniqueCode?: string;
trackerId?: string;
}) {
const accountId = params.accountId || (await this.getDefaultAccountId());
return this.request<any>('/ebank/v1/account/checkout/inquire/', {
method: 'GET',
params: {
accountId,
uniqueCode: params.uniqueCode,
trackerId: params.trackerId,
},
});
}
/**
* دریافت لیست انتقال وجه‌ها
*/
async getCheckoutList(filter: EBankCheckoutListFilter) {
const accountId = filter.accountId || (await this.getDefaultAccountId());
const now = new Date();
const defaultFrom = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000).toISOString();
const defaultTo = now.toISOString();
return this.request<any>('/ebank/v1/account/checkout/list/', {
method: 'GET',
params: {
accountId,
fromDate: filter.fromDate || defaultFrom,
toDate: filter.toDate || defaultTo,
status: filter.status,
size: filter.size || 20,
page: filter.page || 1,
},
});
}
/**
* لغو انتقال وجه‌های در صف
*/
async cancelCheckout(checkoutIds: string[], accountId?: string) {
const targetAccountId = accountId || (await this.getDefaultAccountId());
return this.request<any>('/ebank/v1/account/checkout/cancel/', {
method: 'POST',
body: {
accountId: targetAccountId,
checkoutIds,
},
});
}
// ==========================================
// 2. حساب‌ها (Bank Accounts & Statements)
// ==========================================
/**
* دریافت لیست حساب‌های متصل به بانکداری شرکتی
*/
async getAccountList(activeAccounts?: boolean) {
return this.request<any>('/ebank/v1/account/list/', {
method: 'GET',
params: {
activeAccounts,
},
});
}
/**
* دریافت موجودی حساب
*/
async getAccountBalance(accountId?: string, update = true) {
const targetAccountId = accountId || (await this.getDefaultAccountId());
return this.request<any>('/ebank/v1/account/balance/', {
method: 'GET',
params: {
accountId: targetAccountId,
update,
},
});
}
/**
* دریافت صورت‌حساب بانکی حساب متصل
*/
async getStatementList(filter: EBankStatementFilter) {
const accountId = filter.accountId || (await this.getDefaultAccountId());
const now = new Date();
const defaultFrom = new Date(now.getTime() - 7 * 24 * 60 * 60 * 1000).toISOString();
const defaultTo = now.toISOString();
return this.request<any>('/ebank/v1/account/statement/list/', {
method: 'GET',
params: {
accountId,
fromDate: filter.fromDate || defaultFrom,
toDate: filter.toDate || defaultTo,
update: filter.update ?? false,
size: filter.size || 20,
page: filter.page || 1,
},
});
}
// ==========================================
// 3. واریزی‌ها و شناسه‌های واریز (Identified Payments)
// ==========================================
/**
* دریافت لیست واریزی‌های شناسه دار
*/
async getIdentifiedPaymentList(filter: EBankIdentifiedPaymentFilter) {
const accountId = filter.accountId || (await this.getDefaultAccountId());
const now = new Date();
const defaultFrom = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000).toISOString();
const defaultTo = now.toISOString();
return this.request<any>('/ebank/v1/account/identified-payment/list/', {
method: 'GET',
params: {
accountId,
fromDate: filter.fromDate || defaultFrom,
toDate: filter.toDate || defaultTo,
status: filter.status,
size: filter.size || 20,
page: filter.page || 1,
},
});
}
/**
* تایید (2) یا رد (3) واریز
*/
async changeIdentifiedPaymentStatus(
transactionId: string,
status: 2 | 3,
accountId?: string,
) {
const targetAccountId = accountId || (await this.getDefaultAccountId());
return this.request<any>('/ebank/v1/account/identified-payment/change-status/', {
method: 'POST',
body: {
accountId: targetAccountId,
transactionId,
status,
},
});
}
/**
* استعلام وضعیت یک واریز شناسه دار
*/
async inquireIdentifiedPayment(transactionId: string, accountId?: string) {
const targetAccountId = accountId || (await this.getDefaultAccountId());
return this.request<any>('/ebank/v1/account/identified-payment/inquire/', {
method: 'GET',
params: {
accountId: targetAccountId,
transactionId,
},
});
}
}
+346
View File
@@ -358,11 +358,353 @@ export class ZibalService implements IPaymentGateway {
}
}
// ==========================================
// 6. متد Lazy Payment (درخواست و تایید لیزی)
// ==========================================
/**
* درخواست پرداخت در حالت Lazy (در صورت عدم وریفای تا ۲۰ دقیقه، پول برگشت داده می‌شود)
*/
async requestLazyPayment(
params: PaymentRequestOptions & {
nationalCode?: string;
allowedCards?: string[];
checkMobileWithCard?: boolean;
},
): Promise<ZibalRequestResponse> {
const merchant = await this.getMerchant();
const payload = {
merchant,
amount: params.amountRials,
callbackUrl: params.callbackUrl,
description: params.description || 'پرداخت سفارش (Lazy) در کنینا',
orderId: params.orderId,
mobile: params.mobile,
nationalCode: params.nationalCode,
allowedCards: params.allowedCards,
checkMobileWithCard: params.checkMobileWithCard,
};
return this.callWithRetry(async () => {
this.logger.log(
`Sending Lazy payment request to Zibal for orderId=${params.orderId}, amount=${params.amountRials} Rials`,
);
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 10000);
try {
const response = await fetch(`${this.baseUrl}/request/lazy`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload),
signal: controller.signal,
});
if (!response.ok) {
const errorText = await response.text();
throw new Error(`Zibal Lazy request HTTP ${response.status}: ${errorText}`);
}
const data = (await response.json()) as ZibalRequestResponse;
return data;
} finally {
clearTimeout(timeoutId);
}
}, `requestLazyPayment(orderId=${params.orderId})`);
}
/**
* تایید پرداخت در حالت Lazy
*/
async verifyLazyPayment(trackId: string | number): Promise<ZibalVerifyResponse> {
const merchant = await this.getMerchant();
const payload = {
merchant,
trackId: String(trackId),
};
return this.callWithRetry(async () => {
this.logger.log(`Verifying Lazy payment for trackId=${trackId}`);
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 10000);
try {
const response = await fetch(`${this.baseUrl}/verify`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload),
signal: controller.signal,
});
if (!response.ok) {
const errorText = await response.text();
throw new Error(`Zibal verify Lazy HTTP ${response.status}: ${errorText}`);
}
const data = (await response.json()) as ZibalVerifyResponse;
return data;
} finally {
clearTimeout(timeoutId);
}
}, `verifyLazyPayment(trackId=${trackId})`);
}
// ==========================================
// 7. پلتفرم مالی، کیف پول و استرداد وجه (Refund & Wallets)
// Base URL: https://api.zibal.ir with Bearer Token
// ==========================================
private async getAccessToken(): Promise<string> {
try {
const setting = await this.prisma.uiText.findUnique({
where: { key: 'ZIBAL_EBANK_TOKEN' },
});
if (setting && setting.value && setting.value.trim() !== '') {
return setting.value.trim();
}
} catch (e) {
this.logger.warn(`Could not read ZIBAL_EBANK_TOKEN: ${e}`);
}
return process.env.ZIBAL_EBANK_TOKEN || '';
}
private async apiRequest<T>(
endpoint: string,
method: 'GET' | 'POST' = 'POST',
body?: Record<string, any>,
): Promise<T> {
const token = await this.getAccessToken();
const headers: Record<string, string> = {
'Content-Type': 'application/json',
};
if (token) {
headers['Authorization'] = `Bearer ${token}`;
}
const url = `https://api.zibal.ir${endpoint}`;
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 15000);
try {
this.logger.log(`[Zibal Core API] ${method} ${url}`);
const res = await fetch(url, {
method,
headers,
body: body ? JSON.stringify(body) : undefined,
signal: controller.signal,
});
const data = await res.json();
return data as T;
} finally {
clearTimeout(timeoutId);
}
}
/**
* لیست کیف پول‌های متصل در زیبال
*/
async getWalletList() {
return this.apiRequest<any>('/v1/wallet/list', 'GET');
}
/**
* استعلام موجودی یک کیف پول مشخص
*/
async getWalletBalance(walletId: number) {
return this.apiRequest<any>('/v1/wallet/balance', 'POST', { id: walletId });
}
/**
* درخواست استرداد وجه (Refund یا Reverse)
*/
async requestRefund(options: {
trackId: number | string;
accountId?: string;
amount?: number; // Rial
tryReverse?: boolean; // true = prioritize reverse
cardNumber?: string;
description?: string;
}) {
const accountId =
options.accountId ||
(await this.prisma.uiText.findUnique({ where: { key: 'ZIBAL_EBANK_ACCOUNT_ID' } }))?.value;
const payload = {
trackId: Number(options.trackId),
accountId: accountId || 'default',
tryReverse: options.tryReverse ?? false,
amount: options.amount,
cardNumber: options.cardNumber,
description: options.description || 'استرداد وجه سفارش در کنینا',
};
return this.apiRequest<any>('/v1/account/refund', 'POST', payload);
}
/**
* استعلام وضعیت استرداد وجه با refundId یا trackId
*/
async inquireRefund(params: {
refundId?: number | string;
transactionTrackId?: number | string;
}) {
return this.apiRequest<any>('/v1/account/refund/inquiry', 'POST', {
refundId: params.refundId ? Number(params.refundId) : undefined,
transactionTrackId: params.transactionTrackId
? Number(params.transactionTrackId)
: undefined,
});
}
/**
* گزارش لیست استردادها
*/
async getRefundList(filter: {
status?: number[];
type?: number;
page?: number;
size?: number;
fromDate?: string;
toDate?: string;
}) {
return this.apiRequest<any>('/v1/account/refund/list', 'POST', {
status: filter.status,
type: filter.type || 4,
page: filter.page || 1,
size: filter.size || 20,
fromDate: filter.fromDate,
toDate: filter.toDate,
});
}
/**
* گزارش تراکنش‌های درگاه پرداخت مستقیماً از زیبال
*/
async getGatewayTransactionsReport(filter: {
merchantId?: string;
fromDate?: string;
toDate?: string;
trackId?: number;
status?: number;
orderId?: string;
mobile?: string;
amount?: number;
cardNumber?: string;
page?: number;
size?: number;
verbose?: boolean;
}) {
const merchantId = filter.merchantId || (await this.getMerchant());
return this.apiRequest<any>('/v1/gateway/report/transaction', 'POST', {
merchantId,
fromDate: filter.fromDate,
toDate: filter.toDate,
trackId: filter.trackId,
status: filter.status,
orderId: filter.orderId,
mobile: filter.mobile,
amount: filter.amount,
cardNumber: filter.cardNumber,
page: filter.page || 1,
size: filter.size || 20,
verbose: filter.verbose ?? true,
});
}
/**
* گزارش تسویه‌های درگاه و کیف‌پول
*/
async getCheckoutReport(filter: {
fromDate?: string;
toDate?: string;
page?: number;
size?: number;
transactionTrackId?: number;
verbose?: boolean;
}) {
return this.apiRequest<any>('/v1/report/checkout', 'POST', {
fromDate: filter.fromDate,
toDate: filter.toDate,
page: filter.page || 1,
size: filter.size || 20,
transactionTrackId: filter.transactionTrackId,
verbose: filter.verbose ?? true,
});
}
/**
* گزارش صف تسویه‌های در انتظار
*/
async getCheckoutQueueReport(verbose = true) {
return this.apiRequest<any>('/v1/report/checkout/queue', 'POST', { verbose });
}
/**
* استعلام تسویه مشخص با checkoutRequestId یا uniqueCode
*/
async inquireCheckoutReport(walletId: string, checkoutRequestId?: string, uniqueCode?: string) {
return this.apiRequest<any>('/v1/report/checkout/inquire', 'POST', {
walletId,
checkoutRequestId,
uniqueCode,
});
}
/**
* ثبت ذی‌نفع جدید برای تسهیم (SubMerchant)
*/
async createSubMerchant(data: {
bankAccount: string;
name: string;
callbackUrl?: string;
}) {
return this.apiRequest<any>('/v1/subMerchant/create', 'POST', {
bankAccount: data.bankAccount.replace(/\s+/g, '').toUpperCase(),
name: data.name,
callbackUrl: data.callbackUrl,
});
}
/**
* لیست ذی‌نفع‌های ثبت شده
*/
async getSubMerchantList(page = 1, size = 20) {
return this.apiRequest<any>('/v1/subMerchant/list', 'POST', { page, size });
}
/**
* ویرایش ذی‌نفع غیرفعال
*/
async editSubMerchant(data: {
id: string;
bankAccount: string;
name: string;
}) {
return this.apiRequest<any>('/v1/subMerchant/edit', 'POST', data);
}
/**
* Human-friendly Persian messages for Zibal result codes
*/
getResultMessage(resultCode: number): string {
const messages: Record<number, string> = {
1: 'موفق',
2: 'API Key به درستی ارسال نشده است',
3: 'API Key صحیح نیست',
4: 'اجازه دسترسی به این سرویس صادر نشده است',
5: 'آدرس callbackUrl نامعتبر است',
6: 'مقدار ورودی نامعتبر است',
7: 'IP ارسال‌کننده درخواست نامعتبر است',
8: 'API Key غیرفعال است',
9: 'حداقل مبلغ باید ۱,۰۰۰ ریال باشد',
14: 'درخواست انتقال وجه یا تسویه یافت نشد',
21: 'شماره شبای وارد شده معتبر نیست',
29: 'موجودی کیف‌پول کارمزد کافی نیست',
44: 'شبای مورد نظر یافت نشد',
45: 'سرویس‌دهنده‌ها برای استعلام در دسترس نیستند',
100: 'با موفقیت تایید شد',
102: 'merchant یافت نشد',
103: 'merchant غیرفعال است',
@@ -401,6 +743,10 @@ export class ZibalService implements IPaymentGateway {
'10': 'صادرکننده کارت نامعتبر است',
'11': 'خطای سوییچ بانک صادرکننده',
'12': 'کارت یا حساب مسدود است',
'15': 'تراکنش استرداد شده',
'16': 'تراکنش در حال استرداد',
'18': 'تراکنش ریورس شده',
'21': 'پذیرنده نامعتبر است',
};
return messages[code] || `وضعیت نامشخص (${statusCode})`;
@@ -1,10 +1,24 @@
import { useState, useEffect } from 'react';
import { CreditCard, Save, ShieldCheck, Wallet, ArrowLeftRight, CheckCircle2 } from 'lucide-react';
import {
CreditCard,
Save,
ShieldCheck,
Wallet,
ArrowLeftRight,
CheckCircle2,
Building2,
RefreshCw,
RotateCcw,
Users,
Search,
} from 'lucide-react';
import { toast } from 'react-hot-toast';
import api from '../services/api';
import Spinner from '../components/ui/Spinner';
export default function PaymentGatewaysPage() {
const [activeTab, setActiveTab] = useState<'gateways' | 'wallets' | 'ebank' | 'submerchants'>('gateways');
const [settings, setSettings] = useState({
PAY_GATEWAY_CARD_ENABLE: 'true',
PAY_GATEWAY_WALLET_ENABLE: 'true',
@@ -13,11 +27,37 @@ export default function PaymentGatewaysPage() {
ZIBAL_MERCHANT: 'zibal',
ZIBAL_SANDBOX: 'true',
FRONTEND_URL: 'https://canina.ir',
ZIBAL_EBANK_TOKEN: '',
ZIBAL_EBANK_ACCOUNT_ID: '',
});
const [isLoading, setIsLoading] = useState(true);
const [isSaving, setIsSaving] = useState(false);
// Wallets State
const [wallets, setWallets] = useState<any[]>([]);
const [loadingWallets, setLoadingWallets] = useState(false);
// EBank Accounts & Balance
const [ebankAccounts, setEBankAccounts] = useState<any[]>([]);
const [ebankBalance, setEBankBalance] = useState<any>(null);
const [loadingEBank, setLoadingEBank] = useState(false);
// SubMerchants
const [subMerchants, setSubMerchants] = useState<any[]>([]);
const [loadingSubMerchants, setLoadingSubMerchants] = useState(false);
const [newSubMerchant, setNewSubMerchant] = useState({ name: '', bankAccount: '' });
// Refund Modal State
const [refundData, setRefundData] = useState({
trackId: '',
amount: '',
tryReverse: false,
cardNumber: '',
description: '',
});
const [isRefunding, setIsRefunding] = useState(false);
useEffect(() => {
let isSubscribed = true;
api.get('/admin/settings')
@@ -33,6 +73,8 @@ export default function PaymentGatewaysPage() {
ZIBAL_MERCHANT: d.ZIBAL_MERCHANT || 'zibal',
ZIBAL_SANDBOX: d.ZIBAL_SANDBOX ?? 'true',
FRONTEND_URL: d.FRONTEND_URL || 'https://canina.ir',
ZIBAL_EBANK_TOKEN: d.ZIBAL_EBANK_TOKEN || '',
ZIBAL_EBANK_ACCOUNT_ID: d.ZIBAL_EBANK_ACCOUNT_ID || '',
});
}
})
@@ -52,7 +94,7 @@ export default function PaymentGatewaysPage() {
try {
setIsSaving(true);
await api.put('/admin/settings', settings);
toast.success('تنظیمات روش‌های پرداخت با موفقیت بروزرسانی شد.');
toast.success('تنظیمات درگاه و سرویس‌های زیبال با موفقیت ذخیره شد.');
} catch (err) {
console.error('Failed to update payment settings', err);
toast.error('خطا در ذخیره تنظیمات درگاه پرداخت');
@@ -61,209 +103,658 @@ export default function PaymentGatewaysPage() {
}
};
const fetchWallets = async () => {
try {
setLoadingWallets(true);
const res = await api.get('/payment/admin/wallets');
if (res.data?.data) {
setWallets(res.data.data);
}
} catch (e: any) {
toast.error(e?.response?.data?.message || 'خطا در دریافت موجودی کیف‌پول‌ها');
} finally {
setLoadingWallets(false);
}
};
const fetchEBank = async () => {
try {
setLoadingEBank(true);
const [accRes, balRes] = await Promise.allSettled([
api.get('/payment/admin/ebank/accounts'),
api.get('/payment/admin/ebank/balance'),
]);
if (accRes.status === 'fulfilled' && accRes.value.data?.data) {
setEBankAccounts(accRes.value.data.data);
}
if (balRes.status === 'fulfilled' && balRes.value.data) {
setEBankBalance(balRes.value.data);
}
} catch (e: any) {
toast.error('خطا در دریافت اطلاعات بانکداری شرکتی');
} finally {
setLoadingEBank(false);
}
};
const fetchSubMerchants = async () => {
try {
setLoadingSubMerchants(true);
const res = await api.get('/payment/admin/sub-merchants');
if (res.data?.data) {
setSubMerchants(res.data.data);
}
} catch (e: any) {
toast.error('خطا در دریافت لیست ذی‌نفعان');
} finally {
setLoadingSubMerchants(false);
}
};
const handleCreateSubMerchant = async (e: React.FormEvent) => {
e.preventDefault();
try {
await api.post('/payment/admin/sub-merchants', newSubMerchant);
toast.success('ذی‌نفع جدید با موفقیت ثبت شد.');
setNewSubMerchant({ name: '', bankAccount: '' });
fetchSubMerchants();
} catch (e: any) {
toast.error(e?.response?.data?.message || 'خطا در ثبت ذی‌نفع');
}
};
const handleRefundSubmit = async (e: React.FormEvent) => {
e.preventDefault();
if (!refundData.trackId) {
toast.error('شناسه تراکنش (Track ID) الزامی است');
return;
}
try {
setIsRefunding(true);
const res = await api.post('/payment/admin/refund', {
trackId: refundData.trackId,
amount: refundData.amount ? Number(refundData.amount) * 10 : undefined, // to Rials
tryReverse: refundData.tryReverse,
cardNumber: refundData.cardNumber || undefined,
description: refundData.description || undefined,
});
if (res.data?.result === 1 || res.data?.status) {
toast.success(res.data?.message || 'درخواست استرداد وجه با موفقیت انجام شد.');
setRefundData({ trackId: '', amount: '', tryReverse: false, cardNumber: '', description: '' });
} else {
toast.error(res.data?.message || 'خطا در انجام استرداد وجه');
}
} catch (e: any) {
toast.error(e?.response?.data?.message || 'خطا در ارسال درخواست استرداد');
} finally {
setIsRefunding(false);
}
};
return (
<div className="space-y-6 font-vazir" dir="rtl">
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
<div>
<h2 className="text-2xl font-black text-gray-900 flex items-center gap-2">
<CreditCard className="w-6 h-6 text-indigo-600" />
مدیریت روش‌های پرداخت و درگاه بانکی
پلتفرم جامع پرداختی و درگاه‌های بانکی زیبال
</h2>
<p className="text-gray-500 font-medium mt-1">
پیکربندی پایانه‌های پرداخت اینترنتی زیبال، کیف پول داخلی، کارت به کارت و پرداخت در محل
<p className="text-gray-500 font-medium mt-1 text-xs sm:text-sm">
مدیریت درگاه IPG، استرداد وجه (Refund/Reverse)، بانکداری شرکتی (EBank)، کیف‌پول و تسویه
</p>
</div>
</div>
{/* Tabs */}
<div className="flex border-b border-gray-200 gap-2 overflow-x-auto pb-1">
<button
type="button"
onClick={() => setActiveTab('gateways')}
className={`px-4 py-2.5 rounded-xl font-bold text-xs sm:text-sm transition-all flex items-center gap-2 cursor-pointer ${
activeTab === 'gateways'
? 'bg-indigo-600 text-white shadow-md shadow-indigo-100'
: 'text-gray-600 hover:bg-gray-100'
}`}
>
<CreditCard className="w-4 h-4" />
تنظیمات درگاه و پایانه
</button>
<button
type="button"
onClick={() => {
setActiveTab('wallets');
fetchWallets();
}}
className={`px-4 py-2.5 rounded-xl font-bold text-xs sm:text-sm transition-all flex items-center gap-2 cursor-pointer ${
activeTab === 'wallets'
? 'bg-indigo-600 text-white shadow-md shadow-indigo-100'
: 'text-gray-600 hover:bg-gray-100'
}`}
>
<Wallet className="w-4 h-4" />
کیف‌پول‌های زیبال و ریفاند
</button>
<button
type="button"
onClick={() => {
setActiveTab('ebank');
fetchEBank();
}}
className={`px-4 py-2.5 rounded-xl font-bold text-xs sm:text-sm transition-all flex items-center gap-2 cursor-pointer ${
activeTab === 'ebank'
? 'bg-indigo-600 text-white shadow-md shadow-indigo-100'
: 'text-gray-600 hover:bg-gray-100'
}`}
>
<Building2 className="w-4 h-4" />
بانکداری شرکتی (EBank)
</button>
<button
type="button"
onClick={() => {
setActiveTab('submerchants');
fetchSubMerchants();
}}
className={`px-4 py-2.5 rounded-xl font-bold text-xs sm:text-sm transition-all flex items-center gap-2 cursor-pointer ${
activeTab === 'submerchants'
? 'bg-indigo-600 text-white shadow-md shadow-indigo-100'
: 'text-gray-600 hover:bg-gray-100'
}`}
>
<Users className="w-4 h-4" />
تسهیم و ذی‌نفعان
</button>
</div>
{isLoading ? (
<div className="flex justify-center p-12">
<Spinner size="lg" className="text-indigo-600" />
</div>
) : (
<form onSubmit={handleSave} className="space-y-6">
{/* Methods Cards */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-6">
<h3 className="text-base font-black text-gray-900 border-b border-gray-100 pb-3 flex items-center gap-2">
<ShieldCheck className="w-5 h-5 text-indigo-600" />
وضعیت فعال بودن روش‌های پرداخت در تسویه‌حساب
</h3>
<>
{activeTab === 'gateways' && (
<form onSubmit={handleSave} className="space-y-6">
{/* Methods Cards */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-6">
<h3 className="text-base font-black text-gray-900 border-b border-gray-100 pb-3 flex items-center gap-2">
<ShieldCheck className="w-5 h-5 text-indigo-600" />
وضعیت فعال بودن روش‌های پرداخت در تسویه‌حساب
</h3>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{/* Zibal IPG */}
<div className="flex items-center justify-between p-4 bg-indigo-50/50 rounded-2xl border border-indigo-100">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-indigo-600 text-white flex items-center justify-center font-black">
Z
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{/* Zibal IPG */}
<div className="flex items-center justify-between p-4 bg-indigo-50/50 rounded-2xl border border-indigo-100">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-indigo-600 text-white flex items-center justify-center font-black">
Z
</div>
<div>
<h4 className="font-bold text-gray-900 text-sm">درگاه آنلاین شتاب (زیبال)</h4>
<p className="text-xs text-gray-500 mt-0.5">پرداخت اینترنتی کلیه کارت‌های عضو شتاب</p>
</div>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_ONLINE_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_ONLINE_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div>
</label>
</div>
<div>
<h4 className="font-bold text-gray-900 text-sm">درگاه آنلاین شتاب (زیبال)</h4>
<p className="text-xs text-gray-500 mt-0.5">پرداخت اینترنتی کلیه کارت‌های عضو شتاب</p>
{/* Wallet Internal */}
<div className="flex items-center justify-between p-4 bg-blue-50/50 rounded-2xl border border-blue-100">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-blue-600 text-white flex items-center justify-center font-black">
<Wallet className="w-5 h-5" />
</div>
<div>
<h4 className="font-bold text-gray-900 text-sm">اعتبار کیف پول کنینا</h4>
<p className="text-xs text-gray-500 mt-0.5">پرداخت لحظه‌ای از موجودی شارژشده کاربر</p>
</div>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_WALLET_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_WALLET_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
{/* Card to Card */}
<div className="flex items-center justify-between p-4 bg-slate-50 rounded-2xl border border-gray-200">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-slate-700 text-white flex items-center justify-center font-black">
<ArrowLeftRight className="w-5 h-5" />
</div>
<div>
<h4 className="font-bold text-gray-900 text-sm">کارت به کارت (واریز مستقیم)</h4>
<p className="text-xs text-gray-500 mt-0.5">واریز به شماره شبا / کارت رسمی و ثبت فیش</p>
</div>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_CARD_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_CARD_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-slate-700"></div>
</label>
</div>
{/* Cash On Delivery */}
<div className="flex items-center justify-between p-4 bg-amber-50/50 rounded-2xl border border-amber-100">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-amber-600 text-white flex items-center justify-center font-black">
<CreditCard className="w-5 h-5" />
</div>
<div>
<h4 className="font-bold text-gray-900 text-sm">پرداخت در محل (COD)</h4>
<p className="text-xs text-gray-500 mt-0.5">پرداخت با پوز هنگام دریافت سفارش</p>
</div>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_COD_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_COD_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-amber-600"></div>
</label>
</div>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_ONLINE_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_ONLINE_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div>
</label>
</div>
{/* Wallet Internal */}
<div className="flex items-center justify-between p-4 bg-blue-50/50 rounded-2xl border border-blue-100">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-blue-600 text-white flex items-center justify-center font-black">
<Wallet className="w-5 h-5" />
</div>
{/* Zibal IPG Configuration Card */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-5">
<div className="flex items-center justify-between border-b border-gray-100 pb-3">
<h3 className="text-base font-black text-gray-900 flex items-center gap-2">
<ShieldCheck className="w-5 h-5 text-indigo-600" />
پیکربندی پایانه پرداخت زیبال (Zibal IPG Config)
</h3>
{settings.ZIBAL_MERCHANT === 'zibal' && (
<span className="bg-amber-100 text-amber-800 text-xs px-3 py-1 rounded-xl font-bold flex items-center gap-1">
<CheckCircle2 className="w-3.5 h-3.5" />
حالت آزمایشی (Sandbox)
</span>
)}
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-5">
<div>
<h4 className="font-bold text-gray-900 text-sm">اعتبار کیف پول کنینا</h4>
<p className="text-xs text-gray-500 mt-0.5">پرداخت لحظه‌ای از موجودی شارژشده کاربر</p>
<label className="block text-xs font-bold text-gray-700 mb-1.5">
کد مرچنت زیبال (Merchant ID) *
</label>
<input
type="text"
required
value={settings.ZIBAL_MERCHANT}
onChange={(e) => setSettings({ ...settings, ZIBAL_MERCHANT: e.target.value })}
placeholder="zibal یا کد مرچنت دریافتی"
className="w-full border border-gray-200 rounded-xl p-3 outline-none focus:ring-2 focus:ring-indigo-500 text-xs font-mono font-bold"
dir="ltr"
/>
<p className="text-[11px] text-gray-400 mt-1">
جهت فعال‌سازی درگاه زنده، مرچنت آی‌دی رسمی زیبال را در این کادر قرار دهید.
</p>
</div>
<div>
<label className="block text-xs font-bold text-gray-700 mb-1.5">
دامنه بازگشت پس از پرداخت (Frontend Return Domain) *
</label>
<input
type="text"
required
value={settings.FRONTEND_URL}
onChange={(e) => setSettings({ ...settings, FRONTEND_URL: e.target.value })}
placeholder="https://canina.ir"
className="w-full border border-gray-200 rounded-xl p-3 outline-none focus:ring-2 focus:ring-indigo-500 text-xs font-mono font-bold"
dir="ltr"
/>
<p className="text-[11px] text-gray-400 mt-1">
آدرس صفحه‌ای که نتیجه تراکنش به آن ارجاع داده می‌شود.
</p>
</div>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_WALLET_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_WALLET_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
{/* Card to Card */}
<div className="flex items-center justify-between p-4 bg-slate-50 rounded-2xl border border-gray-200">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-slate-700 text-white flex items-center justify-center font-black">
<ArrowLeftRight className="w-5 h-5" />
</div>
{/* Zibal API Bearer Token & Corporate Banking Keys */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-5">
<h3 className="text-base font-black text-gray-900 border-b border-gray-100 pb-3 flex items-center gap-2">
<Building2 className="w-5 h-5 text-indigo-600" />
کلید دسترسی پلتفرم زیبال و بانکداری شرکتی (API Token)
</h3>
<div className="grid grid-cols-1 md:grid-cols-2 gap-5">
<div>
<h4 className="font-bold text-gray-900 text-sm">کارت به کارت (واریز مستقیم)</h4>
<p className="text-xs text-gray-500 mt-0.5">واریز به شماره شبا / کارت رسمی و ثبت فیش</p>
<label className="block text-xs font-bold text-gray-700 mb-1.5">
توکن دسترسی زیبال (Access Token / Bearer)
</label>
<input
type="password"
value={settings.ZIBAL_EBANK_TOKEN}
onChange={(e) => setSettings({ ...settings, ZIBAL_EBANK_TOKEN: e.target.value })}
placeholder="توکن دریافت شده از بخش توسعه‌دهندگان زیبال"
className="w-full border border-gray-200 rounded-xl p-3 outline-none focus:ring-2 focus:ring-indigo-500 text-xs font-mono font-bold"
dir="ltr"
/>
<p className="text-[11px] text-gray-400 mt-1">
جهت استفاده از قابلیت‌های ریفاند خودکار، کیف‌پول و بانکداری شرکتی.
</p>
</div>
<div>
<label className="block text-xs font-bold text-gray-700 mb-1.5">
شناسه پیش‌فرض حساب پذیرنده (Default Account ID)
</label>
<input
type="text"
value={settings.ZIBAL_EBANK_ACCOUNT_ID}
onChange={(e) => setSettings({ ...settings, ZIBAL_EBANK_ACCOUNT_ID: e.target.value })}
placeholder="شناسه حساب در پنل بانکداری شرکتی زیبال"
className="w-full border border-gray-200 rounded-xl p-3 outline-none focus:ring-2 focus:ring-indigo-500 text-xs font-mono font-bold"
dir="ltr"
/>
<p className="text-[11px] text-gray-400 mt-1">
شناسه حساب متصل جهت کسر و انتقال وجه پایا و ریفاندها.
</p>
</div>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_CARD_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_CARD_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-slate-700"></div>
</label>
</div>
{/* Cash On Delivery */}
<div className="flex items-center justify-between p-4 bg-amber-50/50 rounded-2xl border border-amber-100">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-amber-600 text-white flex items-center justify-center font-black">
<CreditCard className="w-5 h-5" />
</div>
<div>
<h4 className="font-bold text-gray-900 text-sm">پرداخت در محل (COD)</h4>
<p className="text-xs text-gray-500 mt-0.5">پرداخت با پوز هنگام دریافت سفارش</p>
</div>
<div className="flex justify-end">
<button
type="submit"
disabled={isSaving}
className="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-xl transition-colors flex items-center gap-2 shadow-md shadow-indigo-200 cursor-pointer text-sm"
>
{isSaving ? <Spinner size="sm" /> : <Save className="w-5 h-5" />}
<span>ذخیره کلیه تنظیمات درگاه زیبال</span>
</button>
</div>
</form>
)}
{activeTab === 'wallets' && (
<div className="space-y-6">
{/* Wallets Overview */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-4">
<div className="flex items-center justify-between border-b border-gray-100 pb-3">
<h3 className="text-base font-black text-gray-900 flex items-center gap-2">
<Wallet className="w-5 h-5 text-indigo-600" />
موجودی کیف‌پول‌های متصل به حساب زیبال
</h3>
<button
onClick={fetchWallets}
disabled={loadingWallets}
className="text-xs font-bold text-indigo-600 hover:text-indigo-800 flex items-center gap-1.5 cursor-pointer"
>
<RefreshCw className={`w-3.5 h-3.5 ${loadingWallets ? 'animate-spin' : ''}`} />
بروزرسانی موجودی
</button>
</div>
<label className="relative inline-flex items-center cursor-pointer">
<input
type="checkbox"
className="sr-only peer"
checked={settings.PAY_GATEWAY_COD_ENABLE === 'true'}
onChange={(e) =>
setSettings({
...settings,
PAY_GATEWAY_COD_ENABLE: e.target.checked ? 'true' : 'false',
})
}
/>
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-amber-600"></div>
</label>
{wallets.length === 0 ? (
<p className="text-xs text-gray-500 py-4 text-center">
کیف‌پولی یافت نشد یا توکن دسترسی زیبال تنظیم نشده است.
</p>
) : (
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
{wallets.map((w: any) => (
<div key={w.id} className="p-4 rounded-xl bg-slate-50 border border-gray-200 space-y-2">
<div className="flex justify-between items-center">
<span className="font-bold text-sm text-gray-900">{w.name}</span>
<span className="text-[10px] bg-indigo-100 text-indigo-700 px-2 py-0.5 rounded font-mono">
ID: {w.id}
</span>
</div>
<div className="pt-2 border-t border-gray-100 flex justify-between text-xs font-bold">
<span className="text-gray-500">موجودی کل:</span>
<span className="text-gray-900 font-mono">{(Number(w.balance) / 10).toLocaleString()} تومان</span>
</div>
<div className="flex justify-between text-xs font-bold">
<span className="text-gray-500">قابل برداشت:</span>
<span className="text-emerald-600 font-mono">
{(Number(w.withdrawableBalance) / 10).toLocaleString()} تومان
</span>
</div>
</div>
))}
</div>
)}
</div>
{/* Refund Tool */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-4">
<h3 className="text-base font-black text-gray-900 border-b border-gray-100 pb-3 flex items-center gap-2">
<RotateCcw className="w-5 h-5 text-indigo-600" />
استرداد وجه تراکنش (Refund / Reverse)
</h3>
<form onSubmit={handleRefundSubmit} className="space-y-4">
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<div>
<label className="block text-xs font-bold text-gray-700 mb-1">شناسه تراکنش (Track ID) *</label>
<input
type="text"
required
value={refundData.trackId}
onChange={(e) => setRefundData({ ...refundData, trackId: e.target.value })}
placeholder="مثال: 2808993485"
className="w-full border border-gray-200 rounded-xl p-2.5 text-xs font-mono outline-none focus:ring-2 focus:ring-indigo-500"
dir="ltr"
/>
</div>
<div>
<label className="block text-xs font-bold text-gray-700 mb-1">مبلغ به تومان (اختیاری - خالی برای کل مبلغ)</label>
<input
type="number"
value={refundData.amount}
onChange={(e) => setRefundData({ ...refundData, amount: e.target.value })}
placeholder="کل مبلغ تراکنش"
className="w-full border border-gray-200 rounded-xl p-2.5 text-xs font-mono outline-none focus:ring-2 focus:ring-indigo-500"
dir="ltr"
/>
</div>
<div>
<label className="block text-xs font-bold text-gray-700 mb-1">شماره کارت مقصد (اختیاری)</label>
<input
type="text"
value={refundData.cardNumber}
onChange={(e) => setRefundData({ ...refundData, cardNumber: e.target.value })}
placeholder="شماره کارت ۱۶ رقمی"
className="w-full border border-gray-200 rounded-xl p-2.5 text-xs font-mono outline-none focus:ring-2 focus:ring-indigo-500"
dir="ltr"
/>
</div>
</div>
<div className="flex items-center gap-2 pt-2">
<input
type="checkbox"
id="tryReverse"
checked={refundData.tryReverse}
onChange={(e) => setRefundData({ ...refundData, tryReverse: e.target.checked })}
className="rounded text-indigo-600 focus:ring-indigo-500 cursor-pointer"
/>
<label htmlFor="tryReverse" className="text-xs font-bold text-gray-700 cursor-pointer">
اولویت با Reverse باشد (برگشت آنی قبل از تسویه شاپرک)
</label>
</div>
<div className="flex justify-end pt-2">
<button
type="submit"
disabled={isRefunding}
className="bg-rose-600 hover:bg-rose-700 text-white font-bold py-2.5 px-6 rounded-xl transition-colors flex items-center gap-2 cursor-pointer text-xs"
>
{isRefunding ? <Spinner size="sm" /> : <RotateCcw className="w-4 h-4" />}
<span>ارسال درخواست استرداد به زیبال</span>
</button>
</div>
</form>
</div>
</div>
</div>
)}
{/* Zibal Configuration Card */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-5">
<div className="flex items-center justify-between border-b border-gray-100 pb-3">
<h3 className="text-base font-black text-gray-900 flex items-center gap-2">
<ShieldCheck className="w-5 h-5 text-indigo-600" />
پیکربندی پایانه پرداخت زیبال (Zibal IPG Config)
</h3>
{settings.ZIBAL_MERCHANT === 'zibal' && (
<span className="bg-amber-100 text-amber-800 text-xs px-3 py-1 rounded-xl font-bold flex items-center gap-1">
<CheckCircle2 className="w-3.5 h-3.5" />
حالت آزمایشی (Sandbox)
</span>
)}
</div>
{activeTab === 'ebank' && (
<div className="space-y-6">
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-4">
<div className="flex items-center justify-between border-b border-gray-100 pb-3">
<h3 className="text-base font-black text-gray-900 flex items-center gap-2">
<Building2 className="w-5 h-5 text-indigo-600" />
حساب‌های متصل به بانکداری شرکتی زیبال
</h3>
<button
onClick={fetchEBank}
disabled={loadingEBank}
className="text-xs font-bold text-indigo-600 hover:text-indigo-800 flex items-center gap-1.5 cursor-pointer"
>
<RefreshCw className={`w-3.5 h-3.5 ${loadingEBank ? 'animate-spin' : ''}`} />
استعلام و بروزرسانی
</button>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-5">
<div>
<label className="block text-xs font-bold text-gray-700 mb-1.5">
کد مرچنت زیبال (Merchant ID) *
</label>
<input
type="text"
required
value={settings.ZIBAL_MERCHANT}
onChange={(e) => setSettings({ ...settings, ZIBAL_MERCHANT: e.target.value })}
placeholder="zibal یا کد مرچنت دریافتی"
className="w-full border border-gray-200 rounded-xl p-3 outline-none focus:ring-2 focus:ring-indigo-500 text-xs font-mono font-bold"
dir="ltr"
/>
<p className="text-[11px] text-gray-400 mt-1">
جهت فعال‌سازی درگاه زنده، مرچنت آی‌دی رسمی زیبال را در این کادر قرار دهید.
</p>
</div>
{ebankBalance && (
<div className="p-4 bg-emerald-50 border border-emerald-200 rounded-xl flex items-center justify-between">
<div>
<p className="text-xs text-emerald-800 font-bold">موجودی لحظه‌ای حساب مبدا:</p>
<p className="text-lg font-black text-emerald-950 font-mono mt-1">
{(Number(ebankBalance.balance || 0) / 10).toLocaleString()} تومان
</p>
</div>
<span className="text-[11px] text-emerald-700 bg-white/80 px-3 py-1 rounded-lg font-medium">
بروزرسانی: {ebankBalance.jalaliBalanceUpdatedAt || 'لحظه‌ای'}
</span>
</div>
)}
<div>
<label className="block text-xs font-bold text-gray-700 mb-1.5">
دامنه بازگشت پس از پرداخت (Frontend Return Domain) *
</label>
<input
type="text"
required
value={settings.FRONTEND_URL}
onChange={(e) => setSettings({ ...settings, FRONTEND_URL: e.target.value })}
placeholder="https://canina.ir"
className="w-full border border-gray-200 rounded-xl p-3 outline-none focus:ring-2 focus:ring-indigo-500 text-xs font-mono font-bold"
dir="ltr"
/>
<p className="text-[11px] text-gray-400 mt-1">
آدرس صفحه‌ای که نتیجه تراکنش به آن ارجاع داده می‌شود.
</p>
{ebankAccounts.length === 0 ? (
<p className="text-xs text-gray-500 py-4 text-center">
حسابی یافت نشد یا دسترسی بانکداری شرکتی فعال نیست.
</p>
) : (
<div className="divide-y divide-gray-100">
{ebankAccounts.map((acc: any) => (
<div key={acc.accountId} className="py-3 flex items-center justify-between">
<div>
<p className="text-sm font-bold text-gray-900">{acc.accountName || 'حساب شرکتی'}</p>
<p className="text-xs text-gray-500 font-mono mt-0.5">{acc.accountIban}</p>
</div>
<div className="text-left font-mono text-xs">
<span className="bg-slate-100 text-slate-700 px-2.5 py-1 rounded-md">
ID: {acc.accountId}
</span>
</div>
</div>
))}
</div>
)}
</div>
</div>
</div>
)}
<div className="flex justify-end">
<button
type="submit"
disabled={isSaving}
className="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-xl transition-colors flex items-center gap-2 shadow-md shadow-indigo-200 cursor-pointer"
>
{isSaving ? <Spinner size="sm" /> : <Save className="w-5 h-5" />}
<span>ذخیره تغییرات روش‌های پرداخت</span>
</button>
</div>
</form>
{activeTab === 'submerchants' && (
<div className="space-y-6">
{/* Add SubMerchant */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-4">
<h3 className="text-base font-black text-gray-900 border-b border-gray-100 pb-3 flex items-center gap-2">
<Users className="w-5 h-5 text-indigo-600" />
تعریف ذی‌نفع جدید جهت تسهیم خودکار
</h3>
<form onSubmit={handleCreateSubMerchant} className="grid grid-cols-1 md:grid-cols-3 gap-4 items-end">
<div>
<label className="block text-xs font-bold text-gray-700 mb-1">نام کامل صاحب حساب / ذی‌نفع *</label>
<input
type="text"
required
value={newSubMerchant.name}
onChange={(e) => setNewSubMerchant({ ...newSubMerchant, name: e.target.value })}
placeholder="مطابق با نام صاحب شبا"
className="w-full border border-gray-200 rounded-xl p-2.5 text-xs outline-none focus:ring-2 focus:ring-indigo-500"
/>
</div>
<div>
<label className="block text-xs font-bold text-gray-700 mb-1">شماره شبا (۲۴ رقمی با IR) *</label>
<input
type="text"
required
value={newSubMerchant.bankAccount}
onChange={(e) => setNewSubMerchant({ ...newSubMerchant, bankAccount: e.target.value })}
placeholder="IR120620000000246388553648"
className="w-full border border-gray-200 rounded-xl p-2.5 text-xs font-mono outline-none focus:ring-2 focus:ring-indigo-500"
dir="ltr"
/>
</div>
<button
type="submit"
className="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2.5 px-6 rounded-xl transition-colors text-xs cursor-pointer h-[42px]"
>
ثبت ذی‌نفع در زیبال
</button>
</form>
</div>
{/* List */}
<div className="bg-white p-6 rounded-2xl shadow-sm border border-gray-200 space-y-4">
<div className="flex items-center justify-between border-b border-gray-100 pb-3">
<h3 className="text-base font-black text-gray-900">لیست ذی‌نفعان ثبت‌شده</h3>
<button
onClick={fetchSubMerchants}
disabled={loadingSubMerchants}
className="text-xs font-bold text-indigo-600 hover:text-indigo-800 flex items-center gap-1.5 cursor-pointer"
>
<RefreshCw className={`w-3.5 h-3.5 ${loadingSubMerchants ? 'animate-spin' : ''}`} />
بروزرسانی
</button>
</div>
{subMerchants.length === 0 ? (
<p className="text-xs text-gray-500 py-4 text-center">ذی‌نفعی ثبت نشده است.</p>
) : (
<div className="divide-y divide-gray-100">
{subMerchants.map((sm: any) => (
<div key={sm.id} className="py-3 flex items-center justify-between">
<div>
<p className="text-sm font-bold text-gray-900">{sm.name}</p>
<p className="text-xs text-gray-500 font-mono mt-0.5">{sm.bankAccount}</p>
</div>
<span className="text-xs bg-slate-100 text-slate-700 px-2.5 py-1 rounded font-mono">
ID: {sm.id}
</span>
</div>
))}
</div>
)}
</div>
</div>
)}
</>
)}
</div>
);
@@ -38,6 +38,14 @@ export default function TrustSealsPage() {
icon: FileCheck,
color: 'from-blue-500 to-indigo-600',
},
{
title: 'درگاه پرداخت امن و معتبر زیبال (IPG)',
authority: 'شاپرک، بانک مرکزی و زیبال',
code: 'ZIBAL-GATEWAY-2026',
status: 'درگاه فعال و متصل',
icon: ShieldCheck,
color: 'from-indigo-500 to-blue-600',
},
{
title: 'گواهی اصالت و نمایندگی انحصاری',
authority: 'Canina pharma GmbH آلمان',
+25 -7
View File
@@ -174,13 +174,31 @@ export default function Footer({
</div>
</div>
{/* Official eNamad Clickable Seal */}
<div
className="bg-white p-2 rounded-xl shadow-md flex items-center justify-center flex-shrink-0 hover:scale-105 transition-transform"
dangerouslySetInnerHTML={{
__html: getText('ENAMAD_HTML_CODE', `<a referrerpolicy='origin' target='_blank' href='https://trustseal.enamad.ir/?id=765218&Code=dOdphRTqZwp3Kep5m07XwaqA0DTFh5ny'><img referrerpolicy='origin' src='https://trustseal.enamad.ir/logo.aspx?id=765218&Code=dOdphRTqZwp3Kep5m07XwaqA0DTFh5ny' alt='' style='cursor:pointer; width: 65px; height: 65px;' code='dOdphRTqZwp3Kep5m07XwaqA0DTFh5ny'></a>`)
}}
/>
<div className="flex items-center gap-3">
{/* Official eNamad Clickable Seal */}
<div
className="bg-white p-2 rounded-xl shadow-md flex items-center justify-center flex-shrink-0 hover:scale-105 transition-transform"
dangerouslySetInnerHTML={{
__html: getText('ENAMAD_HTML_CODE', `<a referrerpolicy='origin' target='_blank' href='https://trustseal.enamad.ir/?id=765218&Code=dOdphRTqZwp3Kep5m07XwaqA0DTFh5ny'><img referrerpolicy='origin' src='https://trustseal.enamad.ir/logo.aspx?id=765218&Code=dOdphRTqZwp3Kep5m07XwaqA0DTFh5ny' alt='اینماد رسمی کنینا' style='cursor:pointer; width: 65px; height: 65px;' code='dOdphRTqZwp3Kep5m07XwaqA0DTFh5ny'></a>`)
}}
/>
{/* Official Zibal IPG Trust Seal */}
<div className="bg-white p-2 rounded-xl shadow-md flex items-center justify-center flex-shrink-0 hover:scale-105 transition-transform">
<a
href="https://gateway.zibal.ir/trustMe/canina.ir"
target="_blank"
rel="noopener noreferrer"
title="درگاه پرداخت امن و معتبر زیبال"
>
<img
style={{ maxWidth: '65px', height: '65px', objectFit: 'contain' }}
src="https://zibal.ir/trust/assets/2.png"
alt="نماد اعتماد درگاه پرداخت زیبال"
/>
</a>
</div>
</div>
</div>
</div>
+38 -52
View File
@@ -1,26 +1,26 @@
{
"0": ".retryPayment",
"0": "OrdersService",
"1": "productService.ts",
"2": "CmsController",
"3": "app.module.ts",
"4": "ReviewsService",
"4": "CreateReviewDto",
"5": "tickets.controller.ts",
"6": "userStore.ts",
"6": "AuthService",
"7": "MediaSelector.tsx",
"8": "PetProfile.tsx",
"9": "components/Skeleton.tsx",
"10": "DoctorsService",
"11": "trust-seals/page.tsx",
"9": "Roles",
"10": "DoctorQueryDto",
"11": "MenuService",
"12": "adminRoutes.tsx",
"13": "PrismaService",
"14": "pets/pets.controller.ts",
"15": "ProductsService",
"16": "lib/services/api.ts",
"16": "UserDashboard.tsx",
"17": "CreateVideoDto",
"18": "src/services/api.ts",
"19": "auth.controller.ts",
"20": "BE-001",
"21": "Roles",
"21": "SmsService",
"22": "FE-001",
"23": "ADM-001",
"24": "DB-001",
@@ -29,57 +29,57 @@
"27": "DEVOPS-001",
"28": "DOC-001",
"29": "WholesaleService",
"30": "main.ts",
"30": "app-audit-verification.e2e-spec.js",
"31": "JwtAuthGuard",
"32": "ZibalService",
"33": "راهنمای تست سیستم (Software Testing)",
"34": "CategoriesController",
"35": "B2BService",
"36": "What You Must Do When Invoked",
"37": "toPersian",
"38": "UsersController",
"37": "lib/services/api.ts",
"38": "UsersService",
"39": "What You Must Do When Invoked",
"40": "SslController",
"41": "PodcastPlayerModal.tsx",
"42": "IngredientsService",
"43": "UsersService",
"44": "admin.module.ts",
"45": "Pagination.tsx",
"46": "SmsService",
"47": "OrdersService",
"43": "FaqService",
"44": "MediaController",
"45": "Media.tsx",
"46": "ContactService",
"47": "zibal.service.ts",
"48": "PrescriptionsService",
"49": "SmartAdvisorService",
"50": "TestimonialsService",
"51": "Role & Core Objective",
"52": "AuthController",
"53": "auth.module.ts",
"52": ".initiateOrderPayment",
"53": "ZibalEBankService",
"54": "compilerOptions",
"55": "Media.tsx",
"55": "PrescriptionsManager.tsx",
"56": "compilerOptions",
"57": "PetsController",
"58": "PaginationDto",
"59": "dependencies",
"60": "compilerOptions",
"61": "useSettingsStore",
"61": "HomeClient.tsx",
"62": "BlogsController",
"63": "reviews.controller.ts",
"63": "UpdateReviewDto",
"64": "BannersService",
"65": "Required Review Group Closures",
"66": "Coupons.tsx",
"67": "Operational Rules & Boundaries",
"68": "Operational Rules & Boundaries",
"69": "WikiController",
"70": "ApiOperation",
"71": "PetsController",
"70": "WikiController",
"71": ".update",
"72": "seo.module.ts",
"73": "admin.service.ts",
"73": "BlogsService",
"74": "🏢 AI Software Agency — Master Orchestration Protocol v3",
"75": "Operational Rules & Boundaries",
"76": "Operational Rules & Boundaries",
"77": "scripts",
"78": "Role & Core Objective",
"79": "HomeController",
"80": "VetGallery.tsx",
"80": "SafeImage.tsx",
"81": "devDependencies",
"82": "api",
"83": "Orders.tsx",
@@ -97,12 +97,12 @@
"95": "Operational Rules & Boundaries",
"96": "exclude",
"97": "jest",
"98": "AdminController",
"98": "AdminService",
"99": "Comprehensive Change Log",
"100": "Operational Rules & Boundaries",
"101": "UITexts.tsx",
"102": "BlogsController",
"103": "ProductDto",
"103": "payment.service.ts",
"104": "WikiService",
"105": "1. Summary of Integrity Repairs Performed",
"106": "@nestjs/cli",
@@ -110,8 +110,8 @@
"108": "Operational Rules & Boundaries",
"109": "Operational Rules & Boundaries",
"110": "AppService",
"111": "SmsLogQueryDto",
"112": "app-audit-verification.e2e-spec.js",
"111": "PetsController",
"112": "CreateEBankCheckoutDto",
"113": "Vazirmatn Changelog",
"114": "Vazirmatn Font فونت وزیرمتن",
"115": "Operational Rules & Boundaries",
@@ -128,7 +128,7 @@
"126": "Role & Core Objective",
"127": "orchestrate.py",
"128": "backend/package.json",
"129": "CreateOrderDto",
"129": "CreateReminderDto",
"130": "graphify reference: extra exports and benchmark",
"131": "Phase 2 Final Quality Gate Summary Report",
"132": "Task Modifications Log",
@@ -137,12 +137,12 @@
"135": "application/package.json",
"136": "generate-openapi.js",
"137": "PetsService",
"138": "payment.controller.ts",
"138": "InitiatePaymentDto",
"139": "System Discovery",
"140": "Product Requirement Document (PRD)",
"141": "WikiController",
"142": "seo.ts",
"143": "auth.service.ts",
"141": ".findAll",
"142": "OrderService",
"143": "admin.service.ts",
"144": "Baseline Command Plan & Reconciled Command History",
"145": "SmsSettingsPage.tsx",
"146": "ErrorPages.tsx",
@@ -167,13 +167,13 @@
"165": "rebuild_honest_ledger.js",
"166": "validate_evidence_grade.js",
"167": "supertest",
"168": "getSeoConfig",
"168": "zibal-ebank.service.ts",
"169": "API Contract Specification",
"170": "⚙️ Backend Technical Review (05_dev_backend)",
"171": "🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)",
"172": "🚀 SEO & Content Strategy Review (12_seo_content)",
"173": "@types/node",
"174": "BlogsService",
"174": "@types/react-dom",
"175": "seed-ui-texts.ts",
"176": "seed-wiki.ts",
"177": "update-blog.dto.ts",
@@ -185,7 +185,6 @@
"183": "Raw Finding Verification & Disposition Report",
"184": "React + TypeScript + Vite",
"185": "Select.tsx",
"186": "AdminService",
"187": "ts-node",
"188": "application/README.md",
"189": "@types/express",
@@ -213,8 +212,6 @@
"211": "@types/multer",
"212": "WholesaleApplyDto",
"213": "@testing-library/jest-dom",
"214": "PetsService",
"215": "VerifyOtpDto",
"216": "FormField.tsx",
"217": "Input.tsx",
"218": "Textarea.tsx",
@@ -231,16 +228,12 @@
"229": "eslint-plugin-react-refresh",
"230": "@tailwindcss/postcss",
"231": "typescript",
"232": "Body",
"233": "@testing-library/react",
"234": "@types/react",
"235": "typescript",
"236": "vitest",
"237": "axios",
"238": "AddressDto",
"239": "blog/page.tsx",
"240": "ts-loader",
"241": "contact/page.tsx",
"242": "@types/bcrypt",
"243": "app.e2e-spec.js",
"244": "blog.entity.ts",
@@ -290,22 +283,15 @@
"288": "Staging Docker Compose",
"289": "tailwindcss",
"290": "@types/passport-jwt",
"291": "NetworkBanner.tsx",
"291": "useSettingsStore",
"292": "@types/supertest",
"293": "typescript",
"294": "app-audit-verification.e2e-spec.d.ts",
"295": "app.e2e-spec.d.ts",
"296": "track/page.tsx",
"297": "ValidateCouponDto",
"298": "eslint-config-prettier",
"299": "catalog/page.tsx",
"300": "app/page.tsx",
"301": "videos/page.tsx",
"302": "RedisModule",
"303": "eslint-plugin-prettier",
"304": "eslint-config-next",
"305": "RouteErrorBoundary",
"309": "globals",
"310": "ReportsController",
"310": "admin.module.ts",
"312": "tailwindcss"
}
+1 -1
View File
@@ -1 +1 @@
{"0": "e470aabce4686aca", "1": "7a63357334c79101", "2": "f34c872571e8a774", "3": "c1ae2e21e30a99fc", "4": "f3a50d7571c070b8", "5": "2240106a1c3e59b2", "6": "acacdd0568fa443a", "7": "2add4e109ebd7e6b", "8": "08164398c15b4c77", "9": "5dc9ecb5476d9198", "10": "8744c3e2c5ef5deb", "11": "f6f85b389abb3f1e", "12": "974069a641b18374", "13": "914d0c877d7ff6da", "14": "0a5ab1753224e34a", "15": "6e9d532b692d931e", "16": "3d8489db0d61b7b8", "17": "a30bfe3dddce4f48", "18": "f841b633ae9885ba", "19": "dca7c3dc95ba1a6c", "20": "4eda46a5b0695ef6", "21": "e622fa27c589c4ae", "22": "90b79d6027d60d30", "23": "6bd6f2633370820c", "24": "7664e56213a29331", "25": "942c4f9928c60a45", "26": "0614b98d9013b5f5", "27": "53ff49b3d54f0fba", "28": "2153ddcd7477dfb7", "29": "5499104e9ca4fdad", "30": "af7d1f2bc84f43e2", "31": "1fca9384c92b9bc5", "32": "2c8f458e3dc7242b", "33": "1c9a1f4c72613346", "34": "c387d7ef8479ef21", "35": "6773d7a4fb812f03", "36": "7abb5bc6a0e4f65f", "37": "09d8de2f0915d9bc", "38": "7f879091783d601b", "39": "7dd5c61562c827a8", "40": "e6a9e884d8c67c3c", "41": "f74d29bd4f6b6043", "42": "29f765af5c45627b", "43": "cd2bdc8efda2620a", "44": "c0fd3492dac688cc", "45": "3d3ebff744952385", "46": "1d32eda6471c50d4", "47": "4f246c223200a4c8", "48": "25e7bde8680ef8c3", "49": "d1a1a4b1ee1041ff", "50": "e54878ad9c9a199e", "51": "0f62727f3b4907c0", "52": "3b30592d0704001b", "53": "f53f86d5ec35f0e8", "54": "7369e85febb97f1a", "55": "5419ef90cab3e3cd", "56": "01d4f9d6d9f3b08a", "57": "e2bda4d8806cbe01", "58": "00e268911bdb7616", "59": "1f914a584cbde781", "60": "3b9521f7d7986eaa", "61": "6b8a7e9be4a0972d", "62": "3b1909d07e8fb962", "63": "f9d392fa0bbe9cf4", "64": "97f26c6b5405e0d6", "65": "31a5a53f1fe77e46", "66": "8d410ade17f20001", "67": "69d0f8b228227690", "68": "22456307ff273d80", "69": "d9e74b032c5b8440", "70": "73d4eac3b01e519d", "71": "a1bc4162c9ec1bdc", "72": "62430df45afa65b5", "73": "308972713c9af54e", "74": "ba7bc17581366c9a", "75": "0727bb53199085fc", "76": "91393683c97d1773", "77": "b1fb8b1d0bcaa7fd", "78": "70497658d0e0cea6", "79": "4ece6985263357c4", "80": "74930b2eeba055ca", "81": "6e280669736f661b", "82": "8c69c1f2f4a74077", "83": "8c4c02353e3f3b15", "84": "841013681f4e6e8c", "85": "656f816eb51f2ab1", "86": "25a6695f5783d2be", "87": "bf5a253cc5340107", "88": "f7a706f5fcb260c3", "89": "71d2ce6fb684bc0e", "90": "acb5879cbd24a488", "91": "46e9411f2b2e725a", "92": "eced7a49a05de643", "93": "3c1d9844d072bd2a", "94": "f0f56796aaebb4f5", "95": "b3c5433df880f335", "96": "6cfdd09a6fdd9ff9", "97": "e036dbd1de0f8b38", "98": "fce05247ce9d02ea", "99": "ac7cb5ec7d5c0802", "100": "622f83f2eb300a25", "101": "1ccf271dde5845aa", "102": "50fda258b996220f", "103": "610fb4de52790b25", "104": "1ee682d3178edd99", "105": "6d16ccde1291c9d4", "106": "d7cad630fb1d1414", "107": "d228746e85ead3af", "108": "b55ba9125ffb5729", "109": "5f50a360f18a880b", "110": "c6b57d78299a27b3", "111": "8ffb30447853a689", "112": "842eaa2a668240a3", "113": "db70db08c00162df", "114": "9a1080686fc7c39b", "115": "77fd76193df9f573", "116": "28355f848c862b6e", "117": "25f77f5455bdc96a", "118": "9141a0ede9461fd5", "119": "051ba28e492dcfc6", "120": "3ceda88239910d9a", "121": "9409b3b8a334f51d", "122": "ac95a9f152e3d1c4", "123": "a7299f20633c0236", "124": "3fa5848ea651b5b2", "125": "7f405315686459b9", "126": "44c7924c829cc215", "127": "17ecb7325285cf7a", "128": "4487fd85ddc13c93", "129": "d13dd35a8c73fef2", "130": "c4abf0eb38ef740d", "131": "07d37aeefbe50e21", "132": "70b58e32c2890fdd", "133": "f2c7afb0c277c4b7", "134": "167643bcbbc26244", "135": "dcffd9ad7a1f7df6", "136": "1b0ef1cf87b53de3", "137": "7a15bcf51917680d", "138": "cd6c523962f04e80", "139": "c7ddffce8605b65b", "140": "5910eeefe2f97a20", "141": "f17c5fbca8a8e41e", "142": "1ce18dcac3d31b35", "143": "a44e115f9d4e4f11", "144": "66efafa1e86d8081", "145": "39d16c91943d85e4", "146": "48f898ce95c8e90c", "147": "a2fe690317aef2ee", "148": "e30004421d79ffeb", "149": "cd66a5f43cd3407d", "150": "fa2d7dcf52348095", "151": "78aa95566e86b57f", "152": "75efc6457f7fce22", "153": "8375a4fbf0573a52", "154": "edb079558c6f3d59", "155": "fc778d7a22e550eb", "156": "1d80b74f885d6716", "157": "f47469d48b3776b5", "158": "3cd15de82f23093a", "159": "7a77349497fcdf37", "160": "85cd9ca1246dc437", "161": "3e93071fc4a80e95", "162": "6114ccb7b9036e33", "163": "f3d92800d756dd79", "164": "2aa85a497fd142d7", "165": "35d3a2679371e9a4", "166": "b8f35a499b36a57a", "167": "8d1aad761b4c839d", "168": "e776e6021f9e088b", "169": "4ac5f9965007617d", "170": "cff999497d56b512", "171": "06b38ffa6f58195d", "172": "ee705c178d6958bb", "173": "6ddbf62ac93920e1", "174": "6058c28d2bab04d5", "175": "867babdd40f0c3fc", "176": "298144d1548a7dee", "177": "00d275127a7e435e", "178": "2942a9d30dae4a29", "179": "3e21e2fb50e12670", "180": "be62daa7d5bc336a", "181": "47c3e1a9d4bb7e67", "182": "82ff39c105ae3090", "183": "6747ecf936cb0400", "184": "ebc0087e3400009c", "185": "51d4e15c7e10decf", "186": "42101d4e4ceeef63", "187": "bbcea5ec9d046ac0", "188": "162b36508e5879f3", "189"Line truncated
{"0": "cd48ffe0da1c3aa1", "1": "2fb81b15874f8b6a", "2": "f34c872571e8a774", "3": "5a69079e83d3687c", "4": "712c0274a6f5a6eb", "5": "81b67391b0b87cab", "6": "54decf0dc3db231e", "7": "397e63727ddf7ad3", "8": "b8d8ab664b8ef3eb", "9": "caad443e5a7c7669", "10": "bbaf7539ddd300b0", "11": "48811b755a540f9e", "12": "974069a641b18374", "13": "041dcc9b231e8c18", "14": "0e290698fd1e38fc", "15": "8fb0bfac013b3325", "16": "c9a7bfd26b9dab6e", "17": "bf2e4069a3e06fe8", "18": "08cb5df39ca98415", "19": "0f87af5648bfc458", "20": "4eda46a5b0695ef6", "21": "ea74fe2ebcaeab2b", "22": "90b79d6027d60d30", "23": "6bd6f2633370820c", "24": "7664e56213a29331", "25": "942c4f9928c60a45", "26": "0614b98d9013b5f5", "27": "53ff49b3d54f0fba", "28": "2153ddcd7477dfb7", "29": "5499104e9ca4fdad", "30": "571266c2ba728290", "31": "6d76a7b3fa4137c6", "32": "d90ec336fcf752f0", "33": "1c9a1f4c72613346", "34": "f38c905c9af9edc0", "35": "4c59d1cd2ef8804b", "36": "7abb5bc6a0e4f65f", "37": "4a3064266a6726aa", "38": "db465b25c44f72af", "39": "7dd5c61562c827a8", "40": "cbaa20536db72d3e", "41": "f74d29bd4f6b6043", "42": "65e41c1c22dcd058", "43": "b73994254301dd0e", "44": "cf43e144340a5383", "45": "5bfa85cf56d5bec2", "46": "93d54dd865cba4db", "47": "e3d13e2060945d3f", "48": "73df605d6eec20d9", "49": "cb17af4eb831480f", "50": "b4c82af1f2f566f7", "51": "0f62727f3b4907c0", "52": "0548ec07ae271351", "53": "69f2014dab3c4a93", "54": "7369e85febb97f1a", "55": "d61902cf36455508", "56": "01d4f9d6d9f3b08a", "57": "e2bda4d8806cbe01", "58": "0eae63e2fe60ca65", "59": "1f914a584cbde781", "60": "3b9521f7d7986eaa", "61": "c3ca34eec6390bc7", "62": "cbccfd08dcc77edf", "63": "1d5a285b82178bd6", "64": "7478d6755ca2248a", "65": "31a5a53f1fe77e46", "66": "6b98d9d81eef3281", "67": "69d0f8b228227690", "68": "22456307ff273d80", "69": "d9e74b032c5b8440", "70": "0bf61615fa50a168", "71": "e5f59705d4b860a6", "72": "62430df45afa65b5", "73": "4c04313bd3ff2fc7", "74": "ba7bc17581366c9a", "75": "0727bb53199085fc", "76": "91393683c97d1773", "77": "b1fb8b1d0bcaa7fd", "78": "70497658d0e0cea6", "79": "4ece6985263357c4", "80": "7a31fedd8556ce2b", "81": "b1c3283bd55a8fe9", "82": "9a8c3b3ac02fdd64", "83": "8c4c02353e3f3b15", "84": "841013681f4e6e8c", "85": "656f816eb51f2ab1", "86": "25a6695f5783d2be", "87": "bf5a253cc5340107", "88": "f7a706f5fcb260c3", "89": "71d2ce6fb684bc0e", "90": "d3df0c0c38e7cc57", "91": "46e9411f2b2e725a", "92": "eced7a49a05de643", "93": "3c1d9844d072bd2a", "94": "f0f56796aaebb4f5", "95": "b3c5433df880f335", "96": "6cfdd09a6fdd9ff9", "97": "e036dbd1de0f8b38", "98": "273442dd0d088b96", "99": "ac7cb5ec7d5c0802", "100": "622f83f2eb300a25", "101": "1ccf271dde5845aa", "102": "5344715e437ec518", "103": "9b0eb2e9b68ff17d", "104": "0cd2ba710c85ae49", "105": "6d16ccde1291c9d4", "106": "d7cad630fb1d1414", "107": "d228746e85ead3af", "108": "b55ba9125ffb5729", "109": "5f50a360f18a880b", "110": "c6b57d78299a27b3", "111": "3037b2b82ea44c45", "112": "c4acedd7472cf7cb", "113": "db70db08c00162df", "114": "9a1080686fc7c39b", "115": "77fd76193df9f573", "116": "28355f848c862b6e", "117": "25f77f5455bdc96a", "118": "9141a0ede9461fd5", "119": "051ba28e492dcfc6", "120": "3ceda88239910d9a", "121": "9409b3b8a334f51d", "122": "ac95a9f152e3d1c4", "123": "a7299f20633c0236", "124": "00630e7f36492a23", "125": "7f405315686459b9", "126": "44c7924c829cc215", "127": "17ecb7325285cf7a", "128": "4487fd85ddc13c93", "129": "af64ebd98dd4a80d", "130": "c4abf0eb38ef740d", "131": "07d37aeefbe50e21", "132": "70b58e32c2890fdd", "133": "f2c7afb0c277c4b7", "134": "167643bcbbc26244", "135": "dcffd9ad7a1f7df6", "136": "1b0ef1cf87b53de3", "137": "4937232fc9cf1c68", "138": "34581929891cefb2", "139": "c7ddffce8605b65b", "140": "5910eeefe2f97a20", "141": "96d87080e1586a3d", "142": "81c4329d470b7826", "143": "5936d546c7c842a9", "144": "66efafa1e86d8081", "145": "39d16c91943d85e4", "146": "48f898ce95c8e90c", "147": "a2fe690317aef2ee", "148": "e30004421d79ffeb", "149": "cd66a5f43cd3407d", "150": "fa2d7dcf52348095", "151": "78aa95566e86b57f", "152": "75efc6457f7fce22", "153": "8375a4fbf0573a52", "154": "edb079558c6f3d59", "155": "fc778d7a22e550eb", "156": "1d80b74f885d6716", "157": "f47469d48b3776b5", "158": "3cd15de82f23093a", "159": "7a77349497fcdf37", "160": "85cd9ca1246dc437", "161": "3e93071fc4a80e95", "162": "6114ccb7b9036e33", "163": "f3d92800d756dd79", "164": "2aa85a497fd142d7", "165": "35d3a2679371e9a4", "166": "b8f35a499b36a57a", "167": "8d1aad761b4c839d", "168": "33578ddbaeb64b90", "169": "4ac5f9965007617d", "170": "cff999497d56b512", "171": "06b38ffa6f58195d", "172": "ee705c178d6958bb", "173": "6ddbf62ac93920e1", "174": "4ab8ffab1d51ca61", "175": "867babdd40f0c3fc", "176": "298144d1548a7dee", "177": "00d275127a7e435e", "178": "2942a9d30dae4a29", "179": "3e21e2fb50e12670", "180": "be62daa7d5bc336a", "181": "47c3e1a9d4bb7e67", "182": "82ff39c105ae3090", "183": "6747ecf936cb0400", "184": "ebc0087e3400009c", "185": "51d4e15c7e10decf", "187": "bbcea5ec9d046ac0", "188": "162b36508e5879f3", "189": "5eb83040a203bd16", "190"Line truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,311 @@
{
"0": ".retryPayment",
"1": "productService.ts",
"2": "CmsController",
"3": "app.module.ts",
"4": "ReviewsService",
"5": "tickets.controller.ts",
"6": "userStore.ts",
"7": "MediaSelector.tsx",
"8": "PetProfile.tsx",
"9": "components/Skeleton.tsx",
"10": "DoctorsService",
"11": "trust-seals/page.tsx",
"12": "adminRoutes.tsx",
"13": "PrismaService",
"14": "pets/pets.controller.ts",
"15": "ProductsService",
"16": "lib/services/api.ts",
"17": "CreateVideoDto",
"18": "src/services/api.ts",
"19": "auth.controller.ts",
"20": "BE-001",
"21": "Roles",
"22": "FE-001",
"23": "ADM-001",
"24": "DB-001",
"25": "TS-001",
"26": "TEST-001",
"27": "DEVOPS-001",
"28": "DOC-001",
"29": "WholesaleService",
"30": "main.ts",
"31": "JwtAuthGuard",
"32": "ZibalService",
"33": "راهنمای تست سیستم (Software Testing)",
"34": "CategoriesController",
"35": "B2BService",
"36": "What You Must Do When Invoked",
"37": "toPersian",
"38": "UsersController",
"39": "What You Must Do When Invoked",
"40": "SslController",
"41": "PodcastPlayerModal.tsx",
"42": "IngredientsService",
"43": "UsersService",
"44": "admin.module.ts",
"45": "Pagination.tsx",
"46": "SmsService",
"47": "OrdersService",
"48": "PrescriptionsService",
"49": "SmartAdvisorService",
"50": "TestimonialsService",
"51": "Role & Core Objective",
"52": "AuthController",
"53": "auth.module.ts",
"54": "compilerOptions",
"55": "Media.tsx",
"56": "compilerOptions",
"57": "PetsController",
"58": "PaginationDto",
"59": "dependencies",
"60": "compilerOptions",
"61": "useSettingsStore",
"62": "BlogsController",
"63": "reviews.controller.ts",
"64": "BannersService",
"65": "Required Review Group Closures",
"66": "Coupons.tsx",
"67": "Operational Rules & Boundaries",
"68": "Operational Rules & Boundaries",
"69": "WikiController",
"70": "ApiOperation",
"71": "PetsController",
"72": "seo.module.ts",
"73": "admin.service.ts",
"74": "🏢 AI Software Agency — Master Orchestration Protocol v3",
"75": "Operational Rules & Boundaries",
"76": "Operational Rules & Boundaries",
"77": "scripts",
"78": "Role & Core Objective",
"79": "HomeController",
"80": "VetGallery.tsx",
"81": "devDependencies",
"82": "api",
"83": "Orders.tsx",
"84": "devDependencies",
"85": "seed-products.ts",
"86": "Reconciled Audit Roles & Assignments",
"87": "20260526145407_init/migration.sql",
"88": "Phase 3.1 — Human Review Preparation and Master Backlog Critique",
"89": "dependencies",
"90": "ProductPage.tsx",
"91": "compilerOptions",
"92": "scripts",
"93": "Deep Audit Summary Report",
"94": "dependencies",
"95": "Operational Rules & Boundaries",
"96": "exclude",
"97": "jest",
"98": "AdminController",
"99": "Comprehensive Change Log",
"100": "Operational Rules & Boundaries",
"101": "UITexts.tsx",
"102": "BlogsController",
"103": "ProductDto",
"104": "WikiService",
"105": "1. Summary of Integrity Repairs Performed",
"106": "@nestjs/cli",
"107": "Operational Rules & Boundaries",
"108": "Operational Rules & Boundaries",
"109": "Operational Rules & Boundaries",
"110": "AppService",
"111": "SmsLogQueryDto",
"112": "app-audit-verification.e2e-spec.js",
"113": "Vazirmatn Changelog",
"114": "Vazirmatn Font فونت وزیرمتن",
"115": "Operational Rules & Boundaries",
"116": "compilerOptions",
"117": "compilerOptions",
"118": "backend/README.md",
"119": "devDependencies",
"120": "Repository Map",
"121": "validate_integrity.js",
"122": "admin-panel/package.json",
"123": "Sahel-Font",
"124": "Spinner.tsx",
"125": "Sahel-Font",
"126": "Role & Core Objective",
"127": "orchestrate.py",
"128": "backend/package.json",
"129": "CreateOrderDto",
"130": "graphify reference: extra exports and benchmark",
"131": "Phase 2 Final Quality Gate Summary Report",
"132": "Task Modifications Log",
"133": "Install",
"134": "ErrorBoundary",
"135": "application/package.json",
"136": "generate-openapi.js",
"137": "PetsService",
"138": "payment.controller.ts",
"139": "System Discovery",
"140": "Product Requirement Document (PRD)",
"141": "WikiController",
"142": "seo.ts",
"143": "auth.service.ts",
"144": "Baseline Command Plan & Reconciled Command History",
"145": "SmsSettingsPage.tsx",
"146": "ErrorPages.tsx",
"147": "with-vpn.sh",
"148": "Architecture Specification",
"149": "Project Health Audit Report",
"150": "nest-cli.json",
"151": "prettier",
"152": "graphify reference: query, path, explain",
"153": "Open Questions",
"154": "Final Phase 2 Audit Closure Report",
"155": "prisma",
"156": "open-browsers.js",
"157": "start-dev.js",
"158": "📝 Active Agent Working Scratchpad",
"159": "🔍 Code Health Audit Review (01_auditor)",
"160": "paginated-response.schema.ts",
"161": "Vazirmatn Font README",
"162": "Omitted File Inspection Report",
"163": "Phase 3.2 / 3.3 — Implementation Readiness & Architectural Finalization Report",
"164": "Phase 3 Audit Traceability Matrix",
"165": "rebuild_honest_ledger.js",
"166": "validate_evidence_grade.js",
"167": "supertest",
"168": "getSeoConfig",
"169": "API Contract Specification",
"170": "⚙️ Backend Technical Review (05_dev_backend)",
"171": "🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)",
"172": "🚀 SEO & Content Strategy Review (12_seo_content)",
"173": "@types/node",
"174": "BlogsService",
"175": "seed-ui-texts.ts",
"176": "seed-wiki.ts",
"177": "update-blog.dto.ts",
"178": "update-home.dto.ts",
"179": "update-wiki.dto.ts",
"180": "graphify reference: add a URL and watch a folder",
"181": "graphify reference: commit hook and native CLAUDE.md integration",
"182": "graphify reference: incremental update and cluster-only",
"183": "Raw Finding Verification & Disposition Report",
"184": "React + TypeScript + Vite",
"185": "Select.tsx",
"186": "AdminService",
"187": "ts-node",
"188": "application/README.md",
"189": "@types/express",
"190": "deploy.sh",
"191": "🔒 Security & Performance Review (09_devops_security)",
"192": "👁️ UX & Persona Interface Review (08_visual_qa)",
"193": "@types/jest",
"194": "typescript-eslint",
"195": "20260526160916_add_ui_texts_and_scientific_terms/migration.sql",
"196": "prisma/scientificTerms.ts",
"197": "seed-blogs.ts",
"198": "seed-custom.ts",
"199": "@types/js-yaml",
"200": "graphify reference: GitHub clone and cross-repo merge",
"201": "graphify reference: transcribe video and audio",
"202": "Compiler Diagnostic Dispositions",
"203": "Master Task Backlog (Phase 3.3)",
"204": "build_manifest.js",
"205": "generate_classification.js",
"206": "generate_evidence.js",
"207": "generate_ledger.js",
"208": "generate_manifest.js",
"209": "sync_honest_manifest.js",
"210": "sync_manifest.js",
"211": "@types/multer",
"212": "WholesaleApplyDto",
"213": "@testing-library/jest-dom",
"214": "PetsService",
"215": "VerifyOtpDto",
"216": "FormField.tsx",
"217": "Input.tsx",
"218": "Textarea.tsx",
"219": "admin-panel/tsconfig.json",
"220": "getPageMetadata",
"221": "CreateHealthLogDto",
"222": "next.config.ts",
"223": "Shabnam Font README",
"224": "AGENTS.md",
"225": "rules/graphify.md",
"226": ".agents/workflows/graphify.md",
"227": "instructions.md",
"228": "eslint-plugin-react-hooks",
"229": "eslint-plugin-react-refresh",
"230": "@tailwindcss/postcss",
"231": "typescript",
"232": "Body",
"233": "@testing-library/react",
"234": "@types/react",
"235": "typescript",
"236": "vitest",
"237": "axios",
"238": "AddressDto",
"239": "blog/page.tsx",
"240": "ts-loader",
"241": "contact/page.tsx",
"242": "@types/bcrypt",
"243": "app.e2e-spec.js",
"244": "blog.entity.ts",
"245": "home.entity.ts",
"246": "wiki.entity.ts",
"247": "User Profile Photo",
"248": "CLAUDE.md",
"249": ".claude/CLAUDE.md",
"250": "extraction-spec.md",
"251": "Products Table",
"252": "Users Table",
"253": "Architectural Audit Findings",
"254": "Cross Boundary Dependencies & Backend Architecture Specification",
"255": "Next.js Agent Rules & Brand Guidelines",
"256": "robots.ts",
"257": "application/eslint.config.mjs",
"258": "postcss.config.mjs",
"259": "vitest.setup.ts",
"260": "backup_db.sh",
"261": "start.sh",
"262": "reviews/README.md",
"263": "backend/eslint.config.mjs",
"264": "User Login API",
"265": "User Logout API",
"266": "generate-openapi.d.ts",
"267": "Canina Pharma GmbH",
"268": "Pets Table",
"269": "Canina Iran Project Introduction",
"270": "Developer Standards and Architecture",
"271": "Frontend & Admin Architecture Route Map Specification",
"272": "Project Backlog and Tasks",
"273": "eslint.config.js",
"274": "postcss.config.js",
"275": "admin-panel/public/fonts/sahel-font-v3.4.0/CHANGELOG.md",
"276": "shabnam-font-v5.0.1/CHANGELOG.md",
"277": "tailwind.config.js",
"278": "vite.config.ts",
"279": "application/CLAUDE.md",
"280": "application/public/fonts/sahel-font-v3.4.0/CHANGELOG.md",
"281": "Sahel Font Sample",
"282": "Shabnam Font Changelog",
"283": "Vazirmatn Changelog",
"284": "vitest.config.ts",
"285": "Sahel Font Variable Sample",
"286": "Shabnam Font Sample",
"287": "Production Docker Compose",
"288": "Staging Docker Compose",
"289": "tailwindcss",
"290": "@types/passport-jwt",
"291": "NetworkBanner.tsx",
"292": "@types/supertest",
"293": "typescript",
"294": "app-audit-verification.e2e-spec.d.ts",
"295": "app.e2e-spec.d.ts",
"296": "track/page.tsx",
"297": "ValidateCouponDto",
"298": "eslint-config-prettier",
"299": "catalog/page.tsx",
"300": "app/page.tsx",
"301": "videos/page.tsx",
"302": "RedisModule",
"303": "eslint-plugin-prettier",
"304": "eslint-config-next",
"305": "RouteErrorBoundary",
"309": "globals",
"310": "ReportsController",
"312": "tailwindcss"
}
@@ -0,0 +1 @@
{"output_tokens": 7105}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+221 -271
View File
@@ -1,42 +1,42 @@
# Graph Report - canina (2026-08-19)
# Graph Report - canina (2026-08-22)
## Corpus Check
- 522 files · ~745,025 words
- 535 files · ~755,051 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 3702 nodes · 6325 edges · 309 communities (206 shown, 103 thin omitted)
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 230 edges (avg confidence: 0.79)
- 3882 nodes · 6817 edges · 295 communities (197 shown, 98 thin omitted)
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 259 edges (avg confidence: 0.79)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `df634fdb`
- Built from commit: `7203915e`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
## Community Hubs (Navigation)
- .retryPayment
- OrdersService
- productService.ts
- CmsController
- app.module.ts
- ReviewsService
- CreateReviewDto
- tickets.controller.ts
- userStore.ts
- AuthService
- MediaSelector.tsx
- PetProfile.tsx
- components/Skeleton.tsx
- DoctorsService
- trust-seals/page.tsx
- Roles
- DoctorQueryDto
- MenuService
- adminRoutes.tsx
- PrismaService
- pets/pets.controller.ts
- ProductsService
- lib/services/api.ts
- UserDashboard.tsx
- CreateVideoDto
- src/services/api.ts
- auth.controller.ts
- BE-001
- Roles
- SmsService
- FE-001
- ADM-001
- DB-001
@@ -45,57 +45,57 @@
- DEVOPS-001
- DOC-001
- WholesaleService
- main.ts
- app-audit-verification.e2e-spec.js
- JwtAuthGuard
- ZibalService
- راهنمای تست سیستم (Software Testing)
- CategoriesController
- B2BService
- What You Must Do When Invoked
- toPersian
- UsersController
- lib/services/api.ts
- UsersService
- What You Must Do When Invoked
- SslController
- PodcastPlayerModal.tsx
- IngredientsService
- UsersService
- admin.module.ts
- Pagination.tsx
- SmsService
- OrdersService
- FaqService
- MediaController
- Media.tsx
- ContactService
- zibal.service.ts
- PrescriptionsService
- SmartAdvisorService
- TestimonialsService
- Role & Core Objective
- AuthController
- auth.module.ts
- .initiateOrderPayment
- ZibalEBankService
- compilerOptions
- Media.tsx
- PrescriptionsManager.tsx
- compilerOptions
- PetsController
- PaginationDto
- dependencies
- compilerOptions
- useSettingsStore
- HomeClient.tsx
- BlogsController
- reviews.controller.ts
- UpdateReviewDto
- BannersService
- Required Review Group Closures
- Coupons.tsx
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- WikiController
- ApiOperation
- PetsController
- WikiController
- .update
- seo.module.ts
- admin.service.ts
- BlogsService
- 🏢 AI Software Agency — Master Orchestration Protocol v3
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- scripts
- Role & Core Objective
- HomeController
- VetGallery.tsx
- SafeImage.tsx
- devDependencies
- api
- Orders.tsx
@@ -113,12 +113,12 @@
- Operational Rules & Boundaries
- exclude
- jest
- AdminController
- AdminService
- Comprehensive Change Log
- Operational Rules & Boundaries
- UITexts.tsx
- BlogsController
- ProductDto
- payment.service.ts
- WikiService
- 1. Summary of Integrity Repairs Performed
- @nestjs/cli
@@ -126,8 +126,8 @@
- Operational Rules & Boundaries
- Operational Rules & Boundaries
- AppService
- SmsLogQueryDto
- app-audit-verification.e2e-spec.js
- PetsController
- CreateEBankCheckoutDto
- Vazirmatn Changelog
- Vazirmatn Font فونت وزیرمتن
- Operational Rules & Boundaries
@@ -144,7 +144,7 @@
- Role & Core Objective
- orchestrate.py
- backend/package.json
- CreateOrderDto
- CreateReminderDto
- graphify reference: extra exports and benchmark
- Phase 2 Final Quality Gate Summary Report
- Task Modifications Log
@@ -153,12 +153,12 @@
- application/package.json
- generate-openapi.js
- PetsService
- payment.controller.ts
- InitiatePaymentDto
- System Discovery
- Product Requirement Document (PRD)
- WikiController
- seo.ts
- auth.service.ts
- .findAll
- OrderService
- admin.service.ts
- Baseline Command Plan & Reconciled Command History
- SmsSettingsPage.tsx
- ErrorPages.tsx
@@ -183,13 +183,13 @@
- rebuild_honest_ledger.js
- validate_evidence_grade.js
- supertest
- getSeoConfig
- zibal-ebank.service.ts
- API Contract Specification
- ⚙️ Backend Technical Review (05_dev_backend)
- 🎨 Frontend & Admin Panel Technical Review (06_dev_frontend)
- 🚀 SEO & Content Strategy Review (12_seo_content)
- @types/node
- BlogsService
- @types/react-dom
- seed-ui-texts.ts
- seed-wiki.ts
- update-blog.dto.ts
@@ -201,7 +201,6 @@
- Raw Finding Verification & Disposition Report
- React + TypeScript + Vite
- Select.tsx
- AdminService
- ts-node
- application/README.md
- @types/express
@@ -229,8 +228,6 @@
- @types/multer
- WholesaleApplyDto
- @testing-library/jest-dom
- PetsService
- VerifyOtpDto
- FormField.tsx
- Input.tsx
- Textarea.tsx
@@ -247,15 +244,11 @@
- eslint-plugin-react-refresh
- @tailwindcss/postcss
- typescript
- Body
- @testing-library/react
- @types/react
- typescript
- vitest
- AddressDto
- blog/page.tsx
- ts-loader
- contact/page.tsx
- @types/bcrypt
- app.e2e-spec.js
- blog.entity.ts
@@ -291,34 +284,27 @@
- Production Docker Compose
- Staging Docker Compose
- @types/passport-jwt
- NetworkBanner.tsx
- useSettingsStore
- @types/supertest
- typescript
- track/page.tsx
- ValidateCouponDto
- eslint-config-prettier
- catalog/page.tsx
- app/page.tsx
- videos/page.tsx
- RedisModule
- eslint-plugin-prettier
- eslint-config-next
- RouteErrorBoundary
- globals
- ReportsController
- admin.module.ts
- tailwindcss
## God Nodes (most connected - your core abstractions)
1. `PrismaService` - 81 edges
2. `Roles()` - 75 edges
3. `useSettingsStore` - 47 edges
1. `Roles()` - 103 edges
2. `PrismaService` - 87 edges
3. `useSettingsStore` - 51 edges
4. `SmsService` - 42 edges
5. `api` - 40 edges
6. `PaginationDto` - 39 edges
7. `AdminService` - 34 edges
8. `AdminController` - 33 edges
9. `getPageMetadata()` - 33 edges
10. `JwtAuthGuard` - 32 edges
5. `api` - 42 edges
6. `PaginationDto` - 41 edges
7. `ZibalService` - 37 edges
8. `JwtAuthGuard` - 35 edges
9. `AdminService` - 34 edges
10. `PaymentController` - 34 edges
## Surprising Connections (you probably didn't know these)
- `User Profile Photo` --conceptually_related_to--> `User Roles and Capabilities` [INFERRED]
@@ -341,51 +327,51 @@
- **Rastikerdar Font Ecosystem** — frontend_application_public_fonts_shabnam_font_v5_0_1_readme, frontend_application_public_fonts_vazirmatn_v33_003_readme, vazir_font [EXTRACTED 0.95]
- **Canina Deployment Stack** — scripts_compose_prod, scripts_compose_stage [EXTRACTED 1.00]
## Communities (309 total, 103 thin omitted)
## Communities (295 total, 98 thin omitted)
### Community 0 - ".retryPayment"
Cohesion: 0.15
Nodes (11): ApiBadRequestResponse, ApiCreatedResponse, ApiNotFoundResponse, ApiOkResponse, ApiOperation, Body, Get, Param (+3 more)
### Community 0 - "OrdersService"
Cohesion: 0.06
Nodes (35): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+27 more)
### Community 1 - "productService.ts"
Cohesion: 0.08
Nodes (28): BlogPost, CatalogPageSpread(), CatalogPageSpreadProps, CategoryMeta, getFormBadge(), getSpeciesBadge(), FlipbookCatalog(), FlipbookCatalogProps (+20 more)
Cohesion: 0.07
Nodes (32): Blog(), generateMetadata(), getBlogs(), CatalogClient(), generateMetadata(), BlogPage(), BlogPost, CatalogPageSpread() (+24 more)
### Community 2 - "CmsController"
Cohesion: 0.09
Nodes (24): CmsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+16 more)
### Community 3 - "app.module.ts"
Cohesion: 0.08
Nodes (30): B2BModule, Module, BannersModule, Module, CmsModule, Module, SmsModule, Global (+22 more)
Cohesion: 0.06
Nodes (44): AuthModule, Module, B2BModule, Module, BannersModule, Module, CmsModule, Module (+36 more)
### Community 4 - "ReviewsService"
Cohesion: 0.12
Nodes (16): ReviewsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
### Community 4 - "CreateReviewDto"
Cohesion: 0.08
Nodes (24): CreateReviewDto, ApiProperty, IsInt, IsNotEmpty, IsOptional, IsString, Min, ReviewsController (+16 more)
### Community 5 - "tickets.controller.ts"
Cohesion: 0.09
Nodes (31): AdminUpdateTicketDto, CreateTicketDto, ReplyTicketDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString (+23 more)
### Community 6 - "userStore.ts"
Cohesion: 0.10
Nodes (15): AddressModal(), AddressModalProps, SearchableSelect(), SearchableSelectProps, IRAN_PROVINCES, PROVINCE_CITIES, ApiErr, AuthResponse (+7 more)
Nodes (29): AdminUpdateTicketDto, CreateTicketDto, ReplyTicketDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString (+21 more)
### Community 7 - "MediaSelector.tsx"
Cohesion: 0.07
Nodes (27): ConfirmModal(), ConfirmModalProps, getFileType(), Media, MediaSelector(), MediaSelectorProps, BlogPost, Category (+19 more)
Cohesion: 0.08
Nodes (26): ConfirmModal(), ConfirmModalProps, ImagePreviewModal(), ImagePreviewModalProps, getFileType(), Media, MediaSelector(), MediaSelectorProps (+18 more)
### Community 8 - "PetProfile.tsx"
Cohesion: 0.14
Nodes (15): Header(), MENU_ICONS, OrderSuccess(), PrescriptionUploadModal(), PrescriptionUploadModalProps, CURRENT_SYMPTOMS, MEDICAL_HISTORIES, SmartAdvisorProps (+7 more)
### Community 9 - "components/Skeleton.tsx"
Cohesion: 0.29
Nodes (5): OrderRowSkeleton(), PetProfileSkeleton(), ProductCardSkeleton(), Skeleton(), SkeletonProps
### Community 10 - "DoctorsService"
Cohesion: 0.12
Nodes (16): DoctorsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
Nodes (18): ArchiveProductCard(), CATEGORY_MAP, ICON_MAP, FeaturedProducts(), ProductCard(), OrderSuccess(), OrderRowSkeleton(), PetProfileSkeleton() (+10 more)
### Community 9 - "Roles"
Cohesion: 0.25
Nodes (13): Roles(), PaymentController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get (+5 more)
### Community 10 - "DoctorQueryDto"
Cohesion: 0.09
Nodes (24): DoctorsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+16 more)
### Community 11 - "MenuService"
Cohesion: 0.12
Nodes (16): MenuController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
### Community 12 - "adminRoutes.tsx"
Cohesion: 0.09
@@ -393,39 +379,39 @@ Nodes (16): App(), HeroBanner, VetTestimonial, ContactInfoItem, ContactSubmissio
### Community 13 - "PrismaService"
Cohesion: 0.08
Nodes (16): ApiExcludeController, MetricsController, Controller, Get, Res, MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions (+8 more)
Nodes (18): CategoryQuery, WikiQuery, AdminLoginInput, LoginInput, RegisterInput, MeliPayamakPattern, MeliPayamakResponse, SendPatternSmsOptions (+10 more)
### Community 14 - "pets/pets.controller.ts"
Cohesion: 0.11
Nodes (19): CreatePetDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional, IsString (+11 more)
Cohesion: 0.16
Nodes (13): CreatePetDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional, IsString (+5 more)
### Community 15 - "ProductsService"
Cohesion: 0.10
Nodes (17): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, ProductsController, ApiOperation, ApiTags (+9 more)
Cohesion: 0.09
Nodes (19): GetProductsDto, ApiPropertyOptional, IsEnum, IsOptional, IsString, ProductsController, ApiOperation, ApiTags (+11 more)
### Community 16 - "lib/services/api.ts"
Cohesion: 0.07
Nodes (26): ContactInfoItem, DeleteConfirmModal(), DeleteConfirmModalProps, OrderDetailsModal(), OrderDetailsModalProps, PRESET_AMOUNTS, TopUpModal(), TopUpModalProps (+18 more)
### Community 16 - "UserDashboard.tsx"
Cohesion: 0.11
Nodes (21): AddressModal(), AddressModalProps, BackButton(), BackButtonProps, CheckoutPage(), DeleteConfirmModal(), DeleteConfirmModalProps, HeaderButton() (+13 more)
### Community 17 - "CreateVideoDto"
Cohesion: 0.07
Nodes (32): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+24 more)
Cohesion: 0.08
Nodes (29): CreateVideoDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString, UpdateVideoDto (+21 more)
### Community 18 - "src/services/api.ts"
Cohesion: 0.10
Nodes (23): ProtectedRoute(), SEARCHABLE_PAGES, Topbar(), TopbarProps, Login(), B2BManager, SmartAdvisorManager, SystemSettingsPage (+15 more)
Cohesion: 0.09
Nodes (25): ProtectedRoute(), SEARCHABLE_PAGES, Topbar(), TopbarProps, Login(), B2BManager, SeoSettingsPage, SmartAdvisorManager (+17 more)
### Community 19 - "auth.controller.ts"
Cohesion: 0.08
Nodes (24): AdminLoginDto, ApiProperty, IsEmail, IsNotEmpty, IsString, MinLength, LoginDto, ApiProperty (+16 more)
Cohesion: 0.06
Nodes (42): AuthController, ApiBadRequestResponse, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+34 more)
### Community 20 - "BE-001"
Cohesion: 0.06
Nodes (32): Acceptance Criteria, Affected Application, Affected Files, Alternative Direction, BE-001, Category, Completion Statement, Confidence (+24 more)
### Community 21 - "Roles"
Cohesion: 0.07
Nodes (29): Roles(), ContactController, Body, Controller, Get, Param, Post, Put (+21 more)
### Community 21 - "SmsService"
Cohesion: 0.06
Nodes (27): SmsService, Injectable, SmsLogQueryDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString (+19 more)
### Community 22 - "FE-001"
Cohesion: 0.06
@@ -459,25 +445,25 @@ Nodes (31): Acceptance Criteria, Affected Application, Affected Files, Alternati
Cohesion: 0.14
Nodes (14): ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param, Post (+6 more)
### Community 30 - "main.ts"
Cohesion: 0.11
Nodes (11): AppModule, Module, CustomHttpExceptionFilter, Catch, PrismaExceptionFilter, Catch, DecimalInterceptor, Injectable (+3 more)
### Community 30 - "app-audit-verification.e2e-spec.js"
Cohesion: 0.07
Nodes (22): AppModule, Module, CustomHttpExceptionFilter, Catch, PrismaExceptionFilter, Catch, DecimalInterceptor, Injectable (+14 more)
### Community 31 - "JwtAuthGuard"
Cohesion: 0.19
Cohesion: 0.18
Nodes (7): JwtAuthGuard, Injectable, ROLES_KEY, RequestWithUser, RolesGuard, Injectable, UserReqPayload
### Community 32 - "ZibalService"
Cohesion: 0.05
Nodes (42): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString, Type, ApiPropertyOptional (+34 more)
Cohesion: 0.09
Nodes (4): PaymentService, Injectable, Injectable, ZibalService
### Community 33 - "راهنمای تست سیستم (Software Testing)"
Cohesion: 0.07
Nodes (25): اجرای بک‌اند, اجرای فرانت‌اند, اجرای پروژه در سرور با PM2, برای راه‌اندازی بک‌اند:, برای راه‌اندازی فرانت‌اند Next.js:, بیلد کردن پروژه (Building), ذخیره پروسه‌ها تا پس از ری‌استارت سرور قطع نشوند:, راه‌اندازی و انتشار سیستم (Setup & Deployment) (+17 more)
### Community 34 - "CategoriesController"
Cohesion: 0.09
Nodes (17): CategoriesController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+9 more)
Cohesion: 0.10
Nodes (16): CategoriesController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
### Community 35 - "B2BService"
Cohesion: 0.13
@@ -487,77 +473,77 @@ Nodes (15): B2BController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controlle
Cohesion: 0.07
Nodes (26): For /graphify add and --watch, For /graphify query, For the commit hook and native CLAUDE.md integration, For --update and --cluster-only, /graphify, Honesty Rules, Interpreter guard for subcommands, Part A - Structural extraction for code files (+18 more)
### Community 37 - "toPersian"
Cohesion: 0.14
Nodes (27): ClientLayout(), VerifyContent(), ArchiveProductCard(), AuthModal(), AuthModalProps, extractOtpFromText(), B2BPortal(), BackButton() (+19 more)
### Community 37 - "lib/services/api.ts"
Cohesion: 0.08
Nodes (40): VerifyContent(), AuthModal(), AuthModalProps, extractOtpFromText(), B2BPortal(), BlogPost, BlogPreviewSection(), CartDrawer() (+32 more)
### Community 38 - "UsersController"
Cohesion: 0.21
Nodes (16): ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+8 more)
### Community 38 - "UsersService"
Cohesion: 0.06
Nodes (38): DEFAULT_JWT_REFRESH_SECRET, DEFAULT_JWT_SECRET, getJwtSecret(), JwtPayload, JwtStrategy, Injectable, AddressDto, ApiProperty (+30 more)
### Community 39 - "What You Must Do When Invoked"
Cohesion: 0.07
Nodes (26): For /graphify add and --watch, For /graphify query, For the commit hook and native CLAUDE.md integration, For --update and --cluster-only, /graphify, Honesty Rules, Interpreter guard for subcommands, Part A - Structural extraction for code files (+18 more)
### Community 40 - "SslController"
Cohesion: 0.11
Nodes (15): SslController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Post (+7 more)
Cohesion: 0.13
Nodes (14): SslController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Post (+6 more)
### Community 41 - "PodcastPlayerModal.tsx"
Cohesion: 0.40
Nodes (3): PLAYBACK_RATES, PodcastPlayerModal(), PodcastPlayerModalProps
### Community 42 - "IngredientsService"
Cohesion: 0.11
Nodes (16): IngredientsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
### Community 43 - "UsersService"
Cohesion: 0.12
Nodes (9): ApiPropertyOptional, IsEmail, IsOptional, IsString, MinLength, UpdateProfileDto, Injectable, UserAddressInput (+1 more)
### Community 44 - "admin.module.ts"
Cohesion: 0.10
Nodes (18): AdminModule, Module, MediaController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller (+10 more)
### Community 45 - "Pagination.tsx"
Cohesion: 0.13
Nodes (11): Pagination(), PaginationProps, Pet, GatewayHealth, Stats, Transaction, ProductItem, WikiTerm (+3 more)
Nodes (14): IngredientsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
### Community 47 - "OrdersService"
### Community 43 - "FaqService"
Cohesion: 0.14
Nodes (14): FaqController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
### Community 44 - "MediaController"
Cohesion: 0.11
Nodes (16): MediaController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
### Community 45 - "Media.tsx"
Cohesion: 0.11
Nodes (15): Pagination(), PaginationProps, getFileType(), Media, MediaManager(), Pet, GatewayHealth, Stats (+7 more)
### Community 46 - "ContactService"
Cohesion: 0.13
Nodes (11): ContactController, Body, Controller, Get, Param, Post, Put, Query (+3 more)
### Community 47 - "zibal.service.ts"
Cohesion: 0.16
Nodes (9): OrdersController, ApiBearerAuth, ApiTags, Controller, UseGuards, OrdersModule, Module, OrdersService (+1 more)
Nodes (9): GatewayHealthResult, IPaymentGateway, PaymentInquiryResult, PaymentRequestOptions, PaymentRequestResult, PaymentVerifyResult, ZibalInquiryResponse, ZibalRequestResponse (+1 more)
### Community 48 - "PrescriptionsService"
Cohesion: 0.13
Cohesion: 0.14
Nodes (14): PrescriptionsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Get, Param (+6 more)
### Community 49 - "SmartAdvisorService"
Cohesion: 0.11
Nodes (16): SmartAdvisorController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+8 more)
Cohesion: 0.13
Nodes (14): SmartAdvisorController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
### Community 50 - "TestimonialsService"
Cohesion: 0.12
Cohesion: 0.13
Nodes (14): TestimonialsController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+6 more)
### Community 51 - "Role & Core Objective"
Cohesion: 0.09
Nodes (22): CREATE MODE — Normal Operation, Expected JSON Output Schema, File Scope Boundary, Forbidden Actions, MODE 1: REVIEW (called during Review Phase), MODE 2: CONTENT CREATION (standalone task from backlog), Operating Modes, Operational Rules & Boundaries (+14 more)
### Community 52 - "AuthController"
Cohesion: 0.25
Nodes (12): AuthController, ApiBadRequestResponse, ApiBearerAuth, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+4 more)
### Community 53 - "auth.module.ts"
Cohesion: 0.15
Nodes (10): DEFAULT_JWT_REFRESH_SECRET, DEFAULT_JWT_SECRET, getJwtSecret(), AuthModule, Module, JwtPayload, JwtStrategy, Injectable (+2 more)
### Community 52 - ".initiateOrderPayment"
Cohesion: 0.19
Nodes (10): ApiPropertyOptional, IsOptional, IsString, ZibalCallbackQueryDto, ApiBadRequestResponse, ApiOkResponse, Req, Res (+2 more)
### Community 54 - "compilerOptions"
Cohesion: 0.06
Nodes (30): compilerOptions, allowSyntheticDefaultImports, baseUrl, declaration, emitDecoratorMetadata, esModuleInterop, experimentalDecorators, forceConsistentCasingInFileNames (+22 more)
### Community 55 - "Media.tsx"
Cohesion: 0.14
Nodes (13): Badge(), BadgeProps, BadgeVariant, variantStyles, ImagePreviewModal(), ImagePreviewModalProps, getFileType(), Media (+5 more)
### Community 55 - "PrescriptionsManager.tsx"
Cohesion: 0.22
Nodes (7): Badge(), BadgeProps, BadgeVariant, variantStyles, ProductItem, PrescriptionsManager, Prescription
### Community 56 - "compilerOptions"
Cohesion: 0.08
@@ -568,8 +554,8 @@ Cohesion: 0.15
Nodes (11): PetsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Controller, Delete, Get (+3 more)
### Community 58 - "PaginationDto"
Cohesion: 0.12
Nodes (13): PaginationDto, SortOrder, ApiPropertyOptional, IsEnum, IsInt, IsOptional, IsString, Min (+5 more)
Cohesion: 0.11
Nodes (11): BlogsService, Injectable, PaginationDto, SortOrder, ApiPropertyOptional, IsEnum, IsInt, IsOptional (+3 more)
### Community 59 - "dependencies"
Cohesion: 0.05
@@ -579,20 +565,20 @@ Nodes (41): dependencies, bcrypt, bcryptjs, class-transformer, class-validator,
Cohesion: 0.10
Nodes (20): compilerOptions, allowImportingTsExtensions, erasableSyntaxOnly, lib, module, moduleDetection, moduleResolution, noEmit (+12 more)
### Community 61 - "useSettingsStore"
Cohesion: 0.09
Nodes (28): HomeClient(), HomeClientProps, CATEGORY_MAP, ICON_MAP, BannerPlacement(), BannerPlacementProps, BrandLogo(), BrandLogoProps (+20 more)
### Community 61 - "HomeClient.tsx"
Cohesion: 0.13
Nodes (19): HomeClient(), HomeClientProps, generateMetadata(), getHomeData(), Home(), BannerPlacement(), BannerPlacementProps, Hero() (+11 more)
### Community 62 - "BlogsController"
Cohesion: 0.13
Nodes (15): BlogsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+7 more)
Cohesion: 0.14
Nodes (16): BlogsController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+8 more)
### Community 63 - "reviews.controller.ts"
Cohesion: 0.16
Nodes (13): CreateReviewDto, ApiProperty, IsInt, IsNotEmpty, IsOptional, IsString, Min, ApiProperty (+5 more)
### Community 63 - "UpdateReviewDto"
Cohesion: 0.33
Nodes (5): ApiProperty, IsIn, IsOptional, IsString, UpdateReviewDto
### Community 64 - "BannersService"
Cohesion: 0.12
Cohesion: 0.13
Nodes (15): BannersController, ApiBearerAuth, ApiOperation, ApiTags, Body, Controller, Delete, Get (+7 more)
### Community 65 - "Required Review Group Closures"
@@ -600,8 +586,8 @@ Cohesion: 0.10
Nodes (19): 10. Orders Backend, 11. Settings & Administrative Backend, 12. Prisma Schema, Migrations & Seed, 13. Redis & Temporary Auth State, 14. Unit & E2E Tests, 15. Docker, NGINX, Prometheus & Deployment Config, 16. Documentation & OpenAPI Artifacts, 1. Storefront Shell & Routing (+11 more)
### Community 66 - "Coupons.tsx"
Cohesion: 0.13
Nodes (12): formatPriceWithCommas(), PriceInput(), PriceInputProps, toEnglishDigits(), Coupon, CouponFormData, CouponModalProps, CouponTarget (+4 more)
Cohesion: 0.10
Nodes (15): formatPriceWithCommas(), PriceInput(), PriceInputProps, toEnglishDigits(), Coupon, CouponFormData, CouponModalProps, CouponTarget (+7 more)
### Community 67 - "Operational Rules & Boundaries"
Cohesion: 0.11
@@ -615,21 +601,21 @@ Nodes (18): 1. Framework-Aware Analysis, 2. DOM & Semantic Structure Analysis, 3
Cohesion: 0.13
Nodes (14): ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete, Get (+6 more)
### Community 70 - "ApiOperation"
Cohesion: 0.13
Nodes (8): ApiOperation, ApiQuery, Get, Query, AdminQueryDto, ApiPropertyOptional, IsOptional, IsString
### Community 70 - "WikiController"
Cohesion: 0.20
Nodes (7): ApiTags, Controller, WikiController, Module, WikiModule, Injectable, WikiService
### Community 71 - "PetsController"
Cohesion: 0.14
Nodes (20): PetsController, ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags (+12 more)
### Community 71 - ".update"
Cohesion: 0.24
Nodes (11): ApiNotFoundResponse, ApiOkResponse, ApiOperation, Body, Delete, Get, Param, Patch (+3 more)
### Community 72 - "seo.module.ts"
Cohesion: 0.16
Nodes (10): SeoController, ApiOperation, ApiTags, Controller, Get, Param, SeoModule, Module (+2 more)
### Community 73 - "admin.service.ts"
Cohesion: 0.17
Nodes (14): CouponInput, CouponTargetInput, PaginationQuery, CreateUserDto, ApiProperty, ApiPropertyOptional, IsEmail, IsNotEmpty (+6 more)
### Community 73 - "BlogsService"
Cohesion: 0.19
Nodes (4): BlogsModule, Module, BlogsService, Injectable
### Community 74 - "🏢 AI Software Agency — Master Orchestration Protocol v3"
Cohesion: 0.11
@@ -655,17 +641,17 @@ Nodes (16): 1. Active Secret Scanning (All Modified Files), 2. Docker Container
Cohesion: 0.16
Nodes (10): HomeController, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, HomeModule, Module (+2 more)
### Community 80 - "VetGallery.tsx"
Cohesion: 0.24
Nodes (8): DisplayVideoItem, FALLBACK_VIDEOS, TestimonialItem, PLAYBACK_RATES, VideoModalPlayer(), VideoModalPlayerProps, Video, videoService
### Community 80 - "SafeImage.tsx"
Cohesion: 0.13
Nodes (14): ProductDetailModalProps, SafeImage(), SafeImageProps, Testimonial, TestimonialsSection(), DisplayVideoItem, FALLBACK_VIDEOS, TestimonialItem (+6 more)
### Community 81 - "devDependencies"
Cohesion: 0.13
Nodes (15): devDependencies, eslint, jsdom, tailwindcss, @tailwindcss/postcss, @types/node, @types/react-dom, @vitejs/plugin-react (+7 more)
Nodes (15): eslint-config-next, devDependencies, eslint, eslint-config-next, jsdom, tailwindcss, @tailwindcss/postcss, @types/node (+7 more)
### Community 82 - "api"
Cohesion: 0.29
Nodes (6): Layout(), MenuGroup, Sidebar(), SidebarProps, SubMenuItem, api
Cohesion: 0.15
Nodes (10): Layout(), MenuGroup, Sidebar(), SidebarProps, SubMenuItem, MENU_TABS, MenuItem, MenuType (+2 more)
### Community 83 - "Orders.tsx"
Cohesion: 0.14
@@ -696,8 +682,8 @@ Cohesion: 0.10
Nodes (21): dependencies, axios, lucide-react, react, react-dom, react-hot-toast, react-router-dom, recharts (+13 more)
### Community 90 - "ProductPage.tsx"
Cohesion: 0.12
Nodes (14): PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, CalculatorState, ICON_MAP, ProductPage(), useCalculatorStore, ProductReviews() (+6 more)
Cohesion: 0.17
Nodes (11): PLAYBACK_RATES, PodcastInlinePlayer(), PodcastInlinePlayerProps, CalculatorState, ICON_MAP, ProductPage(), useCalculatorStore, Tooltip() (+3 more)
### Community 91 - "compilerOptions"
Cohesion: 0.06
@@ -727,9 +713,9 @@ Nodes (8): exclude, extends, dist, node_modules, prisma, **/*spec.ts, test, ./ts
Cohesion: 0.15
Nodes (13): jest, collectCoverageFrom, coverageDirectory, moduleFileExtensions, rootDir, testEnvironment, testRegex, transform (+5 more)
### Community 98 - "AdminController"
Cohesion: 0.12
Nodes (8): AdminController, ApiBearerAuth, ApiTags, Controller, Delete, Param, Put, UseGuards
### Community 98 - "AdminService"
Cohesion: 0.05
Nodes (38): AdminController, ApiBearerAuth, ApiOperation, ApiQuery, ApiTags, Body, Controller, Delete (+30 more)
### Community 99 - "Comprehensive Change Log"
Cohesion: 0.15
@@ -744,16 +730,12 @@ Cohesion: 0.10
Nodes (18): ICON_REGISTRY, IconPickerModal(), IconPickerModalProps, COLORS, RichTextEditor(), RichTextEditorProps, ToggleSwitch(), ToggleSwitchProps (+10 more)
### Community 102 - "BlogsController"
Cohesion: 0.13
Nodes (13): BlogsController, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, Param (+5 more)
Cohesion: 0.16
Nodes (14): BlogsController, ApiBearerAuth, ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Body, Controller (+6 more)
### Community 103 - "ProductDto"
Cohesion: 0.22
Nodes (7): ProductDto, ApiPropertyOptional, IsArray, IsBoolean, IsNumber, IsOptional, IsString
### Community 104 - "WikiService"
Cohesion: 0.22
Nodes (3): Injectable, WikiQuery, WikiService
### Community 103 - "payment.service.ts"
Cohesion: 0.20
Nodes (8): AdminTransactionFilterDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString, Type, ClientMetadata
### Community 105 - "1. Summary of Integrity Repairs Performed"
Cohesion: 0.17
@@ -775,13 +757,13 @@ Nodes (10): 1. Pre-Deployment Checklist, 2. Build Verification, 3. Deployment St
Cohesion: 0.29
Nodes (5): AppController, Controller, Get, AppService, Injectable
### Community 111 - "SmsLogQueryDto"
Cohesion: 0.25
Nodes (7): SmsLogQueryDto, ApiPropertyOptional, IsIn, IsNumber, IsOptional, IsString, Type
### Community 111 - "PetsController"
Cohesion: 0.18
Nodes (9): PetsController, ApiBadRequestResponse, ApiBearerAuth, ApiCreatedResponse, ApiTags, Controller, UploadedFile, UseGuards (+1 more)
### Community 112 - "app-audit-verification.e2e-spec.js"
Cohesion: 0.17
Nodes (11): app_module_1, client_1, common_1, decimal_interceptor_1, fs, http_exception_filter_1, jwt_1, path (+3 more)
### Community 112 - "CreateEBankCheckoutDto"
Cohesion: 0.22
Nodes (8): CreateEBankCheckoutDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsNumber, IsOptional, IsString, Min
### Community 113 - "Vazirmatn Changelog"
Cohesion: 0.18
@@ -829,7 +811,7 @@ Nodes (9): Arch Linux, Contributors, Install, Known problems for variable versio
### Community 124 - "Spinner.tsx"
Cohesion: 0.08
Nodes (18): Spinner(), BestSellerItem, CategoryDistItem, COLORS, CustomTooltipProps, ReportData, TopCouponItem, ProductReview (+10 more)
Nodes (18): Spinner(), FAQ, BestSellerItem, CategoryDistItem, COLORS, CustomTooltipProps, ReportData, TopCouponItem (+10 more)
### Community 125 - "Sahel-Font"
Cohesion: 0.20
@@ -847,9 +829,9 @@ Nodes (8): cmd_next_task(), cmd_progress(), cmd_reset(), cmd_status(), cmd_unblo
Cohesion: 0.22
Nodes (8): author, description, license, name, prisma, seed, private, version
### Community 129 - "CreateOrderDto"
Cohesion: 0.22
Nodes (11): CreateOrderDto, OrderItemDto, ApiProperty, ApiPropertyOptional, IsArray, IsNotEmpty, IsNumber, IsOptional (+3 more)
### Community 129 - "CreateReminderDto"
Cohesion: 0.29
Nodes (6): CreateReminderDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
### Community 130 - "graphify reference: extra exports and benchmark"
Cohesion: 0.22
@@ -879,8 +861,8 @@ Nodes (8): name, private, scripts, build, dev, lint, start, version
Cohesion: 0.25
Nodes (6): app_module_1, core_1, fs, path, swagger_1, yaml
### Community 138 - "payment.controller.ts"
Cohesion: 0.42
### Community 138 - "InitiatePaymentDto"
Cohesion: 0.43
Nodes (7): InitiatePaymentDto, InitiateWalletTopupDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString
### Community 139 - "System Discovery"
@@ -891,17 +873,13 @@ Nodes (7): Active Core Applications, Current Architecture, Evidence-Based Status
Cohesion: 0.29
Nodes (6): 1. Executive Vision, 2. Target Audience, 3. Functional Requirements, 4. Non-Functional Requirements (Performance, Security), 5. Epic / Feature Breakdown, Product Requirement Document (PRD)
### Community 141 - "WikiController"
Cohesion: 0.21
Nodes (9): ApiNotFoundResponse, ApiOkResponse, ApiOperation, ApiTags, Controller, Get, Param, Query (+1 more)
### Community 141 - ".findAll"
Cohesion: 0.32
Nodes (6): ApiNotFoundResponse, ApiOkResponse, ApiOperation, Get, Param, Query
### Community 142 - "seo.ts"
Cohesion: 0.20
Nodes (5): generateMetadata(), generateMetadata(), DEFAULT_SEO_CONFIG, PageMetadataOptions, SeoConfig
### Community 143 - "auth.service.ts"
Cohesion: 0.11
Nodes (8): AdminLoginInput, AuthService, LoginInput, RegisterInput, Injectable, normalizeMobile(), RedisService, Injectable
### Community 143 - "admin.service.ts"
Cohesion: 0.07
Nodes (15): ApiExcludeController, CouponTargetInput, PaginationQuery, AuthService, Injectable, MetricsController, Controller, Get (+7 more)
### Community 144 - "Baseline Command Plan & Reconciled Command History"
Cohesion: 0.29
@@ -983,9 +961,9 @@ Nodes (4): evidenceList, ledger, mandatoryMap, mandatoryScope
Cohesion: 0.40
Nodes (4): activeFiles, errors, validationOutput, warnings
### Community 168 - "getSeoConfig"
Cohesion: 0.24
Nodes (11): BlogPostPage(), generateMetadata(), getBlog(), revalidate, generateMetadata(), generateMetadata(), generateMetadata(), getWikiTerm() (+3 more)
### Community 168 - "zibal-ebank.service.ts"
Cohesion: 0.40
Nodes (4): EBankCheckoutListFilter, EBankCheckoutOptions, EBankIdentifiedPaymentFilter, EBankStatementFilter
### Community 169 - "API Contract Specification"
Cohesion: 0.50
@@ -1003,10 +981,6 @@ Nodes (3): Architectural Overview, Critical Review Findings & Required Enhanceme
Cohesion: 0.50
Nodes (3): Overview & Content Foundation, SEO & Content Requirements, 🚀 SEO & Content Strategy Review (12_seo_content)
### Community 174 - "BlogsService"
Cohesion: 0.22
Nodes (3): BlogQuery, BlogsService, Injectable
### Community 180 - "graphify reference: add a URL and watch a folder"
Cohesion: 0.50
Nodes (3): For /graphify add, For --watch, graphify reference: add a URL and watch a folder
@@ -1047,17 +1021,9 @@ Nodes (3): ADR-AUTH-001: Admin Panel Authentication Architecture & Token Managem
Cohesion: 0.29
Nodes (6): ApiProperty, ApiPropertyOptional, IsNotEmpty, IsOptional, IsString, WholesaleApplyDto
### Community 214 - "PetsService"
Cohesion: 0.29
Nodes (3): PetQuery, PetsService, Injectable
### Community 215 - "VerifyOtpDto"
Cohesion: 0.29
Nodes (6): ApiProperty, IsNotEmpty, IsString, Matches, VerifyOtpDto, Length
### Community 220 - "getPageMetadata"
Cohesion: 0.13
Nodes (8): generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), generateMetadata(), ArchivePage(), getPageMetadata()
Cohesion: 0.05
Nodes (33): generateMetadata(), BlogPostPage(), generateMetadata(), getBlog(), revalidate, generateMetadata(), generateMetadata(), generateMetadata() (+25 more)
### Community 221 - "CreateHealthLogDto"
Cohesion: 0.29
@@ -1067,57 +1033,41 @@ Nodes (6): CreateHealthLogDto, ApiProperty, ApiPropertyOptional, IsNotEmpty, IsO
Cohesion: 0.67
Nodes (3): Shabnam Font README, Shabnam Font Sample, Vazir Font
### Community 238 - "AddressDto"
Cohesion: 0.29
Nodes (7): AddressDto, ApiProperty, ApiPropertyOptional, IsBoolean, IsNotEmpty, IsOptional, IsString
### Community 239 - "blog/page.tsx"
Cohesion: 0.50
Nodes (4): Blog(), generateMetadata(), getBlogs(), BlogPage()
### Community 243 - "app.e2e-spec.js"
Cohesion: 0.50
Nodes (3): app_module_1, supertest_1, testing_1
### Community 297 - "ValidateCouponDto"
Cohesion: 0.50
Nodes (4): IsNotEmpty, IsNumber, IsString, ValidateCouponDto
### Community 300 - "app/page.tsx"
Cohesion: 0.67
Nodes (3): generateMetadata(), getHomeData(), Home()
### Community 302 - "RedisModule"
Cohesion: 0.67
Nodes (3): RedisModule, Global, Module
### Community 291 - "useSettingsStore"
Cohesion: 0.11
Nodes (23): ClientLayout(), BrandLogo(), BrandLogoProps, EnamadBadge(), FAQItem, FAQSection(), Footer(), Header() (+15 more)
### Community 305 - "RouteErrorBoundary"
Cohesion: 0.22
Nodes (3): Props, RouteErrorBoundary, State
### Community 310 - "ReportsController"
Cohesion: 0.16
Nodes (9): ReportsController, ApiBearerAuth, ApiOperation, ApiTags, Controller, Get, UseGuards, ReportsService (+1 more)
### Community 310 - "admin.module.ts"
Cohesion: 0.10
Nodes (15): AdminModule, Module, PetQuery, PetsService, Injectable, ReportsController, ApiBearerAuth, ApiOperation (+7 more)
## Knowledge Gaps
- **1259 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1254 more)
- **1269 isolated node(s):** `$schema`, `collection`, `sourceRoot`, `deleteOutDir`, `name` (+1264 more)
These have ≤1 connection - possible missing edges or undocumented components.
- **103 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
- **98 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `Roles()` connect `Roles` to `BannersService`, `ZibalService`, `CmsController`, `B2BService`, `ReviewsService`, `tickets.controller.ts`, `SslController`, `IngredientsService`, `payment.controller.ts`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `TestimonialsService`, `WholesaleService`, `reviews.controller.ts`, `JwtAuthGuard`?**
_High betweenness centrality (0.052) - this node is a cross-community bridge._
- **Why does `ApiResponse` connect `src/services/api.ts` to `BlogsController`, `PetsController`, `UsersController`, `WikiController`, `OrdersService`, `HomeController`, `ProductsService`, `AuthController`?**
_High betweenness centrality (0.046) - this node is a cross-community bridge._
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `CategoriesController`, `CmsController`, `tickets.controller.ts`, `admin.service.ts`, `DoctorsService`, `payment.controller.ts`, `admin.module.ts`, `UsersService`, `pets/pets.controller.ts`, `OrdersService`, `ProductsService`, `CreateVideoDto`, `auth.controller.ts`, `ReportsController`, `reviews.controller.ts`?**
_High betweenness centrality (0.024) - this node is a cross-community bridge._
- **Why does `ApiResponse` connect `src/services/api.ts` to `OrdersService`, `BlogsController`, `UsersService`, `WikiController`, `PetsController`, `HomeController`, `ProductsService`, `auth.controller.ts`?**
_High betweenness centrality (0.063) - this node is a cross-community bridge._
- **Why does `Roles()` connect `Roles` to `BannersService`, `CmsController`, `B2BService`, `CreateReviewDto`, `tickets.controller.ts`, `SslController`, `IngredientsService`, `FaqService`, `MenuService`, `ContactService`, `ProductsService`, `PrescriptionsService`, `SmartAdvisorService`, `TestimonialsService`, `SmsService`, `WholesaleService`, `JwtAuthGuard`?**
_High betweenness centrality (0.062) - this node is a cross-community bridge._
- **Why does `JwtAuthGuard` connect `JwtAuthGuard` to `OrdersService`, `AdminService`, `CmsController`, `tickets.controller.ts`, `UsersService`, `BlogsService`, `DoctorQueryDto`, `pets/pets.controller.ts`, `ProductsService`, `CreateVideoDto`, `auth.controller.ts`, `admin.module.ts`, `PaginationDto`?**
_High betweenness centrality (0.033) - this node is a cross-community bridge._
- **What connects `$schema`, `collection`, `sourceRoot` to the rest of the system?**
_1259 weakly-connected nodes found - possible documentation gaps or missing edges._
_1269 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `OrdersService` be split into smaller, more focused modules?**
_Cohesion score 0.06168831168831169 - nodes in this community are weakly interconnected._
- **Should `productService.ts` be split into smaller, more focused modules?**
_Cohesion score 0.08078431372549019 - nodes in this community are weakly interconnected._
_Cohesion score 0.07039187227866474 - nodes in this community are weakly interconnected._
- **Should `CmsController` be split into smaller, more focused modules?**
_Cohesion score 0.0899854862119013 - nodes in this community are weakly interconnected._
- **Should `app.module.ts` be split into smaller, more focused modules?**
_Cohesion score 0.08456659619450317 - nodes in this community are weakly interconnected._
_Cohesion score 0.0899854862119013 - nodes in this community are weakly interconnected._
+1 -1
View File
@@ -1 +1 @@
{".ai_agency/AGENCY.md":{"size":8757,"mtime_ns":1785148021979607300,"indexed_at_ns":1786863693890454700,"word_count":1161,"hashes":{".ai_agency/agency.md":"88c7c13583a91fc7e41ce055fede9dce20f181e8d264557808989965e83a9030"}},".ai_agency/agents/00_intake.md":{"size":3819,"mtime_ns":1785148021984319000,"indexed_at_ns":1786863693892455200,"word_count":500,"hashes":{".ai_agency/agents/00_intake.md":"9dc8d7eeda0655717dc5b9d2f8572c47567b88ca88de7e4e5bf59869077ff407"}},".ai_agency/agents/01_auditor.md":{"size":3643,"mtime_ns":1785148021987782800,"indexed_at_ns":1786863693894964400,"word_count":467,"hashes":{".ai_agency/agents/01_auditor.md":"37ae09614034d9b5c855e0132b59a5e3cfd2fc38c54d1a5386fa43ba488c4d4d"}},".ai_agency/agents/02_ceo.md":{"size":2341,"mtime_ns":1785148021998374800,"indexed_at_ns":1786863693896964700,"word_count":294,"hashes":{".ai_agency/agents/02_ceo.md":"b4a76df6483fd52e1b9f1e70765b3f7b6d134dc003ef2ad0cb86b952c869c4a5"}},".ai_agency/agents/03_product_manager.md":{"size":8422,"mtime_ns":1785148022001968200,"indexed_at_ns":1786863693898470300,"word_count":1076,"hashes":{".ai_agency/agents/03_product_manager.md":"1927827474b1dd6fd4976af45b51f1ad3128fe3305c3af22639ab2584e8f0b55"}},".ai_agency/agents/04_architect.md":{"size":3603,"mtime_ns":1785148022004966000,"indexed_at_ns":1786863693899999300,"word_count":448,"hashes":{".ai_agency/agents/04_architect.md":"c96b04d5af093f455fa3c64ae177a69421e8150eb38c70bb8587b5a14e7d3ca8"}},".ai_agency/agents/05_dev_backend.md":{"size":7142,"mtime_ns":1785148022012481200,"indexed_at_ns":1786863693901997700,"word_count":953,"hashes":{".ai_agency/agents/05_dev_backend.md":"143a7c8a6fbedcd837d647efddb9f6b49074583502bd77f24c955bd86a6f3df8"}},".ai_agency/agents/06_dev_frontend.md":{"size":7518,"mtime_ns":1785148022017020100,"indexed_at_ns":1786863693902997800,"word_count":1011,"hashes":{".ai_agency/agents/06_dev_frontend.md":"e69679636d42dd626c7c76ddc96e1ddb656ab5b9ee912b89adcc7a9338f34a0b"}},".ai_agency/agents/07_qa_engineer.md":{"size":3764,"mtime_ns":1785148022020044600,"indexed_at_ns":1786863693905070800,"word_count":507,"hashes":{".ai_agency/agents/07_qa_engineer.md":"2616ef2b3ac39ded45fc669d5b5b140e72953fe61a819966fb040382e9b47d45"}},".ai_agency/agents/08_visual_qa.md":{"size":7910,"mtime_ns":1785148022030083200,"indexed_at_ns":1786863693907111900,"word_count":1121,"hashes":{".ai_agency/agents/08_visual_qa.md":"17a5a74039e8a9d7cb40c5bc3c616c7c92d53401efd92d0675d4bbe5e90572a8"}},".ai_agency/agents/09_devops_security.md":{"size":6825,"mtime_ns":1785148022034087400,"indexed_at_ns":1786863693908113400,"word_count":908,"hashes":{".ai_agency/agents/09_devops_security.md":"315bd3cee954ac3496da8db1b1718b75ab3822ec3a90f99bc77767ca99482edf"}},".ai_agency/agents/10_tech_writer.md":{"size":3119,"mtime_ns":1785148022037082600,"indexed_at_ns":1786863693910113400,"word_count":408,"hashes":{".ai_agency/agents/10_tech_writer.md":"3527b44265fec2472cc20ca4641667e1fa3d38cbc9b2fbf9a946ee1e531e9e37"}},".ai_agency/agents/11_deploy.md":{"size":3956,"mtime_ns":1785148022040602600,"indexed_at_ns":1786863693912113300,"word_count":537,"hashes":{".ai_agency/agents/11_deploy.md":"8169bc98b249cd83ba21551dea082f69dfa6deca5f5e4a7f2739a28746c143f9"}},".ai_agency/agents/12_seo_content.md":{"size":10963,"mtime_ns":1785148022048603900,"indexed_at_ns":1786863693913112900,"word_count":1539,"hashes":{".ai_agency/agents/12_seo_content.md":"2f50eb9db8bf1ad7bc23c7d8c3a4f167a2daafb73f095db9237c5bdb20e7a5f4"}},".ai_agency/memory/agent_outputs/README.txt":{"size":290,"mtime_ns":1785148022052150400,"indexed_at_ns":1786863693914617900,"word_count":34,"hashes":{".ai_agency/memory/agent_outputs/readme.txt":"49b19b781e865081a74a0a87282e6c266e373f443a79e0758ef60a6e644c6e04"}},".ai_agency/memory/backlog.json":{"size":10711,"mtime_ns":1785330750958890900,"indexed_at_ns":1786863680433252400,"word_count":981,"hashes":{".ai_agency/memory/backlog.json":"6bf3150a1877d03d03b368df21b84071381b1bb8cd03e3721fa9f8e6c38355be"}},".ai_agency/memory/scratchpad.md":{"size":1879,"mtime_ns":1785148022065114400,"indexed_at_ns":1786863693916623700,"word_count":249,"hashes":{".ai_agency/memory/scratchpad.md":"9d0f687cf8e95c6335f1efb070da8029878417c28117e3b89aa8536ad70a5b95"}},".ai_agency/memory/state.json":{"size":3654,"mtime_ns":1785330750963913800,"indexed_at_ns":1786863680437228800,"word_count":254,"hashes":{".ai_agency/memory/state.json":"1204676f8f295d89733888bb87936061b7a700df0cc936fbf08fd5269b534e8d"}},".ai_agency/orchestrate.py":{"size":6800,"mtime_ns":1785148022072662500,"indexed_at_ns":1786863680437736800,"word_count":644,"hashes":{".ai_agency/orchestrate.py":"90ec787fdd4c71f5203c56b6899aadcc26e6e0bad0cc576d2f982aa42eed42e1"}},".ai_agency/specs/api_contract.md":{"size":1515,"mtime_ns":1785148022077664900,"indexed_at_ns":1786863693918623100,"word_count":139,"hashes":{".ai_agency/specs/api_contract.md":"ea0911b6a5ad6a908ab707f7553f5f24712c1e198fd79255fa85e3249150e8b4"}},".ai_agency/specs/architecture_spec.md":{"size":790,"mtime_nsLine truncated
{".ai_agency/AGENCY.md":{"size":8757,"mtime_ns":1785148021979607300,"indexed_at_ns":1786863693890454700,"word_count":1161,"hashes":{".ai_agency/agency.md":"88c7c13583a91fc7e41ce055fede9dce20f181e8d264557808989965e83a9030"}},".ai_agency/agents/00_intake.md":{"size":3819,"mtime_ns":1785148021984319000,"indexed_at_ns":1786863693892455200,"word_count":500,"hashes":{".ai_agency/agents/00_intake.md":"9dc8d7eeda0655717dc5b9d2f8572c47567b88ca88de7e4e5bf59869077ff407"}},".ai_agency/agents/01_auditor.md":{"size":3643,"mtime_ns":1785148021987782800,"indexed_at_ns":1786863693894964400,"word_count":467,"hashes":{".ai_agency/agents/01_auditor.md":"37ae09614034d9b5c855e0132b59a5e3cfd2fc38c54d1a5386fa43ba488c4d4d"}},".ai_agency/agents/02_ceo.md":{"size":2341,"mtime_ns":1785148021998374800,"indexed_at_ns":1786863693896964700,"word_count":294,"hashes":{".ai_agency/agents/02_ceo.md":"b4a76df6483fd52e1b9f1e70765b3f7b6d134dc003ef2ad0cb86b952c869c4a5"}},".ai_agency/agents/03_product_manager.md":{"size":8422,"mtime_ns":1785148022001968200,"indexed_at_ns":1786863693898470300,"word_count":1076,"hashes":{".ai_agency/agents/03_product_manager.md":"1927827474b1dd6fd4976af45b51f1ad3128fe3305c3af22639ab2584e8f0b55"}},".ai_agency/agents/04_architect.md":{"size":3603,"mtime_ns":1785148022004966000,"indexed_at_ns":1786863693899999300,"word_count":448,"hashes":{".ai_agency/agents/04_architect.md":"c96b04d5af093f455fa3c64ae177a69421e8150eb38c70bb8587b5a14e7d3ca8"}},".ai_agency/agents/05_dev_backend.md":{"size":7142,"mtime_ns":1785148022012481200,"indexed_at_ns":1786863693901997700,"word_count":953,"hashes":{".ai_agency/agents/05_dev_backend.md":"143a7c8a6fbedcd837d647efddb9f6b49074583502bd77f24c955bd86a6f3df8"}},".ai_agency/agents/06_dev_frontend.md":{"size":7518,"mtime_ns":1785148022017020100,"indexed_at_ns":1786863693902997800,"word_count":1011,"hashes":{".ai_agency/agents/06_dev_frontend.md":"e69679636d42dd626c7c76ddc96e1ddb656ab5b9ee912b89adcc7a9338f34a0b"}},".ai_agency/agents/07_qa_engineer.md":{"size":3764,"mtime_ns":1785148022020044600,"indexed_at_ns":1786863693905070800,"word_count":507,"hashes":{".ai_agency/agents/07_qa_engineer.md":"2616ef2b3ac39ded45fc669d5b5b140e72953fe61a819966fb040382e9b47d45"}},".ai_agency/agents/08_visual_qa.md":{"size":7910,"mtime_ns":1785148022030083200,"indexed_at_ns":1786863693907111900,"word_count":1121,"hashes":{".ai_agency/agents/08_visual_qa.md":"17a5a74039e8a9d7cb40c5bc3c616c7c92d53401efd92d0675d4bbe5e90572a8"}},".ai_agency/agents/09_devops_security.md":{"size":6825,"mtime_ns":1785148022034087400,"indexed_at_ns":1786863693908113400,"word_count":908,"hashes":{".ai_agency/agents/09_devops_security.md":"315bd3cee954ac3496da8db1b1718b75ab3822ec3a90f99bc77767ca99482edf"}},".ai_agency/agents/10_tech_writer.md":{"size":3119,"mtime_ns":1785148022037082600,"indexed_at_ns":1786863693910113400,"word_count":408,"hashes":{".ai_agency/agents/10_tech_writer.md":"3527b44265fec2472cc20ca4641667e1fa3d38cbc9b2fbf9a946ee1e531e9e37"}},".ai_agency/agents/11_deploy.md":{"size":3956,"mtime_ns":1785148022040602600,"indexed_at_ns":1786863693912113300,"word_count":537,"hashes":{".ai_agency/agents/11_deploy.md":"8169bc98b249cd83ba21551dea082f69dfa6deca5f5e4a7f2739a28746c143f9"}},".ai_agency/agents/12_seo_content.md":{"size":10963,"mtime_ns":1785148022048603900,"indexed_at_ns":1786863693913112900,"word_count":1539,"hashes":{".ai_agency/agents/12_seo_content.md":"2f50eb9db8bf1ad7bc23c7d8c3a4f167a2daafb73f095db9237c5bdb20e7a5f4"}},".ai_agency/memory/agent_outputs/README.txt":{"size":290,"mtime_ns":1785148022052150400,"indexed_at_ns":1786863693914617900,"word_count":34,"hashes":{".ai_agency/memory/agent_outputs/readme.txt":"49b19b781e865081a74a0a87282e6c266e373f443a79e0758ef60a6e644c6e04"}},".ai_agency/memory/backlog.json":{"size":10711,"mtime_ns":1785330750958890900,"indexed_at_ns":1786863680433252400,"word_count":981,"hashes":{".ai_agency/memory/backlog.json":"6bf3150a1877d03d03b368df21b84071381b1bb8cd03e3721fa9f8e6c38355be"}},".ai_agency/memory/scratchpad.md":{"size":1879,"mtime_ns":1785148022065114400,"indexed_at_ns":1786863693916623700,"word_count":249,"hashes":{".ai_agency/memory/scratchpad.md":"9d0f687cf8e95c6335f1efb070da8029878417c28117e3b89aa8536ad70a5b95"}},".ai_agency/memory/state.json":{"size":3654,"mtime_ns":1785330750963913800,"indexed_at_ns":1786863680437228800,"word_count":254,"hashes":{".ai_agency/memory/state.json":"1204676f8f295d89733888bb87936061b7a700df0cc936fbf08fd5269b534e8d"}},".ai_agency/orchestrate.py":{"size":6800,"mtime_ns":1785148022072662500,"indexed_at_ns":1786863680437736800,"word_count":644,"hashes":{".ai_agency/orchestrate.py":"90ec787fdd4c71f5203c56b6899aadcc26e6e0bad0cc576d2f982aa42eed42e1"}},".ai_agency/specs/api_contract.md":{"size":1515,"mtime_ns":1785148022077664900,"indexed_at_ns":1786863693918623100,"word_count":139,"hashes":{".ai_agency/specs/api_contract.md":"ea0911b6a5ad6a908ab707f7553f5f24712c1e198fd79255fa85e3249150e8b4"}},".ai_agency/specs/architecture_spec.md":{"size":790,"mtime_nsLine truncated
+4 -4
View File
@@ -63,12 +63,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">3702 nodes &middot; 6325 edges &middot; 309 communities</div>
<div id="stats">3882 nodes &middot; 6817 edges &middot; 295 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "ai_agency_orchestrate", "label": "orchestrate.py", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 13.0, "font": {"size": 0, "color": "#ffffff"}, "title": "orchestrate.py", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 8}, {"id": "ai_agency_orchestrate_load_json", "label": "load_json()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.9, "font": {"size": 0, "color": "#ffffff"}, "title": "load_json()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 5}, {"id": "ai_agency_orchestrate_save_json", "label": "save_json()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "save_json()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_status", "label": "cmd_status()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_status()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_progress", "label": "cmd_progress()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_progress()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_next_task", "label": "cmd_next_task()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_next_task()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_unblock", "label": "cmd_unblock()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.5, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_unblock()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 4}, {"id": "ai_agency_orchestrate_cmd_reset", "label": "cmd_reset()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_reset()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_main", "label": "main()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.2, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn", "label": "with-vpn.sh", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.2, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh", "community": 147, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn_sh__entry", "label": "with-vpn.sh script", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh script", "community": 147, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 3}, {"id": "gitea_scripts_with_vpn_log", "label": "log()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.9, "font": {"size": 0, "color": "#ffffff"}, "title": "log()", "community": 147, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 5}, {"id": "gitea_scripts_with_vpn_vpn_is_up", "label": "vpn_is_up()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffLine truncated
const RAW_EDGES = [{"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_next_task", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_progress", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_reset", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_status", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_unblock", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_load_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_main", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_save_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_next_task", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_progress", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_status", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_unblock", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_reset", "to": "ai_agency_orchestrate_save_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_unblock", "to": "ai_agency_orchestrate_save_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_status", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_progress", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_next_task", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_unblock", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_reset", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_cleanup", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_log", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_sh__entry", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_start_vpn", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7},Line truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": ".retryPayment", "count": 22}, {"cid": 1, "color": "#F28E2B", "label": "productService.ts", "count": 51}, {"cid": 2, "color": "#E15759", "label": "CmsController", "count": 53}, {"cid": 3, "color": "#76B7B2", "label": "app.module.ts", "count": 44}, {"cid": 4, "color": "#59A14F", "label": "ReviewsService", "count": 28}, {"cid": 5, "color": "#EDC948", "label": "tickets.controller.ts", "count": 50}, {"cid": 6, "color": "#B07AA1", "label": "userStore.ts", "count": 30}, {"cid": 7, "color": "#FF9DA7", "label": "MediaSelector.tsx", "count": 47}, {"cid": 8, "color": "#9C755F", "label": "PetProfile.tsx", "count": 26}, {"cid": 9, "color": "#BAB0AC", "label": "components/Skeleton.tsx", "count": 8}, {"cid": 10, "color": "#4E79A7", "label": "DoctorsService", "count": 30}, {"cid": 11, "color": "#F28E2B", "label": "trust-seals/page.tsx", "count": 5}, {"cid": 12, "color": "#E15759", "label": "adminRoutes.tsx", "count": 29}, {"cid": 13, "color": "#76B7B2", "label": "PrismaService", "count": 35}, {"cid": 14, "color": "#59A14F", "label": "pets/pets.controller.ts", "count": 27}, {"cid": 15, "color": "#EDC948", "label": "ProductsService", "count": 37}, {"cid": 16, "color": "#B07AA1", "label": "lib/services/api.ts", "count": 47}, {"cid": 17, "color": "#FF9DA7", "label": "CreateVideoDto", "count": 49}, {"cid": 18, "color": "#9C755F", "label": "src/services/api.ts", "count": 36}, {"cid": 19, "color": "#BAB0AC", "label": "auth.controller.ts", "count": 29}, {"cid": 20, "color": "#4E79A7", "label": "BE-001", "count": 33}, {"cid": 21, "color": "#F28E2B", "label": "Roles", "count": 88}, {"cid": 22, "color": "#E15759", "label": "FE-001", "count": 32}, {"cid": 23, "color": "#76B7B2", "label": "ADM-001", "count": 32}, {"cid": 24, "color": "#59A14F", "label": "DB-001", "count": 32}, {"cid": 25, "color": "#EDC948", "label": "TS-001", "count": 32}, {"cid": 26, "color": "#B07AA1", "label": "TEST-001", "count": 32}, {"cid": 27, "color": "#FF9DA7", "label": "DEVOPS-001", "count": 32}, {"cid": 28, "color": "#9C755F", "label": "DOC-001", "count": 32}, {"cid": 29, "color": "#BAB0AC", "label": "WholesaleService", "count": 24}, {"cid": 30, "color": "#4E79A7", "label": "main.ts", "count": 29}, {"cid": 31, "color": "#F28E2B", "label": "JwtAuthGuard", "count": 30}, {"cid": 32, "color": "#E15759", "label": "ZibalService", "count": 91}, {"cid": 33, "color": "#76B7B2", "label": "\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u062a\u0633\u062a \u0633\u06cc\u0633\u062a\u0645 (Software Testing)", "count": 29}, {"cid": 34, "color": "#59A14F", "label": "CategoriesController", "count": 31}, {"cid": 35, "color": "#EDC948", "label": "B2BService", "count": 30}, {"cid": 36, "color": "#B07AA1", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 37, "color": "#FF9DA7", "label": "toPersian", "count": 40}, {"cid": 38, "color": "#9C755F", "label": "UsersController", "count": 23}, {"cid": 39, "color": "#BAB0AC", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 40, "color": "#4E79A7", "label": "SslController", "count": 28}, {"cid": 41, "color": "#F28E2B", "label": "PodcastPlayerModal.tsx", "count": 5}, {"cid": 42, "color": "#E15759", "label": "IngredientsService", "count": 30}, {"cid": 43, "color": "#76B7B2", "label": "UsersService", "count": 24}, {"cid": 44, "color": "#59A14F", "label": "admin.module.ts", "count": 32}, {"cid": 45, "color": "#EDC948", "label": "Pagination.tsx", "count": 18}, {"cid": 46, "color": "#B07AA1", "label": "SmsService", "count": 23}, {"cid": 47, "color": "#FF9DA7", "label": "OrdersService", "count": 19}, {"cid": 48, "color": "#9C755F", "label": "PrescriptionsService", "count": 25}, {"cid": 49, "color": "#BAB0AC", "label": "SmartAdvisorService", "count": 28}, {"cid": 50, "color": "#4E79A7", "label": "TestimonialsService", "count": 25}, {"cid": 51, "color": "#F28E2B", "label": "Role &amp; Core Objective", "count": 23}, {"cid": 52, "color": "#E15759", "label": "AuthController", "count": 21}, {"cid": 53, "color": "#76B7B2", "label": "auth.module.ts", "count": 18}, {"cid": 54, "color": "#59A14F", "label": "compilerOptions", "count": 31}, {"cid": 55, "color": "#EDC948", "label": "Media.tsx", "count": 18}, {"cid": 56, "color": "#B07AA1", "label": "compilerOptions", "count": 24}, {"cid": 57, "color": "#FF9DA7", "label": "PetsController", "count": 14}, {"cid": 58, "color": "#9C755F", "label": "PaginationDto", "count": 22}, {"cid": 59, "color": "#BAB0AC", "label": "dependencies", "count": 41}, {"cid": 60, "color": "#4E79A7", "label": "compilerOptions", "count": 21}, {"cid": 61, "color": "#F28E2B", "label": "useSettingsStore", "count": 41}, {"cid": 62, "color": "#E15759", "label": "BlogsController", "count": 20}, {"cid": 63, "color": "#76B7B2", "label": "reviews.controller.ts", "count": 17}, {"cid": 64, "color": "#59A14F", "label": "BannersService", "count": 28}, {"cid": 65, "color": "#EDC948", "label": "Required Review Group Closures", "count": 20}, {"cid": 66, "color": "#B07ALine truncated
const RAW_NODES = [{"id": "ai_agency_orchestrate", "label": "orchestrate.py", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.3, "font": {"size": 0, "color": "#ffffff"}, "title": "orchestrate.py", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 8}, {"id": "ai_agency_orchestrate_load_json", "label": "load_json()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.5, "font": {"size": 0, "color": "#ffffff"}, "title": "load_json()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 5}, {"id": "ai_agency_orchestrate_save_json", "label": "save_json()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "save_json()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_status", "label": "cmd_status()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_status()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_progress", "label": "cmd_progress()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_progress()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_next_task", "label": "cmd_next_task()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_next_task()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_cmd_unblock", "label": "cmd_unblock()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_unblock()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 4}, {"id": "ai_agency_orchestrate_cmd_reset", "label": "cmd_reset()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "cmd_reset()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 3}, {"id": "ai_agency_orchestrate_main", "label": "main()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.7, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 127, "community_name": "orchestrate.py", "source_file": ".ai_agency/orchestrate.py", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn", "label": "with-vpn.sh", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.7, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh", "community": 147, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 6}, {"id": "gitea_scripts_with_vpn_sh__entry", "label": "with-vpn.sh script", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.9, "font": {"size": 0, "color": "#ffffff"}, "title": "with-vpn.sh script", "community": 147, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 3}, {"id": "gitea_scripts_with_vpn_log", "label": "log()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.5, "font": {"size": 0, "color": "#ffffff"}, "title": "log()", "community": 147, "community_name": "with-vpn.sh", "source_file": ".gitea/scripts/with-vpn.sh", "file_type": "code", "degree": 5}, {"id": "gitea_scripts_with_vpn_vpn_is_up", "label": "vpn_is_up()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffLine truncated
const RAW_EDGES = [{"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_next_task", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_progress", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_reset", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_status", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_cmd_unblock", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_load_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_main", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate", "to": "ai_agency_orchestrate_save_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_next_task", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_progress", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_status", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_unblock", "to": "ai_agency_orchestrate_load_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_reset", "to": "ai_agency_orchestrate_save_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_cmd_unblock", "to": "ai_agency_orchestrate_save_json", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_status", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_progress", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_next_task", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_unblock", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_agency_orchestrate_main", "to": "ai_agency_orchestrate_cmd_reset", "label": "indirect_call", "title": "indirect_call [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_cleanup", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_log", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_sh__entry", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "gitea_scripts_with_vpn", "to": "gitea_scripts_with_vpn_start_vpn", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7},Line truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "OrdersService", "count": 56}, {"cid": 1, "color": "#F28E2B", "label": "productService.ts", "count": 53}, {"cid": 2, "color": "#E15759", "label": "CmsController", "count": 53}, {"cid": 3, "color": "#76B7B2", "label": "app.module.ts", "count": 65}, {"cid": 4, "color": "#59A14F", "label": "CreateReviewDto", "count": 37}, {"cid": 5, "color": "#EDC948", "label": "tickets.controller.ts", "count": 48}, {"cid": 6, "color": "#B07AA1", "label": "AuthService", "count": 10}, {"cid": 7, "color": "#FF9DA7", "label": "MediaSelector.tsx", "count": 45}, {"cid": 8, "color": "#9C755F", "label": "PetProfile.tsx", "count": 29}, {"cid": 9, "color": "#BAB0AC", "label": "Roles", "count": 37}, {"cid": 10, "color": "#4E79A7", "label": "DoctorQueryDto", "count": 39}, {"cid": 11, "color": "#F28E2B", "label": "MenuService", "count": 32}, {"cid": 12, "color": "#E15759", "label": "adminRoutes.tsx", "count": 29}, {"cid": 13, "color": "#76B7B2", "label": "PrismaService", "count": 45}, {"cid": 14, "color": "#59A14F", "label": "pets/pets.controller.ts", "count": 19}, {"cid": 15, "color": "#EDC948", "label": "ProductsService", "count": 39}, {"cid": 16, "color": "#B07AA1", "label": "UserDashboard.tsx", "count": 32}, {"cid": 17, "color": "#FF9DA7", "label": "CreateVideoDto", "count": 44}, {"cid": 18, "color": "#9C755F", "label": "src/services/api.ts", "count": 40}, {"cid": 19, "color": "#BAB0AC", "label": "auth.controller.ts", "count": 57}, {"cid": 20, "color": "#4E79A7", "label": "BE-001", "count": 33}, {"cid": 21, "color": "#F28E2B", "label": "SmsService", "count": 99}, {"cid": 22, "color": "#E15759", "label": "FE-001", "count": 32}, {"cid": 23, "color": "#76B7B2", "label": "ADM-001", "count": 32}, {"cid": 24, "color": "#59A14F", "label": "DB-001", "count": 32}, {"cid": 25, "color": "#EDC948", "label": "TS-001", "count": 32}, {"cid": 26, "color": "#B07AA1", "label": "TEST-001", "count": 32}, {"cid": 27, "color": "#FF9DA7", "label": "DEVOPS-001", "count": 32}, {"cid": 28, "color": "#9C755F", "label": "DOC-001", "count": 32}, {"cid": 29, "color": "#BAB0AC", "label": "WholesaleService", "count": 24}, {"cid": 30, "color": "#4E79A7", "label": "app-audit-verification.e2e-spec.js", "count": 41}, {"cid": 31, "color": "#F28E2B", "label": "JwtAuthGuard", "count": 34}, {"cid": 32, "color": "#E15759", "label": "ZibalService", "count": 45}, {"cid": 33, "color": "#76B7B2", "label": "\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u062a\u0633\u062a \u0633\u06cc\u0633\u062a\u0645 (Software Testing)", "count": 29}, {"cid": 34, "color": "#59A14F", "label": "CategoriesController", "count": 28}, {"cid": 35, "color": "#EDC948", "label": "B2BService", "count": 29}, {"cid": 36, "color": "#B07AA1", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 37, "color": "#FF9DA7", "label": "lib/services/api.ts", "count": 64}, {"cid": 38, "color": "#9C755F", "label": "UsersService", "count": 66}, {"cid": 39, "color": "#BAB0AC", "label": "What You Must Do When Invoked", "count": 27}, {"cid": 40, "color": "#4E79A7", "label": "SslController", "count": 26}, {"cid": 41, "color": "#F28E2B", "label": "PodcastPlayerModal.tsx", "count": 5}, {"cid": 42, "color": "#E15759", "label": "IngredientsService", "count": 26}, {"cid": 43, "color": "#76B7B2", "label": "FaqService", "count": 28}, {"cid": 44, "color": "#59A14F", "label": "MediaController", "count": 28}, {"cid": 45, "color": "#EDC948", "label": "Media.tsx", "count": 23}, {"cid": 46, "color": "#B07AA1", "label": "ContactService", "count": 23}, {"cid": 47, "color": "#FF9DA7", "label": "zibal.service.ts", "count": 17}, {"cid": 48, "color": "#9C755F", "label": "PrescriptionsService", "count": 24}, {"cid": 49, "color": "#BAB0AC", "label": "SmartAdvisorService", "count": 24}, {"cid": 50, "color": "#4E79A7", "label": "TestimonialsService", "count": 26}, {"cid": 51, "color": "#F28E2B", "label": "Role &amp; Core Objective", "count": 23}, {"cid": 52, "color": "#E15759", "label": ".initiateOrderPayment", "count": 16}, {"cid": 53, "color": "#76B7B2", "label": "ZibalEBankService", "count": 16}, {"cid": 54, "color": "#59A14F", "label": "compilerOptions", "count": 31}, {"cid": 55, "color": "#EDC948", "label": "PrescriptionsManager.tsx", "count": 10}, {"cid": 56, "color": "#B07AA1", "label": "compilerOptions", "count": 24}, {"cid": 57, "color": "#FF9DA7", "label": "PetsController", "count": 14}, {"cid": 58, "color": "#9C755F", "label": "PaginationDto", "count": 22}, {"cid": 59, "color": "#BAB0AC", "label": "dependencies", "count": 41}, {"cid": 60, "color": "#4E79A7", "label": "compilerOptions", "count": 21}, {"cid": 61, "color": "#F28E2B", "label": "HomeClient.tsx", "count": 26}, {"cid": 62, "color": "#E15759", "label": "BlogsController", "count": 24}, {"cid": 63, "color": "#76B7B2", "label": "UpdateReviewDto", "count": 7}, {"cid": 64, "color": "#59A14F", "label": "BannersService", "count": 27}, {"cid": 65, "color": "#EDC948", "label": "Required Review Group Closures", "count": 20},Line truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
+15323 -7427
View File
File diff suppressed because it is too large. Load diff
+702 -624
View File
File diff suppressed because it is too large. Load diff