@creator.co/creatorco-prisma-client 1.0.61-alpha-8d6ef3c → 1.0.61-alpha-b23a5b2
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 +31 -38
- package/index-browser.js +27 -34
- package/index.d.ts +1589 -2817
- package/index.js +31 -38
- package/package.json +1 -1
- package/schema.prisma +28 -27
- package/wasm.js +27 -34
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -360,12 +360,11 @@ model Brand {
|
|
|
360
360
|
|
|
361
361
|
// for agencies
|
|
362
362
|
parentBrandId Int?
|
|
363
|
-
parentBrand Brand?
|
|
364
|
-
childBrands Brand[]
|
|
363
|
+
parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
|
|
364
|
+
childBrands Brand[] @relation("ChildBrands")
|
|
365
365
|
// generated (for search)
|
|
366
|
-
searchName String?
|
|
367
|
-
smtpCredentials
|
|
368
|
-
imapCredentials IMAPCredentials[]
|
|
366
|
+
searchName String? @default(dbgenerated())
|
|
367
|
+
smtpCredentials EmailCredentials[]
|
|
369
368
|
|
|
370
369
|
@@map("brand")
|
|
371
370
|
}
|
|
@@ -1418,6 +1417,8 @@ model Sequence {
|
|
|
1418
1417
|
brandId Int
|
|
1419
1418
|
enabled Boolean @default(false)
|
|
1420
1419
|
|
|
1420
|
+
emailCredentialsId Int
|
|
1421
|
+
|
|
1421
1422
|
campaign Campaign @relation(fields: [campaignId], references: [id])
|
|
1422
1423
|
creatorList CreatorList @relation(fields: [creatorListId], references: [id])
|
|
1423
1424
|
brand Brand @relation(fields: [brandId], references: [id])
|
|
@@ -1427,6 +1428,8 @@ model Sequence {
|
|
|
1427
1428
|
inboundEmails SequenceInboundEmail[]
|
|
1428
1429
|
imapCheckpoints SequenceImapCheckpoint[]
|
|
1429
1430
|
|
|
1431
|
+
emailCredentials EmailCredentials @relation(fields: [emailCredentialsId], references: [id])
|
|
1432
|
+
|
|
1430
1433
|
@@map("sequence")
|
|
1431
1434
|
}
|
|
1432
1435
|
|
|
@@ -1630,31 +1633,29 @@ model BrandContract {
|
|
|
1630
1633
|
@@map("brand_contract")
|
|
1631
1634
|
}
|
|
1632
1635
|
|
|
1633
|
-
model
|
|
1634
|
-
id
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1636
|
+
model EmailCredentials {
|
|
1637
|
+
id Int @id @default(autoincrement())
|
|
1638
|
+
smtpHost String @map("smtp_host")
|
|
1639
|
+
smtpUser String @map("smtp_user")
|
|
1640
|
+
smtpPassword String @map("smtp_password")
|
|
1641
|
+
smtpSenderName String @map("smtp_sender_name")
|
|
1642
|
+
smtpSenderEmail String @map("smtp_sender_email")
|
|
1643
|
+
smtpReplyToEmail String @map("smtp_reply_to_email")
|
|
1644
|
+
smtpPort Int @map("smtp_port")
|
|
1642
1645
|
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1646
|
+
imapHost String @map("imap_host")
|
|
1647
|
+
imapUser String @map("imap_user")
|
|
1648
|
+
imapPassword String @map("imap_password")
|
|
1649
|
+
imapPort Int @map("imap_port")
|
|
1650
|
+
imapIsSecure Boolean @map("imap_is_secure")
|
|
1647
1651
|
|
|
1648
|
-
|
|
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("{}")
|
|
1652
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1656
1653
|
|
|
1657
|
-
brandId Int
|
|
1654
|
+
brandId Int @map("brand_id")
|
|
1658
1655
|
|
|
1659
1656
|
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1657
|
+
|
|
1658
|
+
sequences Sequence[]
|
|
1659
|
+
|
|
1660
|
+
@@map("email_credentials")
|
|
1660
1661
|
}
|
package/wasm.js
CHANGED
|
@@ -958,7 +958,8 @@ exports.Prisma.SequenceScalarFieldEnum = {
|
|
|
958
958
|
createdAt: 'createdAt',
|
|
959
959
|
completed: 'completed',
|
|
960
960
|
brandId: 'brandId',
|
|
961
|
-
enabled: 'enabled'
|
|
961
|
+
enabled: 'enabled',
|
|
962
|
+
emailCredentialsId: 'emailCredentialsId'
|
|
962
963
|
};
|
|
963
964
|
|
|
964
965
|
exports.Prisma.SequenceStepScalarFieldEnum = {
|
|
@@ -1072,25 +1073,20 @@ exports.Prisma.BrandContractScalarFieldEnum = {
|
|
|
1072
1073
|
editedByUserId: 'editedByUserId'
|
|
1073
1074
|
};
|
|
1074
1075
|
|
|
1075
|
-
exports.Prisma.
|
|
1076
|
-
id: 'id',
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
host: 'host',
|
|
1090
|
-
user: 'user',
|
|
1091
|
-
portNumber: 'portNumber',
|
|
1092
|
-
password: 'password',
|
|
1093
|
-
isSecure: 'isSecure',
|
|
1076
|
+
exports.Prisma.EmailCredentialsScalarFieldEnum = {
|
|
1077
|
+
id: 'id',
|
|
1078
|
+
smtpHost: 'smtpHost',
|
|
1079
|
+
smtpUser: 'smtpUser',
|
|
1080
|
+
smtpPassword: 'smtpPassword',
|
|
1081
|
+
smtpSenderName: 'smtpSenderName',
|
|
1082
|
+
smtpSenderEmail: 'smtpSenderEmail',
|
|
1083
|
+
smtpReplyToEmail: 'smtpReplyToEmail',
|
|
1084
|
+
smtpPort: 'smtpPort',
|
|
1085
|
+
imapHost: 'imapHost',
|
|
1086
|
+
imapUser: 'imapUser',
|
|
1087
|
+
imapPassword: 'imapPassword',
|
|
1088
|
+
imapPort: 'imapPort',
|
|
1089
|
+
imapIsSecure: 'imapIsSecure',
|
|
1094
1090
|
metaData: 'metaData',
|
|
1095
1091
|
brandId: 'brandId'
|
|
1096
1092
|
};
|
|
@@ -1511,18 +1507,16 @@ exports.Prisma.BrandContractOrderByRelevanceFieldEnum = {
|
|
|
1511
1507
|
contractType: 'contractType'
|
|
1512
1508
|
};
|
|
1513
1509
|
|
|
1514
|
-
exports.Prisma.
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
user: 'user',
|
|
1525
|
-
password: 'password'
|
|
1510
|
+
exports.Prisma.EmailCredentialsOrderByRelevanceFieldEnum = {
|
|
1511
|
+
smtpHost: 'smtpHost',
|
|
1512
|
+
smtpUser: 'smtpUser',
|
|
1513
|
+
smtpPassword: 'smtpPassword',
|
|
1514
|
+
smtpSenderName: 'smtpSenderName',
|
|
1515
|
+
smtpSenderEmail: 'smtpSenderEmail',
|
|
1516
|
+
smtpReplyToEmail: 'smtpReplyToEmail',
|
|
1517
|
+
imapHost: 'imapHost',
|
|
1518
|
+
imapUser: 'imapUser',
|
|
1519
|
+
imapPassword: 'imapPassword'
|
|
1526
1520
|
};
|
|
1527
1521
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1528
1522
|
optIn: 'optIn',
|
|
@@ -1631,8 +1625,7 @@ exports.Prisma.ModelName = {
|
|
|
1631
1625
|
ShopifySale: 'ShopifySale',
|
|
1632
1626
|
CreatorFlag: 'CreatorFlag',
|
|
1633
1627
|
BrandContract: 'BrandContract',
|
|
1634
|
-
|
|
1635
|
-
IMAPCredentials: 'IMAPCredentials'
|
|
1628
|
+
EmailCredentials: 'EmailCredentials'
|
|
1636
1629
|
};
|
|
1637
1630
|
|
|
1638
1631
|
/**
|