@creator.co/creatorco-prisma-client 1.0.49 → 1.0.50-alpha-283f6cb
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 +24 -5
- package/index-browser.js +20 -1
- package/index.d.ts +2975 -127
- package/index.js +24 -5
- package/package.json +1 -1
- package/schema.prisma +23 -0
- package/wasm.js +20 -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())
|
|
@@ -1487,3 +1490,23 @@ model ShopifySale {
|
|
|
1487
1490
|
|
|
1488
1491
|
@@map("shopify_sale")
|
|
1489
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
|
@@ -998,6 +998,18 @@ exports.Prisma.ShopifySaleScalarFieldEnum = {
|
|
|
998
998
|
created: 'created'
|
|
999
999
|
};
|
|
1000
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
|
+
|
|
1001
1013
|
exports.Prisma.SortOrder = {
|
|
1002
1014
|
asc: 'asc',
|
|
1003
1015
|
desc: 'desc'
|
|
@@ -1384,6 +1396,12 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
|
|
|
1384
1396
|
exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
|
|
1385
1397
|
code: 'code'
|
|
1386
1398
|
};
|
|
1399
|
+
|
|
1400
|
+
exports.Prisma.CreatorFlagOrderByRelevanceFieldEnum = {
|
|
1401
|
+
label: 'label',
|
|
1402
|
+
comment: 'comment',
|
|
1403
|
+
color: 'color'
|
|
1404
|
+
};
|
|
1387
1405
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1388
1406
|
optIn: 'optIn',
|
|
1389
1407
|
tip: 'tip',
|
|
@@ -1478,7 +1496,8 @@ exports.Prisma.ModelName = {
|
|
|
1478
1496
|
ShopifyProductVariation: 'ShopifyProductVariation',
|
|
1479
1497
|
CampaignToShopifyProduct: 'CampaignToShopifyProduct',
|
|
1480
1498
|
ShopifyDiscountCode: 'ShopifyDiscountCode',
|
|
1481
|
-
ShopifySale: 'ShopifySale'
|
|
1499
|
+
ShopifySale: 'ShopifySale',
|
|
1500
|
+
CreatorFlag: 'CreatorFlag'
|
|
1482
1501
|
};
|
|
1483
1502
|
|
|
1484
1503
|
/**
|