@creator.co/creatorco-prisma-client 1.0.60 → 1.0.61-alpha-8d6ef3c
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 +44 -5
- package/index-browser.js +40 -1
- package/index.d.ts +4105 -372
- package/index.js +44 -5
- package/package.json +1 -1
- package/schema.prisma +35 -4
- package/wasm.js +40 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -359,11 +359,13 @@ model Brand {
|
|
|
359
359
|
brandContracts BrandContract[]
|
|
360
360
|
|
|
361
361
|
// for agencies
|
|
362
|
-
parentBrandId
|
|
363
|
-
parentBrand
|
|
364
|
-
childBrands
|
|
362
|
+
parentBrandId Int?
|
|
363
|
+
parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
|
|
364
|
+
childBrands Brand[] @relation("ChildBrands")
|
|
365
365
|
// generated (for search)
|
|
366
|
-
searchName
|
|
366
|
+
searchName String? @default(dbgenerated())
|
|
367
|
+
smtpCredentials SMTPCredentials[]
|
|
368
|
+
imapCredentials IMAPCredentials[]
|
|
367
369
|
|
|
368
370
|
@@map("brand")
|
|
369
371
|
}
|
|
@@ -1627,3 +1629,32 @@ model BrandContract {
|
|
|
1627
1629
|
@@index([brandId])
|
|
1628
1630
|
@@map("brand_contract")
|
|
1629
1631
|
}
|
|
1632
|
+
|
|
1633
|
+
model SMTPCredentials {
|
|
1634
|
+
id Int @id @default(autoincrement())
|
|
1635
|
+
host String
|
|
1636
|
+
user String
|
|
1637
|
+
password String
|
|
1638
|
+
senderName String
|
|
1639
|
+
emailAddress String
|
|
1640
|
+
portNumber Int
|
|
1641
|
+
metaData Json @default("{}")
|
|
1642
|
+
|
|
1643
|
+
brandId Int
|
|
1644
|
+
|
|
1645
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
model IMAPCredentials {
|
|
1649
|
+
id Int @id @default(autoincrement())
|
|
1650
|
+
host String
|
|
1651
|
+
user String
|
|
1652
|
+
portNumber Int
|
|
1653
|
+
password String
|
|
1654
|
+
isSecure Boolean
|
|
1655
|
+
metaData Json @default("{}")
|
|
1656
|
+
|
|
1657
|
+
brandId Int
|
|
1658
|
+
|
|
1659
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1660
|
+
}
|
package/wasm.js
CHANGED
|
@@ -1072,6 +1072,29 @@ exports.Prisma.BrandContractScalarFieldEnum = {
|
|
|
1072
1072
|
editedByUserId: 'editedByUserId'
|
|
1073
1073
|
};
|
|
1074
1074
|
|
|
1075
|
+
exports.Prisma.SMTPCredentialsScalarFieldEnum = {
|
|
1076
|
+
id: 'id',
|
|
1077
|
+
host: 'host',
|
|
1078
|
+
user: 'user',
|
|
1079
|
+
password: 'password',
|
|
1080
|
+
senderName: 'senderName',
|
|
1081
|
+
emailAddress: 'emailAddress',
|
|
1082
|
+
portNumber: 'portNumber',
|
|
1083
|
+
metaData: 'metaData',
|
|
1084
|
+
brandId: 'brandId'
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
exports.Prisma.IMAPCredentialsScalarFieldEnum = {
|
|
1088
|
+
id: 'id',
|
|
1089
|
+
host: 'host',
|
|
1090
|
+
user: 'user',
|
|
1091
|
+
portNumber: 'portNumber',
|
|
1092
|
+
password: 'password',
|
|
1093
|
+
isSecure: 'isSecure',
|
|
1094
|
+
metaData: 'metaData',
|
|
1095
|
+
brandId: 'brandId'
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1075
1098
|
exports.Prisma.SortOrder = {
|
|
1076
1099
|
asc: 'asc',
|
|
1077
1100
|
desc: 'desc'
|
|
@@ -1487,6 +1510,20 @@ exports.Prisma.BrandContractOrderByRelevanceFieldEnum = {
|
|
|
1487
1510
|
file: 'file',
|
|
1488
1511
|
contractType: 'contractType'
|
|
1489
1512
|
};
|
|
1513
|
+
|
|
1514
|
+
exports.Prisma.SMTPCredentialsOrderByRelevanceFieldEnum = {
|
|
1515
|
+
host: 'host',
|
|
1516
|
+
user: 'user',
|
|
1517
|
+
password: 'password',
|
|
1518
|
+
senderName: 'senderName',
|
|
1519
|
+
emailAddress: 'emailAddress'
|
|
1520
|
+
};
|
|
1521
|
+
|
|
1522
|
+
exports.Prisma.IMAPCredentialsOrderByRelevanceFieldEnum = {
|
|
1523
|
+
host: 'host',
|
|
1524
|
+
user: 'user',
|
|
1525
|
+
password: 'password'
|
|
1526
|
+
};
|
|
1490
1527
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1491
1528
|
optIn: 'optIn',
|
|
1492
1529
|
tip: 'tip',
|
|
@@ -1593,7 +1630,9 @@ exports.Prisma.ModelName = {
|
|
|
1593
1630
|
ShopifyDiscountCode: 'ShopifyDiscountCode',
|
|
1594
1631
|
ShopifySale: 'ShopifySale',
|
|
1595
1632
|
CreatorFlag: 'CreatorFlag',
|
|
1596
|
-
BrandContract: 'BrandContract'
|
|
1633
|
+
BrandContract: 'BrandContract',
|
|
1634
|
+
SMTPCredentials: 'SMTPCredentials',
|
|
1635
|
+
IMAPCredentials: 'IMAPCredentials'
|
|
1597
1636
|
};
|
|
1598
1637
|
|
|
1599
1638
|
/**
|