@creator.co/creatorco-prisma-client 1.0.83 → 1.0.85

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/package.json CHANGED
@@ -92,7 +92,7 @@
92
92
  },
93
93
  "./*": "./*"
94
94
  },
95
- "version": "1.0.83",
95
+ "version": "1.0.85",
96
96
  "sideEffects": false,
97
97
  "description": "Prisma client for creatorco Database"
98
98
  }
package/schema.prisma CHANGED
@@ -911,6 +911,9 @@ model SocialPost {
911
911
  campaigns CampaignToSocialPost[]
912
912
  publicPost PublicSocialPost?
913
913
 
914
+ // MEDIA CLEANUP TRACKING
915
+ mediaCleanupChecked Boolean? @default(false) @map("media_cleanup_checked")
916
+
914
917
  @@unique([platform, externalId])
915
918
  @@index(campaignId)
916
919
  @@index(userId)
@@ -1307,19 +1310,20 @@ model SocialProfile {
1307
1310
  userId Int? // registered user id, if available
1308
1311
 
1309
1312
  // social data
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
- metaData Json @default("{}")
1321
- audienceData Json @default("{}")
1322
- phylloData Json @default("{}")
1313
+ platform String
1314
+ username String
1315
+ fullname String? @db.VarChar(1024)
1316
+ profileUrl String?
1317
+ profilePicUrl String? @db.VarChar(2083) // need to specify length, default size is too small
1318
+ followerCount Int?
1319
+ engagement Float?
1320
+ avgViews Int?
1321
+ verified Boolean?
1322
+ visibility String @default("public")
1323
+ connectionStatus ConnectionStatus? // tracks Phyllo connection status
1324
+ metaData Json @default("{}")
1325
+ audienceData Json @default("{}")
1326
+ phylloData Json @default("{}")
1323
1327
 
1324
1328
  created DateTime @default(now())
1325
1329
  updated DateTime?
@@ -1335,6 +1339,13 @@ model SocialProfile {
1335
1339
  @@map("socialprofile")
1336
1340
  }
1337
1341
 
1342
+ enum ConnectionStatus {
1343
+ CONNECTED
1344
+ ERROR
1345
+ NOT_CONNECTED
1346
+ SESSION_EXPIRED
1347
+ }
1348
+
1338
1349
  enum SocialProfileContactSource {
1339
1350
  MANUAL
1340
1351
  IMAI
package/wasm.js CHANGED
@@ -626,7 +626,8 @@ exports.Prisma.SocialPostScalarFieldEnum = {
626
626
  saves: 'saves',
627
627
  shares: 'shares',
628
628
  userId: 'userId',
629
- campaignId: 'campaignId'
629
+ campaignId: 'campaignId',
630
+ mediaCleanupChecked: 'mediaCleanupChecked'
630
631
  };
631
632
 
632
633
  exports.Prisma.PublicSocialPostScalarFieldEnum = {
@@ -863,6 +864,7 @@ exports.Prisma.SocialProfileScalarFieldEnum = {
863
864
  avgViews: 'avgViews',
864
865
  verified: 'verified',
865
866
  visibility: 'visibility',
867
+ connectionStatus: 'connectionStatus',
866
868
  metaData: 'metaData',
867
869
  audienceData: 'audienceData',
868
870
  phylloData: 'phylloData',
@@ -1709,6 +1711,13 @@ exports.CampaignToSocialPostStatus = exports.$Enums.CampaignToSocialPostStatus =
1709
1711
  declined: 'declined'
1710
1712
  };
1711
1713
 
1714
+ exports.ConnectionStatus = exports.$Enums.ConnectionStatus = {
1715
+ CONNECTED: 'CONNECTED',
1716
+ ERROR: 'ERROR',
1717
+ NOT_CONNECTED: 'NOT_CONNECTED',
1718
+ SESSION_EXPIRED: 'SESSION_EXPIRED'
1719
+ };
1720
+
1712
1721
  exports.SocialProfileContactSource = exports.$Enums.SocialProfileContactSource = {
1713
1722
  MANUAL: 'MANUAL',
1714
1723
  IMAI: 'IMAI'