@creator.co/creatorco-prisma-client 1.0.65 → 1.0.67
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 +11 -5
- package/index-browser.js +7 -1
- package/index.d.ts +317 -110
- package/index.js +11 -5
- package/package.json +1 -1
- package/schema.prisma +13 -6
- package/wasm.js +7 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -1360,11 +1360,11 @@ model ImpactRadiusEvent {
|
|
|
1360
1360
|
commission Float?
|
|
1361
1361
|
metaData Json @default("{}")
|
|
1362
1362
|
|
|
1363
|
-
userId Int
|
|
1363
|
+
userId Int?
|
|
1364
1364
|
brandId Int?
|
|
1365
1365
|
optInId Int?
|
|
1366
1366
|
|
|
1367
|
-
user User
|
|
1367
|
+
user User? @relation(fields: [userId], references: [id])
|
|
1368
1368
|
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1369
1369
|
optIn OptIn? @relation(fields: [optInId], references: [id])
|
|
1370
1370
|
}
|
|
@@ -1377,11 +1377,11 @@ model CjEvent {
|
|
|
1377
1377
|
commission Float?
|
|
1378
1378
|
metaData Json @default("{}")
|
|
1379
1379
|
|
|
1380
|
-
userId Int
|
|
1380
|
+
userId Int?
|
|
1381
1381
|
brandId Int?
|
|
1382
1382
|
optInId Int?
|
|
1383
1383
|
|
|
1384
|
-
user User
|
|
1384
|
+
user User? @relation(fields: [userId], references: [id])
|
|
1385
1385
|
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1386
1386
|
optIn OptIn? @relation(fields: [optInId], references: [id])
|
|
1387
1387
|
|
|
@@ -1623,14 +1623,21 @@ model BrandContract {
|
|
|
1623
1623
|
fileId String? @unique @map("file_id")
|
|
1624
1624
|
file File? @relation(fields: [fileId], references: [id])
|
|
1625
1625
|
|
|
1626
|
+
// Optional as we may have legacy data that may cause a break
|
|
1627
|
+
chargebeeSubscriptionId String? @map("chargebee_subscription_id")
|
|
1628
|
+
|
|
1626
1629
|
contractType String @map("contract_type")
|
|
1630
|
+
addOns String? @map("add_ons")
|
|
1627
1631
|
startDate DateTime @map("start_date")
|
|
1628
1632
|
endDate DateTime? @map("end_date")
|
|
1629
1633
|
|
|
1634
|
+
// Optional as we may have legacy data that may cause a break
|
|
1635
|
+
status String? @map("status")
|
|
1636
|
+
|
|
1630
1637
|
archivedAt DateTime? @map("archived_at")
|
|
1631
1638
|
|
|
1632
|
-
createdByUserId Int @map("created_by_user_id")
|
|
1633
|
-
createdByUser User @relation("UserCreatedContract", fields: [createdByUserId], references: [id])
|
|
1639
|
+
createdByUserId Int? @map("created_by_user_id")
|
|
1640
|
+
createdByUser User? @relation("UserCreatedContract", fields: [createdByUserId], references: [id])
|
|
1634
1641
|
|
|
1635
1642
|
editedByUserId Int? @map("edited_by_user_id")
|
|
1636
1643
|
editedByUser User? @relation("UserEditedContract", fields: [editedByUserId], references: [id])
|
package/wasm.js
CHANGED
|
@@ -1065,9 +1065,12 @@ exports.Prisma.BrandContractScalarFieldEnum = {
|
|
|
1065
1065
|
createdAt: 'createdAt',
|
|
1066
1066
|
updatedAt: 'updatedAt',
|
|
1067
1067
|
fileId: 'fileId',
|
|
1068
|
+
chargebeeSubscriptionId: 'chargebeeSubscriptionId',
|
|
1068
1069
|
contractType: 'contractType',
|
|
1070
|
+
addOns: 'addOns',
|
|
1069
1071
|
startDate: 'startDate',
|
|
1070
1072
|
endDate: 'endDate',
|
|
1073
|
+
status: 'status',
|
|
1071
1074
|
archivedAt: 'archivedAt',
|
|
1072
1075
|
createdByUserId: 'createdByUserId',
|
|
1073
1076
|
editedByUserId: 'editedByUserId'
|
|
@@ -1509,7 +1512,10 @@ exports.Prisma.CreatorFlagOrderByRelevanceFieldEnum = {
|
|
|
1509
1512
|
|
|
1510
1513
|
exports.Prisma.BrandContractOrderByRelevanceFieldEnum = {
|
|
1511
1514
|
fileId: 'fileId',
|
|
1512
|
-
|
|
1515
|
+
chargebeeSubscriptionId: 'chargebeeSubscriptionId',
|
|
1516
|
+
contractType: 'contractType',
|
|
1517
|
+
addOns: 'addOns',
|
|
1518
|
+
status: 'status'
|
|
1513
1519
|
};
|
|
1514
1520
|
|
|
1515
1521
|
exports.Prisma.FileOrderByRelevanceFieldEnum = {
|