@creator.co/creatorco-prisma-client 1.0.63 → 1.0.64-alpha-86f6413
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 +15 -6
- package/index-browser.js +11 -2
- package/index.d.ts +2884 -180
- package/index.js +15 -6
- package/package.json +1 -1
- package/schema.prisma +32 -14
- package/wasm.js +11 -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
|
|
@@ -361,6 +362,7 @@ model Brand {
|
|
|
361
362
|
productLists ProductList[]
|
|
362
363
|
brandContracts BrandContract[]
|
|
363
364
|
files File[]
|
|
365
|
+
creditRefundBatches CreditRefundBatch[]
|
|
364
366
|
|
|
365
367
|
// for agencies
|
|
366
368
|
parentBrandId Int?
|
|
@@ -1186,18 +1188,20 @@ model CampaignInvite {
|
|
|
1186
1188
|
}
|
|
1187
1189
|
|
|
1188
1190
|
model CreatorList {
|
|
1189
|
-
id
|
|
1190
|
-
brandId
|
|
1191
|
-
campaignId
|
|
1192
|
-
created
|
|
1193
|
-
archived
|
|
1194
|
-
title
|
|
1195
|
-
metaData
|
|
1191
|
+
id Int @id @default(autoincrement())
|
|
1192
|
+
brandId Int
|
|
1193
|
+
campaignId Int?
|
|
1194
|
+
created DateTime @default(now())
|
|
1195
|
+
archived DateTime?
|
|
1196
|
+
title String
|
|
1197
|
+
metaData Json? @default("{}")
|
|
1198
|
+
createdByUserId Int?
|
|
1196
1199
|
|
|
1197
|
-
creators
|
|
1198
|
-
brand
|
|
1199
|
-
campaign
|
|
1200
|
-
|
|
1200
|
+
creators CreatorListItem[]
|
|
1201
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1202
|
+
campaign Campaign? @relation(fields: [campaignId], references: [id])
|
|
1203
|
+
createdByUser User? @relation(fields: [createdByUserId], references: [id])
|
|
1204
|
+
sequences Sequence[]
|
|
1201
1205
|
|
|
1202
1206
|
@@index([brandId])
|
|
1203
1207
|
@@map("creatorlist")
|
|
@@ -1249,9 +1253,10 @@ model SocialProfile {
|
|
|
1249
1253
|
created DateTime @default(now())
|
|
1250
1254
|
updated DateTime?
|
|
1251
1255
|
|
|
1252
|
-
creatorListItems
|
|
1253
|
-
campaignInvites
|
|
1254
|
-
user
|
|
1256
|
+
creatorListItems CreatorListItem[]
|
|
1257
|
+
campaignInvites CampaignInvite[]
|
|
1258
|
+
user User? @relation(fields: [userId], references: [id])
|
|
1259
|
+
creditRefundBatches CreditRefundBatch[]
|
|
1255
1260
|
|
|
1256
1261
|
@@index(username)
|
|
1257
1262
|
@@index(userId)
|
|
@@ -1661,3 +1666,16 @@ model File {
|
|
|
1661
1666
|
@@index([brandId])
|
|
1662
1667
|
@@map("file")
|
|
1663
1668
|
}
|
|
1669
|
+
|
|
1670
|
+
model CreditRefundBatch {
|
|
1671
|
+
id Int @id @default(autoincrement())
|
|
1672
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
1673
|
+
closedAt DateTime? @map("closed_at")
|
|
1674
|
+
brandId Int
|
|
1675
|
+
|
|
1676
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1677
|
+
|
|
1678
|
+
profiles SocialProfile[]
|
|
1679
|
+
|
|
1680
|
+
@@map("credit_refund_batch")
|
|
1681
|
+
}
|
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,13 @@ 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
|
+
brandId: 'brandId'
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1091
1099
|
exports.Prisma.SortOrder = {
|
|
1092
1100
|
asc: 'asc',
|
|
1093
1101
|
desc: 'desc'
|
|
@@ -1618,7 +1626,8 @@ exports.Prisma.ModelName = {
|
|
|
1618
1626
|
ShopifySale: 'ShopifySale',
|
|
1619
1627
|
CreatorFlag: 'CreatorFlag',
|
|
1620
1628
|
BrandContract: 'BrandContract',
|
|
1621
|
-
File: 'File'
|
|
1629
|
+
File: 'File',
|
|
1630
|
+
CreditRefundBatch: 'CreditRefundBatch'
|
|
1622
1631
|
};
|
|
1623
1632
|
|
|
1624
1633
|
/**
|