@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/schema.prisma CHANGED
@@ -1,8 +1,8 @@
1
- generator erd {
2
- provider = "prisma-erd-generator"
3
- includeRelationFromFields = true
4
- output = "../../docs/creatorco_erd.md"
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? // deprecated
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) // DEPRECATED
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? // Redundant/Deprecated
527
- expectedOptIns Int? // Redundant/Deprecated
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") // depracated -- refer to trolley payment table
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 Int
789
- campaignId Int
790
- currentStepId Int?
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 User @relation(fields: [userId], references: [id], onDelete: Cascade)
793
- campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
794
- currentStep CampaignStep? @relation(fields: [currentStepId], references: [id])
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 // DEPRECATED: This is here so we have some external identifier to quickly search by
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 './index'
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.15.0
20
- * Query Engine version: 12e25d8d06f6ea5a0252864dd9a03b1bb51f3022
20
+ * Prisma Client JS version: 5.22.0
21
+ * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
21
22
  */
22
23
  Prisma.prismaVersion = {
23
- client: "5.15.0",
24
- engine: "12e25d8d06f6ea5a0252864dd9a03b1bb51f3022"
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 = {