@creator.co/creatorco-prisma-client 1.0.40 → 1.0.42-alpha-60c9b5d
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 +29 -13
- package/index-browser.js +23 -7
- package/index.d.ts +3452 -862
- package/index.js +29 -13
- 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 +25 -10
- package/wasm.js +23 -7
package/schema.prisma
CHANGED
|
@@ -768,13 +768,14 @@ model OptIn {
|
|
|
768
768
|
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
769
769
|
currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
|
|
770
770
|
|
|
771
|
-
variables
|
|
772
|
-
optInSteps
|
|
773
|
-
chat
|
|
774
|
-
campaignInvites
|
|
775
|
-
trolleyPayments
|
|
776
|
-
affiliateClicks
|
|
777
|
-
productListItems
|
|
771
|
+
variables OptInVariable[]
|
|
772
|
+
optInSteps OptInStep[]
|
|
773
|
+
chat Chat?
|
|
774
|
+
campaignInvites CampaignInvite[]
|
|
775
|
+
trolleyPayments TrolleyPayment[]
|
|
776
|
+
affiliateClicks AffiliateClick[]
|
|
777
|
+
productListItems OptinToProductListItem[]
|
|
778
|
+
ExternalAffiliateClick ExternalAffiliateClick[]
|
|
778
779
|
|
|
779
780
|
@@index([userId])
|
|
780
781
|
@@index([campaignId])
|
|
@@ -823,10 +824,9 @@ model OptInVariable {
|
|
|
823
824
|
|
|
824
825
|
model SocialPost {
|
|
825
826
|
id Int @id @default(autoincrement())
|
|
826
|
-
externalId String
|
|
827
|
+
externalId String @map("external_id")
|
|
827
828
|
phylloId String? @unique
|
|
828
829
|
metaData Json @default("{}")
|
|
829
|
-
data Json @default("{}") // DEPRECATED, USE metaData instead, seems to be an error when attempting to remove this field, proabably due to table size
|
|
830
830
|
lastFetched DateTime?
|
|
831
831
|
lastWebhook DateTime?
|
|
832
832
|
|
|
@@ -835,7 +835,6 @@ model SocialPost {
|
|
|
835
835
|
title String? @db.Text
|
|
836
836
|
description String? @db.Text
|
|
837
837
|
url String? @db.VarChar(2083)
|
|
838
|
-
urlPath String? @unique // DEPRECATED: This is here so we have some external identifier to quickly search by
|
|
839
838
|
format String?
|
|
840
839
|
type String?
|
|
841
840
|
platform String?
|
|
@@ -984,6 +983,22 @@ model PaymentTransaction {
|
|
|
984
983
|
@@index([accountId])
|
|
985
984
|
}
|
|
986
985
|
|
|
986
|
+
model ExternalAffiliateClick {
|
|
987
|
+
id Int @id @default(autoincrement())
|
|
988
|
+
program String
|
|
989
|
+
created DateTime @default(now())
|
|
990
|
+
ipv4 String?
|
|
991
|
+
ipv6 String?
|
|
992
|
+
linkUrl String
|
|
993
|
+
metaData Json @default("{}")
|
|
994
|
+
|
|
995
|
+
optInId Int
|
|
996
|
+
optin OptIn @relation(fields: [optInId], references: [id])
|
|
997
|
+
|
|
998
|
+
@@index([optInId])
|
|
999
|
+
@@map("external_affiliate_click")
|
|
1000
|
+
}
|
|
1001
|
+
|
|
987
1002
|
model BrandAffiliateLink {
|
|
988
1003
|
id Int @id @default(autoincrement())
|
|
989
1004
|
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 = () => {
|
|
@@ -586,14 +586,12 @@ exports.Prisma.SocialPostScalarFieldEnum = {
|
|
|
586
586
|
externalId: 'externalId',
|
|
587
587
|
phylloId: 'phylloId',
|
|
588
588
|
metaData: 'metaData',
|
|
589
|
-
data: 'data',
|
|
590
589
|
lastFetched: 'lastFetched',
|
|
591
590
|
lastWebhook: 'lastWebhook',
|
|
592
591
|
posted: 'posted',
|
|
593
592
|
title: 'title',
|
|
594
593
|
description: 'description',
|
|
595
594
|
url: 'url',
|
|
596
|
-
urlPath: 'urlPath',
|
|
597
595
|
format: 'format',
|
|
598
596
|
type: 'type',
|
|
599
597
|
platform: 'platform',
|
|
@@ -695,6 +693,17 @@ exports.Prisma.PaymentTransactionScalarFieldEnum = {
|
|
|
695
693
|
prevTransactionId: 'prevTransactionId'
|
|
696
694
|
};
|
|
697
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
|
+
};
|
|
706
|
+
|
|
698
707
|
exports.Prisma.BrandAffiliateLinkScalarFieldEnum = {
|
|
699
708
|
id: 'id',
|
|
700
709
|
created: 'created',
|
|
@@ -1179,7 +1188,6 @@ exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
|
|
|
1179
1188
|
title: 'title',
|
|
1180
1189
|
description: 'description',
|
|
1181
1190
|
url: 'url',
|
|
1182
|
-
urlPath: 'urlPath',
|
|
1183
1191
|
format: 'format',
|
|
1184
1192
|
type: 'type',
|
|
1185
1193
|
platform: 'platform',
|
|
@@ -1224,6 +1232,13 @@ exports.Prisma.PaymentTransactionOrderByRelevanceFieldEnum = {
|
|
|
1224
1232
|
notes: 'notes'
|
|
1225
1233
|
};
|
|
1226
1234
|
|
|
1235
|
+
exports.Prisma.ExternalAffiliateClickOrderByRelevanceFieldEnum = {
|
|
1236
|
+
program: 'program',
|
|
1237
|
+
ipv4: 'ipv4',
|
|
1238
|
+
ipv6: 'ipv6',
|
|
1239
|
+
linkUrl: 'linkUrl'
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1227
1242
|
exports.Prisma.BrandAffiliateLinkOrderByRelevanceFieldEnum = {
|
|
1228
1243
|
description: 'description',
|
|
1229
1244
|
urlPath: 'urlPath'
|
|
@@ -1392,6 +1407,7 @@ exports.Prisma.ModelName = {
|
|
|
1392
1407
|
Country: 'Country',
|
|
1393
1408
|
State: 'State',
|
|
1394
1409
|
PaymentTransaction: 'PaymentTransaction',
|
|
1410
|
+
ExternalAffiliateClick: 'ExternalAffiliateClick',
|
|
1395
1411
|
BrandAffiliateLink: 'BrandAffiliateLink',
|
|
1396
1412
|
AffiliateLink: 'AffiliateLink',
|
|
1397
1413
|
AffiliateClick: 'AffiliateClick',
|