@elevasis/ui 2.68.0 → 2.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +577 -367
- package/dist/app/index.js +12 -21
- package/dist/auth/index.css +149 -149
- package/dist/auth/index.d.ts +5 -0
- package/dist/auth/index.js +7 -7
- package/dist/charts/index.css +208 -208
- package/dist/charts/index.js +7 -7
- package/dist/{chunk-JC5W55J3.js → chunk-26BTE3Z4.js} +1 -1
- package/dist/{chunk-ZFISGKYW.js → chunk-4JHLS234.js} +1 -1
- package/dist/{chunk-76IVMVI3.js → chunk-6PZFOHJK.js} +3 -3
- package/dist/{chunk-WPIASV3H.js → chunk-7WJEPTE7.js} +2 -2
- package/dist/{chunk-UFTM5SZZ.js → chunk-AKANHRQ5.js} +9 -3
- package/dist/{chunk-NDHMZT2G.js → chunk-C75XWBYZ.js} +1 -1
- package/dist/{chunk-R6NMRXNO.js → chunk-FLECOYUS.js} +1 -1
- package/dist/{chunk-2MTP3H3A.js → chunk-IRV6KJPV.js} +1 -1
- package/dist/{chunk-OOACTYRA.js → chunk-IT7GTJCB.js} +1 -1
- package/dist/{chunk-QYI5BZKM.js → chunk-MFLM7BVC.js} +1 -1
- package/dist/{chunk-TGPJNKDU.js → chunk-MRVGQLWN.js} +4 -4
- package/dist/{chunk-L3HFJFYF.js → chunk-NM4A63KJ.js} +30 -48
- package/dist/{chunk-SIVUCZXQ.js → chunk-NU3NBXHP.js} +1 -1
- package/dist/{chunk-HJVPVS57.js → chunk-RW64UJWT.js} +5 -5
- package/dist/{chunk-5NRJ2BLQ.js → chunk-VDX6DL7Z.js} +1 -1
- package/dist/{chunk-ZGCWTWBD.js → chunk-WXHAHKKI.js} +6167 -5883
- package/dist/{chunk-75NOC536.js → chunk-XAZR3T6Y.js} +5 -5
- package/dist/{chunk-GBXTRSAU.js → chunk-XQ3ILKYN.js} +1 -1
- package/dist/{chunk-TYKAKJGW.js → chunk-YCRINA2D.js} +1 -1
- package/dist/{chunk-FK3K2VK2.js → chunk-YGCMMOY4.js} +80 -699
- package/dist/{chunk-ZWS3TCQR.js → chunk-YNRYIXUT.js} +22 -109
- package/dist/{chunk-ZNKZMK2E.js → chunk-ZD6LM53O.js} +5 -5
- package/dist/chunk-ZPTEGGKU.js +631 -0
- package/dist/components/index.css +208 -208
- package/dist/components/index.d.ts +1614 -256
- package/dist/components/index.js +31 -30
- package/dist/components/navigation/index.css +149 -149
- package/dist/components/navigation/index.js +8 -8
- package/dist/features/auth/index.css +149 -149
- package/dist/features/auth/index.d.ts +457 -163
- package/dist/features/auth/index.js +9 -9
- package/dist/features/clients/index.css +208 -208
- package/dist/features/clients/index.d.ts +39 -1
- package/dist/features/clients/index.js +8 -7
- package/dist/features/content/index.css +659 -0
- package/dist/features/content/index.d.ts +1788 -0
- package/dist/features/content/index.js +2180 -0
- package/dist/features/crm/index.d.ts +584 -369
- package/dist/features/crm/index.js +9 -9
- package/dist/features/dashboard/index.d.ts +0 -6
- package/dist/features/dashboard/index.js +11 -10
- package/dist/features/delivery/index.d.ts +457 -163
- package/dist/features/delivery/index.js +8 -8
- package/dist/features/knowledge/index.css +149 -149
- package/dist/features/knowledge/index.js +7 -7
- package/dist/features/lead-gen/index.d.ts +20 -91
- package/dist/features/lead-gen/index.js +9 -9
- package/dist/features/monitoring/index.js +10 -10
- package/dist/features/monitoring/requests/index.js +9 -14
- package/dist/features/operations/index.d.ts +0 -84
- package/dist/features/operations/index.js +14 -13
- package/dist/features/settings/index.d.ts +457 -163
- package/dist/features/settings/index.js +10 -10
- package/dist/hooks/access/index.css +149 -149
- package/dist/hooks/access/index.d.ts +5 -0
- package/dist/hooks/access/index.js +7 -7
- package/dist/hooks/delivery/index.d.ts +457 -163
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.d.ts +2190 -237
- package/dist/hooks/index.js +7 -7
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -6
- package/dist/hooks/published.d.ts +2190 -237
- package/dist/hooks/published.js +7 -7
- package/dist/initialization/index.d.ts +464 -164
- package/dist/knowledge/index.css +149 -149
- package/dist/knowledge/index.d.ts +4 -88
- package/dist/knowledge/index.js +3213 -3203
- package/dist/{knowledge-search-index-6EZNBNSR.js → knowledge-search-index-LP2WVSQX.js} +689 -695
- package/dist/layout/index.css +149 -149
- package/dist/layout/index.js +10 -10
- package/dist/organization/index.d.ts +7 -1
- package/dist/profile/index.d.ts +457 -163
- package/dist/provider/index.d.ts +577 -368
- package/dist/provider/index.js +7 -7
- package/dist/provider/published.css +149 -149
- package/dist/provider/published.d.ts +577 -368
- package/dist/provider/published.js +7 -7
- package/dist/supabase/index.d.ts +906 -339
- package/dist/test-utils/index.d.ts +10 -2
- package/dist/test-utils/index.js +39 -10
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/types/index.d.ts +464 -170
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/package.json +9 -5
- package/src/features/README.md +28 -28
- /package/dist/{chunk-RBGVNPA6.js → chunk-XQBURFKM.js} +0 -0
|
@@ -6,53 +6,6 @@ type Json = string | number | boolean | null | {
|
|
|
6
6
|
type Database = {
|
|
7
7
|
public: {
|
|
8
8
|
Tables: {
|
|
9
|
-
acq_artifacts: {
|
|
10
|
-
Row: {
|
|
11
|
-
content: Json;
|
|
12
|
-
created_at: string;
|
|
13
|
-
created_by: string | null;
|
|
14
|
-
id: string;
|
|
15
|
-
kind: string;
|
|
16
|
-
organization_id: string;
|
|
17
|
-
owner_id: string;
|
|
18
|
-
owner_kind: string;
|
|
19
|
-
source_execution_id: string | null;
|
|
20
|
-
version: number;
|
|
21
|
-
};
|
|
22
|
-
Insert: {
|
|
23
|
-
content: Json;
|
|
24
|
-
created_at?: string;
|
|
25
|
-
created_by?: string | null;
|
|
26
|
-
id?: string;
|
|
27
|
-
kind: string;
|
|
28
|
-
organization_id: string;
|
|
29
|
-
owner_id: string;
|
|
30
|
-
owner_kind: string;
|
|
31
|
-
source_execution_id?: string | null;
|
|
32
|
-
version?: number;
|
|
33
|
-
};
|
|
34
|
-
Update: {
|
|
35
|
-
content?: Json;
|
|
36
|
-
created_at?: string;
|
|
37
|
-
created_by?: string | null;
|
|
38
|
-
id?: string;
|
|
39
|
-
kind?: string;
|
|
40
|
-
organization_id?: string;
|
|
41
|
-
owner_id?: string;
|
|
42
|
-
owner_kind?: string;
|
|
43
|
-
source_execution_id?: string | null;
|
|
44
|
-
version?: number;
|
|
45
|
-
};
|
|
46
|
-
Relationships: [
|
|
47
|
-
{
|
|
48
|
-
foreignKeyName: "acq_artifacts_organization_id_fkey";
|
|
49
|
-
columns: ["organization_id"];
|
|
50
|
-
isOneToOne: false;
|
|
51
|
-
referencedRelation: "organizations";
|
|
52
|
-
referencedColumns: ["id"];
|
|
53
|
-
}
|
|
54
|
-
];
|
|
55
|
-
};
|
|
56
9
|
acq_companies: {
|
|
57
10
|
Row: {
|
|
58
11
|
batch_id: string | null;
|
|
@@ -264,122 +217,6 @@ type Database = {
|
|
|
264
217
|
}
|
|
265
218
|
];
|
|
266
219
|
};
|
|
267
|
-
acq_content: {
|
|
268
|
-
Row: {
|
|
269
|
-
body: string | null;
|
|
270
|
-
created_at: string;
|
|
271
|
-
id: string;
|
|
272
|
-
organization_id: string;
|
|
273
|
-
pillar: string;
|
|
274
|
-
status: string;
|
|
275
|
-
title: string;
|
|
276
|
-
updated_at: string;
|
|
277
|
-
};
|
|
278
|
-
Insert: {
|
|
279
|
-
body?: string | null;
|
|
280
|
-
created_at?: string;
|
|
281
|
-
id?: string;
|
|
282
|
-
organization_id: string;
|
|
283
|
-
pillar: string;
|
|
284
|
-
status?: string;
|
|
285
|
-
title: string;
|
|
286
|
-
updated_at?: string;
|
|
287
|
-
};
|
|
288
|
-
Update: {
|
|
289
|
-
body?: string | null;
|
|
290
|
-
created_at?: string;
|
|
291
|
-
id?: string;
|
|
292
|
-
organization_id?: string;
|
|
293
|
-
pillar?: string;
|
|
294
|
-
status?: string;
|
|
295
|
-
title?: string;
|
|
296
|
-
updated_at?: string;
|
|
297
|
-
};
|
|
298
|
-
Relationships: [
|
|
299
|
-
{
|
|
300
|
-
foreignKeyName: "acq_content_organization_id_fkey";
|
|
301
|
-
columns: ["organization_id"];
|
|
302
|
-
isOneToOne: false;
|
|
303
|
-
referencedRelation: "organizations";
|
|
304
|
-
referencedColumns: ["id"];
|
|
305
|
-
}
|
|
306
|
-
];
|
|
307
|
-
};
|
|
308
|
-
acq_content_distributions: {
|
|
309
|
-
Row: {
|
|
310
|
-
adapted_body: string | null;
|
|
311
|
-
checklist: Json | null;
|
|
312
|
-
content_id: string;
|
|
313
|
-
created_at: string;
|
|
314
|
-
format: string;
|
|
315
|
-
id: string;
|
|
316
|
-
media_urls: Json;
|
|
317
|
-
metrics: Json;
|
|
318
|
-
metrics_updated_at: string | null;
|
|
319
|
-
organization_id: string;
|
|
320
|
-
platform: string;
|
|
321
|
-
platform_content: Json | null;
|
|
322
|
-
platform_post_id: string | null;
|
|
323
|
-
platform_url: string | null;
|
|
324
|
-
published_at: string | null;
|
|
325
|
-
status: string;
|
|
326
|
-
updated_at: string;
|
|
327
|
-
};
|
|
328
|
-
Insert: {
|
|
329
|
-
adapted_body?: string | null;
|
|
330
|
-
checklist?: Json | null;
|
|
331
|
-
content_id: string;
|
|
332
|
-
created_at?: string;
|
|
333
|
-
format: string;
|
|
334
|
-
id?: string;
|
|
335
|
-
media_urls?: Json;
|
|
336
|
-
metrics?: Json;
|
|
337
|
-
metrics_updated_at?: string | null;
|
|
338
|
-
organization_id: string;
|
|
339
|
-
platform: string;
|
|
340
|
-
platform_content?: Json | null;
|
|
341
|
-
platform_post_id?: string | null;
|
|
342
|
-
platform_url?: string | null;
|
|
343
|
-
published_at?: string | null;
|
|
344
|
-
status?: string;
|
|
345
|
-
updated_at?: string;
|
|
346
|
-
};
|
|
347
|
-
Update: {
|
|
348
|
-
adapted_body?: string | null;
|
|
349
|
-
checklist?: Json | null;
|
|
350
|
-
content_id?: string;
|
|
351
|
-
created_at?: string;
|
|
352
|
-
format?: string;
|
|
353
|
-
id?: string;
|
|
354
|
-
media_urls?: Json;
|
|
355
|
-
metrics?: Json;
|
|
356
|
-
metrics_updated_at?: string | null;
|
|
357
|
-
organization_id?: string;
|
|
358
|
-
platform?: string;
|
|
359
|
-
platform_content?: Json | null;
|
|
360
|
-
platform_post_id?: string | null;
|
|
361
|
-
platform_url?: string | null;
|
|
362
|
-
published_at?: string | null;
|
|
363
|
-
status?: string;
|
|
364
|
-
updated_at?: string;
|
|
365
|
-
};
|
|
366
|
-
Relationships: [
|
|
367
|
-
{
|
|
368
|
-
foreignKeyName: "acq_content_distributions_content_id_fkey";
|
|
369
|
-
columns: ["content_id"];
|
|
370
|
-
isOneToOne: false;
|
|
371
|
-
referencedRelation: "acq_content";
|
|
372
|
-
referencedColumns: ["id"];
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
foreignKeyName: "acq_content_distributions_organization_id_fkey";
|
|
376
|
-
columns: ["organization_id"];
|
|
377
|
-
isOneToOne: false;
|
|
378
|
-
referencedRelation: "organizations";
|
|
379
|
-
referencedColumns: ["id"];
|
|
380
|
-
}
|
|
381
|
-
];
|
|
382
|
-
};
|
|
383
220
|
acq_deal_notes: {
|
|
384
221
|
Row: {
|
|
385
222
|
author_user_id: string | null;
|
|
@@ -409,6 +246,13 @@ type Database = {
|
|
|
409
246
|
updated_at?: string;
|
|
410
247
|
};
|
|
411
248
|
Relationships: [
|
|
249
|
+
{
|
|
250
|
+
foreignKeyName: "acq_deal_notes_author_user_id_fkey";
|
|
251
|
+
columns: ["author_user_id"];
|
|
252
|
+
isOneToOne: false;
|
|
253
|
+
referencedRelation: "users";
|
|
254
|
+
referencedColumns: ["id"];
|
|
255
|
+
},
|
|
412
256
|
{
|
|
413
257
|
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
414
258
|
columns: ["deal_id"];
|
|
@@ -472,6 +316,27 @@ type Database = {
|
|
|
472
316
|
updated_at?: string;
|
|
473
317
|
};
|
|
474
318
|
Relationships: [
|
|
319
|
+
{
|
|
320
|
+
foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
|
|
321
|
+
columns: ["assignee_user_id"];
|
|
322
|
+
isOneToOne: false;
|
|
323
|
+
referencedRelation: "users";
|
|
324
|
+
referencedColumns: ["id"];
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
|
|
328
|
+
columns: ["completed_by_user_id"];
|
|
329
|
+
isOneToOne: false;
|
|
330
|
+
referencedRelation: "users";
|
|
331
|
+
referencedColumns: ["id"];
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
|
|
335
|
+
columns: ["created_by_user_id"];
|
|
336
|
+
isOneToOne: false;
|
|
337
|
+
referencedRelation: "users";
|
|
338
|
+
referencedColumns: ["id"];
|
|
339
|
+
},
|
|
475
340
|
{
|
|
476
341
|
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
477
342
|
columns: ["deal_id"];
|
|
@@ -628,6 +493,13 @@ type Database = {
|
|
|
628
493
|
referencedRelation: "acq_contacts";
|
|
629
494
|
referencedColumns: ["id"];
|
|
630
495
|
},
|
|
496
|
+
{
|
|
497
|
+
foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
|
|
498
|
+
columns: ["discovery_submitted_by"];
|
|
499
|
+
isOneToOne: false;
|
|
500
|
+
referencedRelation: "users";
|
|
501
|
+
referencedColumns: ["id"];
|
|
502
|
+
},
|
|
631
503
|
{
|
|
632
504
|
foreignKeyName: "acq_deals_organization_id_fkey";
|
|
633
505
|
columns: ["organization_id"];
|
|
@@ -635,6 +507,13 @@ type Database = {
|
|
|
635
507
|
referencedRelation: "organizations";
|
|
636
508
|
referencedColumns: ["id"];
|
|
637
509
|
},
|
|
510
|
+
{
|
|
511
|
+
foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
|
|
512
|
+
columns: ["proposal_reviewed_by"];
|
|
513
|
+
isOneToOne: false;
|
|
514
|
+
referencedRelation: "users";
|
|
515
|
+
referencedColumns: ["id"];
|
|
516
|
+
},
|
|
638
517
|
{
|
|
639
518
|
foreignKeyName: "acq_deals_source_list_id_fkey";
|
|
640
519
|
columns: ["source_list_id"];
|
|
@@ -688,6 +567,13 @@ type Database = {
|
|
|
688
567
|
state_key?: string;
|
|
689
568
|
};
|
|
690
569
|
Relationships: [
|
|
570
|
+
{
|
|
571
|
+
foreignKeyName: "acq_list_companies_added_by_fkey";
|
|
572
|
+
columns: ["added_by"];
|
|
573
|
+
isOneToOne: false;
|
|
574
|
+
referencedRelation: "users";
|
|
575
|
+
referencedColumns: ["id"];
|
|
576
|
+
},
|
|
691
577
|
{
|
|
692
578
|
foreignKeyName: "acq_list_companies_company_id_fkey";
|
|
693
579
|
columns: ["company_id"];
|
|
@@ -794,6 +680,13 @@ type Database = {
|
|
|
794
680
|
state_key?: string;
|
|
795
681
|
};
|
|
796
682
|
Relationships: [
|
|
683
|
+
{
|
|
684
|
+
foreignKeyName: "acq_list_members_added_by_fkey";
|
|
685
|
+
columns: ["added_by"];
|
|
686
|
+
isOneToOne: false;
|
|
687
|
+
referencedRelation: "users";
|
|
688
|
+
referencedColumns: ["id"];
|
|
689
|
+
},
|
|
797
690
|
{
|
|
798
691
|
foreignKeyName: "acq_list_members_contact_id_fkey";
|
|
799
692
|
columns: ["contact_id"];
|
|
@@ -1194,6 +1087,13 @@ type Database = {
|
|
|
1194
1087
|
title?: string;
|
|
1195
1088
|
};
|
|
1196
1089
|
Relationships: [
|
|
1090
|
+
{
|
|
1091
|
+
foreignKeyName: "activities_actor_id_fkey";
|
|
1092
|
+
columns: ["actor_id"];
|
|
1093
|
+
isOneToOne: false;
|
|
1094
|
+
referencedRelation: "users";
|
|
1095
|
+
referencedColumns: ["id"];
|
|
1096
|
+
},
|
|
1197
1097
|
{
|
|
1198
1098
|
foreignKeyName: "activities_organization_id_fkey";
|
|
1199
1099
|
columns: ["organization_id"];
|
|
@@ -1306,6 +1206,62 @@ type Database = {
|
|
|
1306
1206
|
}
|
|
1307
1207
|
];
|
|
1308
1208
|
};
|
|
1209
|
+
artifacts: {
|
|
1210
|
+
Row: {
|
|
1211
|
+
content: Json;
|
|
1212
|
+
created_at: string;
|
|
1213
|
+
created_by: string | null;
|
|
1214
|
+
id: string;
|
|
1215
|
+
is_active: boolean;
|
|
1216
|
+
kind: string;
|
|
1217
|
+
organization_id: string;
|
|
1218
|
+
owner_id: string | null;
|
|
1219
|
+
owner_kind: string;
|
|
1220
|
+
pipeline_id: string | null;
|
|
1221
|
+
source_execution_id: string | null;
|
|
1222
|
+
updated_at: string;
|
|
1223
|
+
version: number;
|
|
1224
|
+
};
|
|
1225
|
+
Insert: {
|
|
1226
|
+
content: Json;
|
|
1227
|
+
created_at?: string;
|
|
1228
|
+
created_by?: string | null;
|
|
1229
|
+
id?: string;
|
|
1230
|
+
is_active?: boolean;
|
|
1231
|
+
kind: string;
|
|
1232
|
+
organization_id: string;
|
|
1233
|
+
owner_id?: string | null;
|
|
1234
|
+
owner_kind: string;
|
|
1235
|
+
pipeline_id?: string | null;
|
|
1236
|
+
source_execution_id?: string | null;
|
|
1237
|
+
updated_at?: string;
|
|
1238
|
+
version?: number;
|
|
1239
|
+
};
|
|
1240
|
+
Update: {
|
|
1241
|
+
content?: Json;
|
|
1242
|
+
created_at?: string;
|
|
1243
|
+
created_by?: string | null;
|
|
1244
|
+
id?: string;
|
|
1245
|
+
is_active?: boolean;
|
|
1246
|
+
kind?: string;
|
|
1247
|
+
organization_id?: string;
|
|
1248
|
+
owner_id?: string | null;
|
|
1249
|
+
owner_kind?: string;
|
|
1250
|
+
pipeline_id?: string | null;
|
|
1251
|
+
source_execution_id?: string | null;
|
|
1252
|
+
updated_at?: string;
|
|
1253
|
+
version?: number;
|
|
1254
|
+
};
|
|
1255
|
+
Relationships: [
|
|
1256
|
+
{
|
|
1257
|
+
foreignKeyName: "artifacts_organization_id_fkey";
|
|
1258
|
+
columns: ["organization_id"];
|
|
1259
|
+
isOneToOne: false;
|
|
1260
|
+
referencedRelation: "organizations";
|
|
1261
|
+
referencedColumns: ["id"];
|
|
1262
|
+
}
|
|
1263
|
+
];
|
|
1264
|
+
};
|
|
1309
1265
|
clients: {
|
|
1310
1266
|
Row: {
|
|
1311
1267
|
converted_at: string | null;
|
|
@@ -1477,6 +1433,311 @@ type Database = {
|
|
|
1477
1433
|
}
|
|
1478
1434
|
];
|
|
1479
1435
|
};
|
|
1436
|
+
content_distributions: {
|
|
1437
|
+
Row: {
|
|
1438
|
+
adapted_body: string | null;
|
|
1439
|
+
checklist: Json | null;
|
|
1440
|
+
content_item_id: string;
|
|
1441
|
+
created_at: string;
|
|
1442
|
+
format: string;
|
|
1443
|
+
id: string;
|
|
1444
|
+
media_urls: Json;
|
|
1445
|
+
metrics: Json;
|
|
1446
|
+
metrics_updated_at: string | null;
|
|
1447
|
+
organization_id: string;
|
|
1448
|
+
platform: string;
|
|
1449
|
+
platform_content: Json | null;
|
|
1450
|
+
platform_post_id: string | null;
|
|
1451
|
+
platform_url: string | null;
|
|
1452
|
+
processing_state: Json;
|
|
1453
|
+
publish_method: string | null;
|
|
1454
|
+
published_at: string | null;
|
|
1455
|
+
status: string;
|
|
1456
|
+
updated_at: string;
|
|
1457
|
+
};
|
|
1458
|
+
Insert: {
|
|
1459
|
+
adapted_body?: string | null;
|
|
1460
|
+
checklist?: Json | null;
|
|
1461
|
+
content_item_id: string;
|
|
1462
|
+
created_at?: string;
|
|
1463
|
+
format: string;
|
|
1464
|
+
id?: string;
|
|
1465
|
+
media_urls?: Json;
|
|
1466
|
+
metrics?: Json;
|
|
1467
|
+
metrics_updated_at?: string | null;
|
|
1468
|
+
organization_id: string;
|
|
1469
|
+
platform: string;
|
|
1470
|
+
platform_content?: Json | null;
|
|
1471
|
+
platform_post_id?: string | null;
|
|
1472
|
+
platform_url?: string | null;
|
|
1473
|
+
processing_state?: Json;
|
|
1474
|
+
publish_method?: string | null;
|
|
1475
|
+
published_at?: string | null;
|
|
1476
|
+
status?: string;
|
|
1477
|
+
updated_at?: string;
|
|
1478
|
+
};
|
|
1479
|
+
Update: {
|
|
1480
|
+
adapted_body?: string | null;
|
|
1481
|
+
checklist?: Json | null;
|
|
1482
|
+
content_item_id?: string;
|
|
1483
|
+
created_at?: string;
|
|
1484
|
+
format?: string;
|
|
1485
|
+
id?: string;
|
|
1486
|
+
media_urls?: Json;
|
|
1487
|
+
metrics?: Json;
|
|
1488
|
+
metrics_updated_at?: string | null;
|
|
1489
|
+
organization_id?: string;
|
|
1490
|
+
platform?: string;
|
|
1491
|
+
platform_content?: Json | null;
|
|
1492
|
+
platform_post_id?: string | null;
|
|
1493
|
+
platform_url?: string | null;
|
|
1494
|
+
processing_state?: Json;
|
|
1495
|
+
publish_method?: string | null;
|
|
1496
|
+
published_at?: string | null;
|
|
1497
|
+
status?: string;
|
|
1498
|
+
updated_at?: string;
|
|
1499
|
+
};
|
|
1500
|
+
Relationships: [
|
|
1501
|
+
{
|
|
1502
|
+
foreignKeyName: "content_distributions_content_item_id_fkey";
|
|
1503
|
+
columns: ["content_item_id"];
|
|
1504
|
+
isOneToOne: false;
|
|
1505
|
+
referencedRelation: "content_items";
|
|
1506
|
+
referencedColumns: ["id"];
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
foreignKeyName: "content_distributions_organization_id_fkey";
|
|
1510
|
+
columns: ["organization_id"];
|
|
1511
|
+
isOneToOne: false;
|
|
1512
|
+
referencedRelation: "organizations";
|
|
1513
|
+
referencedColumns: ["id"];
|
|
1514
|
+
}
|
|
1515
|
+
];
|
|
1516
|
+
};
|
|
1517
|
+
content_item_attempts: {
|
|
1518
|
+
Row: {
|
|
1519
|
+
attempt_number: number;
|
|
1520
|
+
content_item_id: string;
|
|
1521
|
+
created_at: string;
|
|
1522
|
+
created_by: string | null;
|
|
1523
|
+
id: string;
|
|
1524
|
+
organization_id: string;
|
|
1525
|
+
payload: Json;
|
|
1526
|
+
source_execution_id: string | null;
|
|
1527
|
+
step_key: string | null;
|
|
1528
|
+
};
|
|
1529
|
+
Insert: {
|
|
1530
|
+
attempt_number: number;
|
|
1531
|
+
content_item_id: string;
|
|
1532
|
+
created_at?: string;
|
|
1533
|
+
created_by?: string | null;
|
|
1534
|
+
id?: string;
|
|
1535
|
+
organization_id: string;
|
|
1536
|
+
payload?: Json;
|
|
1537
|
+
source_execution_id?: string | null;
|
|
1538
|
+
step_key?: string | null;
|
|
1539
|
+
};
|
|
1540
|
+
Update: {
|
|
1541
|
+
attempt_number?: number;
|
|
1542
|
+
content_item_id?: string;
|
|
1543
|
+
created_at?: string;
|
|
1544
|
+
created_by?: string | null;
|
|
1545
|
+
id?: string;
|
|
1546
|
+
organization_id?: string;
|
|
1547
|
+
payload?: Json;
|
|
1548
|
+
source_execution_id?: string | null;
|
|
1549
|
+
step_key?: string | null;
|
|
1550
|
+
};
|
|
1551
|
+
Relationships: [
|
|
1552
|
+
{
|
|
1553
|
+
foreignKeyName: "content_item_attempts_content_item_id_fkey";
|
|
1554
|
+
columns: ["content_item_id"];
|
|
1555
|
+
isOneToOne: false;
|
|
1556
|
+
referencedRelation: "content_items";
|
|
1557
|
+
referencedColumns: ["id"];
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
foreignKeyName: "content_item_attempts_created_by_fkey";
|
|
1561
|
+
columns: ["created_by"];
|
|
1562
|
+
isOneToOne: false;
|
|
1563
|
+
referencedRelation: "users";
|
|
1564
|
+
referencedColumns: ["id"];
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
foreignKeyName: "content_item_attempts_organization_id_fkey";
|
|
1568
|
+
columns: ["organization_id"];
|
|
1569
|
+
isOneToOne: false;
|
|
1570
|
+
referencedRelation: "organizations";
|
|
1571
|
+
referencedColumns: ["id"];
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
foreignKeyName: "content_item_attempts_source_execution_id_fkey";
|
|
1575
|
+
columns: ["source_execution_id"];
|
|
1576
|
+
isOneToOne: false;
|
|
1577
|
+
referencedRelation: "execution_logs";
|
|
1578
|
+
referencedColumns: ["execution_id"];
|
|
1579
|
+
}
|
|
1580
|
+
];
|
|
1581
|
+
};
|
|
1582
|
+
content_items: {
|
|
1583
|
+
Row: {
|
|
1584
|
+
body: string | null;
|
|
1585
|
+
client_id: string | null;
|
|
1586
|
+
created_at: string;
|
|
1587
|
+
created_by: string | null;
|
|
1588
|
+
id: string;
|
|
1589
|
+
organization_id: string;
|
|
1590
|
+
payload: Json;
|
|
1591
|
+
pillar: string | null;
|
|
1592
|
+
pipeline_id: string | null;
|
|
1593
|
+
processing_state: Json;
|
|
1594
|
+
reject_reason: string | null;
|
|
1595
|
+
reviewed_at: string | null;
|
|
1596
|
+
reviewed_by: string | null;
|
|
1597
|
+
reviewer_feedback: string | null;
|
|
1598
|
+
source_asset_id: string | null;
|
|
1599
|
+
status: string;
|
|
1600
|
+
title: string;
|
|
1601
|
+
updated_at: string;
|
|
1602
|
+
updated_by: string | null;
|
|
1603
|
+
};
|
|
1604
|
+
Insert: {
|
|
1605
|
+
body?: string | null;
|
|
1606
|
+
client_id?: string | null;
|
|
1607
|
+
created_at?: string;
|
|
1608
|
+
created_by?: string | null;
|
|
1609
|
+
id?: string;
|
|
1610
|
+
organization_id: string;
|
|
1611
|
+
payload?: Json;
|
|
1612
|
+
pillar?: string | null;
|
|
1613
|
+
pipeline_id?: string | null;
|
|
1614
|
+
processing_state?: Json;
|
|
1615
|
+
reject_reason?: string | null;
|
|
1616
|
+
reviewed_at?: string | null;
|
|
1617
|
+
reviewed_by?: string | null;
|
|
1618
|
+
reviewer_feedback?: string | null;
|
|
1619
|
+
source_asset_id?: string | null;
|
|
1620
|
+
status?: string;
|
|
1621
|
+
title: string;
|
|
1622
|
+
updated_at?: string;
|
|
1623
|
+
updated_by?: string | null;
|
|
1624
|
+
};
|
|
1625
|
+
Update: {
|
|
1626
|
+
body?: string | null;
|
|
1627
|
+
client_id?: string | null;
|
|
1628
|
+
created_at?: string;
|
|
1629
|
+
created_by?: string | null;
|
|
1630
|
+
id?: string;
|
|
1631
|
+
organization_id?: string;
|
|
1632
|
+
payload?: Json;
|
|
1633
|
+
pillar?: string | null;
|
|
1634
|
+
pipeline_id?: string | null;
|
|
1635
|
+
processing_state?: Json;
|
|
1636
|
+
reject_reason?: string | null;
|
|
1637
|
+
reviewed_at?: string | null;
|
|
1638
|
+
reviewed_by?: string | null;
|
|
1639
|
+
reviewer_feedback?: string | null;
|
|
1640
|
+
source_asset_id?: string | null;
|
|
1641
|
+
status?: string;
|
|
1642
|
+
title?: string;
|
|
1643
|
+
updated_at?: string;
|
|
1644
|
+
updated_by?: string | null;
|
|
1645
|
+
};
|
|
1646
|
+
Relationships: [
|
|
1647
|
+
{
|
|
1648
|
+
foreignKeyName: "content_items_client_id_fkey";
|
|
1649
|
+
columns: ["client_id"];
|
|
1650
|
+
isOneToOne: false;
|
|
1651
|
+
referencedRelation: "clients";
|
|
1652
|
+
referencedColumns: ["id"];
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
foreignKeyName: "content_items_created_by_fkey";
|
|
1656
|
+
columns: ["created_by"];
|
|
1657
|
+
isOneToOne: false;
|
|
1658
|
+
referencedRelation: "users";
|
|
1659
|
+
referencedColumns: ["id"];
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
foreignKeyName: "content_items_organization_id_fkey";
|
|
1663
|
+
columns: ["organization_id"];
|
|
1664
|
+
isOneToOne: false;
|
|
1665
|
+
referencedRelation: "organizations";
|
|
1666
|
+
referencedColumns: ["id"];
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
foreignKeyName: "content_items_reviewed_by_fkey";
|
|
1670
|
+
columns: ["reviewed_by"];
|
|
1671
|
+
isOneToOne: false;
|
|
1672
|
+
referencedRelation: "users";
|
|
1673
|
+
referencedColumns: ["id"];
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
foreignKeyName: "content_items_source_asset_id_fkey";
|
|
1677
|
+
columns: ["source_asset_id"];
|
|
1678
|
+
isOneToOne: false;
|
|
1679
|
+
referencedRelation: "content_source_assets";
|
|
1680
|
+
referencedColumns: ["id"];
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
foreignKeyName: "content_items_updated_by_fkey";
|
|
1684
|
+
columns: ["updated_by"];
|
|
1685
|
+
isOneToOne: false;
|
|
1686
|
+
referencedRelation: "users";
|
|
1687
|
+
referencedColumns: ["id"];
|
|
1688
|
+
}
|
|
1689
|
+
];
|
|
1690
|
+
};
|
|
1691
|
+
content_source_assets: {
|
|
1692
|
+
Row: {
|
|
1693
|
+
created_at: string;
|
|
1694
|
+
duration_seconds: number | null;
|
|
1695
|
+
external_url: string | null;
|
|
1696
|
+
id: string;
|
|
1697
|
+
kind: string;
|
|
1698
|
+
metadata: Json;
|
|
1699
|
+
organization_id: string;
|
|
1700
|
+
processing_state: Json;
|
|
1701
|
+
storage_path: string | null;
|
|
1702
|
+
title: string;
|
|
1703
|
+
updated_at: string;
|
|
1704
|
+
};
|
|
1705
|
+
Insert: {
|
|
1706
|
+
created_at?: string;
|
|
1707
|
+
duration_seconds?: number | null;
|
|
1708
|
+
external_url?: string | null;
|
|
1709
|
+
id?: string;
|
|
1710
|
+
kind: string;
|
|
1711
|
+
metadata?: Json;
|
|
1712
|
+
organization_id: string;
|
|
1713
|
+
processing_state?: Json;
|
|
1714
|
+
storage_path?: string | null;
|
|
1715
|
+
title: string;
|
|
1716
|
+
updated_at?: string;
|
|
1717
|
+
};
|
|
1718
|
+
Update: {
|
|
1719
|
+
created_at?: string;
|
|
1720
|
+
duration_seconds?: number | null;
|
|
1721
|
+
external_url?: string | null;
|
|
1722
|
+
id?: string;
|
|
1723
|
+
kind?: string;
|
|
1724
|
+
metadata?: Json;
|
|
1725
|
+
organization_id?: string;
|
|
1726
|
+
processing_state?: Json;
|
|
1727
|
+
storage_path?: string | null;
|
|
1728
|
+
title?: string;
|
|
1729
|
+
updated_at?: string;
|
|
1730
|
+
};
|
|
1731
|
+
Relationships: [
|
|
1732
|
+
{
|
|
1733
|
+
foreignKeyName: "content_source_assets_organization_id_fkey";
|
|
1734
|
+
columns: ["organization_id"];
|
|
1735
|
+
isOneToOne: false;
|
|
1736
|
+
referencedRelation: "organizations";
|
|
1737
|
+
referencedColumns: ["id"];
|
|
1738
|
+
}
|
|
1739
|
+
];
|
|
1740
|
+
};
|
|
1480
1741
|
credentials: {
|
|
1481
1742
|
Row: {
|
|
1482
1743
|
created_at: string;
|
|
@@ -3093,6 +3354,33 @@ type Database = {
|
|
|
3093
3354
|
};
|
|
3094
3355
|
Returns: boolean;
|
|
3095
3356
|
};
|
|
3357
|
+
create_artifact_version: {
|
|
3358
|
+
Args: {
|
|
3359
|
+
p_content: Json;
|
|
3360
|
+
p_created_by?: string;
|
|
3361
|
+
p_kind: string;
|
|
3362
|
+
p_organization_id: string;
|
|
3363
|
+
p_owner_id?: string;
|
|
3364
|
+
p_owner_kind: string;
|
|
3365
|
+
p_pipeline_id?: string;
|
|
3366
|
+
p_source_execution_id?: string;
|
|
3367
|
+
};
|
|
3368
|
+
Returns: {
|
|
3369
|
+
content: Json;
|
|
3370
|
+
created_at: string;
|
|
3371
|
+
created_by: string | null;
|
|
3372
|
+
id: string;
|
|
3373
|
+
is_active: boolean;
|
|
3374
|
+
kind: string;
|
|
3375
|
+
organization_id: string;
|
|
3376
|
+
owner_id: string | null;
|
|
3377
|
+
owner_kind: string;
|
|
3378
|
+
pipeline_id: string | null;
|
|
3379
|
+
source_execution_id: string | null;
|
|
3380
|
+
updated_at: string;
|
|
3381
|
+
version: number;
|
|
3382
|
+
};
|
|
3383
|
+
};
|
|
3096
3384
|
current_user_is_platform_admin: {
|
|
3097
3385
|
Args: Record<PropertyKey, never>;
|
|
3098
3386
|
Returns: boolean;
|
|
@@ -3199,6 +3487,12 @@ type Database = {
|
|
|
3199
3487
|
Args: Record<PropertyKey, never>;
|
|
3200
3488
|
Returns: Json;
|
|
3201
3489
|
};
|
|
3490
|
+
purge_stale_test_data: {
|
|
3491
|
+
Args: {
|
|
3492
|
+
p_max_age?: unknown;
|
|
3493
|
+
};
|
|
3494
|
+
Returns: Json;
|
|
3495
|
+
};
|
|
3202
3496
|
recompute_all_memberships: {
|
|
3203
3497
|
Args: Record<PropertyKey, never>;
|
|
3204
3498
|
Returns: undefined;
|