@creator.co/creatorco-prisma-client 1.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.
@@ -0,0 +1,1185 @@
1
+
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+
4
+ const {
5
+ Decimal,
6
+ objectEnumValues,
7
+ makeStrictEnum,
8
+ Public,
9
+ detectRuntime,
10
+ } = require('./runtime/index-browser')
11
+
12
+
13
+ const Prisma = {}
14
+
15
+ exports.Prisma = Prisma
16
+ exports.$Enums = {}
17
+
18
+ /**
19
+ * Prisma Client JS version: 5.6.0
20
+ * Query Engine version: e95e739751f42d8ca026f6b910f5a2dc5adeaeee
21
+ */
22
+ Prisma.prismaVersion = {
23
+ client: "5.6.0",
24
+ engine: "e95e739751f42d8ca026f6b910f5a2dc5adeaeee"
25
+ }
26
+
27
+ Prisma.PrismaClientKnownRequestError = () => {
28
+ throw new Error(`PrismaClientKnownRequestError is unable to be run ${runtimeDescription}.
29
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
30
+ )};
31
+ Prisma.PrismaClientUnknownRequestError = () => {
32
+ throw new Error(`PrismaClientUnknownRequestError is unable to be run ${runtimeDescription}.
33
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
34
+ )}
35
+ Prisma.PrismaClientRustPanicError = () => {
36
+ throw new Error(`PrismaClientRustPanicError is unable to be run ${runtimeDescription}.
37
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
38
+ )}
39
+ Prisma.PrismaClientInitializationError = () => {
40
+ throw new Error(`PrismaClientInitializationError is unable to be run ${runtimeDescription}.
41
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
42
+ )}
43
+ Prisma.PrismaClientValidationError = () => {
44
+ throw new Error(`PrismaClientValidationError is unable to be run ${runtimeDescription}.
45
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
46
+ )}
47
+ Prisma.NotFoundError = () => {
48
+ throw new Error(`NotFoundError is unable to be run ${runtimeDescription}.
49
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
50
+ )}
51
+ Prisma.Decimal = Decimal
52
+
53
+ /**
54
+ * Re-export of sql-template-tag
55
+ */
56
+ Prisma.sql = () => {
57
+ throw new Error(`sqltag is unable to be run ${runtimeDescription}.
58
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
59
+ )}
60
+ Prisma.empty = () => {
61
+ throw new Error(`empty is unable to be run ${runtimeDescription}.
62
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
63
+ )}
64
+ Prisma.join = () => {
65
+ throw new Error(`join is unable to be run ${runtimeDescription}.
66
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
67
+ )}
68
+ Prisma.raw = () => {
69
+ throw new Error(`raw is unable to be run ${runtimeDescription}.
70
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
71
+ )}
72
+ Prisma.validator = Public.validator
73
+
74
+ /**
75
+ * Extensions
76
+ */
77
+ Prisma.getExtensionContext = () => {
78
+ throw new Error(`Extensions.getExtensionContext is unable to be run ${runtimeDescription}.
79
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
80
+ )}
81
+ Prisma.defineExtension = () => {
82
+ throw new Error(`Extensions.defineExtension is unable to be run ${runtimeDescription}.
83
+ In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
84
+ )}
85
+
86
+ /**
87
+ * Shorthand utilities for JSON filtering
88
+ */
89
+ Prisma.DbNull = objectEnumValues.instances.DbNull
90
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
91
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
92
+
93
+ Prisma.NullTypes = {
94
+ DbNull: objectEnumValues.classes.DbNull,
95
+ JsonNull: objectEnumValues.classes.JsonNull,
96
+ AnyNull: objectEnumValues.classes.AnyNull
97
+ }
98
+
99
+ /**
100
+ * Enums
101
+ */
102
+
103
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
104
+ ReadUncommitted: 'ReadUncommitted',
105
+ ReadCommitted: 'ReadCommitted',
106
+ RepeatableRead: 'RepeatableRead',
107
+ Serializable: 'Serializable'
108
+ });
109
+
110
+ exports.Prisma.UserScalarFieldEnum = {
111
+ id: 'id',
112
+ role: 'role',
113
+ email: 'email',
114
+ password: 'password',
115
+ registered: 'registered',
116
+ lastLoginDate: 'lastLoginDate',
117
+ firstName: 'firstName',
118
+ lastName: 'lastName',
119
+ phone: 'phone',
120
+ phoneCode: 'phoneCode',
121
+ phoneShort: 'phoneShort',
122
+ profilePicUrl: 'profilePicUrl',
123
+ forgotPasswordKey: 'forgotPasswordKey',
124
+ affiliateSlug: 'affiliateSlug',
125
+ closed: 'closed',
126
+ closedReason: 'closedReason',
127
+ usercomLastSynced: 'usercomLastSynced',
128
+ extraData: 'extraData',
129
+ referrerId: 'referrerId'
130
+ };
131
+
132
+ exports.Prisma.LogScalarFieldEnum = {
133
+ id: 'id',
134
+ userId: 'userId',
135
+ data: 'data'
136
+ };
137
+
138
+ exports.Prisma.CreatorProfileScalarFieldEnum = {
139
+ id: 'id',
140
+ country: 'country',
141
+ region: 'region',
142
+ birthDate: 'birthDate',
143
+ interests: 'interests',
144
+ gender: 'gender',
145
+ shippingAddress1: 'shippingAddress1',
146
+ shippingAddress2: 'shippingAddress2',
147
+ shippingCity: 'shippingCity',
148
+ shippingRegion: 'shippingRegion',
149
+ shippingCountry: 'shippingCountry',
150
+ shippingPostcode: 'shippingPostcode',
151
+ phylloUserId: 'phylloUserId',
152
+ profileSlug: 'profileSlug',
153
+ profileSettings: 'profileSettings',
154
+ walletAddress: 'walletAddress',
155
+ userId: 'userId'
156
+ };
157
+
158
+ exports.Prisma.InstagramProfileScalarFieldEnum = {
159
+ id: 'id',
160
+ instagramId: 'instagramId',
161
+ username: 'username',
162
+ url: 'url',
163
+ profilePicUrl: 'profilePicUrl',
164
+ followerCount: 'followerCount',
165
+ engagement: 'engagement',
166
+ lastUpdated: 'lastUpdated',
167
+ fullName: 'fullName',
168
+ isBusiness: 'isBusiness',
169
+ isPrivate: 'isPrivate',
170
+ isVerified: 'isVerified',
171
+ mediaCount: 'mediaCount',
172
+ followingCount: 'followingCount',
173
+ totalComments: 'totalComments',
174
+ totalLikes: 'totalLikes',
175
+ avgComments: 'avgComments',
176
+ avgLikes: 'avgLikes',
177
+ bio: 'bio',
178
+ externalUrl: 'externalUrl',
179
+ hasHighlightReels: 'hasHighlightReels',
180
+ category: 'category',
181
+ hasClips: 'hasClips',
182
+ hasGuides: 'hasGuides',
183
+ hasChannel: 'hasChannel',
184
+ totalIgtvVideos: 'totalIgtvVideos',
185
+ profilePicUrlHd: 'profilePicUrlHd',
186
+ lastStoriesUpdate: 'lastStoriesUpdate',
187
+ extraData: 'extraData',
188
+ phylloData: 'phylloData',
189
+ audienceData: 'audienceData',
190
+ visibility: 'visibility',
191
+ userId: 'userId',
192
+ brandId: 'brandId'
193
+ };
194
+
195
+ exports.Prisma.TiktokProfileScalarFieldEnum = {
196
+ id: 'id',
197
+ tiktokId: 'tiktokId',
198
+ username: 'username',
199
+ url: 'url',
200
+ profilePicUrl: 'profilePicUrl',
201
+ followerCount: 'followerCount',
202
+ engagement: 'engagement',
203
+ lastUpdated: 'lastUpdated',
204
+ handle: 'handle',
205
+ nickname: 'nickname',
206
+ followingCount: 'followingCount',
207
+ totalComments: 'totalComments',
208
+ totalLikes: 'totalLikes',
209
+ extraData: 'extraData',
210
+ phylloData: 'phylloData',
211
+ audienceData: 'audienceData',
212
+ visibility: 'visibility',
213
+ userId: 'userId',
214
+ brandId: 'brandId'
215
+ };
216
+
217
+ exports.Prisma.YoutubeProfileScalarFieldEnum = {
218
+ id: 'id',
219
+ youtubeId: 'youtubeId',
220
+ username: 'username',
221
+ url: 'url',
222
+ profilePicUrl: 'profilePicUrl',
223
+ followerCount: 'followerCount',
224
+ engagement: 'engagement',
225
+ lastUpdated: 'lastUpdated',
226
+ followingCount: 'followingCount',
227
+ fullName: 'fullName',
228
+ isVerified: 'isVerified',
229
+ subscribers: 'subscribers',
230
+ description: 'description',
231
+ country: 'country',
232
+ totalViews: 'totalViews',
233
+ totalVideos: 'totalVideos',
234
+ extraData: 'extraData',
235
+ phylloData: 'phylloData',
236
+ audienceData: 'audienceData',
237
+ visibility: 'visibility',
238
+ userId: 'userId',
239
+ brandId: 'brandId'
240
+ };
241
+
242
+ exports.Prisma.TwitchProfileScalarFieldEnum = {
243
+ id: 'id',
244
+ twitchId: 'twitchId',
245
+ username: 'username',
246
+ url: 'url',
247
+ profilePicUrl: 'profilePicUrl',
248
+ followerCount: 'followerCount',
249
+ engagement: 'engagement',
250
+ lastUpdated: 'lastUpdated',
251
+ extraData: 'extraData',
252
+ phylloData: 'phylloData',
253
+ visibility: 'visibility',
254
+ userId: 'userId'
255
+ };
256
+
257
+ exports.Prisma.FacebookProfileScalarFieldEnum = {
258
+ id: 'id',
259
+ facebookId: 'facebookId',
260
+ username: 'username',
261
+ url: 'url',
262
+ profilePicUrl: 'profilePicUrl',
263
+ followerCount: 'followerCount',
264
+ engagement: 'engagement',
265
+ lastUpdated: 'lastUpdated',
266
+ extraData: 'extraData',
267
+ phylloData: 'phylloData',
268
+ visibility: 'visibility',
269
+ userId: 'userId'
270
+ };
271
+
272
+ exports.Prisma.TwitterProfileScalarFieldEnum = {
273
+ id: 'id',
274
+ twitterId: 'twitterId',
275
+ username: 'username',
276
+ url: 'url',
277
+ profilePicUrl: 'profilePicUrl',
278
+ followerCount: 'followerCount',
279
+ engagement: 'engagement',
280
+ lastUpdated: 'lastUpdated',
281
+ extraData: 'extraData',
282
+ phylloData: 'phylloData',
283
+ visibility: 'visibility',
284
+ userId: 'userId'
285
+ };
286
+
287
+ exports.Prisma.BrandUserProfileScalarFieldEnum = {
288
+ id: 'id',
289
+ userId: 'userId',
290
+ brandId: 'brandId'
291
+ };
292
+
293
+ exports.Prisma.BrandScalarFieldEnum = {
294
+ id: 'id',
295
+ name: 'name',
296
+ description: 'description',
297
+ website: 'website',
298
+ monthlyContacts: 'monthlyContacts',
299
+ monthlyReports: 'monthlyReports',
300
+ lastContactDistribution: 'lastContactDistribution',
301
+ logoUrl: 'logoUrl',
302
+ affiliateBaseUrl: 'affiliateBaseUrl',
303
+ affiliateCommission: 'affiliateCommission',
304
+ extraData: 'extraData',
305
+ specialistId: 'specialistId'
306
+ };
307
+
308
+ exports.Prisma.SearchContactsScalarFieldEnum = {
309
+ id: 'id',
310
+ type: 'type',
311
+ prevQty: 'prevQty',
312
+ changeQty: 'changeQty',
313
+ currentQty: 'currentQty',
314
+ created: 'created',
315
+ prevQtyPostId: 'prevQtyPostId',
316
+ brandId: 'brandId'
317
+ };
318
+
319
+ exports.Prisma.ReportCreditsScalarFieldEnum = {
320
+ id: 'id',
321
+ type: 'type',
322
+ prevQty: 'prevQty',
323
+ changeQty: 'changeQty',
324
+ currentQty: 'currentQty',
325
+ created: 'created',
326
+ prevQtyPostId: 'prevQtyPostId',
327
+ brandId: 'brandId'
328
+ };
329
+
330
+ exports.Prisma.BrandToImageScalarFieldEnum = {
331
+ id: 'id',
332
+ brandId: 'brandId',
333
+ type: 'type'
334
+ };
335
+
336
+ exports.Prisma.BrandToCategoryScalarFieldEnum = {
337
+ brandId: 'brandId',
338
+ categoryId: 'categoryId'
339
+ };
340
+
341
+ exports.Prisma.CreatorToCategoryScalarFieldEnum = {
342
+ creatorProfileId: 'creatorProfileId',
343
+ categoryId: 'categoryId'
344
+ };
345
+
346
+ exports.Prisma.ChatScalarFieldEnum = {
347
+ id: 'id',
348
+ created: 'created',
349
+ conversationId: 'conversationId',
350
+ metaData: 'metaData',
351
+ optInId: 'optInId'
352
+ };
353
+
354
+ exports.Prisma.MessageScalarFieldEnum = {
355
+ id: 'id',
356
+ created: 'created',
357
+ sender: 'sender',
358
+ content: 'content',
359
+ read: 'read',
360
+ type: 'type',
361
+ messageSid: 'messageSid',
362
+ userId: 'userId',
363
+ chatId: 'chatId'
364
+ };
365
+
366
+ exports.Prisma.CampaignScalarFieldEnum = {
367
+ id: 'id',
368
+ title: 'title',
369
+ slug: 'slug',
370
+ status: 'status',
371
+ date: 'date',
372
+ publishDate: 'publishDate',
373
+ description: 'description',
374
+ productDescription: 'productDescription',
375
+ prizeDescription: 'prizeDescription',
376
+ strategy: 'strategy',
377
+ socialChannel: 'socialChannel',
378
+ socialChannels: 'socialChannels',
379
+ facebookReach: 'facebookReach',
380
+ facebookEngagement: 'facebookEngagement',
381
+ instagramReach: 'instagramReach',
382
+ instagramEngagement: 'instagramEngagement',
383
+ youtubeReach: 'youtubeReach',
384
+ youtubeEngagement: 'youtubeEngagement',
385
+ twitterReach: 'twitterReach',
386
+ twitterEngagement: 'twitterEngagement',
387
+ tiktokReach: 'tiktokReach',
388
+ tiktokEngagement: 'tiktokEngagement',
389
+ twitchReach: 'twitchReach',
390
+ twitchEngagement: 'twitchEngagement',
391
+ quantity: 'quantity',
392
+ holdCost: 'holdCost',
393
+ value: 'value',
394
+ paidAmount: 'paidAmount',
395
+ minAge: 'minAge',
396
+ maxAge: 'maxAge',
397
+ visuals: 'visuals',
398
+ photoTags: 'photoTags',
399
+ hashtags: 'hashtags',
400
+ storyHashtags: 'storyHashtags',
401
+ storyMentions: 'storyMentions',
402
+ caption: 'caption',
403
+ password: 'password',
404
+ contentFormats: 'contentFormats',
405
+ paidCampaign: 'paidCampaign',
406
+ minPaidAmount: 'minPaidAmount',
407
+ maxPaidAmount: 'maxPaidAmount',
408
+ paymentType: 'paymentType',
409
+ monthlyActivatedGoal: 'monthlyActivatedGoal',
410
+ expectedOptIns: 'expectedOptIns',
411
+ goalActivations: 'goalActivations',
412
+ goalOptIns: 'goalOptIns',
413
+ requiresShipping: 'requiresShipping',
414
+ disableQualifications: 'disableQualifications',
415
+ disableActivations: 'disableActivations',
416
+ affiliateLinkPath: 'affiliateLinkPath',
417
+ metaData: 'metaData',
418
+ brandId: 'brandId'
419
+ };
420
+
421
+ exports.Prisma.CampaignPinScalarFieldEnum = {
422
+ id: 'id',
423
+ userId: 'userId',
424
+ campaignId: 'campaignId',
425
+ created: 'created',
426
+ notified: 'notified'
427
+ };
428
+
429
+ exports.Prisma.CampaignToImageScalarFieldEnum = {
430
+ id: 'id',
431
+ campaignId: 'campaignId',
432
+ type: 'type'
433
+ };
434
+
435
+ exports.Prisma.CampaignToCategoryScalarFieldEnum = {
436
+ campaignId: 'campaignId',
437
+ categoryId: 'categoryId'
438
+ };
439
+
440
+ exports.Prisma.CampaignToCountryScalarFieldEnum = {
441
+ campaignId: 'campaignId',
442
+ countryId: 'countryId'
443
+ };
444
+
445
+ exports.Prisma.VariableScalarFieldEnum = {
446
+ id: 'id',
447
+ title: 'title',
448
+ description: 'description',
449
+ metaData: 'metaData',
450
+ campaignId: 'campaignId'
451
+ };
452
+
453
+ exports.Prisma.VariableOptionScalarFieldEnum = {
454
+ id: 'id',
455
+ title: 'title',
456
+ description: 'description',
457
+ metaData: 'metaData',
458
+ variableId: 'variableId'
459
+ };
460
+
461
+ exports.Prisma.StepScalarFieldEnum = {
462
+ id: 'id',
463
+ slug: 'slug',
464
+ title: 'title',
465
+ description: 'description',
466
+ data: 'data'
467
+ };
468
+
469
+ exports.Prisma.CampaignStepScalarFieldEnum = {
470
+ id: 'id',
471
+ placement: 'placement',
472
+ stepSettings: 'stepSettings',
473
+ actionee: 'actionee',
474
+ instructions: 'instructions',
475
+ customStepTitle: 'customStepTitle',
476
+ customForm: 'customForm',
477
+ metaData: 'metaData',
478
+ campaignId: 'campaignId',
479
+ stepId: 'stepId'
480
+ };
481
+
482
+ exports.Prisma.OptInStepScalarFieldEnum = {
483
+ id: 'id',
484
+ completed: 'completed',
485
+ data: 'data',
486
+ optInId: 'optInId',
487
+ campaignStepId: 'campaignStepId',
488
+ socialPostId: 'socialPostId'
489
+ };
490
+
491
+ exports.Prisma.CategoryScalarFieldEnum = {
492
+ id: 'id',
493
+ slug: 'slug',
494
+ title: 'title'
495
+ };
496
+
497
+ exports.Prisma.OptInScalarFieldEnum = {
498
+ id: 'id',
499
+ status: 'status',
500
+ created: 'created',
501
+ activated: 'activated',
502
+ completed: 'completed',
503
+ cancelled: 'cancelled',
504
+ cancelledData: 'cancelledData',
505
+ cancelRequested: 'cancelRequested',
506
+ reinvited: 'reinvited',
507
+ seen: 'seen',
508
+ instructions: 'instructions',
509
+ paymentAmount: 'paymentAmount',
510
+ paymentStatus: 'paymentStatus',
511
+ extraData: 'extraData',
512
+ userId: 'userId',
513
+ campaignId: 'campaignId',
514
+ currentStepId: 'currentStepId'
515
+ };
516
+
517
+ exports.Prisma.OptInVariableScalarFieldEnum = {
518
+ id: 'id',
519
+ optInId: 'optInId',
520
+ variableId: 'variableId',
521
+ selectedOptionId: 'selectedOptionId'
522
+ };
523
+
524
+ exports.Prisma.SocialPostScalarFieldEnum = {
525
+ id: 'id',
526
+ phylloId: 'phylloId',
527
+ metaData: 'metaData',
528
+ data: 'data',
529
+ lastFetched: 'lastFetched',
530
+ lastWebhook: 'lastWebhook',
531
+ isStale: 'isStale',
532
+ posted: 'posted',
533
+ title: 'title',
534
+ description: 'description',
535
+ url: 'url',
536
+ urlPath: 'urlPath',
537
+ format: 'format',
538
+ type: 'type',
539
+ platform: 'platform',
540
+ visibility: 'visibility',
541
+ isSponsored: 'isSponsored',
542
+ hasCollaborators: 'hasCollaborators',
543
+ isOwnedByUser: 'isOwnedByUser',
544
+ views: 'views',
545
+ impressions: 'impressions',
546
+ impressionsOrganic: 'impressionsOrganic',
547
+ impressionsPaid: 'impressionsPaid',
548
+ reach: 'reach',
549
+ reachOrganic: 'reachOrganic',
550
+ reachPaid: 'reachPaid',
551
+ watchHours: 'watchHours',
552
+ likes: 'likes',
553
+ dislikes: 'dislikes',
554
+ comments: 'comments',
555
+ saves: 'saves',
556
+ shares: 'shares',
557
+ userId: 'userId',
558
+ campaignId: 'campaignId'
559
+ };
560
+
561
+ exports.Prisma.SocialPostTagScalarFieldEnum = {
562
+ id: 'id',
563
+ title: 'title',
564
+ type: 'type',
565
+ socialPostId: 'socialPostId'
566
+ };
567
+
568
+ exports.Prisma.ImageScalarFieldEnum = {
569
+ id: 'id',
570
+ url: 'url',
571
+ size: 'size',
572
+ campaignImageId: 'campaignImageId'
573
+ };
574
+
575
+ exports.Prisma.BrandImageScalarFieldEnum = {
576
+ id: 'id',
577
+ url: 'url',
578
+ size: 'size',
579
+ brandImageId: 'brandImageId'
580
+ };
581
+
582
+ exports.Prisma.CountryScalarFieldEnum = {
583
+ id: 'id',
584
+ countryCode: 'countryCode',
585
+ countryName: 'countryName',
586
+ teleCode: 'teleCode'
587
+ };
588
+
589
+ exports.Prisma.StateScalarFieldEnum = {
590
+ id: 'id',
591
+ countryId: 'countryId',
592
+ stateCode: 'stateCode',
593
+ stateName: 'stateName'
594
+ };
595
+
596
+ exports.Prisma.PaymentTransactionScalarFieldEnum = {
597
+ id: 'id',
598
+ amount: 'amount',
599
+ balance: 'balance',
600
+ type: 'type',
601
+ date: 'date',
602
+ notes: 'notes',
603
+ metaData: 'metaData',
604
+ accountId: 'accountId',
605
+ brandId: 'brandId',
606
+ creatorId: 'creatorId',
607
+ prevTransactionId: 'prevTransactionId'
608
+ };
609
+
610
+ exports.Prisma.BrandAffiliateLinkScalarFieldEnum = {
611
+ id: 'id',
612
+ created: 'created',
613
+ description: 'description',
614
+ urlPath: 'urlPath',
615
+ commission: 'commission',
616
+ metaData: 'metaData',
617
+ brandId: 'brandId'
618
+ };
619
+
620
+ exports.Prisma.AffiliateLinkScalarFieldEnum = {
621
+ id: 'id',
622
+ created: 'created',
623
+ metaData: 'metaData',
624
+ userId: 'userId',
625
+ brandAffiliateLinkId: 'brandAffiliateLinkId'
626
+ };
627
+
628
+ exports.Prisma.AffiliateClickScalarFieldEnum = {
629
+ id: 'id',
630
+ created: 'created',
631
+ visitorIp: 'visitorIp',
632
+ metaData: 'metaData',
633
+ affiliateLinkId: 'affiliateLinkId'
634
+ };
635
+
636
+ exports.Prisma.AffiliateEventScalarFieldEnum = {
637
+ id: 'id',
638
+ event: 'event',
639
+ created: 'created',
640
+ visitorIp: 'visitorIp',
641
+ urlPath: 'urlPath',
642
+ revenue: 'revenue',
643
+ commissionAmount: 'commissionAmount',
644
+ commissionPercent: 'commissionPercent',
645
+ metaData: 'metaData',
646
+ affiliateClickId: 'affiliateClickId'
647
+ };
648
+
649
+ exports.Prisma.SavedFileScalarFieldEnum = {
650
+ id: 'id',
651
+ title: 'title',
652
+ type: 'type',
653
+ url: 'url',
654
+ savedDate: 'savedDate',
655
+ metaData: 'metaData',
656
+ brandId: 'brandId'
657
+ };
658
+
659
+ exports.Prisma.CampaignInviteScalarFieldEnum = {
660
+ id: 'id',
661
+ socialProfileId: 'socialProfileId',
662
+ brandId: 'brandId',
663
+ campaignId: 'campaignId',
664
+ optInId: 'optInId',
665
+ code: 'code',
666
+ createdAt: 'createdAt',
667
+ metaData: 'metaData'
668
+ };
669
+
670
+ exports.Prisma.CreatorListScalarFieldEnum = {
671
+ id: 'id',
672
+ brandId: 'brandId',
673
+ campaignId: 'campaignId',
674
+ created: 'created',
675
+ archived: 'archived',
676
+ title: 'title',
677
+ metaData: 'metaData'
678
+ };
679
+
680
+ exports.Prisma.CreatorListItemScalarFieldEnum = {
681
+ id: 'id',
682
+ socialProfileId: 'socialProfileId',
683
+ creatorListId: 'creatorListId',
684
+ saved: 'saved',
685
+ invited: 'invited',
686
+ tags: 'tags',
687
+ feedback: 'feedback',
688
+ archived: 'archived',
689
+ metaData: 'metaData'
690
+ };
691
+
692
+ exports.Prisma.SocialProfileScalarFieldEnum = {
693
+ id: 'id',
694
+ socialId: 'socialId',
695
+ userId: 'userId',
696
+ platform: 'platform',
697
+ username: 'username',
698
+ fullname: 'fullname',
699
+ profileUrl: 'profileUrl',
700
+ profilePicUrl: 'profilePicUrl',
701
+ followerCount: 'followerCount',
702
+ engagement: 'engagement',
703
+ avgViews: 'avgViews',
704
+ verified: 'verified',
705
+ metaData: 'metaData',
706
+ audienceData: 'audienceData',
707
+ phylloData: 'phylloData',
708
+ created: 'created',
709
+ updated: 'updated'
710
+ };
711
+
712
+ exports.Prisma.MessageTemplateScalarFieldEnum = {
713
+ id: 'id',
714
+ label: 'label',
715
+ template: 'template',
716
+ brandId: 'brandId',
717
+ metaData: 'metaData'
718
+ };
719
+
720
+ exports.Prisma.EmailTemplateScalarFieldEnum = {
721
+ id: 'id',
722
+ label: 'label',
723
+ subject: 'subject',
724
+ template: 'template',
725
+ brandId: 'brandId',
726
+ metaData: 'metaData'
727
+ };
728
+
729
+ exports.Prisma.SocialListeningListScalarFieldEnum = {
730
+ id: 'id',
731
+ brandId: 'brandId',
732
+ campaignId: 'campaignId',
733
+ created: 'created',
734
+ updated: 'updated',
735
+ title: 'title',
736
+ postType: 'postType',
737
+ filters: 'filters',
738
+ lastFetched: 'lastFetched'
739
+ };
740
+
741
+ exports.Prisma.ListToSocialPostScalarFieldEnum = {
742
+ id: 'id',
743
+ listId: 'listId',
744
+ postId: 'postId'
745
+ };
746
+
747
+ exports.Prisma.OptInViewScalarFieldEnum = {
748
+ id: 'id',
749
+ title: 'title',
750
+ filters: 'filters',
751
+ campaignId: 'campaignId'
752
+ };
753
+
754
+ exports.Prisma.RakutenActivityScalarFieldEnum = {
755
+ id: 'id',
756
+ orderId: 'orderId',
757
+ metaData: 'metaData',
758
+ created: 'created',
759
+ clicks: 'clicks',
760
+ orders: 'orders',
761
+ sales: 'sales',
762
+ commission: 'commission',
763
+ advertiserId: 'advertiserId',
764
+ userId: 'userId'
765
+ };
766
+
767
+ exports.Prisma.SlowQueriesScalarFieldEnum = {
768
+ id: 'id',
769
+ model: 'model',
770
+ operation: 'operation',
771
+ time: 'time',
772
+ args: 'args',
773
+ created_at: 'created_at',
774
+ completed: 'completed',
775
+ environment: 'environment'
776
+ };
777
+
778
+ exports.Prisma.SortOrder = {
779
+ asc: 'asc',
780
+ desc: 'desc'
781
+ };
782
+
783
+ exports.Prisma.JsonNullValueInput = {
784
+ JsonNull: Prisma.JsonNull
785
+ };
786
+
787
+ exports.Prisma.NullableJsonNullValueInput = {
788
+ DbNull: Prisma.DbNull,
789
+ JsonNull: Prisma.JsonNull
790
+ };
791
+
792
+ exports.Prisma.QueryMode = {
793
+ default: 'default',
794
+ insensitive: 'insensitive'
795
+ };
796
+
797
+ exports.Prisma.JsonNullValueFilter = {
798
+ DbNull: Prisma.DbNull,
799
+ JsonNull: Prisma.JsonNull,
800
+ AnyNull: Prisma.AnyNull
801
+ };
802
+
803
+ exports.Prisma.NullsOrder = {
804
+ first: 'first',
805
+ last: 'last'
806
+ };
807
+
808
+ exports.Prisma.UserOrderByRelevanceFieldEnum = {
809
+ role: 'role',
810
+ email: 'email',
811
+ password: 'password',
812
+ firstName: 'firstName',
813
+ lastName: 'lastName',
814
+ phone: 'phone',
815
+ phoneShort: 'phoneShort',
816
+ profilePicUrl: 'profilePicUrl',
817
+ forgotPasswordKey: 'forgotPasswordKey',
818
+ affiliateSlug: 'affiliateSlug',
819
+ closedReason: 'closedReason'
820
+ };
821
+
822
+ exports.Prisma.CreatorProfileOrderByRelevanceFieldEnum = {
823
+ country: 'country',
824
+ region: 'region',
825
+ gender: 'gender',
826
+ shippingAddress1: 'shippingAddress1',
827
+ shippingAddress2: 'shippingAddress2',
828
+ shippingCity: 'shippingCity',
829
+ shippingRegion: 'shippingRegion',
830
+ shippingCountry: 'shippingCountry',
831
+ shippingPostcode: 'shippingPostcode',
832
+ phylloUserId: 'phylloUserId',
833
+ profileSlug: 'profileSlug',
834
+ walletAddress: 'walletAddress'
835
+ };
836
+
837
+ exports.Prisma.InstagramProfileOrderByRelevanceFieldEnum = {
838
+ instagramId: 'instagramId',
839
+ username: 'username',
840
+ url: 'url',
841
+ profilePicUrl: 'profilePicUrl',
842
+ fullName: 'fullName',
843
+ bio: 'bio',
844
+ externalUrl: 'externalUrl',
845
+ category: 'category',
846
+ profilePicUrlHd: 'profilePicUrlHd',
847
+ visibility: 'visibility'
848
+ };
849
+
850
+ exports.Prisma.TiktokProfileOrderByRelevanceFieldEnum = {
851
+ tiktokId: 'tiktokId',
852
+ username: 'username',
853
+ url: 'url',
854
+ profilePicUrl: 'profilePicUrl',
855
+ handle: 'handle',
856
+ nickname: 'nickname',
857
+ visibility: 'visibility'
858
+ };
859
+
860
+ exports.Prisma.YoutubeProfileOrderByRelevanceFieldEnum = {
861
+ youtubeId: 'youtubeId',
862
+ username: 'username',
863
+ url: 'url',
864
+ profilePicUrl: 'profilePicUrl',
865
+ fullName: 'fullName',
866
+ description: 'description',
867
+ country: 'country',
868
+ visibility: 'visibility'
869
+ };
870
+
871
+ exports.Prisma.TwitchProfileOrderByRelevanceFieldEnum = {
872
+ twitchId: 'twitchId',
873
+ username: 'username',
874
+ url: 'url',
875
+ profilePicUrl: 'profilePicUrl',
876
+ visibility: 'visibility'
877
+ };
878
+
879
+ exports.Prisma.FacebookProfileOrderByRelevanceFieldEnum = {
880
+ facebookId: 'facebookId',
881
+ username: 'username',
882
+ url: 'url',
883
+ profilePicUrl: 'profilePicUrl',
884
+ visibility: 'visibility'
885
+ };
886
+
887
+ exports.Prisma.TwitterProfileOrderByRelevanceFieldEnum = {
888
+ twitterId: 'twitterId',
889
+ username: 'username',
890
+ url: 'url',
891
+ profilePicUrl: 'profilePicUrl',
892
+ visibility: 'visibility'
893
+ };
894
+
895
+ exports.Prisma.BrandOrderByRelevanceFieldEnum = {
896
+ name: 'name',
897
+ description: 'description',
898
+ website: 'website',
899
+ logoUrl: 'logoUrl',
900
+ affiliateBaseUrl: 'affiliateBaseUrl'
901
+ };
902
+
903
+ exports.Prisma.SearchContactsOrderByRelevanceFieldEnum = {
904
+ type: 'type'
905
+ };
906
+
907
+ exports.Prisma.ReportCreditsOrderByRelevanceFieldEnum = {
908
+ type: 'type'
909
+ };
910
+
911
+ exports.Prisma.BrandToImageOrderByRelevanceFieldEnum = {
912
+ type: 'type'
913
+ };
914
+
915
+ exports.Prisma.ChatOrderByRelevanceFieldEnum = {
916
+ conversationId: 'conversationId'
917
+ };
918
+
919
+ exports.Prisma.MessageOrderByRelevanceFieldEnum = {
920
+ sender: 'sender',
921
+ content: 'content',
922
+ type: 'type',
923
+ messageSid: 'messageSid'
924
+ };
925
+
926
+ exports.Prisma.CampaignOrderByRelevanceFieldEnum = {
927
+ title: 'title',
928
+ slug: 'slug',
929
+ status: 'status',
930
+ description: 'description',
931
+ productDescription: 'productDescription',
932
+ prizeDescription: 'prizeDescription',
933
+ strategy: 'strategy',
934
+ socialChannel: 'socialChannel',
935
+ visuals: 'visuals',
936
+ caption: 'caption',
937
+ password: 'password',
938
+ paymentType: 'paymentType',
939
+ affiliateLinkPath: 'affiliateLinkPath'
940
+ };
941
+
942
+ exports.Prisma.CampaignToImageOrderByRelevanceFieldEnum = {
943
+ type: 'type'
944
+ };
945
+
946
+ exports.Prisma.VariableOrderByRelevanceFieldEnum = {
947
+ title: 'title',
948
+ description: 'description'
949
+ };
950
+
951
+ exports.Prisma.VariableOptionOrderByRelevanceFieldEnum = {
952
+ title: 'title',
953
+ description: 'description'
954
+ };
955
+
956
+ exports.Prisma.StepOrderByRelevanceFieldEnum = {
957
+ slug: 'slug',
958
+ title: 'title',
959
+ description: 'description'
960
+ };
961
+
962
+ exports.Prisma.CampaignStepOrderByRelevanceFieldEnum = {
963
+ actionee: 'actionee',
964
+ instructions: 'instructions',
965
+ customStepTitle: 'customStepTitle'
966
+ };
967
+
968
+ exports.Prisma.CategoryOrderByRelevanceFieldEnum = {
969
+ slug: 'slug',
970
+ title: 'title'
971
+ };
972
+
973
+ exports.Prisma.OptInOrderByRelevanceFieldEnum = {
974
+ status: 'status',
975
+ instructions: 'instructions',
976
+ paymentStatus: 'paymentStatus'
977
+ };
978
+
979
+ exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
980
+ phylloId: 'phylloId',
981
+ title: 'title',
982
+ description: 'description',
983
+ url: 'url',
984
+ urlPath: 'urlPath',
985
+ format: 'format',
986
+ type: 'type',
987
+ platform: 'platform',
988
+ visibility: 'visibility'
989
+ };
990
+
991
+ exports.Prisma.SocialPostTagOrderByRelevanceFieldEnum = {
992
+ title: 'title',
993
+ type: 'type'
994
+ };
995
+
996
+ exports.Prisma.ImageOrderByRelevanceFieldEnum = {
997
+ url: 'url',
998
+ size: 'size'
999
+ };
1000
+
1001
+ exports.Prisma.BrandImageOrderByRelevanceFieldEnum = {
1002
+ url: 'url',
1003
+ size: 'size'
1004
+ };
1005
+
1006
+ exports.Prisma.CountryOrderByRelevanceFieldEnum = {
1007
+ countryCode: 'countryCode',
1008
+ countryName: 'countryName',
1009
+ teleCode: 'teleCode'
1010
+ };
1011
+
1012
+ exports.Prisma.StateOrderByRelevanceFieldEnum = {
1013
+ stateCode: 'stateCode',
1014
+ stateName: 'stateName'
1015
+ };
1016
+
1017
+ exports.Prisma.PaymentTransactionOrderByRelevanceFieldEnum = {
1018
+ type: 'type',
1019
+ notes: 'notes'
1020
+ };
1021
+
1022
+ exports.Prisma.BrandAffiliateLinkOrderByRelevanceFieldEnum = {
1023
+ description: 'description',
1024
+ urlPath: 'urlPath'
1025
+ };
1026
+
1027
+ exports.Prisma.AffiliateClickOrderByRelevanceFieldEnum = {
1028
+ visitorIp: 'visitorIp'
1029
+ };
1030
+
1031
+ exports.Prisma.AffiliateEventOrderByRelevanceFieldEnum = {
1032
+ event: 'event',
1033
+ visitorIp: 'visitorIp',
1034
+ urlPath: 'urlPath'
1035
+ };
1036
+
1037
+ exports.Prisma.SavedFileOrderByRelevanceFieldEnum = {
1038
+ title: 'title',
1039
+ type: 'type',
1040
+ url: 'url'
1041
+ };
1042
+
1043
+ exports.Prisma.CampaignInviteOrderByRelevanceFieldEnum = {
1044
+ code: 'code'
1045
+ };
1046
+
1047
+ exports.Prisma.CreatorListOrderByRelevanceFieldEnum = {
1048
+ title: 'title'
1049
+ };
1050
+
1051
+ exports.Prisma.CreatorListItemOrderByRelevanceFieldEnum = {
1052
+ feedback: 'feedback'
1053
+ };
1054
+
1055
+ exports.Prisma.SocialProfileOrderByRelevanceFieldEnum = {
1056
+ socialId: 'socialId',
1057
+ platform: 'platform',
1058
+ username: 'username',
1059
+ fullname: 'fullname',
1060
+ profileUrl: 'profileUrl',
1061
+ profilePicUrl: 'profilePicUrl'
1062
+ };
1063
+
1064
+ exports.Prisma.MessageTemplateOrderByRelevanceFieldEnum = {
1065
+ label: 'label',
1066
+ template: 'template'
1067
+ };
1068
+
1069
+ exports.Prisma.EmailTemplateOrderByRelevanceFieldEnum = {
1070
+ label: 'label',
1071
+ subject: 'subject',
1072
+ template: 'template'
1073
+ };
1074
+
1075
+ exports.Prisma.SocialListeningListOrderByRelevanceFieldEnum = {
1076
+ title: 'title',
1077
+ postType: 'postType'
1078
+ };
1079
+
1080
+ exports.Prisma.OptInViewOrderByRelevanceFieldEnum = {
1081
+ title: 'title'
1082
+ };
1083
+
1084
+ exports.Prisma.RakutenActivityOrderByRelevanceFieldEnum = {
1085
+ orderId: 'orderId'
1086
+ };
1087
+
1088
+ exports.Prisma.SlowQueriesOrderByRelevanceFieldEnum = {
1089
+ model: 'model',
1090
+ operation: 'operation',
1091
+ environment: 'environment'
1092
+ };
1093
+
1094
+
1095
+ exports.Prisma.ModelName = {
1096
+ User: 'User',
1097
+ Log: 'Log',
1098
+ CreatorProfile: 'CreatorProfile',
1099
+ InstagramProfile: 'InstagramProfile',
1100
+ TiktokProfile: 'TiktokProfile',
1101
+ YoutubeProfile: 'YoutubeProfile',
1102
+ TwitchProfile: 'TwitchProfile',
1103
+ FacebookProfile: 'FacebookProfile',
1104
+ TwitterProfile: 'TwitterProfile',
1105
+ BrandUserProfile: 'BrandUserProfile',
1106
+ Brand: 'Brand',
1107
+ SearchContacts: 'SearchContacts',
1108
+ ReportCredits: 'ReportCredits',
1109
+ BrandToImage: 'BrandToImage',
1110
+ BrandToCategory: 'BrandToCategory',
1111
+ CreatorToCategory: 'CreatorToCategory',
1112
+ Chat: 'Chat',
1113
+ Message: 'Message',
1114
+ Campaign: 'Campaign',
1115
+ CampaignPin: 'CampaignPin',
1116
+ CampaignToImage: 'CampaignToImage',
1117
+ CampaignToCategory: 'CampaignToCategory',
1118
+ CampaignToCountry: 'CampaignToCountry',
1119
+ Variable: 'Variable',
1120
+ VariableOption: 'VariableOption',
1121
+ Step: 'Step',
1122
+ CampaignStep: 'CampaignStep',
1123
+ OptInStep: 'OptInStep',
1124
+ Category: 'Category',
1125
+ OptIn: 'OptIn',
1126
+ OptInVariable: 'OptInVariable',
1127
+ SocialPost: 'SocialPost',
1128
+ SocialPostTag: 'SocialPostTag',
1129
+ Image: 'Image',
1130
+ BrandImage: 'BrandImage',
1131
+ Country: 'Country',
1132
+ State: 'State',
1133
+ PaymentTransaction: 'PaymentTransaction',
1134
+ BrandAffiliateLink: 'BrandAffiliateLink',
1135
+ AffiliateLink: 'AffiliateLink',
1136
+ AffiliateClick: 'AffiliateClick',
1137
+ AffiliateEvent: 'AffiliateEvent',
1138
+ SavedFile: 'SavedFile',
1139
+ CampaignInvite: 'CampaignInvite',
1140
+ CreatorList: 'CreatorList',
1141
+ CreatorListItem: 'CreatorListItem',
1142
+ SocialProfile: 'SocialProfile',
1143
+ MessageTemplate: 'MessageTemplate',
1144
+ EmailTemplate: 'EmailTemplate',
1145
+ SocialListeningList: 'SocialListeningList',
1146
+ ListToSocialPost: 'ListToSocialPost',
1147
+ OptInView: 'OptInView',
1148
+ RakutenActivity: 'RakutenActivity',
1149
+ SlowQueries: 'SlowQueries'
1150
+ };
1151
+
1152
+ /**
1153
+ * This is a stub Prisma Client that will error at runtime if called.
1154
+ */
1155
+ class PrismaClient {
1156
+ constructor() {
1157
+ return new Proxy(this, {
1158
+ get(target, prop) {
1159
+ const runtime = detectRuntime()
1160
+ const edgeRuntimeName = {
1161
+ 'workerd': 'Cloudflare Workers',
1162
+ 'deno': 'Deno and Deno Deploy',
1163
+ 'netlify': 'Netlify Edge Functions',
1164
+ 'edge-light': 'Vercel Edge Functions',
1165
+ }[runtime]
1166
+
1167
+ let message = 'PrismaClient is unable to run in '
1168
+ if (edgeRuntimeName !== undefined) {
1169
+ message += edgeRuntimeName + '. As an alternative, try Accelerate: https://pris.ly/d/accelerate.'
1170
+ } else {
1171
+ message += 'this browser environment, or has been bundled for the browser (running in `' + runtime + '`).'
1172
+ }
1173
+
1174
+ message += `
1175
+ If this is unexpected, please open an issue: https://github.com/prisma/prisma/issues`
1176
+
1177
+ throw new Error(message)
1178
+ }
1179
+ })
1180
+ }
1181
+ }
1182
+
1183
+ exports.PrismaClient = PrismaClient
1184
+
1185
+ Object.assign(exports, Prisma)