feat: purchase-plans global update

This commit is contained in:
ivannoskov
2026-02-02 21:01:11 +03:00
parent f9c334ba22
commit 735077e707
11 changed files with 2575 additions and 534 deletions

View File

@@ -312,15 +312,19 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
project_id: "proj-0001-0000-0000-000000000001",
status: "Оплачено",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Креатив 1",
comment: "crypto_jan",
invite_link: "https://t.me/+abc123",
invite_link_created_at: "2024-12-19T10:00:00Z",
invite_link_type: "public",
channel: demoPlacementChannels[0],
project: demoProjects[0],
short_id: "abc123",
details: {
placement_at: "2024-12-20T12:00:00Z",
payment_at: "2024-12-19T10:00:00Z",
cost: { type: "fixed", value: 5500 },
cost_before_bargain: 6000,
cost_before_bargain: { type: "fixed", value: 6000 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
@@ -329,6 +333,8 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
placement_post: {
subscriptions_count: 156,
views_count: 8500,
status: "Пост вышел",
time_on_top: null,
created_at: "2024-12-20T12:00:00Z",
post: {
id: "post-0001-0000-0000-000000000001",
@@ -336,6 +342,7 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
text: "Привет! Отличные новости...",
url: "https://t.me/tech_future/12345",
deleted_from_channel_at: null,
published_at: null,
created_at: "2024-12-20T12:00:00Z",
updated_at: "2024-12-20T12:00:00Z",
},
@@ -347,15 +354,19 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
project_id: "proj-0001-0000-0000-000000000001",
status: "Согласование условий",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Креатив 1",
comment: "crypto_feb",
invite_link: "https://t.me/+def456",
invite_link_created_at: null,
invite_link_type: "approval",
channel: demoPlacementChannels[1],
project: demoProjects[0],
short_id: "def456",
details: {
placement_at: "2024-12-25T14:00:00Z",
payment_at: null,
cost: { type: "fixed", value: 3200 },
cost_before_bargain: 3500,
cost_before_bargain: { type: "fixed", value: 3500 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
@@ -369,15 +380,19 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
project_id: "proj-0001-0000-0000-000000000001",
status: "Оплачено",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Креатив 1",
comment: null,
invite_link: "https://t.me/+ghi789",
invite_link_created_at: "2024-12-14T16:00:00Z",
invite_link_type: "public",
channel: demoPlacementChannels[2],
project: demoProjects[0],
short_id: "ghi789",
details: {
placement_at: "2024-12-15T10:00:00Z",
payment_at: "2024-12-14T16:00:00Z",
cost: { type: "fixed", value: 4800 },
cost_before_bargain: 5000,
cost_before_bargain: { type: "fixed", value: 5000 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
@@ -386,6 +401,8 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
placement_post: {
subscriptions_count: 234,
views_count: 12000,
status: "Пост вышел",
time_on_top: null,
created_at: "2024-12-15T10:00:00Z",
post: {
id: "post-0002-0000-0000-000000000002",
@@ -393,6 +410,7 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
text: "Криптовалюты продолжают расти...",
url: "https://t.me/programmers/67890",
deleted_from_channel_at: null,
published_at: null,
created_at: "2024-12-15T10:00:00Z",
updated_at: "2024-12-15T10:00:00Z",
},
@@ -404,66 +422,172 @@ export const demoPlacements: (Placement & { project_id: string })[] = [
project_id: "proj-0001-0000-0000-000000000001",
status: "Ждём ответа",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Креатив 1",
comment: null,
invite_link: "https://t.me/+jkl012",
invite_link_type: "public",
invite_link: null,
invite_link_created_at: null,
invite_link_type: "approval",
channel: demoPlacementChannels[3],
project: demoProjects[0],
short_id: "jkl012",
details: {
placement_at: "2024-12-28T09:00:00Z",
placement_at: "2024-12-30T11:00:00Z",
payment_at: null,
cost: { type: "fixed", value: 2500 },
cost_before_bargain: 2800,
cost: { type: "fixed", value: 6100 },
cost_before_bargain: { type: "fixed", value: 6500 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
creative_id: "crea-0001-0000-0000-000000000001",
},
placement_post: null,
created_at: "2024-12-24T14:00:00Z",
created_at: "2024-12-27T08:00:00Z",
},
{
id: "plac-0005-0000-0000-000000000005",
project_id: "proj-0002-0000-0000-000000000002",
status: "Написать",
creative_id: "crea-0002-0000-0000-000000000002",
comment: "Новый оффер",
project_id: "proj-0001-0000-0000-000000000001",
status: "Неактуально",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Креатив 1",
comment: "Разобрались без рекламы",
invite_link: null,
invite_link_type: "approval",
channel: demoPlacementChannels[0],
invite_link_created_at: null,
invite_link_type: "public",
channel: demoPlacementChannels[4],
project: demoProjects[0],
short_id: "mno345",
details: {
placement_at: null,
payment_at: null,
cost: { type: "fixed", value: 6000 },
cost_before_bargain: null,
cost: { type: "fixed", value: 7300 },
cost_before_bargain: { type: "fixed", value: 7800 },
placement_type: "self_promo",
format: "Спонсорский",
format: "Стандарт",
comment: null,
creative_id: "crea-0002-0000-0000-000000000002",
creative_id: "crea-0001-0000-0000-000000000001",
},
placement_post: null,
created_at: "2024-12-26T08:00:00Z",
created_at: "2024-12-25T14:00:00Z",
},
{
id: "plac-0006-0000-0000-000000000006",
project_id: "proj-0002-0000-0000-000000000002",
status: "Отмена",
creative_id: "crea-0001-0000-0000-000000000001",
comment: "Неактуально",
status: "Согласование условий",
creative_id: "crea-0002-0000-0000-000000000002",
creative_name: "Креатив 2",
comment: null,
invite_link: null,
invite_link_type: "public",
channel: demoPlacementChannels[1],
invite_link_created_at: null,
invite_link_type: "approval",
channel: demoPlacementChannels[5],
project: demoProjects[1],
short_id: "pqr678",
details: {
placement_at: null,
placement_at: "2025-01-05T15:00:00Z",
payment_at: null,
cost: null,
cost_before_bargain: null,
placement_type: null,
format: null,
comment: "Клиент отказался",
creative_id: null,
cost: { type: "fixed", value: 4100 },
cost_before_bargain: { type: "fixed", value: 4500 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
creative_id: "crea-0002-0000-0000-000000000002",
},
placement_post: null,
created_at: "2024-12-10T10:00:00Z",
created_at: "2025-01-02T10:00:00Z",
},
{
id: "plac-0007-0000-0000-000000000007",
project_id: "proj-0002-0000-0000-000000000002",
status: "Оплачено",
creative_id: "crea-0002-0000-0000-000000000002",
creative_name: "Креатив 2",
comment: "finance_mar",
invite_link: "https://t.me/+stu901",
invite_link_created_at: "2025-01-06T12:00:00Z",
invite_link_type: "public",
channel: demoPlacementChannels[6],
project: demoProjects[1],
short_id: "stu901",
details: {
placement_at: "2025-01-07T09:00:00Z",
payment_at: "2025-01-06T12:00:00Z",
cost: { type: "fixed", value: 5700 },
cost_before_bargain: { type: "fixed", value: 6100 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
creative_id: "crea-0002-0000-0000-000000000002",
},
placement_post: {
subscriptions_count: 298,
views_count: 15500,
status: "Пост вышел",
time_on_top: null,
created_at: "2025-01-07T09:00:00Z",
post: {
id: "post-0003-0000-0000-000000000003",
message_id: 11111,
text: "Важное обновление в нашем продукте...",
url: "https://t.me/product_updates/11111",
deleted_from_channel_at: null,
published_at: null,
created_at: "2025-01-07T09:00:00Z",
updated_at: "2025-01-07T09:00:00Z",
},
},
created_at: "2025-01-04T11:00:00Z",
},
{
id: "plac-0008-0000-0000-000000000008",
project_id: "proj-0002-0000-0000-000000000002",
status: "Ждём ответа",
creative_id: "crea-0002-0000-0000-000000000002",
creative_name: "Креатив 2",
comment: null,
invite_link: null,
invite_link_created_at: null,
invite_link_type: "approval",
channel: demoPlacementChannels[7],
project: demoProjects[1],
short_id: "vwx234",
details: {
placement_at: "2025-01-12T16:00:00Z",
payment_at: null,
cost: { type: "fixed", value: 6900 },
cost_before_bargain: { type: "fixed", value: 7400 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
creative_id: "crea-0002-0000-0000-000000000002",
},
placement_post: null,
created_at: "2025-01-09T13:00:00Z",
},
{
id: "plac-0009-0000-0000-000000000009",
project_id: "proj-0003-0000-0000-000000000003",
status: "Согласование условий",
creative_id: "crea-0003-0000-0000-000000000003",
creative_name: "Креатив 3",
comment: null,
invite_link: null,
invite_link_created_at: null,
invite_link_type: "approval",
channel: demoPlacementChannels[8],
project: demoProjects[2],
short_id: "yza567",
details: {
placement_at: "2025-01-18T11:00:00Z",
payment_at: null,
cost: { type: "fixed", value: 3500 },
cost_before_bargain: { type: "fixed", value: 3800 },
placement_type: "self_promo",
format: "Стандарт",
comment: null,
creative_id: "crea-0003-0000-0000-000000000003",
},
placement_post: null,
created_at: "2025-01-15T09:00:00Z",
},
];