@creator.co/creatorco-prisma-client 1.0.33-alpha-dde3fcf → 1.0.34-alpha-925d6bb
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 +11 -5
- package/index-browser.js +7 -1
- package/index.d.ts +2330 -567
- package/index.js +11 -5
- package/package.json +1 -1
- package/schema.prisma +17 -4
- package/wasm.js +7 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -344,6 +344,7 @@ model Brand {
|
|
|
344
344
|
sequences Sequence[]
|
|
345
345
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
346
346
|
shopifyStores ShopifyStore[]
|
|
347
|
+
variables Variable[]
|
|
347
348
|
|
|
348
349
|
// for agencies
|
|
349
350
|
parentBrandId Int?
|
|
@@ -516,7 +517,7 @@ model Campaign {
|
|
|
516
517
|
categories CampaignToCategory[]
|
|
517
518
|
optIns OptIn[]
|
|
518
519
|
images CampaignToImage[]
|
|
519
|
-
variables
|
|
520
|
+
variables CampaignToVariable[]
|
|
520
521
|
countries CampaignToCountry[]
|
|
521
522
|
campaignPins CampaignPin[]
|
|
522
523
|
socialPosts SocialPost[]
|
|
@@ -583,15 +584,28 @@ model CampaignToCountry {
|
|
|
583
584
|
@@map("campaigntocountry")
|
|
584
585
|
}
|
|
585
586
|
|
|
587
|
+
model CampaignToVariable {
|
|
588
|
+
campaignId Int
|
|
589
|
+
variableId Int
|
|
590
|
+
|
|
591
|
+
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
592
|
+
variable Variable @relation(fields: [variableId], references: [id])
|
|
593
|
+
|
|
594
|
+
@@id([campaignId, variableId])
|
|
595
|
+
@@map("campaigntovariable")
|
|
596
|
+
}
|
|
597
|
+
|
|
586
598
|
model Variable {
|
|
587
599
|
id Int @id @default(autoincrement())
|
|
588
600
|
title String
|
|
589
601
|
description String? @db.Text
|
|
590
602
|
metaData Json @default("{}")
|
|
591
603
|
|
|
592
|
-
|
|
604
|
+
brandId Int
|
|
593
605
|
|
|
594
|
-
|
|
606
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
607
|
+
|
|
608
|
+
campaignVariables CampaignToVariable[]
|
|
595
609
|
|
|
596
610
|
options VariableOption[]
|
|
597
611
|
optInVariables OptInVariable[]
|
|
@@ -737,7 +751,6 @@ enum trolleyPaymentStatus {
|
|
|
737
751
|
returned
|
|
738
752
|
}
|
|
739
753
|
|
|
740
|
-
|
|
741
754
|
model OptInVariable {
|
|
742
755
|
id Int @id @default(autoincrement())
|
|
743
756
|
|
package/wasm.js
CHANGED
|
@@ -458,12 +458,17 @@ exports.Prisma.CampaignToCountryScalarFieldEnum = {
|
|
|
458
458
|
countryId: 'countryId'
|
|
459
459
|
};
|
|
460
460
|
|
|
461
|
+
exports.Prisma.CampaignToVariableScalarFieldEnum = {
|
|
462
|
+
campaignId: 'campaignId',
|
|
463
|
+
variableId: 'variableId'
|
|
464
|
+
};
|
|
465
|
+
|
|
461
466
|
exports.Prisma.VariableScalarFieldEnum = {
|
|
462
467
|
id: 'id',
|
|
463
468
|
title: 'title',
|
|
464
469
|
description: 'description',
|
|
465
470
|
metaData: 'metaData',
|
|
466
|
-
|
|
471
|
+
brandId: 'brandId'
|
|
467
472
|
};
|
|
468
473
|
|
|
469
474
|
exports.Prisma.VariableOptionScalarFieldEnum = {
|
|
@@ -1281,6 +1286,7 @@ exports.Prisma.ModelName = {
|
|
|
1281
1286
|
CampaignToImage: 'CampaignToImage',
|
|
1282
1287
|
CampaignToCategory: 'CampaignToCategory',
|
|
1283
1288
|
CampaignToCountry: 'CampaignToCountry',
|
|
1289
|
+
CampaignToVariable: 'CampaignToVariable',
|
|
1284
1290
|
Variable: 'Variable',
|
|
1285
1291
|
VariableOption: 'VariableOption',
|
|
1286
1292
|
Step: 'Step',
|