@creator.co/creatorco-prisma-client 1.0.81 → 1.0.82-alpha-87c8144
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 +25 -5
- package/index-browser.js +20 -0
- package/index.d.ts +1866 -229
- package/index.js +25 -5
- package/package.json +1 -1
- package/schema.prisma +24 -4
- package/wasm.js +20 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -1305,16 +1305,36 @@ model SocialProfile {
|
|
|
1305
1305
|
created DateTime @default(now())
|
|
1306
1306
|
updated DateTime?
|
|
1307
1307
|
|
|
1308
|
-
creatorListItems
|
|
1309
|
-
campaignInvites
|
|
1310
|
-
user
|
|
1311
|
-
creditRefundBatches
|
|
1308
|
+
creatorListItems CreatorListItem[]
|
|
1309
|
+
campaignInvites CampaignInvite[]
|
|
1310
|
+
user User? @relation(fields: [userId], references: [id])
|
|
1311
|
+
creditRefundBatches CreditRefundBatch[]
|
|
1312
|
+
socialProfileContacts SocialProfileContact[]
|
|
1312
1313
|
|
|
1313
1314
|
@@index(username)
|
|
1314
1315
|
@@index(userId)
|
|
1315
1316
|
@@map("socialprofile")
|
|
1316
1317
|
}
|
|
1317
1318
|
|
|
1319
|
+
enum SocialProfileContactSource {
|
|
1320
|
+
MANUAL
|
|
1321
|
+
IMAI
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
model SocialProfileContact {
|
|
1325
|
+
id Int @id @default(autoincrement())
|
|
1326
|
+
type String
|
|
1327
|
+
value String
|
|
1328
|
+
source SocialProfileContactSource @default(MANUAL)
|
|
1329
|
+
metaData Json? @default("{}") @map("meta_data")
|
|
1330
|
+
|
|
1331
|
+
socialProfileId Int @map("social_profile_id")
|
|
1332
|
+
|
|
1333
|
+
socialProfile SocialProfile @relation(fields: [socialProfileId], references: [id], onDelete: Cascade)
|
|
1334
|
+
|
|
1335
|
+
@@map("social_profile_contact")
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1318
1338
|
model MessageTemplate {
|
|
1319
1339
|
id Int @id @default(autoincrement())
|
|
1320
1340
|
label String?
|
package/wasm.js
CHANGED
|
@@ -870,6 +870,15 @@ exports.Prisma.SocialProfileScalarFieldEnum = {
|
|
|
870
870
|
updated: 'updated'
|
|
871
871
|
};
|
|
872
872
|
|
|
873
|
+
exports.Prisma.SocialProfileContactScalarFieldEnum = {
|
|
874
|
+
id: 'id',
|
|
875
|
+
type: 'type',
|
|
876
|
+
value: 'value',
|
|
877
|
+
source: 'source',
|
|
878
|
+
metaData: 'metaData',
|
|
879
|
+
socialProfileId: 'socialProfileId'
|
|
880
|
+
};
|
|
881
|
+
|
|
873
882
|
exports.Prisma.MessageTemplateScalarFieldEnum = {
|
|
874
883
|
id: 'id',
|
|
875
884
|
label: 'label',
|
|
@@ -1523,6 +1532,11 @@ exports.Prisma.SocialProfileOrderByRelevanceFieldEnum = {
|
|
|
1523
1532
|
visibility: 'visibility'
|
|
1524
1533
|
};
|
|
1525
1534
|
|
|
1535
|
+
exports.Prisma.SocialProfileContactOrderByRelevanceFieldEnum = {
|
|
1536
|
+
type: 'type',
|
|
1537
|
+
value: 'value'
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1526
1540
|
exports.Prisma.MessageTemplateOrderByRelevanceFieldEnum = {
|
|
1527
1541
|
label: 'label',
|
|
1528
1542
|
template: 'template'
|
|
@@ -1673,6 +1687,11 @@ exports.CampaignToSocialPostStatus = exports.$Enums.CampaignToSocialPostStatus =
|
|
|
1673
1687
|
declined: 'declined'
|
|
1674
1688
|
};
|
|
1675
1689
|
|
|
1690
|
+
exports.SocialProfileContactSource = exports.$Enums.SocialProfileContactSource = {
|
|
1691
|
+
MANUAL: 'MANUAL',
|
|
1692
|
+
IMAI: 'IMAI'
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1676
1695
|
exports.ShopifyStoreSyncStatus = exports.$Enums.ShopifyStoreSyncStatus = {
|
|
1677
1696
|
syncing: 'syncing',
|
|
1678
1697
|
synced: 'synced',
|
|
@@ -1748,6 +1767,7 @@ exports.Prisma.ModelName = {
|
|
|
1748
1767
|
CreatorList: 'CreatorList',
|
|
1749
1768
|
CreatorListItem: 'CreatorListItem',
|
|
1750
1769
|
SocialProfile: 'SocialProfile',
|
|
1770
|
+
SocialProfileContact: 'SocialProfileContact',
|
|
1751
1771
|
MessageTemplate: 'MessageTemplate',
|
|
1752
1772
|
EmailTemplate: 'EmailTemplate',
|
|
1753
1773
|
SocialListeningList: 'SocialListeningList',
|