Commit release build artifacts for admin, user-app, and API.

Refresh hashed frontend bundles and the API release bundle after build:release.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-16 00:05:48 +03:30
co-authored by Cursor
parent 3add0683b3
commit 7bbdc6cbda
277 changed files with 302 additions and 912 deletions
+18 -4
View File
@@ -77866,7 +77866,7 @@ var require_secret_box = __commonJS({
if (!material) {
throw new Error("ACCOUNTING_SECRET_KEY \u062A\u0646\u0638\u06CC\u0645 \u0646\u0634\u062F\u0647 \u0627\u0633\u062A\u061B \u0630\u062E\u06CC\u0631\u0647\u200C\u06CC \u062A\u0648\u06A9\u0646 \u062D\u0633\u0627\u0628\u062F\u0627\u0631\u06CC \u0645\u0645\u06A9\u0646 \u0646\u06CC\u0633\u062A.");
}
return (0, crypto_1.createHash)("sha256").update(`goldbank-accounting:${material}`).digest();
return (0, crypto_1.createHash)("sha256").update(`hedena-gold-accounting:${material}`).digest();
}
function sealSecret(plain) {
const iv = (0, crypto_1.randomBytes)(12);
@@ -88612,7 +88612,7 @@ var require_brand = __commonJS({
exports2.brandSiteUrl = brandSiteUrl;
var env_12 = require_env();
function brandName() {
return (0, env_12.envOr)("BRAND_NAME", "\u0632\u0631\u062A\u0627\u062C");
return (0, env_12.envOr)("BRAND_NAME", "\u0647\u062F\u0646\u0627 \u06AF\u0644\u062F");
}
function brandSiteUrl() {
return (0, env_12.envOr)("BRAND_SITE_URL", "https://bnk.montzar.ir");
@@ -163590,7 +163590,8 @@ var require_migrate = __commonJS({
exports2.runOnce = runOnce;
var fs_1 = require("fs");
var path_1 = require("path");
var TRACKING_TABLE = "_goldbank_migrations";
var TRACKING_TABLE = "_hedenagold_migrations";
var LEGACY_TRACKING_TABLE = "_goldbank_migrations";
function resolveMigrationsDir() {
const candidates = [
process.env.MIGRATIONS_DIR,
@@ -163699,6 +163700,17 @@ var require_migrate = __commonJS({
async function runMigrations(prisma) {
const dir = resolveMigrationsDir();
const files = discoverMigrationFiles(dir);
await prisma.$executeRawUnsafe(`DO $$ BEGIN
IF EXISTS (
SELECT 1 FROM information_schema.tables
WHERE table_schema = current_schema() AND table_name = '${LEGACY_TRACKING_TABLE}'
) AND NOT EXISTS (
SELECT 1 FROM information_schema.tables
WHERE table_schema = current_schema() AND table_name = '${TRACKING_TABLE}'
) THEN
ALTER TABLE "${LEGACY_TRACKING_TABLE}" RENAME TO "${TRACKING_TABLE}";
END IF;
END $$`);
const trackingExisted = await prisma.$queryRawUnsafe(`SELECT EXISTS (
SELECT 1 FROM information_schema.tables
WHERE table_schema = current_schema() AND table_name = $1
@@ -163717,7 +163729,9 @@ var require_migrate = __commonJS({
continue;
const statements = splitSqlStatements((0, fs_1.readFileSync)(file2.path, "utf8")).filter((statement) => {
const normalized = statement.replace(/\s+/g, " ").trim().toLowerCase();
return !normalized.startsWith(`drop table "${TRACKING_TABLE.toLowerCase()}"`) && !normalized.startsWith(`drop table ${TRACKING_TABLE.toLowerCase()}`);
const dropCurrent = `drop table "${TRACKING_TABLE.toLowerCase()}"`;
const dropLegacy = `drop table "${LEGACY_TRACKING_TABLE.toLowerCase()}"`;
return !normalized.startsWith(dropCurrent) && !normalized.startsWith(`drop table ${TRACKING_TABLE.toLowerCase()}`) && !normalized.startsWith(dropLegacy) && !normalized.startsWith(`drop table ${LEGACY_TRACKING_TABLE.toLowerCase()}`);
});
await prisma.$transaction(
async (tx) => {
@@ -1,4 +1,4 @@
-- Additive migration: 0001_init created the original gold-bank tables.
-- Additive migration: 0001_init created the original core tables.
-- The admin-panel port later added columns/enums/tables to schema.prisma
-- without a SQL migration, which produced P2022 on production
-- ("The column Product.productCode does not exist").
+5 -4
View File
@@ -2083,11 +2083,12 @@ async function main() {
prisma.category.upsert({ where: { id: "cat-earrings" }, update: {}, create: { id: "cat-earrings", title: "\u06AF\u0648\u0634\u0648\u0627\u0631\u0647" } }),
prisma.category.upsert({ where: { id: "cat-coins" }, update: {}, create: { id: "cat-coins", title: "\u0633\u06A9\u0647 \u0648 \u0634\u0645\u0634" } })
]);
await prisma.brand.updateMany({ where: { id: "brand-henza" }, data: { id: "brand-montzar" } });
await prisma.brand.updateMany({ where: { id: "brand-henza" }, data: { id: "brand-hedena" } });
await prisma.brand.updateMany({ where: { id: "brand-montzar" }, data: { id: "brand-hedena" } });
const brandMain = await prisma.brand.upsert({
where: { id: "brand-montzar" },
update: { title: "\u0632\u0631\u062A\u0627\u062C \u0637\u0644\u0627" },
create: { id: "brand-montzar", title: "\u0632\u0631\u062A\u0627\u062C \u0637\u0644\u0627" }
where: { id: "brand-hedena" },
update: { title: "\u0647\u062F\u0646\u0627 \u06AF\u0644\u062F" },
create: { id: "brand-hedena", title: "\u0647\u062F\u0646\u0627 \u06AF\u0644\u062F" }
});
const brandArtisan = await prisma.brand.upsert({
where: { id: "brand-artisan" },
-9
View File
@@ -1,9 +0,0 @@
class PrismaClient {
constructor() {
throw new Error(
'@prisma/client/deno/edge did not initialize yet. Please run "prisma generate" and try to import it again.',
)
}
}
export { PrismaClient }
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "prisma-client-2865f0245bc905fafa9ec2b299c03c4ad7a157188246b5449e2f920f2b3a6c3d",
"name": "prisma-client-86c4201ec5d85046e85296e9de2d6ef3f60a1f01ce3e33d5e30cbeb3cd52c16a",
"main": "index.js",
"types": "index.d.ts",
"browser": "index-browser.js",
+3 -3
View File
@@ -1428,16 +1428,16 @@ model CustomerOtp {
/// so it is **kept and never written to or deleted from** (DEAD-07).
///
/// It is declared here purely so `prisma migrate diff` stops proposing
/// `DROP TABLE "_goldbank_migrations"` — an undeclared table reads as drift.
/// `DROP TABLE "_hedenagold_migrations"` — an undeclared table reads as drift.
/// `@@ignore` keeps it out of Prisma Client: nothing in the application should
/// ever read or write it, and Prisma Migrate will not manage its shape either.
///
/// Prisma's own ledger is `_prisma_migrations`, which is separate and is never
/// edited by hand (D14).
model goldbank_migrations {
model hedenagold_migrations {
name String @id
appliedAt DateTime @default(now()) @map("applied_at") @db.Timestamptz(6)
@@map("_goldbank_migrations")
@@map("_hedenagold_migrations")
@@ignore
}