telescope-prisma-client 0.0.1
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/.env +1 -0
- package/README.md +3 -0
- package/generatedClient/index-browser.js +517 -0
- package/generatedClient/index.d.ts +36732 -0
- package/generatedClient/index.js +579 -0
- package/generatedClient/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/generatedClient/libquery_engine-darwin.dylib.node +0 -0
- package/generatedClient/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/generatedClient/libquery_engine-linux-musl.so.node +0 -0
- package/generatedClient/package.json +7 -0
- package/generatedClient/runtime/index-browser.d.ts +355 -0
- package/generatedClient/runtime/index-browser.js +2424 -0
- package/generatedClient/runtime/index.d.ts +3057 -0
- package/generatedClient/runtime/library.d.ts +1 -0
- package/generatedClient/runtime/library.js +212 -0
- package/generatedClient/schema.prisma +448 -0
- package/index.ts +13 -0
- package/jsonTypes.ts +24 -0
- package/migrations/20230321123131_init_user_crm_connection/migration.sql +34 -0
- package/migrations/20230323005019_update_merge_connection/migration.sql +22 -0
- package/migrations/20230324125315_add_crm_slug_name/migration.sql +10 -0
- package/migrations/20230502105258_crm_schema/migration.sql +2 -0
- package/migrations/20230502124843_crm_data_models/migration.sql +99 -0
- package/migrations/20230503120608_last_merge_sync_at/migration.sql +28 -0
- package/migrations/20230504085005_gdpr_data/migration.sql +29 -0
- package/migrations/20230504093431_optional_fields/migration.sql +9 -0
- package/migrations/20230505150304_crm_leads/migration.sql +45 -0
- package/migrations/20230505150519_date_fix/migration.sql +11 -0
- package/migrations/20230509094335_remote_id_string/migration.sql +2 -0
- package/migrations/20230509095846_remote_owner/migration.sql +2 -0
- package/migrations/20230519124519_/migration.sql +5 -0
- package/migrations/20230601143330_replace_last_merge_sync_at/migration.sql +22 -0
- package/migrations/20230605142607_/migration.sql +2 -0
- package/migrations/20230609122817_import_unique_constraints/migration.sql +21 -0
- package/migrations/20230614110145_remote_created_at/migration.sql +5 -0
- package/migrations/20230616112448_deleted_at/migration.sql +5 -0
- package/migrations/20230616131539_linked_account_id/migration.sql +54 -0
- package/migrations/20230619165105_merge_crm_account/migration.sql +2 -0
- package/migrations/20230620114042_merge_crm_converted_contact_id/migration.sql +2 -0
- package/migrations/20230620144500_user_merge_connection/migration.sql +8 -0
- package/migrations/20230710130800_kill_amplify/migration.sql +330 -0
- package/migrations/20230808152916_kill_amplify2/migration.sql +55 -0
- package/migrations/20230808174734_testesffe/migration.sql +25 -0
- package/migrations/20230809115443_add_is_outreach_paused/migration.sql +5 -0
- package/migrations/20230815145803_scheduled_status/migration.sql +5 -0
- package/migrations/migration_lock.toml +3 -0
- package/package.json +21 -0
- package/schema.prisma +448 -0
- package/test.ts +15 -0
package/.env
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
POSTGRES_DATABASE_URL="postgresql://postgres:password@localhost:5432/TSS-fresh5?schema=public"
|
package/README.md
ADDED
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
Decimal,
|
|
6
|
+
objectEnumValues,
|
|
7
|
+
makeStrictEnum,
|
|
8
|
+
Public,
|
|
9
|
+
} = require('./runtime/index-browser')
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const Prisma = {}
|
|
13
|
+
|
|
14
|
+
exports.Prisma = Prisma
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Prisma Client JS version: 4.16.2
|
|
18
|
+
* Query Engine version: 4bc8b6e1b66cb932731fb1bdbbc550d1e010de81
|
|
19
|
+
*/
|
|
20
|
+
Prisma.prismaVersion = {
|
|
21
|
+
client: "4.16.2",
|
|
22
|
+
engine: "4bc8b6e1b66cb932731fb1bdbbc550d1e010de81"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
26
|
+
throw new Error(`PrismaClientKnownRequestError is unable to be run in the browser.
|
|
27
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
28
|
+
)};
|
|
29
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
30
|
+
throw new Error(`PrismaClientUnknownRequestError is unable to be run in the browser.
|
|
31
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
32
|
+
)}
|
|
33
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
34
|
+
throw new Error(`PrismaClientRustPanicError is unable to be run in the browser.
|
|
35
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
36
|
+
)}
|
|
37
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
38
|
+
throw new Error(`PrismaClientInitializationError is unable to be run in the browser.
|
|
39
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
40
|
+
)}
|
|
41
|
+
Prisma.PrismaClientValidationError = () => {
|
|
42
|
+
throw new Error(`PrismaClientValidationError is unable to be run in the browser.
|
|
43
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
44
|
+
)}
|
|
45
|
+
Prisma.NotFoundError = () => {
|
|
46
|
+
throw new Error(`NotFoundError is unable to be run in the browser.
|
|
47
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
48
|
+
)}
|
|
49
|
+
Prisma.Decimal = Decimal
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Re-export of sql-template-tag
|
|
53
|
+
*/
|
|
54
|
+
Prisma.sql = () => {
|
|
55
|
+
throw new Error(`sqltag is unable to be run in the browser.
|
|
56
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
57
|
+
)}
|
|
58
|
+
Prisma.empty = () => {
|
|
59
|
+
throw new Error(`empty is unable to be run in the browser.
|
|
60
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
61
|
+
)}
|
|
62
|
+
Prisma.join = () => {
|
|
63
|
+
throw new Error(`join is unable to be run in the browser.
|
|
64
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
65
|
+
)}
|
|
66
|
+
Prisma.raw = () => {
|
|
67
|
+
throw new Error(`raw is unable to be run in the browser.
|
|
68
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
69
|
+
)}
|
|
70
|
+
Prisma.validator = Public.validator
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Extensions
|
|
74
|
+
*/
|
|
75
|
+
Prisma.getExtensionContext = () => {
|
|
76
|
+
throw new Error(`Extensions.getExtensionContext is unable to be run in the browser.
|
|
77
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
78
|
+
)}
|
|
79
|
+
Prisma.defineExtension = () => {
|
|
80
|
+
throw new Error(`Extensions.defineExtension is unable to be run in the browser.
|
|
81
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
82
|
+
)}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Shorthand utilities for JSON filtering
|
|
86
|
+
*/
|
|
87
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
88
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
89
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
90
|
+
|
|
91
|
+
Prisma.NullTypes = {
|
|
92
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
93
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
94
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Enums
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
102
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
103
|
+
ReadCommitted: 'ReadCommitted',
|
|
104
|
+
RepeatableRead: 'RepeatableRead',
|
|
105
|
+
Serializable: 'Serializable'
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
exports.Prisma.UserScalarFieldEnum = {
|
|
109
|
+
id: 'id',
|
|
110
|
+
deleted_at: 'deleted_at',
|
|
111
|
+
email: 'email',
|
|
112
|
+
first_name: 'first_name',
|
|
113
|
+
is_nlp_icp_enabled: 'is_nlp_icp_enabled',
|
|
114
|
+
last_name: 'last_name',
|
|
115
|
+
onboarded_at: 'onboarded_at',
|
|
116
|
+
registered_at: 'registered_at',
|
|
117
|
+
updated_at: 'updated_at'
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
exports.Prisma.MergeConnectionScalarFieldEnum = {
|
|
121
|
+
id: 'id',
|
|
122
|
+
user_id: 'user_id',
|
|
123
|
+
account_token: 'account_token',
|
|
124
|
+
webhook_listener_url: 'webhook_listener_url',
|
|
125
|
+
crm_name: 'crm_name',
|
|
126
|
+
image: 'image',
|
|
127
|
+
image_square: 'image_square',
|
|
128
|
+
status: 'status',
|
|
129
|
+
crm_slug_name: 'crm_slug_name',
|
|
130
|
+
linked_account_id: 'linked_account_id',
|
|
131
|
+
accounts_last_sync_at: 'accounts_last_sync_at',
|
|
132
|
+
contacts_last_sync_at: 'contacts_last_sync_at',
|
|
133
|
+
leads_last_sync_at: 'leads_last_sync_at',
|
|
134
|
+
last_merge_syncAt: 'last_merge_syncAt',
|
|
135
|
+
deleted_at: 'deleted_at'
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
exports.Prisma.MergeCrmAccountScalarFieldEnum = {
|
|
139
|
+
id: 'id',
|
|
140
|
+
created_at: 'created_at',
|
|
141
|
+
name: 'name',
|
|
142
|
+
description: 'description',
|
|
143
|
+
industry: 'industry',
|
|
144
|
+
website: 'website',
|
|
145
|
+
domain: 'domain',
|
|
146
|
+
number_of_employees: 'number_of_employees',
|
|
147
|
+
remote_was_deleted: 'remote_was_deleted',
|
|
148
|
+
merge_crm_id: 'merge_crm_id',
|
|
149
|
+
remote_id: 'remote_id',
|
|
150
|
+
telescope_user_id: 'telescope_user_id',
|
|
151
|
+
linked_account_id: 'linked_account_id',
|
|
152
|
+
last_activity_at: 'last_activity_at',
|
|
153
|
+
remote_created_at: 'remote_created_at',
|
|
154
|
+
company_id: 'company_id',
|
|
155
|
+
remote_owner: 'remote_owner'
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
exports.Prisma.MergeCrmContactScalarFieldEnum = {
|
|
159
|
+
id: 'id',
|
|
160
|
+
created_at: 'created_at',
|
|
161
|
+
merge_crm_account_id: 'merge_crm_account_id',
|
|
162
|
+
remote_was_deleted: 'remote_was_deleted',
|
|
163
|
+
merge_crm_id: 'merge_crm_id',
|
|
164
|
+
remote_id: 'remote_id',
|
|
165
|
+
telescope_user_id: 'telescope_user_id',
|
|
166
|
+
linked_account_id: 'linked_account_id',
|
|
167
|
+
last_activity_at: 'last_activity_at',
|
|
168
|
+
remote_created_at: 'remote_created_at',
|
|
169
|
+
person_id: 'person_id'
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
exports.Prisma.MergeCrmLeadScalarFieldEnum = {
|
|
173
|
+
id: 'id',
|
|
174
|
+
created_at: 'created_at',
|
|
175
|
+
remote_owner: 'remote_owner',
|
|
176
|
+
lead_source: 'lead_source',
|
|
177
|
+
remote_was_deleted: 'remote_was_deleted',
|
|
178
|
+
merge_crm_converted_account_id: 'merge_crm_converted_account_id',
|
|
179
|
+
merge_crm_id: 'merge_crm_id',
|
|
180
|
+
remote_id: 'remote_id',
|
|
181
|
+
telescope_user_id: 'telescope_user_id',
|
|
182
|
+
linked_account_id: 'linked_account_id',
|
|
183
|
+
remote_created_at: 'remote_created_at',
|
|
184
|
+
person_id: 'person_id',
|
|
185
|
+
remote_updated_at: 'remote_updated_at',
|
|
186
|
+
converted_date: 'converted_date',
|
|
187
|
+
merge_crm_converted_contact_id: 'merge_crm_converted_contact_id'
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
exports.Prisma.CampaignScalarFieldEnum = {
|
|
191
|
+
id: 'id',
|
|
192
|
+
name: 'name',
|
|
193
|
+
outreach_status: 'outreach_status',
|
|
194
|
+
active_icp_id: 'active_icp_id',
|
|
195
|
+
sequence_id: 'sequence_id',
|
|
196
|
+
owner_id: 'owner_id',
|
|
197
|
+
created_at: 'created_at',
|
|
198
|
+
updated_at: 'updated_at',
|
|
199
|
+
deleted_at: 'deleted_at'
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
exports.Prisma.ProspectScalarFieldEnum = {
|
|
203
|
+
id: 'id',
|
|
204
|
+
campaign_id: 'campaign_id',
|
|
205
|
+
company_name: 'company_name',
|
|
206
|
+
email: 'email',
|
|
207
|
+
first_name: 'first_name',
|
|
208
|
+
last_name: 'last_name',
|
|
209
|
+
job_title: 'job_title',
|
|
210
|
+
phone_numbers: 'phone_numbers',
|
|
211
|
+
person_id: 'person_id',
|
|
212
|
+
company_id: 'company_id',
|
|
213
|
+
recommendation_id: 'recommendation_id',
|
|
214
|
+
merge_crm_account_id: 'merge_crm_account_id',
|
|
215
|
+
merge_crm_contact_id: 'merge_crm_contact_id',
|
|
216
|
+
merge_crm_lead_id: 'merge_crm_lead_id',
|
|
217
|
+
merge_crm_export_status: 'merge_crm_export_status',
|
|
218
|
+
first_crm_export_at: 'first_crm_export_at',
|
|
219
|
+
last_crm_export_at: 'last_crm_export_at',
|
|
220
|
+
owner_id: 'owner_id',
|
|
221
|
+
created_at: 'created_at',
|
|
222
|
+
deleted_at: 'deleted_at',
|
|
223
|
+
updated_at: 'updated_at',
|
|
224
|
+
is_outreach_paused: 'is_outreach_paused'
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
exports.Prisma.CampaignLogEventScalarFieldEnum = {
|
|
228
|
+
id: 'id',
|
|
229
|
+
campaign_id: 'campaign_id',
|
|
230
|
+
type: 'type',
|
|
231
|
+
description: 'description',
|
|
232
|
+
prospect_id: 'prospect_id',
|
|
233
|
+
thread_id: 'thread_id',
|
|
234
|
+
sequence_step_id: 'sequence_step_id',
|
|
235
|
+
recommendation_id: 'recommendation_id',
|
|
236
|
+
email_subject: 'email_subject',
|
|
237
|
+
email_body: 'email_body',
|
|
238
|
+
owner_id: 'owner_id',
|
|
239
|
+
created_at: 'created_at',
|
|
240
|
+
updated_at: 'updated_at',
|
|
241
|
+
deleted_at: 'deleted_at'
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
exports.Prisma.RecommendationScalarFieldEnum = {
|
|
245
|
+
id: 'id',
|
|
246
|
+
campaign_id: 'campaign_id',
|
|
247
|
+
status: 'status',
|
|
248
|
+
candidate_origin: 'candidate_origin',
|
|
249
|
+
candidate_version: 'candidate_version',
|
|
250
|
+
ranker_score: 'ranker_score',
|
|
251
|
+
person_id: 'person_id',
|
|
252
|
+
person_record_id: 'person_record_id',
|
|
253
|
+
company_id: 'company_id',
|
|
254
|
+
company_record_id: 'company_record_id',
|
|
255
|
+
icp_id: 'icp_id',
|
|
256
|
+
icp_match_confidence: 'icp_match_confidence',
|
|
257
|
+
merge_crm_lead_id: 'merge_crm_lead_id',
|
|
258
|
+
merge_crm_contact_id: 'merge_crm_contact_id',
|
|
259
|
+
merge_crm_account_id: 'merge_crm_account_id',
|
|
260
|
+
owner_id: 'owner_id',
|
|
261
|
+
created_at: 'created_at',
|
|
262
|
+
resolved_at: 'resolved_at',
|
|
263
|
+
updated_at: 'updated_at',
|
|
264
|
+
deleted_at: 'deleted_at',
|
|
265
|
+
model_info: 'model_info',
|
|
266
|
+
rejection_reason: 'rejection_reason',
|
|
267
|
+
ranker_version: 'ranker_version'
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
exports.Prisma.IdealCustomerProfileScalarFieldEnum = {
|
|
271
|
+
id: 'id',
|
|
272
|
+
campaign_id: 'campaign_id',
|
|
273
|
+
icp_description: 'icp_description',
|
|
274
|
+
keywords: 'keywords',
|
|
275
|
+
negative_keywords: 'negative_keywords',
|
|
276
|
+
job_titles: 'job_titles',
|
|
277
|
+
example_companies: 'example_companies',
|
|
278
|
+
country_codes: 'country_codes',
|
|
279
|
+
employee_country_codes: 'employee_country_codes',
|
|
280
|
+
industries: 'industries',
|
|
281
|
+
company_size_range: 'company_size_range',
|
|
282
|
+
founded_year_range: 'founded_year_range',
|
|
283
|
+
company_types: 'company_types',
|
|
284
|
+
require_email: 'require_email',
|
|
285
|
+
owner_id: 'owner_id',
|
|
286
|
+
created_at: 'created_at',
|
|
287
|
+
updated_at: 'updated_at',
|
|
288
|
+
deleted_at: 'deleted_at'
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
exports.Prisma.ConnectedMailboxScalarFieldEnum = {
|
|
292
|
+
id: 'id',
|
|
293
|
+
status: 'status',
|
|
294
|
+
type: 'type',
|
|
295
|
+
tokens: 'tokens',
|
|
296
|
+
owner_id: 'owner_id',
|
|
297
|
+
created_at: 'created_at',
|
|
298
|
+
updated_at: 'updated_at',
|
|
299
|
+
deleted_at: 'deleted_at',
|
|
300
|
+
email: 'email',
|
|
301
|
+
email_provider_user_id: 'email_provider_user_id',
|
|
302
|
+
mailbox_user_id: 'mailbox_user_id',
|
|
303
|
+
max_emails_per_day: 'max_emails_per_day',
|
|
304
|
+
max_emails_per_hour: 'max_emails_per_hour'
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
exports.Prisma.SequenceScalarFieldEnum = {
|
|
308
|
+
id: 'id',
|
|
309
|
+
steps_ids: 'steps_ids',
|
|
310
|
+
owner_id: 'owner_id',
|
|
311
|
+
created_at: 'created_at',
|
|
312
|
+
updated_at: 'updated_at',
|
|
313
|
+
deleted_at: 'deleted_at',
|
|
314
|
+
iana_timezone_name: 'iana_timezone_name',
|
|
315
|
+
schedule_hourly_range: 'schedule_hourly_range'
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
exports.Prisma.SequenceStepScalarFieldEnum = {
|
|
319
|
+
id: 'id',
|
|
320
|
+
sequence_id: 'sequence_id',
|
|
321
|
+
type: 'type',
|
|
322
|
+
condition: 'condition',
|
|
323
|
+
seconds_from_previous_step: 'seconds_from_previous_step',
|
|
324
|
+
email_subject: 'email_subject',
|
|
325
|
+
email_body: 'email_body',
|
|
326
|
+
linkedin_message: 'linkedin_message',
|
|
327
|
+
created_at: 'created_at',
|
|
328
|
+
updated_at: 'updated_at',
|
|
329
|
+
deleted_at: 'deleted_at',
|
|
330
|
+
owner_id: 'owner_id'
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
exports.Prisma.ProspectSequenceStepScalarFieldEnum = {
|
|
334
|
+
id: 'id',
|
|
335
|
+
prospect_id: 'prospect_id',
|
|
336
|
+
sequence_step_id: 'sequence_step_id',
|
|
337
|
+
status: 'status',
|
|
338
|
+
dispatched_at: 'dispatched_at',
|
|
339
|
+
confirmed_at: 'confirmed_at',
|
|
340
|
+
failed_at: 'failed_at',
|
|
341
|
+
thread_id: 'thread_id',
|
|
342
|
+
message_id: 'message_id',
|
|
343
|
+
created_at: 'created_at',
|
|
344
|
+
updated_at: 'updated_at',
|
|
345
|
+
email_body: 'email_body',
|
|
346
|
+
email_subject: 'email_subject',
|
|
347
|
+
executed_with_mailbox_id: 'executed_with_mailbox_id',
|
|
348
|
+
linkedin_message: 'linkedin_message',
|
|
349
|
+
owner_id: 'owner_id',
|
|
350
|
+
scheduled_at: 'scheduled_at'
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
exports.Prisma.ProspectInteractionEventScalarFieldEnum = {
|
|
354
|
+
id: 'id',
|
|
355
|
+
campaign_id: 'campaign_id',
|
|
356
|
+
prospect_id: 'prospect_id',
|
|
357
|
+
in_resp_to_prospect_sequence_step_id: 'in_resp_to_prospect_sequence_step_id',
|
|
358
|
+
type: 'type',
|
|
359
|
+
thread_id: 'thread_id',
|
|
360
|
+
message_id: 'message_id',
|
|
361
|
+
sent_at: 'sent_at',
|
|
362
|
+
is_auto_reply: 'is_auto_reply',
|
|
363
|
+
text_reply: 'text_reply',
|
|
364
|
+
prospect_interest: 'prospect_interest',
|
|
365
|
+
owner_id: 'owner_id',
|
|
366
|
+
created_at: 'created_at',
|
|
367
|
+
updated_at: 'updated_at',
|
|
368
|
+
interest_analysed_at: 'interest_analysed_at'
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
exports.Prisma.SortOrder = {
|
|
372
|
+
asc: 'asc',
|
|
373
|
+
desc: 'desc'
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
exports.Prisma.NullableJsonNullValueInput = {
|
|
377
|
+
DbNull: Prisma.DbNull,
|
|
378
|
+
JsonNull: Prisma.JsonNull
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
exports.Prisma.JsonNullValueInput = {
|
|
382
|
+
JsonNull: Prisma.JsonNull
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
exports.Prisma.QueryMode = {
|
|
386
|
+
default: 'default',
|
|
387
|
+
insensitive: 'insensitive'
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
exports.Prisma.NullsOrder = {
|
|
391
|
+
first: 'first',
|
|
392
|
+
last: 'last'
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
396
|
+
DbNull: Prisma.DbNull,
|
|
397
|
+
JsonNull: Prisma.JsonNull,
|
|
398
|
+
AnyNull: Prisma.AnyNull
|
|
399
|
+
};
|
|
400
|
+
exports.OutreachStatus = {
|
|
401
|
+
RUNNING: 'RUNNING',
|
|
402
|
+
PAUSED: 'PAUSED',
|
|
403
|
+
DISABLED: 'DISABLED'
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
exports.MergeCrmExportStatus = {
|
|
407
|
+
SUCCESS: 'SUCCESS',
|
|
408
|
+
FAILED: 'FAILED'
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
exports.CampaignLogEventType = {
|
|
412
|
+
CREATED_CAMPAIGN: 'CREATED_CAMPAIGN',
|
|
413
|
+
STARTED_CAMPAIGN: 'STARTED_CAMPAIGN',
|
|
414
|
+
PAUSED_CAMPAIGN: 'PAUSED_CAMPAIGN',
|
|
415
|
+
EMAIL_SENT: 'EMAIL_SENT',
|
|
416
|
+
EMAIL_SEND_FAILURE: 'EMAIL_SEND_FAILURE',
|
|
417
|
+
FUNNEL_REPLENISH_ACTIVATED: 'FUNNEL_REPLENISH_ACTIVATED',
|
|
418
|
+
FUNNEL_REPLENISH_DEACTIVATED: 'FUNNEL_REPLENISH_DEACTIVATED',
|
|
419
|
+
REPLENISHED_FUNNEL: 'REPLENISHED_FUNNEL',
|
|
420
|
+
ADDED_PROSPECTS: 'ADDED_PROSPECTS',
|
|
421
|
+
REMOVED_PROSPECTS: 'REMOVED_PROSPECTS',
|
|
422
|
+
EDITED_EMAIL_STEP: 'EDITED_EMAIL_STEP',
|
|
423
|
+
DELETED_EMAIL_STEP: 'DELETED_EMAIL_STEP',
|
|
424
|
+
ADDED_EMAIL_STEP: 'ADDED_EMAIL_STEP',
|
|
425
|
+
ADDED_DELAY_AFTER: 'ADDED_DELAY_AFTER',
|
|
426
|
+
EDITED_DELAY_AFTER: 'EDITED_DELAY_AFTER',
|
|
427
|
+
ACCEPTED_RECOMMENDATION: 'ACCEPTED_RECOMMENDATION',
|
|
428
|
+
REJECTED_RECOMMENDATION: 'REJECTED_RECOMMENDATION'
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
exports.RecommendationStatus = {
|
|
432
|
+
ACCEPTED: 'ACCEPTED',
|
|
433
|
+
REJECTED: 'REJECTED',
|
|
434
|
+
PENDING: 'PENDING'
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
exports.RecommendationRejectionReason = {
|
|
438
|
+
NOT_RELEVANT: 'NOT_RELEVANT',
|
|
439
|
+
WRONG_POSITION_RIGHT_COMPANY: 'WRONG_POSITION_RIGHT_COMPANY',
|
|
440
|
+
RIGHT_POSITION_WRONG_COMPANY: 'RIGHT_POSITION_WRONG_COMPANY',
|
|
441
|
+
EXISTING_CUSTOMER: 'EXISTING_CUSTOMER',
|
|
442
|
+
ALREADY_CONTACTED: 'ALREADY_CONTACTED',
|
|
443
|
+
OTHER: 'OTHER',
|
|
444
|
+
DISCARDED: 'DISCARDED'
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
exports.ConnectedMailboxStatus = {
|
|
448
|
+
CONNECTED: 'CONNECTED',
|
|
449
|
+
DISCONNECTED: 'DISCONNECTED'
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
exports.ConnectedMailboxType = {
|
|
453
|
+
GMAIL: 'GMAIL',
|
|
454
|
+
OUTLOOK: 'OUTLOOK'
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
exports.SequenceStepType = {
|
|
458
|
+
EMAIL: 'EMAIL',
|
|
459
|
+
LINKEDIN_CONNECTION: 'LINKEDIN_CONNECTION',
|
|
460
|
+
LINKEDIN_MESSAGE: 'LINKEDIN_MESSAGE'
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
exports.SequenceStepCondition = {
|
|
464
|
+
LINKEDIN_ACCEPTED_CONNECTION: 'LINKEDIN_ACCEPTED_CONNECTION',
|
|
465
|
+
LINKEDIN_CONNECTION_NOT_ACCEPTED: 'LINKEDIN_CONNECTION_NOT_ACCEPTED'
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
exports.ProspectSequenceStepStatus = {
|
|
469
|
+
PENDING: 'PENDING',
|
|
470
|
+
COMPLETED: 'COMPLETED',
|
|
471
|
+
ERROR: 'ERROR',
|
|
472
|
+
SCHEDULED: 'SCHEDULED'
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
exports.ProspectInteractionEventType = {
|
|
476
|
+
POSITIVE_EMAIL_REPLY: 'POSITIVE_EMAIL_REPLY',
|
|
477
|
+
NEGATIVE_EMAIL_REPLY: 'NEGATIVE_EMAIL_REPLY',
|
|
478
|
+
EMAIL_REPLY_UNKNOWN_SENTIMENT: 'EMAIL_REPLY_UNKNOWN_SENTIMENT',
|
|
479
|
+
EMAIL_BOUNCE_NOTIFICATION: 'EMAIL_BOUNCE_NOTIFICATION',
|
|
480
|
+
EMAIL_OOO_NOTIFICATION: 'EMAIL_OOO_NOTIFICATION',
|
|
481
|
+
LINKEDIN_CONNECTION_ACCEPTED: 'LINKEDIN_CONNECTION_ACCEPTED',
|
|
482
|
+
POSITIVE_LINKEDIN_REPLY: 'POSITIVE_LINKEDIN_REPLY',
|
|
483
|
+
NEGATIVE_LINKEDIN_REPLY: 'NEGATIVE_LINKEDIN_REPLY'
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
exports.Prisma.ModelName = {
|
|
487
|
+
User: 'User',
|
|
488
|
+
MergeConnection: 'MergeConnection',
|
|
489
|
+
MergeCrmAccount: 'MergeCrmAccount',
|
|
490
|
+
MergeCrmContact: 'MergeCrmContact',
|
|
491
|
+
MergeCrmLead: 'MergeCrmLead',
|
|
492
|
+
Campaign: 'Campaign',
|
|
493
|
+
Prospect: 'Prospect',
|
|
494
|
+
CampaignLogEvent: 'CampaignLogEvent',
|
|
495
|
+
Recommendation: 'Recommendation',
|
|
496
|
+
IdealCustomerProfile: 'IdealCustomerProfile',
|
|
497
|
+
ConnectedMailbox: 'ConnectedMailbox',
|
|
498
|
+
Sequence: 'Sequence',
|
|
499
|
+
SequenceStep: 'SequenceStep',
|
|
500
|
+
ProspectSequenceStep: 'ProspectSequenceStep',
|
|
501
|
+
ProspectInteractionEvent: 'ProspectInteractionEvent'
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Create the Client
|
|
506
|
+
*/
|
|
507
|
+
class PrismaClient {
|
|
508
|
+
constructor() {
|
|
509
|
+
throw new Error(
|
|
510
|
+
`PrismaClient is unable to be run in the browser.
|
|
511
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
512
|
+
)
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
exports.PrismaClient = PrismaClient
|
|
516
|
+
|
|
517
|
+
Object.assign(exports, Prisma)
|