@creator.co/creatorco-prisma-client 1.0.66 → 1.0.68
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/edge.js +15 -4
- package/index-browser.js +11 -0
- package/index.d.ts +2053 -312
- package/index.js +15 -4
- package/package.json +1 -1
- package/schema.prisma +44 -24
- package/wasm.js +11 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -858,17 +858,18 @@ model SocialPost {
|
|
|
858
858
|
lastWebhook DateTime?
|
|
859
859
|
|
|
860
860
|
// BASIC INFO
|
|
861
|
-
posted
|
|
862
|
-
title
|
|
863
|
-
description
|
|
864
|
-
url
|
|
865
|
-
format
|
|
866
|
-
type
|
|
867
|
-
platform
|
|
868
|
-
visibility
|
|
869
|
-
isSponsored
|
|
870
|
-
hasCollaborators
|
|
871
|
-
isOwnedByUser
|
|
861
|
+
posted DateTime?
|
|
862
|
+
title String? @db.Text
|
|
863
|
+
description String? @db.Text
|
|
864
|
+
url String? @db.VarChar(2083)
|
|
865
|
+
format String?
|
|
866
|
+
type String?
|
|
867
|
+
platform String?
|
|
868
|
+
visibility String?
|
|
869
|
+
isSponsored Boolean?
|
|
870
|
+
hasCollaborators Boolean?
|
|
871
|
+
isOwnedByUser Boolean?
|
|
872
|
+
|
|
872
873
|
// METRICS
|
|
873
874
|
views Int?
|
|
874
875
|
replays Int?
|
|
@@ -879,20 +880,22 @@ model SocialPost {
|
|
|
879
880
|
reachOrganic Int?
|
|
880
881
|
reachPaid Int?
|
|
881
882
|
watchHours Float?
|
|
883
|
+
|
|
882
884
|
// ENGAGEMENT METRICS
|
|
883
|
-
likes
|
|
884
|
-
dislikes
|
|
885
|
-
comments
|
|
886
|
-
saves
|
|
887
|
-
shares
|
|
885
|
+
likes Int?
|
|
886
|
+
dislikes Int?
|
|
887
|
+
comments Int?
|
|
888
|
+
saves Int?
|
|
889
|
+
shares Int?
|
|
888
890
|
|
|
889
891
|
userId Int?
|
|
890
892
|
campaignId Int?
|
|
891
893
|
|
|
892
|
-
user
|
|
893
|
-
campaign
|
|
894
|
-
lists
|
|
895
|
-
campaigns
|
|
894
|
+
user User? @relation(fields: [userId], references: [id])
|
|
895
|
+
campaign Campaign? @relation(fields: [campaignId], references: [id])
|
|
896
|
+
lists ListToSocialPost[]
|
|
897
|
+
campaigns CampaignToSocialPost[]
|
|
898
|
+
publicPosts PublicSocialPost[]
|
|
896
899
|
|
|
897
900
|
@@unique([platform, externalId])
|
|
898
901
|
@@index(campaignId)
|
|
@@ -901,6 +904,23 @@ model SocialPost {
|
|
|
901
904
|
@@map("socialpost")
|
|
902
905
|
}
|
|
903
906
|
|
|
907
|
+
model PublicSocialPost {
|
|
908
|
+
id Int @id @default(autoincrement())
|
|
909
|
+
socialPostId Int @unique
|
|
910
|
+
|
|
911
|
+
// METRICS
|
|
912
|
+
views Int?
|
|
913
|
+
likes Int?
|
|
914
|
+
comments Int?
|
|
915
|
+
saves Int?
|
|
916
|
+
shares Int?
|
|
917
|
+
|
|
918
|
+
socialPost SocialPost @relation(fields: [socialPostId], references: [id])
|
|
919
|
+
|
|
920
|
+
@@index(socialPostId)
|
|
921
|
+
@@map("public_social_post")
|
|
922
|
+
}
|
|
923
|
+
|
|
904
924
|
enum CampaignToSocialPostStatus {
|
|
905
925
|
pending
|
|
906
926
|
approved
|
|
@@ -1360,11 +1380,11 @@ model ImpactRadiusEvent {
|
|
|
1360
1380
|
commission Float?
|
|
1361
1381
|
metaData Json @default("{}")
|
|
1362
1382
|
|
|
1363
|
-
userId Int
|
|
1383
|
+
userId Int?
|
|
1364
1384
|
brandId Int?
|
|
1365
1385
|
optInId Int?
|
|
1366
1386
|
|
|
1367
|
-
user User
|
|
1387
|
+
user User? @relation(fields: [userId], references: [id])
|
|
1368
1388
|
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1369
1389
|
optIn OptIn? @relation(fields: [optInId], references: [id])
|
|
1370
1390
|
}
|
|
@@ -1377,11 +1397,11 @@ model CjEvent {
|
|
|
1377
1397
|
commission Float?
|
|
1378
1398
|
metaData Json @default("{}")
|
|
1379
1399
|
|
|
1380
|
-
userId Int
|
|
1400
|
+
userId Int?
|
|
1381
1401
|
brandId Int?
|
|
1382
1402
|
optInId Int?
|
|
1383
1403
|
|
|
1384
|
-
user User
|
|
1404
|
+
user User? @relation(fields: [userId], references: [id])
|
|
1385
1405
|
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1386
1406
|
optIn OptIn? @relation(fields: [optInId], references: [id])
|
|
1387
1407
|
|
package/wasm.js
CHANGED
|
@@ -622,6 +622,16 @@ exports.Prisma.SocialPostScalarFieldEnum = {
|
|
|
622
622
|
campaignId: 'campaignId'
|
|
623
623
|
};
|
|
624
624
|
|
|
625
|
+
exports.Prisma.PublicSocialPostScalarFieldEnum = {
|
|
626
|
+
id: 'id',
|
|
627
|
+
socialPostId: 'socialPostId',
|
|
628
|
+
views: 'views',
|
|
629
|
+
likes: 'likes',
|
|
630
|
+
comments: 'comments',
|
|
631
|
+
saves: 'saves',
|
|
632
|
+
shares: 'shares'
|
|
633
|
+
};
|
|
634
|
+
|
|
625
635
|
exports.Prisma.CampaignToSocialPostScalarFieldEnum = {
|
|
626
636
|
campaignId: 'campaignId',
|
|
627
637
|
socialPostId: 'socialPostId',
|
|
@@ -1590,6 +1600,7 @@ exports.Prisma.ModelName = {
|
|
|
1590
1600
|
TrolleyPayment: 'TrolleyPayment',
|
|
1591
1601
|
OptInVariable: 'OptInVariable',
|
|
1592
1602
|
SocialPost: 'SocialPost',
|
|
1603
|
+
PublicSocialPost: 'PublicSocialPost',
|
|
1593
1604
|
CampaignToSocialPost: 'CampaignToSocialPost',
|
|
1594
1605
|
ArchivedSocialPost: 'ArchivedSocialPost',
|
|
1595
1606
|
Image: 'Image',
|