@creator.co/creatorco-prisma-client 1.0.26 → 1.0.27-alpha-2e714b4
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 +9 -5
- package/index-browser.js +5 -1
- package/index.d.ts +96 -2
- package/index.js +9 -5
- package/package.json +1 -1
- package/schema.prisma +5 -1
- package/wasm.js +5 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -754,6 +754,7 @@ model OptInVariable {
|
|
|
754
754
|
|
|
755
755
|
model SocialPost {
|
|
756
756
|
id Int @id @default(autoincrement())
|
|
757
|
+
externalId String? @map("external_id")// TODO: This should be required once all of the posts have been updated
|
|
757
758
|
phylloId String? @unique
|
|
758
759
|
metaData Json @default("{}")
|
|
759
760
|
data Json @default("{}") // DEPRECATED, USE metaData instead, seems to be an error when attempting to remove this field, proabably due to table size
|
|
@@ -765,7 +766,7 @@ model SocialPost {
|
|
|
765
766
|
title String? @db.Text
|
|
766
767
|
description String? @db.Text
|
|
767
768
|
url String? @db.VarChar(2083)
|
|
768
|
-
urlPath String? @unique // This is here so we have some external identifier to quickly search by
|
|
769
|
+
urlPath String? @unique // DEPRECATED: This is here so we have some external identifier to quickly search by
|
|
769
770
|
format String?
|
|
770
771
|
type String?
|
|
771
772
|
platform String?
|
|
@@ -800,6 +801,8 @@ model SocialPost {
|
|
|
800
801
|
@@index(userId)
|
|
801
802
|
@@index(posted)
|
|
802
803
|
|
|
804
|
+
@@unique([platform, externalId])
|
|
805
|
+
|
|
803
806
|
@@map("socialpost")
|
|
804
807
|
}
|
|
805
808
|
|
|
@@ -1021,6 +1024,7 @@ model SocialProfile {
|
|
|
1021
1024
|
engagement Float?
|
|
1022
1025
|
avgViews Int?
|
|
1023
1026
|
verified Boolean?
|
|
1027
|
+
visibility String @default("public")
|
|
1024
1028
|
metaData Json @default("{}")
|
|
1025
1029
|
audienceData Json @default("{}")
|
|
1026
1030
|
phylloData Json @default("{}")
|
package/wasm.js
CHANGED
|
@@ -550,6 +550,7 @@ exports.Prisma.OptInVariableScalarFieldEnum = {
|
|
|
550
550
|
|
|
551
551
|
exports.Prisma.SocialPostScalarFieldEnum = {
|
|
552
552
|
id: 'id',
|
|
553
|
+
externalId: 'externalId',
|
|
553
554
|
phylloId: 'phylloId',
|
|
554
555
|
metaData: 'metaData',
|
|
555
556
|
data: 'data',
|
|
@@ -724,6 +725,7 @@ exports.Prisma.SocialProfileScalarFieldEnum = {
|
|
|
724
725
|
engagement: 'engagement',
|
|
725
726
|
avgViews: 'avgViews',
|
|
726
727
|
verified: 'verified',
|
|
728
|
+
visibility: 'visibility',
|
|
727
729
|
metaData: 'metaData',
|
|
728
730
|
audienceData: 'audienceData',
|
|
729
731
|
phylloData: 'phylloData',
|
|
@@ -1093,6 +1095,7 @@ exports.Prisma.TrolleyPaymentOrderByRelevanceFieldEnum = {
|
|
|
1093
1095
|
};
|
|
1094
1096
|
|
|
1095
1097
|
exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
|
|
1098
|
+
externalId: 'externalId',
|
|
1096
1099
|
phylloId: 'phylloId',
|
|
1097
1100
|
title: 'title',
|
|
1098
1101
|
description: 'description',
|
|
@@ -1170,7 +1173,8 @@ exports.Prisma.SocialProfileOrderByRelevanceFieldEnum = {
|
|
|
1170
1173
|
username: 'username',
|
|
1171
1174
|
fullname: 'fullname',
|
|
1172
1175
|
profileUrl: 'profileUrl',
|
|
1173
|
-
profilePicUrl: 'profilePicUrl'
|
|
1176
|
+
profilePicUrl: 'profilePicUrl',
|
|
1177
|
+
visibility: 'visibility'
|
|
1174
1178
|
};
|
|
1175
1179
|
|
|
1176
1180
|
exports.Prisma.MessageTemplateOrderByRelevanceFieldEnum = {
|