@creator.co/creatorco-prisma-client 1.0.34 → 1.0.35
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 +52 -4
- package/index-browser.js +48 -0
- package/index.d.ts +2307 -345
- package/index.js +52 -4
- package/package.json +1 -1
- package/schema.prisma +43 -0
- package/wasm.js +48 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -863,6 +863,49 @@ model SocialPost {
|
|
|
863
863
|
@@map("socialpost")
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
+
// Table for storing archived socialposts from before external_id was implemented
|
|
867
|
+
model ArchivedSocialPost {
|
|
868
|
+
id Int @id @default(autoincrement())
|
|
869
|
+
phylloId String? @unique
|
|
870
|
+
metaData Json @default("{}")
|
|
871
|
+
lastFetched DateTime?
|
|
872
|
+
lastWebhook DateTime?
|
|
873
|
+
|
|
874
|
+
// BASIC INFO
|
|
875
|
+
posted DateTime?
|
|
876
|
+
title String? @db.Text
|
|
877
|
+
description String? @db.Text
|
|
878
|
+
url String? @db.VarChar(2083)
|
|
879
|
+
urlPath String? @unique // DEPRECATED: This is here so we have some external identifier to quickly search by
|
|
880
|
+
format String?
|
|
881
|
+
type String?
|
|
882
|
+
platform String?
|
|
883
|
+
visibility String?
|
|
884
|
+
isSponsored Boolean?
|
|
885
|
+
hasCollaborators Boolean?
|
|
886
|
+
isOwnedByUser Boolean?
|
|
887
|
+
// METRICS
|
|
888
|
+
views Int?
|
|
889
|
+
impressions Int?
|
|
890
|
+
impressionsOrganic Int?
|
|
891
|
+
impressionsPaid Int?
|
|
892
|
+
reach Int?
|
|
893
|
+
reachOrganic Int?
|
|
894
|
+
reachPaid Int?
|
|
895
|
+
watchHours Float?
|
|
896
|
+
// ENGAGEMENT METRICS
|
|
897
|
+
likes Int?
|
|
898
|
+
dislikes Int?
|
|
899
|
+
comments Int?
|
|
900
|
+
saves Int?
|
|
901
|
+
shares Int?
|
|
902
|
+
|
|
903
|
+
userId Int?
|
|
904
|
+
campaignId Int?
|
|
905
|
+
|
|
906
|
+
@@map("archived_social_post")
|
|
907
|
+
}
|
|
908
|
+
|
|
866
909
|
model Image {
|
|
867
910
|
id Int @id @default(autoincrement())
|
|
868
911
|
url String @db.VarChar(2083)
|
package/wasm.js
CHANGED
|
@@ -611,6 +611,41 @@ exports.Prisma.SocialPostScalarFieldEnum = {
|
|
|
611
611
|
campaignId: 'campaignId'
|
|
612
612
|
};
|
|
613
613
|
|
|
614
|
+
exports.Prisma.ArchivedSocialPostScalarFieldEnum = {
|
|
615
|
+
id: 'id',
|
|
616
|
+
phylloId: 'phylloId',
|
|
617
|
+
metaData: 'metaData',
|
|
618
|
+
lastFetched: 'lastFetched',
|
|
619
|
+
lastWebhook: 'lastWebhook',
|
|
620
|
+
posted: 'posted',
|
|
621
|
+
title: 'title',
|
|
622
|
+
description: 'description',
|
|
623
|
+
url: 'url',
|
|
624
|
+
urlPath: 'urlPath',
|
|
625
|
+
format: 'format',
|
|
626
|
+
type: 'type',
|
|
627
|
+
platform: 'platform',
|
|
628
|
+
visibility: 'visibility',
|
|
629
|
+
isSponsored: 'isSponsored',
|
|
630
|
+
hasCollaborators: 'hasCollaborators',
|
|
631
|
+
isOwnedByUser: 'isOwnedByUser',
|
|
632
|
+
views: 'views',
|
|
633
|
+
impressions: 'impressions',
|
|
634
|
+
impressionsOrganic: 'impressionsOrganic',
|
|
635
|
+
impressionsPaid: 'impressionsPaid',
|
|
636
|
+
reach: 'reach',
|
|
637
|
+
reachOrganic: 'reachOrganic',
|
|
638
|
+
reachPaid: 'reachPaid',
|
|
639
|
+
watchHours: 'watchHours',
|
|
640
|
+
likes: 'likes',
|
|
641
|
+
dislikes: 'dislikes',
|
|
642
|
+
comments: 'comments',
|
|
643
|
+
saves: 'saves',
|
|
644
|
+
shares: 'shares',
|
|
645
|
+
userId: 'userId',
|
|
646
|
+
campaignId: 'campaignId'
|
|
647
|
+
};
|
|
648
|
+
|
|
614
649
|
exports.Prisma.ImageScalarFieldEnum = {
|
|
615
650
|
id: 'id',
|
|
616
651
|
url: 'url',
|
|
@@ -1144,6 +1179,18 @@ exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
|
|
|
1144
1179
|
visibility: 'visibility'
|
|
1145
1180
|
};
|
|
1146
1181
|
|
|
1182
|
+
exports.Prisma.ArchivedSocialPostOrderByRelevanceFieldEnum = {
|
|
1183
|
+
phylloId: 'phylloId',
|
|
1184
|
+
title: 'title',
|
|
1185
|
+
description: 'description',
|
|
1186
|
+
url: 'url',
|
|
1187
|
+
urlPath: 'urlPath',
|
|
1188
|
+
format: 'format',
|
|
1189
|
+
type: 'type',
|
|
1190
|
+
platform: 'platform',
|
|
1191
|
+
visibility: 'visibility'
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1147
1194
|
exports.Prisma.ImageOrderByRelevanceFieldEnum = {
|
|
1148
1195
|
url: 'url',
|
|
1149
1196
|
size: 'size'
|
|
@@ -1331,6 +1378,7 @@ exports.Prisma.ModelName = {
|
|
|
1331
1378
|
TrolleyPayment: 'TrolleyPayment',
|
|
1332
1379
|
OptInVariable: 'OptInVariable',
|
|
1333
1380
|
SocialPost: 'SocialPost',
|
|
1381
|
+
ArchivedSocialPost: 'ArchivedSocialPost',
|
|
1334
1382
|
Image: 'Image',
|
|
1335
1383
|
BrandImage: 'BrandImage',
|
|
1336
1384
|
Country: 'Country',
|