telescope-prisma-client 0.0.183 → 0.0.184
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 +139 -187
- package/package.json +2 -2
- package/schema.prisma +139 -187
- 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 -1670
- package/dist/generatedClient/index-browser.js +0 -1633
- package/dist/generatedClient/index.d.ts +0 -107274
- package/dist/generatedClient/index.js +0 -1711
- 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 -1319
- package/dist/generatedClient/wasm.d.ts +0 -1
- package/dist/generatedClient/wasm.js +0 -1633
package/dist/schema.prisma
CHANGED
|
@@ -16,101 +16,92 @@ 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(50)
|
|
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
|
|
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")
|
|
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])
|
|
100
94
|
}
|
|
101
95
|
|
|
102
96
|
model Organization {
|
|
103
|
-
id
|
|
104
|
-
name
|
|
105
|
-
clerk_organization_id
|
|
106
|
-
subscription_id
|
|
107
|
-
created_at
|
|
108
|
-
updated_at
|
|
109
|
-
deleted_at
|
|
110
|
-
users
|
|
111
|
-
|
|
112
|
-
// Lists this organization is using as blacklists
|
|
113
|
-
blacklists List[] @relation("OrganizationBlacklists")
|
|
97
|
+
id String @id @default(uuid())
|
|
98
|
+
name String
|
|
99
|
+
clerk_organization_id String @unique
|
|
100
|
+
subscription_id String?
|
|
101
|
+
created_at DateTime @default(now())
|
|
102
|
+
updated_at DateTime @updatedAt
|
|
103
|
+
deleted_at DateTime?
|
|
104
|
+
users User[]
|
|
114
105
|
}
|
|
115
106
|
|
|
116
107
|
model ApiKey {
|
|
@@ -264,48 +255,6 @@ model Campaign {
|
|
|
264
255
|
mailreach_spam_tests MailReachSpamTest[]
|
|
265
256
|
}
|
|
266
257
|
|
|
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
|
-
|
|
309
258
|
model AssistantEvent {
|
|
310
259
|
id String @id @default(uuid())
|
|
311
260
|
owner_id String
|
|
@@ -574,35 +523,35 @@ model IdealCustomerProfile {
|
|
|
574
523
|
}
|
|
575
524
|
|
|
576
525
|
model ConnectedMailbox {
|
|
577
|
-
id
|
|
578
|
-
status
|
|
579
|
-
type
|
|
580
|
-
tokens
|
|
581
|
-
email
|
|
582
|
-
unipile_account_id
|
|
583
|
-
unipile_account_status
|
|
584
|
-
unipile_account_name
|
|
585
|
-
purchased_email_account_id
|
|
586
|
-
max_emails_per_day
|
|
587
|
-
max_emails_per_hour
|
|
588
|
-
pause_new_sequences
|
|
589
|
-
ramp_up_started_at
|
|
590
|
-
smartlead_email_account_id
|
|
591
|
-
smartlead_account_username
|
|
592
|
-
warmup_enabled
|
|
526
|
+
id String @id @default(uuid())
|
|
527
|
+
status ConnectedMailboxStatus
|
|
528
|
+
type ConnectedMailboxType
|
|
529
|
+
tokens Json?
|
|
530
|
+
email String
|
|
531
|
+
unipile_account_id String?
|
|
532
|
+
unipile_account_status String?
|
|
533
|
+
unipile_account_name String?
|
|
534
|
+
purchased_email_account_id String? @unique
|
|
535
|
+
max_emails_per_day Int?
|
|
536
|
+
max_emails_per_hour Int?
|
|
537
|
+
pause_new_sequences Boolean @default(false)
|
|
538
|
+
ramp_up_started_at DateTime?
|
|
539
|
+
smartlead_email_account_id Int?
|
|
540
|
+
smartlead_account_username String? @default("ceo@gotelescope.ai")
|
|
541
|
+
warmup_enabled Boolean @default(false)
|
|
593
542
|
smartlead_reputation_last_fetched_at DateTime?
|
|
594
|
-
warmup_reputation
|
|
595
|
-
smartlead_warmup_key_id
|
|
596
|
-
owner
|
|
597
|
-
prospects
|
|
598
|
-
owner_id
|
|
599
|
-
created_at
|
|
600
|
-
updated_at
|
|
601
|
-
deleted_at
|
|
602
|
-
prospect_sequence_steps
|
|
603
|
-
purchased_email_account
|
|
604
|
-
outreach_messages
|
|
605
|
-
mailreach_spam_tests
|
|
543
|
+
warmup_reputation Float?
|
|
544
|
+
smartlead_warmup_key_id String?
|
|
545
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
546
|
+
prospects Prospect[]
|
|
547
|
+
owner_id String
|
|
548
|
+
created_at DateTime @default(now())
|
|
549
|
+
updated_at DateTime @updatedAt
|
|
550
|
+
deleted_at DateTime?
|
|
551
|
+
prospect_sequence_steps ProspectSequenceStep[]
|
|
552
|
+
purchased_email_account PurchasedEmailAccount? @relation(fields: [purchased_email_account_id], references: [id])
|
|
553
|
+
outreach_messages OutreachMessage[]
|
|
554
|
+
mailreach_spam_tests MailReachSpamTest[]
|
|
606
555
|
}
|
|
607
556
|
|
|
608
557
|
model MailboxProviderUser {
|
|
@@ -727,7 +676,7 @@ model Sequence {
|
|
|
727
676
|
}
|
|
728
677
|
|
|
729
678
|
model SequenceStep {
|
|
730
|
-
id String
|
|
679
|
+
id String @id @default(uuid())
|
|
731
680
|
sequence_id String
|
|
732
681
|
type SequenceStepType
|
|
733
682
|
condition SequenceStepCondition?
|
|
@@ -739,14 +688,14 @@ model SequenceStep {
|
|
|
739
688
|
linkedin_message String?
|
|
740
689
|
message_generation_mode MessageGenerationMode?
|
|
741
690
|
model_name OutreachPersonalisationModelName?
|
|
742
|
-
created_at DateTime
|
|
743
|
-
updated_at DateTime
|
|
691
|
+
created_at DateTime @default(now())
|
|
692
|
+
updated_at DateTime @updatedAt
|
|
744
693
|
deleted_at DateTime?
|
|
745
694
|
owner_id String
|
|
746
695
|
prospect_sequence_steps ProspectSequenceStep[]
|
|
747
|
-
owner User
|
|
748
|
-
sequence Sequence
|
|
749
|
-
outreach_offer OutreachOffer?
|
|
696
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
697
|
+
sequence Sequence @relation(fields: [sequence_id], references: [id])
|
|
698
|
+
outreach_offer OutreachOffer? @relation(fields: [outreach_offer_id], references: [id])
|
|
750
699
|
}
|
|
751
700
|
|
|
752
701
|
model ProspectSequenceStep {
|
|
@@ -784,13 +733,14 @@ model ProspectSequenceStep {
|
|
|
784
733
|
sequence_step SequenceStep @relation(fields: [sequence_step_id], references: [id])
|
|
785
734
|
deleted_at DateTime?
|
|
786
735
|
|
|
736
|
+
@@index([prospect_id, owner_id])
|
|
737
|
+
@@index([owner_id])
|
|
738
|
+
|
|
739
|
+
|
|
787
740
|
// not added for now -> let's see if they are necessary for the email stats histogram
|
|
788
741
|
// @@index([owner_id, dispatched_at])
|
|
789
742
|
// @@index([owner_id, mailbox_id, dispatched_at])
|
|
790
743
|
// @@index([owner_id, status, dispatched_at])
|
|
791
|
-
|
|
792
|
-
@@index([prospect_id, owner_id])
|
|
793
|
-
@@index([owner_id])
|
|
794
744
|
}
|
|
795
745
|
|
|
796
746
|
model ProspectInteractionEvent {
|
|
@@ -1013,48 +963,50 @@ model RecommendationsList {
|
|
|
1013
963
|
owner User @relation(fields: [owner_id], references: [id])
|
|
1014
964
|
}
|
|
1015
965
|
|
|
966
|
+
|
|
1016
967
|
model OutreachOffer {
|
|
1017
|
-
id
|
|
1018
|
-
name
|
|
968
|
+
id String @id @default(uuid())
|
|
969
|
+
name String
|
|
1019
970
|
company_name String
|
|
1020
|
-
source_url
|
|
1021
|
-
source_type
|
|
971
|
+
source_url String?
|
|
972
|
+
source_type OutreachOfferSourceType
|
|
1022
973
|
|
|
1023
974
|
raw_text String?
|
|
1024
975
|
|
|
1025
976
|
ideal_customer_profile String?
|
|
1026
|
-
problem_statement
|
|
1027
|
-
status_quo
|
|
1028
|
-
solution
|
|
1029
|
-
concerns
|
|
1030
|
-
competitive_advantage
|
|
1031
|
-
results
|
|
1032
|
-
|
|
1033
|
-
owner_id
|
|
1034
|
-
created_at
|
|
1035
|
-
updated_at
|
|
1036
|
-
deleted_at
|
|
1037
|
-
owner
|
|
977
|
+
problem_statement String? // can be multiple problems, pain points, etc.
|
|
978
|
+
status_quo String?
|
|
979
|
+
solution String?
|
|
980
|
+
concerns String?
|
|
981
|
+
competitive_advantage String?
|
|
982
|
+
results String? // proofs, case studies, etc.
|
|
983
|
+
|
|
984
|
+
owner_id String
|
|
985
|
+
created_at DateTime @default(now())
|
|
986
|
+
updated_at DateTime @updatedAt
|
|
987
|
+
deleted_at DateTime?
|
|
988
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
1038
989
|
sequence_steps SequenceStep[]
|
|
1039
990
|
}
|
|
1040
991
|
|
|
992
|
+
|
|
1041
993
|
model MailReachSpamTest {
|
|
1042
|
-
id
|
|
1043
|
-
public_id
|
|
994
|
+
id String @id @default(uuid())
|
|
995
|
+
public_id String
|
|
1044
996
|
public_full_id String
|
|
1045
997
|
|
|
1046
998
|
/// [MailReachSpamTestResponse]
|
|
1047
|
-
cached_result
|
|
999
|
+
cached_result Json
|
|
1048
1000
|
last_checked_at DateTime?
|
|
1049
1001
|
|
|
1050
1002
|
mailbox_id String
|
|
1051
|
-
mailbox
|
|
1003
|
+
mailbox ConnectedMailbox @relation(fields: [mailbox_id], references: [id])
|
|
1052
1004
|
|
|
1053
1005
|
campaign_id String
|
|
1054
|
-
campaign
|
|
1006
|
+
campaign Campaign @relation(fields: [campaign_id], references: [id])
|
|
1055
1007
|
|
|
1056
1008
|
owner_id String
|
|
1057
|
-
owner
|
|
1009
|
+
owner User @relation(fields: [owner_id], references: [id])
|
|
1058
1010
|
|
|
1059
1011
|
created_at DateTime @default(now())
|
|
1060
1012
|
updated_at DateTime @updatedAt
|
|
@@ -1316,4 +1268,4 @@ enum OrganizationRole {
|
|
|
1316
1268
|
OWNER
|
|
1317
1269
|
ADMIN
|
|
1318
1270
|
MEMBER
|
|
1319
|
-
}
|
|
1271
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telescope-prisma-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.184",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"prisma": "dotenv -e envs/.env -- ./node_modules/.bin/prisma",
|
|
8
|
+
"prisma": "./node_modules/.bin/dotenv -e envs/.env -- ./node_modules/.bin/prisma",
|
|
9
9
|
"prepublish": "npm run generate && rm -rf dist && mkdir dist && cp src/generatedClient/*.node dist/ && cp schema.prisma dist/ && cp -a src/generatedClient dist/generatedClient && tsc",
|
|
10
10
|
"publishonly": "npm run prepublish && npm version patch --force && npm publish && npm run tss:upgrade",
|
|
11
11
|
"tss:upgrade": "./scripts/tss-upgrade-client-latest.sh",
|