@creator.co/creatorco-prisma-client 1.0.60 → 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 +38 -6
- package/index-browser.js +34 -2
- package/index.d.ts +2645 -140
- package/index.js +38 -6
- package/package.json +1 -1
- package/schema.prisma +36 -4
- package/wasm.js +34 -2
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -359,11 +359,12 @@ 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 EmailCredentials[]
|
|
367
368
|
|
|
368
369
|
@@map("brand")
|
|
369
370
|
}
|
|
@@ -1416,6 +1417,8 @@ model Sequence {
|
|
|
1416
1417
|
brandId Int
|
|
1417
1418
|
enabled Boolean @default(false)
|
|
1418
1419
|
|
|
1420
|
+
emailCredentialsId Int
|
|
1421
|
+
|
|
1419
1422
|
campaign Campaign @relation(fields: [campaignId], references: [id])
|
|
1420
1423
|
creatorList CreatorList @relation(fields: [creatorListId], references: [id])
|
|
1421
1424
|
brand Brand @relation(fields: [brandId], references: [id])
|
|
@@ -1425,6 +1428,8 @@ model Sequence {
|
|
|
1425
1428
|
inboundEmails SequenceInboundEmail[]
|
|
1426
1429
|
imapCheckpoints SequenceImapCheckpoint[]
|
|
1427
1430
|
|
|
1431
|
+
emailCredentials EmailCredentials @relation(fields: [emailCredentialsId], references: [id])
|
|
1432
|
+
|
|
1428
1433
|
@@map("sequence")
|
|
1429
1434
|
}
|
|
1430
1435
|
|
|
@@ -1627,3 +1632,30 @@ model BrandContract {
|
|
|
1627
1632
|
@@index([brandId])
|
|
1628
1633
|
@@map("brand_contract")
|
|
1629
1634
|
}
|
|
1635
|
+
|
|
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")
|
|
1645
|
+
|
|
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")
|
|
1651
|
+
|
|
1652
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1653
|
+
|
|
1654
|
+
brandId Int @map("brand_id")
|
|
1655
|
+
|
|
1656
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1657
|
+
|
|
1658
|
+
sequences Sequence[]
|
|
1659
|
+
|
|
1660
|
+
@@map("email_credentials")
|
|
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,6 +1073,24 @@ exports.Prisma.BrandContractScalarFieldEnum = {
|
|
|
1072
1073
|
editedByUserId: 'editedByUserId'
|
|
1073
1074
|
};
|
|
1074
1075
|
|
|
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',
|
|
1090
|
+
metaData: 'metaData',
|
|
1091
|
+
brandId: 'brandId'
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1075
1094
|
exports.Prisma.SortOrder = {
|
|
1076
1095
|
asc: 'asc',
|
|
1077
1096
|
desc: 'desc'
|
|
@@ -1487,6 +1506,18 @@ exports.Prisma.BrandContractOrderByRelevanceFieldEnum = {
|
|
|
1487
1506
|
file: 'file',
|
|
1488
1507
|
contractType: 'contractType'
|
|
1489
1508
|
};
|
|
1509
|
+
|
|
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'
|
|
1520
|
+
};
|
|
1490
1521
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1491
1522
|
optIn: 'optIn',
|
|
1492
1523
|
tip: 'tip',
|
|
@@ -1593,7 +1624,8 @@ exports.Prisma.ModelName = {
|
|
|
1593
1624
|
ShopifyDiscountCode: 'ShopifyDiscountCode',
|
|
1594
1625
|
ShopifySale: 'ShopifySale',
|
|
1595
1626
|
CreatorFlag: 'CreatorFlag',
|
|
1596
|
-
BrandContract: 'BrandContract'
|
|
1627
|
+
BrandContract: 'BrandContract',
|
|
1628
|
+
EmailCredentials: 'EmailCredentials'
|
|
1597
1629
|
};
|
|
1598
1630
|
|
|
1599
1631
|
/**
|