@creator.co/creatorco-prisma-client 1.0.41 → 1.0.42
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 +30 -10
- package/index-browser.js +24 -4
- package/index.d.ts +3830 -558
- package/index.js +30 -10
- package/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/libquery_engine-darwin.dylib.node +0 -0
- package/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-1.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/package.json +1 -1
- package/query_engine-windows.dll.node +0 -0
- package/runtime/edge-esm.js +11 -11
- package/runtime/edge.js +11 -11
- package/runtime/library.d.ts +1 -0
- package/runtime/library.js +34 -34
- package/runtime/react-native.js +3 -3
- package/runtime/wasm.js +10 -10
- package/schema.prisma +33 -12
- package/wasm.js +24 -4
package/schema.prisma
CHANGED
|
@@ -525,11 +525,12 @@ model Campaign {
|
|
|
525
525
|
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
526
526
|
campaignToBrandAffiliateLinks CampaignToBrandAffiliateLink[]
|
|
527
527
|
|
|
528
|
-
brandId
|
|
529
|
-
brand
|
|
530
|
-
creatorLists
|
|
531
|
-
optInViews
|
|
532
|
-
sequences
|
|
528
|
+
brandId Int
|
|
529
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
530
|
+
creatorLists CreatorList[]
|
|
531
|
+
optInViews OptInView[]
|
|
532
|
+
sequences Sequence[]
|
|
533
|
+
ExternalAffiliateClick ExternalAffiliateClick[]
|
|
533
534
|
|
|
534
535
|
@@index([brandId])
|
|
535
536
|
@@index([sfSyncDate])
|
|
@@ -768,13 +769,14 @@ model OptIn {
|
|
|
768
769
|
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
769
770
|
currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
|
|
770
771
|
|
|
771
|
-
variables
|
|
772
|
-
optInSteps
|
|
773
|
-
chat
|
|
774
|
-
campaignInvites
|
|
775
|
-
trolleyPayments
|
|
776
|
-
affiliateClicks
|
|
777
|
-
productListItems
|
|
772
|
+
variables OptInVariable[]
|
|
773
|
+
optInSteps OptInStep[]
|
|
774
|
+
chat Chat?
|
|
775
|
+
campaignInvites CampaignInvite[]
|
|
776
|
+
trolleyPayments TrolleyPayment[]
|
|
777
|
+
affiliateClicks AffiliateClick[]
|
|
778
|
+
productListItems OptinToProductListItem[]
|
|
779
|
+
ExternalAffiliateClick ExternalAffiliateClick[]
|
|
778
780
|
|
|
779
781
|
@@index([userId])
|
|
780
782
|
@@index([campaignId])
|
|
@@ -982,6 +984,25 @@ model PaymentTransaction {
|
|
|
982
984
|
@@index([accountId])
|
|
983
985
|
}
|
|
984
986
|
|
|
987
|
+
model ExternalAffiliateClick {
|
|
988
|
+
id Int @id @default(autoincrement())
|
|
989
|
+
program String
|
|
990
|
+
created DateTime @default(now())
|
|
991
|
+
ipv4 String?
|
|
992
|
+
ipv6 String?
|
|
993
|
+
linkUrl String
|
|
994
|
+
metaData Json @default("{}")
|
|
995
|
+
|
|
996
|
+
optInId Int
|
|
997
|
+
campaignId Int
|
|
998
|
+
|
|
999
|
+
optin OptIn @relation(fields: [optInId], references: [id])
|
|
1000
|
+
campaign Campaign @relation(fields: [campaignId], references: [id])
|
|
1001
|
+
|
|
1002
|
+
@@index([optInId])
|
|
1003
|
+
@@map("external_affiliate_click")
|
|
1004
|
+
}
|
|
1005
|
+
|
|
985
1006
|
model BrandAffiliateLink {
|
|
986
1007
|
id Int @id @default(autoincrement())
|
|
987
1008
|
created DateTime @default(now())
|
package/wasm.js
CHANGED
|
@@ -16,12 +16,12 @@ exports.Prisma = Prisma
|
|
|
16
16
|
exports.$Enums = {}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Prisma Client JS version: 5.
|
|
20
|
-
* Query Engine version:
|
|
19
|
+
* Prisma Client JS version: 5.15.0
|
|
20
|
+
* Query Engine version: 12e25d8d06f6ea5a0252864dd9a03b1bb51f3022
|
|
21
21
|
*/
|
|
22
22
|
Prisma.prismaVersion = {
|
|
23
|
-
client: "5.
|
|
24
|
-
engine: "
|
|
23
|
+
client: "5.15.0",
|
|
24
|
+
engine: "12e25d8d06f6ea5a0252864dd9a03b1bb51f3022"
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
@@ -693,6 +693,18 @@ exports.Prisma.PaymentTransactionScalarFieldEnum = {
|
|
|
693
693
|
prevTransactionId: 'prevTransactionId'
|
|
694
694
|
};
|
|
695
695
|
|
|
696
|
+
exports.Prisma.ExternalAffiliateClickScalarFieldEnum = {
|
|
697
|
+
id: 'id',
|
|
698
|
+
program: 'program',
|
|
699
|
+
created: 'created',
|
|
700
|
+
ipv4: 'ipv4',
|
|
701
|
+
ipv6: 'ipv6',
|
|
702
|
+
linkUrl: 'linkUrl',
|
|
703
|
+
metaData: 'metaData',
|
|
704
|
+
optInId: 'optInId',
|
|
705
|
+
campaignId: 'campaignId'
|
|
706
|
+
};
|
|
707
|
+
|
|
696
708
|
exports.Prisma.BrandAffiliateLinkScalarFieldEnum = {
|
|
697
709
|
id: 'id',
|
|
698
710
|
created: 'created',
|
|
@@ -1221,6 +1233,13 @@ exports.Prisma.PaymentTransactionOrderByRelevanceFieldEnum = {
|
|
|
1221
1233
|
notes: 'notes'
|
|
1222
1234
|
};
|
|
1223
1235
|
|
|
1236
|
+
exports.Prisma.ExternalAffiliateClickOrderByRelevanceFieldEnum = {
|
|
1237
|
+
program: 'program',
|
|
1238
|
+
ipv4: 'ipv4',
|
|
1239
|
+
ipv6: 'ipv6',
|
|
1240
|
+
linkUrl: 'linkUrl'
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1224
1243
|
exports.Prisma.BrandAffiliateLinkOrderByRelevanceFieldEnum = {
|
|
1225
1244
|
description: 'description',
|
|
1226
1245
|
urlPath: 'urlPath'
|
|
@@ -1389,6 +1408,7 @@ exports.Prisma.ModelName = {
|
|
|
1389
1408
|
Country: 'Country',
|
|
1390
1409
|
State: 'State',
|
|
1391
1410
|
PaymentTransaction: 'PaymentTransaction',
|
|
1411
|
+
ExternalAffiliateClick: 'ExternalAffiliateClick',
|
|
1392
1412
|
BrandAffiliateLink: 'BrandAffiliateLink',
|
|
1393
1413
|
AffiliateLink: 'AffiliateLink',
|
|
1394
1414
|
AffiliateClick: 'AffiliateClick',
|