@creator.co/creatorco-prisma-client 1.0.62 → 1.0.64-alpha-499941e
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 +14 -6
- package/index-browser.js +10 -2
- package/index.d.ts +2209 -26
- package/index.js +14 -6
- package/package.json +1 -1
- package/schema.prisma +28 -14
- package/wasm.js +10 -2
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -78,6 +78,7 @@ model User {
|
|
|
78
78
|
affiliatePayoutBatches AffiliatePayoutBatch[]
|
|
79
79
|
contractsCreated BrandContract[] @relation("UserCreatedContract") // contracts created by the user
|
|
80
80
|
contractsEdited BrandContract[] @relation("UserEditedContract") // contracts edited by the user
|
|
81
|
+
creatorLists CreatorList[]
|
|
81
82
|
|
|
82
83
|
filesCreated File[] @relation("UserCreatedFile") // files created by the user
|
|
83
84
|
filesEdited File[] @relation("UserEditedFile") // files edited by the user
|
|
@@ -1186,18 +1187,20 @@ model CampaignInvite {
|
|
|
1186
1187
|
}
|
|
1187
1188
|
|
|
1188
1189
|
model CreatorList {
|
|
1189
|
-
id
|
|
1190
|
-
brandId
|
|
1191
|
-
campaignId
|
|
1192
|
-
created
|
|
1193
|
-
archived
|
|
1194
|
-
title
|
|
1195
|
-
metaData
|
|
1190
|
+
id Int @id @default(autoincrement())
|
|
1191
|
+
brandId Int
|
|
1192
|
+
campaignId Int?
|
|
1193
|
+
created DateTime @default(now())
|
|
1194
|
+
archived DateTime?
|
|
1195
|
+
title String
|
|
1196
|
+
metaData Json? @default("{}")
|
|
1197
|
+
createdByUserId Int?
|
|
1196
1198
|
|
|
1197
|
-
creators
|
|
1198
|
-
brand
|
|
1199
|
-
campaign
|
|
1200
|
-
|
|
1199
|
+
creators CreatorListItem[]
|
|
1200
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1201
|
+
campaign Campaign? @relation(fields: [campaignId], references: [id])
|
|
1202
|
+
createdByUser User? @relation(fields: [createdByUserId], references: [id])
|
|
1203
|
+
sequences Sequence[]
|
|
1201
1204
|
|
|
1202
1205
|
@@index([brandId])
|
|
1203
1206
|
@@map("creatorlist")
|
|
@@ -1249,9 +1252,10 @@ model SocialProfile {
|
|
|
1249
1252
|
created DateTime @default(now())
|
|
1250
1253
|
updated DateTime?
|
|
1251
1254
|
|
|
1252
|
-
creatorListItems
|
|
1253
|
-
campaignInvites
|
|
1254
|
-
user
|
|
1255
|
+
creatorListItems CreatorListItem[]
|
|
1256
|
+
campaignInvites CampaignInvite[]
|
|
1257
|
+
user User? @relation(fields: [userId], references: [id])
|
|
1258
|
+
creditRefundBatches CreditRefundBatch[]
|
|
1255
1259
|
|
|
1256
1260
|
@@index(username)
|
|
1257
1261
|
@@index(userId)
|
|
@@ -1661,3 +1665,13 @@ model File {
|
|
|
1661
1665
|
@@index([brandId])
|
|
1662
1666
|
@@map("file")
|
|
1663
1667
|
}
|
|
1668
|
+
|
|
1669
|
+
model CreditRefundBatch {
|
|
1670
|
+
id Int @id @default(autoincrement())
|
|
1671
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
1672
|
+
closedAt DateTime? @map("closed_at")
|
|
1673
|
+
|
|
1674
|
+
profiles SocialProfile[]
|
|
1675
|
+
|
|
1676
|
+
@@map("credit_refund_batch")
|
|
1677
|
+
}
|
package/wasm.js
CHANGED
|
@@ -814,7 +814,8 @@ exports.Prisma.CreatorListScalarFieldEnum = {
|
|
|
814
814
|
created: 'created',
|
|
815
815
|
archived: 'archived',
|
|
816
816
|
title: 'title',
|
|
817
|
-
metaData: 'metaData'
|
|
817
|
+
metaData: 'metaData',
|
|
818
|
+
createdByUserId: 'createdByUserId'
|
|
818
819
|
};
|
|
819
820
|
|
|
820
821
|
exports.Prisma.CreatorListItemScalarFieldEnum = {
|
|
@@ -1088,6 +1089,12 @@ exports.Prisma.FileScalarFieldEnum = {
|
|
|
1088
1089
|
archivedAt: 'archivedAt'
|
|
1089
1090
|
};
|
|
1090
1091
|
|
|
1092
|
+
exports.Prisma.CreditRefundBatchScalarFieldEnum = {
|
|
1093
|
+
id: 'id',
|
|
1094
|
+
createdAt: 'createdAt',
|
|
1095
|
+
closedAt: 'closedAt'
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1091
1098
|
exports.Prisma.SortOrder = {
|
|
1092
1099
|
asc: 'asc',
|
|
1093
1100
|
desc: 'desc'
|
|
@@ -1618,7 +1625,8 @@ exports.Prisma.ModelName = {
|
|
|
1618
1625
|
ShopifySale: 'ShopifySale',
|
|
1619
1626
|
CreatorFlag: 'CreatorFlag',
|
|
1620
1627
|
BrandContract: 'BrandContract',
|
|
1621
|
-
File: 'File'
|
|
1628
|
+
File: 'File',
|
|
1629
|
+
CreditRefundBatch: 'CreditRefundBatch'
|
|
1622
1630
|
};
|
|
1623
1631
|
|
|
1624
1632
|
/**
|