telescope-prisma-client 0.0.17 → 0.0.18

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.
Files changed (55) hide show
  1. package/.env.example +1 -0
  2. package/README.md +0 -2
  3. package/dist/index.d.ts +3 -3
  4. package/dist/index.js +45 -7
  5. package/generatedClient/index-browser.js +517 -0
  6. package/generatedClient/index.d.ts +36732 -0
  7. package/generatedClient/index.js +579 -0
  8. package/generatedClient/libquery_engine-darwin-arm64.dylib.node +0 -0
  9. package/generatedClient/libquery_engine-darwin.dylib.node +0 -0
  10. package/generatedClient/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
  11. package/generatedClient/libquery_engine-linux-musl.so.node +0 -0
  12. package/generatedClient/package.json +7 -0
  13. package/index.ts +15 -0
  14. package/jsonTypes.ts +24 -0
  15. package/package.json +3 -11
  16. package/test.ts +25 -0
  17. package/tsconfig.json +9 -0
  18. package/node_modules/@prisma/client/LICENSE +0 -201
  19. package/node_modules/@prisma/client/README.md +0 -27
  20. package/node_modules/@prisma/client/edge.d.ts +0 -1
  21. package/node_modules/@prisma/client/edge.js +0 -3
  22. package/node_modules/@prisma/client/extension.d.ts +0 -1
  23. package/node_modules/@prisma/client/extension.js +0 -3
  24. package/node_modules/@prisma/client/generator-build/index.js +0 -23344
  25. package/node_modules/@prisma/client/index-browser.js +0 -3
  26. package/node_modules/@prisma/client/index.d.ts +0 -1
  27. package/node_modules/@prisma/client/index.js +0 -3
  28. package/node_modules/@prisma/client/package.json +0 -162
  29. package/node_modules/@prisma/client/runtime/binary.d.ts +0 -1
  30. package/node_modules/@prisma/client/runtime/binary.js +0 -272
  31. package/node_modules/@prisma/client/runtime/data-proxy.d.ts +0 -1
  32. package/node_modules/@prisma/client/runtime/data-proxy.js +0 -125
  33. package/node_modules/@prisma/client/runtime/edge-esm.js +0 -90
  34. package/node_modules/@prisma/client/runtime/edge.js +0 -90
  35. package/node_modules/@prisma/client/runtime/index.js +0 -279
  36. package/node_modules/@prisma/client/scripts/colors.js +0 -176
  37. package/node_modules/@prisma/client/scripts/default-deno-edge.ts +0 -10
  38. package/node_modules/@prisma/client/scripts/default-edge.js +0 -12
  39. package/node_modules/@prisma/client/scripts/default-index-browser.js +0 -12
  40. package/node_modules/@prisma/client/scripts/default-index.d.ts +0 -110
  41. package/node_modules/@prisma/client/scripts/default-index.js +0 -38
  42. package/node_modules/@prisma/client/scripts/get-packed-client.js +0 -12
  43. package/node_modules/@prisma/client/scripts/postinstall.d.ts +0 -5
  44. package/node_modules/@prisma/client/scripts/postinstall.js +0 -402
  45. package/node_modules/@prisma/engines-version/LICENSE +0 -201
  46. package/node_modules/@prisma/engines-version/README.md +0 -8
  47. package/node_modules/@prisma/engines-version/index.d.ts +0 -1
  48. package/node_modules/@prisma/engines-version/index.js +0 -5
  49. package/node_modules/@prisma/engines-version/package.json +0 -27
  50. package/schema.prisma +0 -448
  51. /package/{node_modules/@prisma/client → generatedClient}/runtime/index-browser.d.ts +0 -0
  52. /package/{node_modules/@prisma/client → generatedClient}/runtime/index-browser.js +0 -0
  53. /package/{node_modules/@prisma/client → generatedClient}/runtime/index.d.ts +0 -0
  54. /package/{node_modules/@prisma/client → generatedClient}/runtime/library.d.ts +0 -0
  55. /package/{node_modules/@prisma/client → generatedClient}/runtime/library.js +0 -0
package/.env.example ADDED
@@ -0,0 +1 @@
1
+ POSTGRES_DATABASE_URL="postgresql://postgres:password@localhost:5432/db_test?schema=public"
package/README.md CHANGED
@@ -3,5 +3,3 @@ This package is used to manage the postgres database and publish a package that
3
3
  Use npm link to have updated generated types within your project.
4
4
 
5
5
  `npm login` and `npm publish` to publish to npm
6
-
7
- `"prepare": "npx prisma generate && tsc && cp src/index.d.ts dist/index.d.ts",`
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { PrismaClient } from '@prisma/client';
1
+ import { PrismaClient } from '../generatedClient/index.d';
2
2
 
3
- export function createContext(ctx: any): Context;
3
+ export function createContext(ctx: any): Promise<Context>;
4
4
 
5
- export * from '.prisma/client/index.d';
5
+ export * from '../generatedClient/index.d';
6
6
 
7
7
  export interface Context {
8
8
  prisma: PrismaClient;
package/dist/index.js CHANGED
@@ -10,13 +10,51 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
13
49
  Object.defineProperty(exports, "__esModule", { value: true });
14
50
  exports.createContext = void 0;
15
- var client_1 = require("@prisma/client");
16
- var prisma = new client_1.PrismaClient();
17
- var createContext = function (ctx) {
18
- // Skip if you are not using a serverless environment
19
- ctx.callbackWaitsForEmptyEventLoop = false;
20
- return __assign(__assign({}, ctx), { prisma: prisma });
21
- };
51
+ var generatedClient_1 = require("../generatedClient");
52
+ var prisma = new generatedClient_1.PrismaClient();
53
+ var createContext = function (ctx) { return __awaiter(void 0, void 0, void 0, function () {
54
+ return __generator(this, function (_a) {
55
+ // Skip if you are not using a serverless environment
56
+ ctx.callbackWaitsForEmptyEventLoop = false;
57
+ return [2 /*return*/, __assign(__assign({}, ctx), { prisma: prisma })];
58
+ });
59
+ }); };
22
60
  exports.createContext = createContext;
@@ -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)