@creator.co/creatorco-prisma-client 1.0.48 → 1.0.50
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 +21 -1
- package/index.d.ts +3060 -127
- package/index.js +25 -5
- package/package.json +1 -1
- package/schema.prisma +24 -0
- package/wasm.js +21 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -70,6 +70,9 @@ model User {
|
|
|
70
70
|
socialProfiles SocialProfile[]
|
|
71
71
|
rakutenActivity RakutenActivity[]
|
|
72
72
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
73
|
+
flagsAssigned CreatorFlag[] @relation("UserAssignedFlags") // flags assigned to the user
|
|
74
|
+
flagsCreated CreatorFlag[] @relation("UserCreatedFlags") // flags created by the user
|
|
75
|
+
flagsEdited CreatorFlag[] @relation("UserEditedFlags") // flags edited by the user
|
|
73
76
|
|
|
74
77
|
fullName String? @default(dbgenerated())
|
|
75
78
|
phoneNormalised String? @default(dbgenerated())
|
|
@@ -762,6 +765,7 @@ model OptIn {
|
|
|
762
765
|
paymentStatus String @default("pending") // depracated -- refer to trolley payment table
|
|
763
766
|
extraData Json @default("{}")
|
|
764
767
|
favoritedDate DateTime?
|
|
768
|
+
rating Json?
|
|
765
769
|
|
|
766
770
|
userId Int
|
|
767
771
|
campaignId Int
|
|
@@ -1486,3 +1490,23 @@ model ShopifySale {
|
|
|
1486
1490
|
|
|
1487
1491
|
@@map("shopify_sale")
|
|
1488
1492
|
}
|
|
1493
|
+
|
|
1494
|
+
model CreatorFlag {
|
|
1495
|
+
// Used by admins to flag creators for various reasons
|
|
1496
|
+
id Int @id @default(autoincrement())
|
|
1497
|
+
label String // reason for flagging (e.g. Scammer)
|
|
1498
|
+
comment String? @db.Text // optional comment from admin
|
|
1499
|
+
color String // customizable tag color
|
|
1500
|
+
|
|
1501
|
+
createdAt DateTime @default(now())
|
|
1502
|
+
updatedAt DateTime @updatedAt
|
|
1503
|
+
|
|
1504
|
+
userId Int // user ID of the flagged creator
|
|
1505
|
+
user User @relation("UserAssignedFlags", fields: [userId], references: [id])
|
|
1506
|
+
|
|
1507
|
+
flaggedByUserId Int // user ID of the admin who flagged the creator
|
|
1508
|
+
flaggedByUser User @relation("UserCreatedFlags", fields: [flaggedByUserId], references: [id])
|
|
1509
|
+
|
|
1510
|
+
editedByUserId Int? // user ID of the admin who last edited the flag
|
|
1511
|
+
editedByUser User? @relation("UserEditedFlags", fields: [editedByUserId], references: [id])
|
|
1512
|
+
}
|
package/wasm.js
CHANGED
|
@@ -561,6 +561,7 @@ exports.Prisma.OptInScalarFieldEnum = {
|
|
|
561
561
|
paymentStatus: 'paymentStatus',
|
|
562
562
|
extraData: 'extraData',
|
|
563
563
|
favoritedDate: 'favoritedDate',
|
|
564
|
+
rating: 'rating',
|
|
564
565
|
userId: 'userId',
|
|
565
566
|
campaignId: 'campaignId',
|
|
566
567
|
currentStepId: 'currentStepId'
|
|
@@ -997,6 +998,18 @@ exports.Prisma.ShopifySaleScalarFieldEnum = {
|
|
|
997
998
|
created: 'created'
|
|
998
999
|
};
|
|
999
1000
|
|
|
1001
|
+
exports.Prisma.CreatorFlagScalarFieldEnum = {
|
|
1002
|
+
id: 'id',
|
|
1003
|
+
label: 'label',
|
|
1004
|
+
comment: 'comment',
|
|
1005
|
+
color: 'color',
|
|
1006
|
+
createdAt: 'createdAt',
|
|
1007
|
+
updatedAt: 'updatedAt',
|
|
1008
|
+
userId: 'userId',
|
|
1009
|
+
flaggedByUserId: 'flaggedByUserId',
|
|
1010
|
+
editedByUserId: 'editedByUserId'
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1000
1013
|
exports.Prisma.SortOrder = {
|
|
1001
1014
|
asc: 'asc',
|
|
1002
1015
|
desc: 'desc'
|
|
@@ -1383,6 +1396,12 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
|
|
|
1383
1396
|
exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
|
|
1384
1397
|
code: 'code'
|
|
1385
1398
|
};
|
|
1399
|
+
|
|
1400
|
+
exports.Prisma.CreatorFlagOrderByRelevanceFieldEnum = {
|
|
1401
|
+
label: 'label',
|
|
1402
|
+
comment: 'comment',
|
|
1403
|
+
color: 'color'
|
|
1404
|
+
};
|
|
1386
1405
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1387
1406
|
optIn: 'optIn',
|
|
1388
1407
|
tip: 'tip',
|
|
@@ -1477,7 +1496,8 @@ exports.Prisma.ModelName = {
|
|
|
1477
1496
|
ShopifyProductVariation: 'ShopifyProductVariation',
|
|
1478
1497
|
CampaignToShopifyProduct: 'CampaignToShopifyProduct',
|
|
1479
1498
|
ShopifyDiscountCode: 'ShopifyDiscountCode',
|
|
1480
|
-
ShopifySale: 'ShopifySale'
|
|
1499
|
+
ShopifySale: 'ShopifySale',
|
|
1500
|
+
CreatorFlag: 'CreatorFlag'
|
|
1481
1501
|
};
|
|
1482
1502
|
|
|
1483
1503
|
/**
|