@creator.co/creatorco-prisma-client 1.0.82 → 1.0.84
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 +36 -6
- package/index-browser.js +31 -1
- package/index.d.ts +1724 -119
- package/index.js +36 -6
- package/package.json +1 -1
- package/schema.prisma +40 -13
- package/wasm.js +31 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -1099,6 +1099,25 @@ view LatestCreatorPaymentTransaction {
|
|
|
1099
1099
|
@@map("latest_creator_payment_transaction")
|
|
1100
1100
|
}
|
|
1101
1101
|
|
|
1102
|
+
view SocialPostAnalytics {
|
|
1103
|
+
id Int @id
|
|
1104
|
+
campaignId Int
|
|
1105
|
+
platform String?
|
|
1106
|
+
reach Int
|
|
1107
|
+
likes Int
|
|
1108
|
+
comments Int
|
|
1109
|
+
impressions Int
|
|
1110
|
+
views Int
|
|
1111
|
+
replays Int
|
|
1112
|
+
shares Int
|
|
1113
|
+
saves Int
|
|
1114
|
+
engagement_rate Float
|
|
1115
|
+
posted DateTime?
|
|
1116
|
+
userId Int
|
|
1117
|
+
|
|
1118
|
+
@@map("socialpost_analytics")
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1102
1121
|
model ExternalAffiliateClick {
|
|
1103
1122
|
id Int @id @default(autoincrement())
|
|
1104
1123
|
program String
|
|
@@ -1288,19 +1307,20 @@ model SocialProfile {
|
|
|
1288
1307
|
userId Int? // registered user id, if available
|
|
1289
1308
|
|
|
1290
1309
|
// social data
|
|
1291
|
-
platform
|
|
1292
|
-
username
|
|
1293
|
-
fullname
|
|
1294
|
-
profileUrl
|
|
1295
|
-
profilePicUrl
|
|
1296
|
-
followerCount
|
|
1297
|
-
engagement
|
|
1298
|
-
avgViews
|
|
1299
|
-
verified
|
|
1300
|
-
visibility
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1310
|
+
platform String
|
|
1311
|
+
username String
|
|
1312
|
+
fullname String? @db.VarChar(1024)
|
|
1313
|
+
profileUrl String?
|
|
1314
|
+
profilePicUrl String? @db.VarChar(2083) // need to specify length, default size is too small
|
|
1315
|
+
followerCount Int?
|
|
1316
|
+
engagement Float?
|
|
1317
|
+
avgViews Int?
|
|
1318
|
+
verified Boolean?
|
|
1319
|
+
visibility String @default("public")
|
|
1320
|
+
connectionStatus ConnectionStatus? // tracks Phyllo connection status
|
|
1321
|
+
metaData Json @default("{}")
|
|
1322
|
+
audienceData Json @default("{}")
|
|
1323
|
+
phylloData Json @default("{}")
|
|
1304
1324
|
|
|
1305
1325
|
created DateTime @default(now())
|
|
1306
1326
|
updated DateTime?
|
|
@@ -1316,6 +1336,13 @@ model SocialProfile {
|
|
|
1316
1336
|
@@map("socialprofile")
|
|
1317
1337
|
}
|
|
1318
1338
|
|
|
1339
|
+
enum ConnectionStatus {
|
|
1340
|
+
CONNECTED
|
|
1341
|
+
ERROR
|
|
1342
|
+
NOT_CONNECTED
|
|
1343
|
+
SESSION_EXPIRED
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1319
1346
|
enum SocialProfileContactSource {
|
|
1320
1347
|
MANUAL
|
|
1321
1348
|
IMAI
|
package/wasm.js
CHANGED
|
@@ -863,6 +863,7 @@ exports.Prisma.SocialProfileScalarFieldEnum = {
|
|
|
863
863
|
avgViews: 'avgViews',
|
|
864
864
|
verified: 'verified',
|
|
865
865
|
visibility: 'visibility',
|
|
866
|
+
connectionStatus: 'connectionStatus',
|
|
866
867
|
metaData: 'metaData',
|
|
867
868
|
audienceData: 'audienceData',
|
|
868
869
|
phylloData: 'phylloData',
|
|
@@ -1197,6 +1198,23 @@ exports.Prisma.LatestCreatorPaymentTransactionScalarFieldEnum = {
|
|
|
1197
1198
|
creatorId: 'creatorId'
|
|
1198
1199
|
};
|
|
1199
1200
|
|
|
1201
|
+
exports.Prisma.SocialPostAnalyticsScalarFieldEnum = {
|
|
1202
|
+
id: 'id',
|
|
1203
|
+
campaignId: 'campaignId',
|
|
1204
|
+
platform: 'platform',
|
|
1205
|
+
reach: 'reach',
|
|
1206
|
+
likes: 'likes',
|
|
1207
|
+
comments: 'comments',
|
|
1208
|
+
impressions: 'impressions',
|
|
1209
|
+
views: 'views',
|
|
1210
|
+
replays: 'replays',
|
|
1211
|
+
shares: 'shares',
|
|
1212
|
+
saves: 'saves',
|
|
1213
|
+
engagement_rate: 'engagement_rate',
|
|
1214
|
+
posted: 'posted',
|
|
1215
|
+
userId: 'userId'
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1200
1218
|
exports.Prisma.SortOrder = {
|
|
1201
1219
|
asc: 'asc',
|
|
1202
1220
|
desc: 'desc'
|
|
@@ -1667,6 +1685,10 @@ exports.Prisma.LatestCreatorPaymentTransactionOrderByRelevanceFieldEnum = {
|
|
|
1667
1685
|
type: 'type',
|
|
1668
1686
|
notes: 'notes'
|
|
1669
1687
|
};
|
|
1688
|
+
|
|
1689
|
+
exports.Prisma.SocialPostAnalyticsOrderByRelevanceFieldEnum = {
|
|
1690
|
+
platform: 'platform'
|
|
1691
|
+
};
|
|
1670
1692
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1671
1693
|
optIn: 'optIn',
|
|
1672
1694
|
tip: 'tip',
|
|
@@ -1688,6 +1710,13 @@ exports.CampaignToSocialPostStatus = exports.$Enums.CampaignToSocialPostStatus =
|
|
|
1688
1710
|
declined: 'declined'
|
|
1689
1711
|
};
|
|
1690
1712
|
|
|
1713
|
+
exports.ConnectionStatus = exports.$Enums.ConnectionStatus = {
|
|
1714
|
+
CONNECTED: 'CONNECTED',
|
|
1715
|
+
ERROR: 'ERROR',
|
|
1716
|
+
NOT_CONNECTED: 'NOT_CONNECTED',
|
|
1717
|
+
SESSION_EXPIRED: 'SESSION_EXPIRED'
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1691
1720
|
exports.SocialProfileContactSource = exports.$Enums.SocialProfileContactSource = {
|
|
1692
1721
|
MANUAL: 'MANUAL',
|
|
1693
1722
|
IMAI: 'IMAI'
|
|
@@ -1797,7 +1826,8 @@ exports.Prisma.ModelName = {
|
|
|
1797
1826
|
EmailProvider: 'EmailProvider',
|
|
1798
1827
|
EmailTracking: 'EmailTracking',
|
|
1799
1828
|
SequenceOutboundReplyEmail: 'SequenceOutboundReplyEmail',
|
|
1800
|
-
LatestCreatorPaymentTransaction: 'LatestCreatorPaymentTransaction'
|
|
1829
|
+
LatestCreatorPaymentTransaction: 'LatestCreatorPaymentTransaction',
|
|
1830
|
+
SocialPostAnalytics: 'SocialPostAnalytics'
|
|
1801
1831
|
};
|
|
1802
1832
|
|
|
1803
1833
|
/**
|