@creator.co/creatorco-prisma-client 1.0.73 → 1.0.75
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/default.d.ts +1 -1
- package/edge.d.ts +1 -1
- package/edge.js +16 -11
- package/index-browser.js +9 -5
- package/index.d.ts +5817 -7610
- package/index.js +16 -11
- 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-1.1.x.so.node +0 -0
- package/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/package.json +14 -1
- package/query_engine-windows.dll.node +0 -0
- package/runtime/edge-esm.js +21 -18
- package/runtime/edge.js +21 -18
- package/runtime/index-browser.js +1 -1
- package/runtime/library.d.ts +296 -87
- package/runtime/library.js +65 -62
- package/runtime/react-native.js +31 -28
- package/runtime/wasm.js +22 -19
- package/schema.prisma +20 -17
- package/wasm.d.ts +1 -1
- package/wasm.js +9 -5
package/schema.prisma
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
generator erd {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
// generator erd {
|
|
2
|
+
// provider = "prisma-erd-generator"
|
|
3
|
+
// includeRelationFromFields = true
|
|
4
|
+
// output = "../../docs/creatorco_erd.md"
|
|
5
|
+
// }
|
|
6
6
|
|
|
7
7
|
generator kysely {
|
|
8
8
|
provider = "prisma-kysely"
|
|
@@ -104,7 +104,7 @@ model CreatorProfile {
|
|
|
104
104
|
country String?
|
|
105
105
|
region String?
|
|
106
106
|
birthDate DateTime?
|
|
107
|
-
interests Json?
|
|
107
|
+
interests Json? /// @deprecated
|
|
108
108
|
gender String?
|
|
109
109
|
shippingAddress1 String?
|
|
110
110
|
shippingAddress2 String?
|
|
@@ -156,7 +156,7 @@ model InstagramProfile {
|
|
|
156
156
|
hasGuides Boolean?
|
|
157
157
|
hasChannel Boolean?
|
|
158
158
|
totalIgtvVideos Int?
|
|
159
|
-
profilePicUrlHd String? @db.VarChar(2083)
|
|
159
|
+
profilePicUrlHd String? @db.VarChar(2083) /// @deprecated
|
|
160
160
|
lastStoriesUpdate DateTime?
|
|
161
161
|
|
|
162
162
|
extraData Json?
|
|
@@ -523,8 +523,8 @@ model Campaign {
|
|
|
523
523
|
minPaidAmount Float?
|
|
524
524
|
maxPaidAmount Float?
|
|
525
525
|
paymentType String?
|
|
526
|
-
monthlyActivatedGoal Int?
|
|
527
|
-
expectedOptIns Int?
|
|
526
|
+
monthlyActivatedGoal Int? /// @deprecated redundant
|
|
527
|
+
expectedOptIns Int? /// @deprecated redundant
|
|
528
528
|
goalActivations Float?
|
|
529
529
|
goalOptIns Float?
|
|
530
530
|
requiresShipping Boolean?
|
|
@@ -780,18 +780,21 @@ model OptIn {
|
|
|
780
780
|
seen Boolean @default(false)
|
|
781
781
|
instructions String? @db.Text
|
|
782
782
|
paymentAmount Float?
|
|
783
|
-
paymentStatus String @default("pending")
|
|
783
|
+
paymentStatus String @default("pending") /// @deprecated join with TrolleyPayment for actual status
|
|
784
784
|
extraData Json @default("{}")
|
|
785
785
|
favoritedDate DateTime?
|
|
786
786
|
rating Json?
|
|
787
787
|
|
|
788
|
-
userId
|
|
789
|
-
campaignId
|
|
790
|
-
currentStepId
|
|
788
|
+
userId Int
|
|
789
|
+
campaignId Int
|
|
790
|
+
currentStepId Int?
|
|
791
|
+
previousOptInId Int? @unique @map("previous_opt_in_id") // for re-opt-ins, this is the original/previous opt-in
|
|
791
792
|
|
|
792
|
-
user
|
|
793
|
-
campaign
|
|
794
|
-
currentStep
|
|
793
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
794
|
+
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
795
|
+
currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
|
|
796
|
+
previousOptIn OptIn? @relation("PreviousOptIn", fields: [previousOptInId], references: [id])
|
|
797
|
+
reOptIn OptIn? @relation("PreviousOptIn")
|
|
795
798
|
|
|
796
799
|
variables OptInVariable[]
|
|
797
800
|
optInSteps OptInStep[]
|
|
@@ -959,7 +962,7 @@ model ArchivedSocialPost {
|
|
|
959
962
|
title String? @db.Text
|
|
960
963
|
description String? @db.Text
|
|
961
964
|
url String? @db.VarChar(2083)
|
|
962
|
-
urlPath String? @unique
|
|
965
|
+
urlPath String? @unique /// @deprecated This is here so we have some external identifier to quickly search by
|
|
963
966
|
format String?
|
|
964
967
|
type String?
|
|
965
968
|
platform String?
|
package/wasm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./index"
|
package/wasm.js
CHANGED
|
@@ -7,6 +7,7 @@ const {
|
|
|
7
7
|
makeStrictEnum,
|
|
8
8
|
Public,
|
|
9
9
|
getRuntime,
|
|
10
|
+
skip
|
|
10
11
|
} = require('./runtime/index-browser.js')
|
|
11
12
|
|
|
12
13
|
|
|
@@ -16,12 +17,12 @@ exports.Prisma = Prisma
|
|
|
16
17
|
exports.$Enums = {}
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
|
-
* Prisma Client JS version: 5.
|
|
20
|
-
* Query Engine version:
|
|
20
|
+
* Prisma Client JS version: 5.22.0
|
|
21
|
+
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
|
21
22
|
*/
|
|
22
23
|
Prisma.prismaVersion = {
|
|
23
|
-
client: "5.
|
|
24
|
-
engine: "
|
|
24
|
+
client: "5.22.0",
|
|
25
|
+
engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
@@ -108,6 +109,8 @@ Prisma.NullTypes = {
|
|
|
108
109
|
AnyNull: objectEnumValues.classes.AnyNull
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
|
|
113
|
+
|
|
111
114
|
/**
|
|
112
115
|
* Enums
|
|
113
116
|
*/
|
|
@@ -567,7 +570,8 @@ exports.Prisma.OptInScalarFieldEnum = {
|
|
|
567
570
|
rating: 'rating',
|
|
568
571
|
userId: 'userId',
|
|
569
572
|
campaignId: 'campaignId',
|
|
570
|
-
currentStepId: 'currentStepId'
|
|
573
|
+
currentStepId: 'currentStepId',
|
|
574
|
+
previousOptInId: 'previousOptInId'
|
|
571
575
|
};
|
|
572
576
|
|
|
573
577
|
exports.Prisma.TrolleyPaymentScalarFieldEnum = {
|