telescope-prisma-client 0.0.180 → 0.0.181
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/schema.prisma +189 -135
- package/package.json +1 -1
- package/schema.prisma +189 -135
- package/dist/generatedClient/default.d.ts +0 -1
- package/dist/generatedClient/default.js +0 -1
- package/dist/generatedClient/edge.d.ts +0 -1
- package/dist/generatedClient/edge.js +0 -1623
- package/dist/generatedClient/index-browser.js +0 -1586
- package/dist/generatedClient/index.d.ts +0 -102369
- package/dist/generatedClient/index.js +0 -1664
- package/dist/generatedClient/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/dist/generatedClient/libquery_engine-darwin.dylib.node +0 -0
- package/dist/generatedClient/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/generatedClient/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/dist/generatedClient/libquery_engine-linux-musl.so.node +0 -0
- package/dist/generatedClient/libquery_engine-rhel-openssl-1.0.x.so.node +0 -0
- package/dist/generatedClient/package.json +0 -103
- package/dist/generatedClient/runtime/edge-esm.js +0 -31
- package/dist/generatedClient/runtime/edge.js +0 -31
- package/dist/generatedClient/runtime/index-browser.d.ts +0 -367
- package/dist/generatedClient/runtime/index-browser.js +0 -13
- package/dist/generatedClient/runtime/library.d.ts +0 -3473
- package/dist/generatedClient/runtime/library.js +0 -143
- package/dist/generatedClient/runtime/react-native.js +0 -80
- package/dist/generatedClient/runtime/wasm.js +0 -32
- package/dist/generatedClient/schema.prisma +0 -1263
- package/dist/generatedClient/wasm.d.ts +0 -1
- package/dist/generatedClient/wasm.js +0 -1586
package/dist/schema.prisma
CHANGED
|
@@ -16,92 +16,101 @@ datasource db {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
model User {
|
|
19
|
-
id
|
|
19
|
+
id String @id
|
|
20
20
|
// This is only set if the user came from cognito.
|
|
21
|
-
old_user_id
|
|
22
|
-
is_nlp_icp_enabled
|
|
23
|
-
is_outreach_enabled
|
|
24
|
-
is_linkedin_outreach_enabled
|
|
25
|
-
is_csv_export_enabled
|
|
26
|
-
first_name
|
|
27
|
-
last_name
|
|
28
|
-
email
|
|
29
|
-
timezone
|
|
30
|
-
onboarded_at
|
|
31
|
-
lead_selection_toured_at
|
|
32
|
-
email_sequencing_toured_at
|
|
33
|
-
campaign_review_toured_at
|
|
34
|
-
campaign_homepage_toured_at
|
|
35
|
-
browser_extension_last_ping_at
|
|
36
|
-
browser_extension_linkedin_url
|
|
37
|
-
registered_at
|
|
38
|
-
updated_at
|
|
39
|
-
deleted_at
|
|
40
|
-
campaigns
|
|
41
|
-
connected_mailboxes
|
|
42
|
-
ideal_customer_profiles
|
|
21
|
+
old_user_id String?
|
|
22
|
+
is_nlp_icp_enabled Boolean? @default(false)
|
|
23
|
+
is_outreach_enabled Boolean? @default(false)
|
|
24
|
+
is_linkedin_outreach_enabled Boolean? @default(false)
|
|
25
|
+
is_csv_export_enabled Boolean? @default(false)
|
|
26
|
+
first_name String? // must be nullable to allow for gdpr deletion
|
|
27
|
+
last_name String? // must be nullable to allow for gdpr deletion
|
|
28
|
+
email String? // @unique
|
|
29
|
+
timezone String?
|
|
30
|
+
onboarded_at DateTime?
|
|
31
|
+
lead_selection_toured_at DateTime?
|
|
32
|
+
email_sequencing_toured_at DateTime?
|
|
33
|
+
campaign_review_toured_at DateTime?
|
|
34
|
+
campaign_homepage_toured_at DateTime?
|
|
35
|
+
browser_extension_last_ping_at DateTime?
|
|
36
|
+
browser_extension_linkedin_url String?
|
|
37
|
+
registered_at DateTime?
|
|
38
|
+
updated_at DateTime? @updatedAt
|
|
39
|
+
deleted_at DateTime?
|
|
40
|
+
campaigns Campaign[]
|
|
41
|
+
connected_mailboxes ConnectedMailbox[]
|
|
42
|
+
ideal_customer_profiles IdealCustomerProfile[]
|
|
43
43
|
/// [ExtractedWebsitesIdealCustomerProfiles]
|
|
44
|
-
extracted_ideal_customer_profiles
|
|
45
|
-
merge_connection
|
|
46
|
-
prospects
|
|
47
|
-
company_prospects
|
|
48
|
-
prospect_interaction_events
|
|
49
|
-
ProspectSequenceStep
|
|
50
|
-
recommendations
|
|
51
|
-
sequences
|
|
52
|
-
SequenceStep
|
|
53
|
-
evaluated_candidates
|
|
54
|
-
recommendations_lists
|
|
55
|
-
contact_data_enrichment_jobs
|
|
56
|
-
credits
|
|
44
|
+
extracted_ideal_customer_profiles Json?
|
|
45
|
+
merge_connection MergeConnection[]
|
|
46
|
+
prospects Prospect[]
|
|
47
|
+
company_prospects CompanyProspect[]
|
|
48
|
+
prospect_interaction_events ProspectInteractionEvent[]
|
|
49
|
+
ProspectSequenceStep ProspectSequenceStep[]
|
|
50
|
+
recommendations Recommendation[]
|
|
51
|
+
sequences Sequence[]
|
|
52
|
+
SequenceStep SequenceStep[]
|
|
53
|
+
evaluated_candidates EvaluatedCandidate[]
|
|
54
|
+
recommendations_lists RecommendationsList[]
|
|
55
|
+
contact_data_enrichment_jobs ContactDataEnrichmentJob[]
|
|
56
|
+
credits Int @default(100)
|
|
57
57
|
// Monthly credit allocation that overrides the default subscription tier credits
|
|
58
|
-
subscription_credits
|
|
58
|
+
subscription_credits Int?
|
|
59
59
|
// Additional credits granted on top of the standard monthly allocation (e.g., for credit purchases)
|
|
60
|
-
subscription_additional_credits
|
|
61
|
-
purchased_slots
|
|
62
|
-
stripe_customer_id
|
|
63
|
-
stripe_subscription_id
|
|
60
|
+
subscription_additional_credits Int?
|
|
61
|
+
purchased_slots PurchasedSlots?
|
|
62
|
+
stripe_customer_id String? @unique
|
|
63
|
+
stripe_subscription_id String? @unique
|
|
64
64
|
organization_subscription_price_id String?
|
|
65
|
-
subscription_expiration
|
|
66
|
-
subscription_tier
|
|
67
|
-
subscription_billing_interval
|
|
68
|
-
subscription_cancel_at_period_end
|
|
69
|
-
organization_id
|
|
70
|
-
organization_role
|
|
71
|
-
google_click_id
|
|
72
|
-
linkedin_click_id
|
|
73
|
-
facebook_click_id
|
|
74
|
-
reddit_click_id
|
|
75
|
-
registered_on_mobile
|
|
76
|
-
last_visited_upgrade_pro
|
|
77
|
-
assistant_events
|
|
78
|
-
abused_skip_nudges
|
|
79
|
-
referred_by
|
|
80
|
-
is_beta
|
|
65
|
+
subscription_expiration DateTime @default(dbgenerated("(now() + '1 mon'::interval)"))
|
|
66
|
+
subscription_tier SubscriptionTierType @default(FREE)
|
|
67
|
+
subscription_billing_interval SubscriptionBillingInterval?
|
|
68
|
+
subscription_cancel_at_period_end Boolean?
|
|
69
|
+
organization_id String?
|
|
70
|
+
organization_role OrganizationRole?
|
|
71
|
+
google_click_id String?
|
|
72
|
+
linkedin_click_id String?
|
|
73
|
+
facebook_click_id String?
|
|
74
|
+
reddit_click_id String?
|
|
75
|
+
registered_on_mobile Boolean?
|
|
76
|
+
last_visited_upgrade_pro DateTime?
|
|
77
|
+
assistant_events AssistantEvent[]
|
|
78
|
+
abused_skip_nudges DateTime[]
|
|
79
|
+
referred_by String?
|
|
80
|
+
is_beta Boolean? @default(false)
|
|
81
81
|
/// [LockedActions]
|
|
82
|
-
locked_actions
|
|
83
|
-
is_public_api_enabled
|
|
82
|
+
locked_actions Json?
|
|
83
|
+
is_public_api_enabled Boolean? @default(false)
|
|
84
84
|
email_personalisation_instructions String?
|
|
85
|
-
api_keys
|
|
86
|
-
outreach_offers
|
|
87
|
-
connected_linkedin_accounts
|
|
88
|
-
mailbox_provider_users
|
|
89
|
-
purchased_domains
|
|
90
|
-
purchased_email_accounts
|
|
91
|
-
outreach_messages
|
|
92
|
-
mailreach_spam_tests
|
|
93
|
-
organization
|
|
85
|
+
api_keys ApiKey[]
|
|
86
|
+
outreach_offers OutreachOffer[]
|
|
87
|
+
connected_linkedin_accounts ConnectedLinkedinAccount[]
|
|
88
|
+
mailbox_provider_users MailboxProviderUser[]
|
|
89
|
+
purchased_domains PurchasedDomain[]
|
|
90
|
+
purchased_email_accounts PurchasedEmailAccount[]
|
|
91
|
+
outreach_messages OutreachMessage[]
|
|
92
|
+
mailreach_spam_tests MailReachSpamTest[]
|
|
93
|
+
organization Organization? @relation(fields: [organization_id], references: [id])
|
|
94
|
+
|
|
95
|
+
// All lists owned by this user
|
|
96
|
+
lists List[]
|
|
97
|
+
|
|
98
|
+
// Lists this user is using as blacklists
|
|
99
|
+
blacklists List[] @relation("UserBlacklists")
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
model Organization {
|
|
97
|
-
id
|
|
98
|
-
name
|
|
99
|
-
clerk_organization_id
|
|
100
|
-
subscription_id
|
|
101
|
-
created_at
|
|
102
|
-
updated_at
|
|
103
|
-
deleted_at
|
|
104
|
-
users
|
|
103
|
+
id String @id @default(uuid())
|
|
104
|
+
name String
|
|
105
|
+
clerk_organization_id String @unique
|
|
106
|
+
subscription_id String?
|
|
107
|
+
created_at DateTime @default(now())
|
|
108
|
+
updated_at DateTime @updatedAt
|
|
109
|
+
deleted_at DateTime?
|
|
110
|
+
users User[]
|
|
111
|
+
|
|
112
|
+
// Lists this organization is using as blacklists
|
|
113
|
+
blacklists List[] @relation("OrganizationBlacklists")
|
|
105
114
|
}
|
|
106
115
|
|
|
107
116
|
model ApiKey {
|
|
@@ -255,6 +264,48 @@ model Campaign {
|
|
|
255
264
|
mailreach_spam_tests MailReachSpamTest[]
|
|
256
265
|
}
|
|
257
266
|
|
|
267
|
+
model List {
|
|
268
|
+
id String @id @default(uuid())
|
|
269
|
+
name String
|
|
270
|
+
entity_type ListEntityType
|
|
271
|
+
|
|
272
|
+
created_at DateTime @default(now())
|
|
273
|
+
updated_at DateTime @updatedAt
|
|
274
|
+
deleted_at DateTime?
|
|
275
|
+
|
|
276
|
+
owner_id String
|
|
277
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
278
|
+
items ListItem[]
|
|
279
|
+
|
|
280
|
+
// Direct relations for blacklist usage
|
|
281
|
+
blacklisted_by_users User[] @relation("UserBlacklists")
|
|
282
|
+
blacklisted_by_organizations Organization[] @relation("OrganizationBlacklists")
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
model ListItem {
|
|
286
|
+
id String @id @default(uuid())
|
|
287
|
+
person_id String?
|
|
288
|
+
company_id String?
|
|
289
|
+
source_type ListItemSource
|
|
290
|
+
source_id String?
|
|
291
|
+
|
|
292
|
+
created_at DateTime @default(now())
|
|
293
|
+
updated_at DateTime @updatedAt
|
|
294
|
+
deleted_at DateTime?
|
|
295
|
+
|
|
296
|
+
list_id String
|
|
297
|
+
list List @relation(fields: [list_id], references: [id])
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
enum ListEntityType {
|
|
301
|
+
PERSON
|
|
302
|
+
COMPANY
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
enum ListItemSource {
|
|
306
|
+
UPLOAD
|
|
307
|
+
}
|
|
308
|
+
|
|
258
309
|
model AssistantEvent {
|
|
259
310
|
id String @id @default(uuid())
|
|
260
311
|
owner_id String
|
|
@@ -523,35 +574,35 @@ model IdealCustomerProfile {
|
|
|
523
574
|
}
|
|
524
575
|
|
|
525
576
|
model ConnectedMailbox {
|
|
526
|
-
id
|
|
527
|
-
status
|
|
528
|
-
type
|
|
529
|
-
tokens
|
|
530
|
-
email
|
|
531
|
-
unipile_account_id
|
|
532
|
-
unipile_account_status
|
|
533
|
-
unipile_account_name
|
|
534
|
-
purchased_email_account_id
|
|
535
|
-
max_emails_per_day
|
|
536
|
-
max_emails_per_hour
|
|
537
|
-
pause_new_sequences
|
|
538
|
-
ramp_up_started_at
|
|
539
|
-
smartlead_email_account_id
|
|
540
|
-
smartlead_account_username
|
|
541
|
-
warmup_enabled
|
|
577
|
+
id String @id @default(uuid())
|
|
578
|
+
status ConnectedMailboxStatus
|
|
579
|
+
type ConnectedMailboxType
|
|
580
|
+
tokens Json?
|
|
581
|
+
email String
|
|
582
|
+
unipile_account_id String?
|
|
583
|
+
unipile_account_status String?
|
|
584
|
+
unipile_account_name String?
|
|
585
|
+
purchased_email_account_id String? @unique
|
|
586
|
+
max_emails_per_day Int?
|
|
587
|
+
max_emails_per_hour Int?
|
|
588
|
+
pause_new_sequences Boolean @default(false)
|
|
589
|
+
ramp_up_started_at DateTime?
|
|
590
|
+
smartlead_email_account_id Int?
|
|
591
|
+
smartlead_account_username String? @default("ceo@gotelescope.ai")
|
|
592
|
+
warmup_enabled Boolean @default(false)
|
|
542
593
|
smartlead_reputation_last_fetched_at DateTime?
|
|
543
|
-
warmup_reputation
|
|
544
|
-
smartlead_warmup_key_id
|
|
545
|
-
owner
|
|
546
|
-
prospects
|
|
547
|
-
owner_id
|
|
548
|
-
created_at
|
|
549
|
-
updated_at
|
|
550
|
-
deleted_at
|
|
551
|
-
prospect_sequence_steps
|
|
552
|
-
purchased_email_account
|
|
553
|
-
outreach_messages
|
|
554
|
-
mailreach_spam_tests
|
|
594
|
+
warmup_reputation Float?
|
|
595
|
+
smartlead_warmup_key_id String?
|
|
596
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
597
|
+
prospects Prospect[]
|
|
598
|
+
owner_id String
|
|
599
|
+
created_at DateTime @default(now())
|
|
600
|
+
updated_at DateTime @updatedAt
|
|
601
|
+
deleted_at DateTime?
|
|
602
|
+
prospect_sequence_steps ProspectSequenceStep[]
|
|
603
|
+
purchased_email_account PurchasedEmailAccount? @relation(fields: [purchased_email_account_id], references: [id])
|
|
604
|
+
outreach_messages OutreachMessage[]
|
|
605
|
+
mailreach_spam_tests MailReachSpamTest[]
|
|
555
606
|
}
|
|
556
607
|
|
|
557
608
|
model MailboxProviderUser {
|
|
@@ -676,7 +727,7 @@ model Sequence {
|
|
|
676
727
|
}
|
|
677
728
|
|
|
678
729
|
model SequenceStep {
|
|
679
|
-
id String
|
|
730
|
+
id String @id @default(uuid())
|
|
680
731
|
sequence_id String
|
|
681
732
|
type SequenceStepType
|
|
682
733
|
condition SequenceStepCondition?
|
|
@@ -688,14 +739,14 @@ model SequenceStep {
|
|
|
688
739
|
linkedin_message String?
|
|
689
740
|
message_generation_mode MessageGenerationMode?
|
|
690
741
|
model_name OutreachPersonalisationModelName?
|
|
691
|
-
created_at DateTime
|
|
692
|
-
updated_at DateTime
|
|
742
|
+
created_at DateTime @default(now())
|
|
743
|
+
updated_at DateTime @updatedAt
|
|
693
744
|
deleted_at DateTime?
|
|
694
745
|
owner_id String
|
|
695
746
|
prospect_sequence_steps ProspectSequenceStep[]
|
|
696
|
-
owner User
|
|
697
|
-
sequence Sequence
|
|
698
|
-
outreach_offer OutreachOffer?
|
|
747
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
748
|
+
sequence Sequence @relation(fields: [sequence_id], references: [id])
|
|
749
|
+
outreach_offer OutreachOffer? @relation(fields: [outreach_offer_id], references: [id])
|
|
699
750
|
}
|
|
700
751
|
|
|
701
752
|
model ProspectSequenceStep {
|
|
@@ -733,6 +784,11 @@ model ProspectSequenceStep {
|
|
|
733
784
|
sequence_step SequenceStep @relation(fields: [sequence_step_id], references: [id])
|
|
734
785
|
deleted_at DateTime?
|
|
735
786
|
|
|
787
|
+
// not added for now -> let's see if they are necessary for the email stats histogram
|
|
788
|
+
// @@index([owner_id, dispatched_at])
|
|
789
|
+
// @@index([owner_id, mailbox_id, dispatched_at])
|
|
790
|
+
// @@index([owner_id, status, dispatched_at])
|
|
791
|
+
|
|
736
792
|
@@index([prospect_id, owner_id])
|
|
737
793
|
@@index([owner_id])
|
|
738
794
|
}
|
|
@@ -957,50 +1013,48 @@ model RecommendationsList {
|
|
|
957
1013
|
owner User @relation(fields: [owner_id], references: [id])
|
|
958
1014
|
}
|
|
959
1015
|
|
|
960
|
-
|
|
961
1016
|
model OutreachOffer {
|
|
962
|
-
id
|
|
963
|
-
name
|
|
1017
|
+
id String @id @default(uuid())
|
|
1018
|
+
name String
|
|
964
1019
|
company_name String
|
|
965
|
-
source_url
|
|
966
|
-
source_type
|
|
1020
|
+
source_url String?
|
|
1021
|
+
source_type OutreachOfferSourceType
|
|
967
1022
|
|
|
968
1023
|
raw_text String?
|
|
969
1024
|
|
|
970
1025
|
ideal_customer_profile String?
|
|
971
|
-
problem_statement
|
|
972
|
-
status_quo
|
|
973
|
-
solution
|
|
974
|
-
concerns
|
|
975
|
-
competitive_advantage
|
|
976
|
-
results
|
|
977
|
-
|
|
978
|
-
owner_id
|
|
979
|
-
created_at
|
|
980
|
-
updated_at
|
|
981
|
-
deleted_at
|
|
982
|
-
owner
|
|
1026
|
+
problem_statement String? // can be multiple problems, pain points, etc.
|
|
1027
|
+
status_quo String?
|
|
1028
|
+
solution String?
|
|
1029
|
+
concerns String?
|
|
1030
|
+
competitive_advantage String?
|
|
1031
|
+
results String? // proofs, case studies, etc.
|
|
1032
|
+
|
|
1033
|
+
owner_id String
|
|
1034
|
+
created_at DateTime @default(now())
|
|
1035
|
+
updated_at DateTime @updatedAt
|
|
1036
|
+
deleted_at DateTime?
|
|
1037
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
983
1038
|
sequence_steps SequenceStep[]
|
|
984
1039
|
}
|
|
985
1040
|
|
|
986
|
-
|
|
987
1041
|
model MailReachSpamTest {
|
|
988
|
-
id
|
|
989
|
-
public_id
|
|
1042
|
+
id String @id @default(uuid())
|
|
1043
|
+
public_id String
|
|
990
1044
|
public_full_id String
|
|
991
1045
|
|
|
992
1046
|
/// [MailReachSpamTestResponse]
|
|
993
|
-
cached_result
|
|
1047
|
+
cached_result Json
|
|
994
1048
|
last_checked_at DateTime?
|
|
995
1049
|
|
|
996
1050
|
mailbox_id String
|
|
997
|
-
mailbox
|
|
1051
|
+
mailbox ConnectedMailbox @relation(fields: [mailbox_id], references: [id])
|
|
998
1052
|
|
|
999
1053
|
campaign_id String
|
|
1000
|
-
campaign
|
|
1054
|
+
campaign Campaign @relation(fields: [campaign_id], references: [id])
|
|
1001
1055
|
|
|
1002
1056
|
owner_id String
|
|
1003
|
-
owner
|
|
1057
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
1004
1058
|
|
|
1005
1059
|
created_at DateTime @default(now())
|
|
1006
1060
|
updated_at DateTime @updatedAt
|
|
@@ -1262,4 +1316,4 @@ enum OrganizationRole {
|
|
|
1262
1316
|
OWNER
|
|
1263
1317
|
ADMIN
|
|
1264
1318
|
MEMBER
|
|
1265
|
-
}
|
|
1319
|
+
}
|