@creator.co/creatorco-prisma-client 1.0.18 → 1.0.20-alpha-995a7a0
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 +50 -18
- package/index-browser.js +46 -14
- package/index.d.ts +13587 -11249
- package/index.js +50 -18
- package/package.json +1 -1
- package/schema.prisma +48 -18
- package/wasm.js +46 -14
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -69,7 +69,8 @@ model User {
|
|
|
69
69
|
socialProfiles SocialProfile[]
|
|
70
70
|
rakutenActivity RakutenActivity[]
|
|
71
71
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
72
|
-
|
|
72
|
+
|
|
73
|
+
@@index([phoneCode, phone])
|
|
73
74
|
@@map("user")
|
|
74
75
|
// @@fulltext([firstName, lastName])
|
|
75
76
|
}
|
|
@@ -340,6 +341,7 @@ model Brand {
|
|
|
340
341
|
creatorsearchfilter CreatorSearchFilter[]
|
|
341
342
|
sequences Sequence[]
|
|
342
343
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
344
|
+
shopifyStores ShopifyStore[]
|
|
343
345
|
|
|
344
346
|
// for agencies
|
|
345
347
|
parentBrandId Int?
|
|
@@ -696,6 +698,7 @@ model OptIn {
|
|
|
696
698
|
chat Chat?
|
|
697
699
|
campaignInvites CampaignInvite[]
|
|
698
700
|
trolleyPayments TrolleyPayment[]
|
|
701
|
+
affiliateClicks AffiliateClick[]
|
|
699
702
|
|
|
700
703
|
@@index([userId])
|
|
701
704
|
@@index([campaignId])
|
|
@@ -707,11 +710,11 @@ model TrolleyPayment {
|
|
|
707
710
|
paymentId String @unique
|
|
708
711
|
type trolleyPaymentType?
|
|
709
712
|
status trolleyPaymentStatus
|
|
710
|
-
optInId Int
|
|
713
|
+
optInId Int?
|
|
711
714
|
paymentAmount Int
|
|
712
715
|
metaData Json @default("{}")
|
|
713
716
|
|
|
714
|
-
optIn OptIn
|
|
717
|
+
optIn OptIn? @relation(fields: [optInId], references:[id])
|
|
715
718
|
}
|
|
716
719
|
|
|
717
720
|
enum trolleyPaymentType {
|
|
@@ -787,8 +790,6 @@ model SocialPost {
|
|
|
787
790
|
campaign Campaign? @relation(fields: [campaignId], references: [id])
|
|
788
791
|
lists ListToSocialPost[]
|
|
789
792
|
|
|
790
|
-
socialPostTags SocialPostTag[]
|
|
791
|
-
|
|
792
793
|
@@index(campaignId)
|
|
793
794
|
@@index(userId)
|
|
794
795
|
@@index(posted)
|
|
@@ -796,19 +797,6 @@ model SocialPost {
|
|
|
796
797
|
@@map("socialpost")
|
|
797
798
|
}
|
|
798
799
|
|
|
799
|
-
model SocialPostTag {
|
|
800
|
-
id Int @id @default(autoincrement())
|
|
801
|
-
title String
|
|
802
|
-
type String
|
|
803
|
-
|
|
804
|
-
socialPostId Int
|
|
805
|
-
|
|
806
|
-
socialPost SocialPost @relation(fields: [socialPostId], references: [id])
|
|
807
|
-
|
|
808
|
-
@@index([title, type])
|
|
809
|
-
@@map("socialposttag")
|
|
810
|
-
}
|
|
811
|
-
|
|
812
800
|
model Image {
|
|
813
801
|
id Int @id @default(autoincrement())
|
|
814
802
|
url String @db.VarChar(2083)
|
|
@@ -910,10 +898,12 @@ model AffiliateClick {
|
|
|
910
898
|
id Int @id @default(autoincrement())
|
|
911
899
|
created DateTime @default(now())
|
|
912
900
|
visitorIp String?
|
|
901
|
+
optInId Int
|
|
913
902
|
metaData Json @default("{}")
|
|
914
903
|
|
|
915
904
|
affiliateLinkId Int
|
|
916
905
|
|
|
906
|
+
optin OptIn @relation(fields: [optInId], references: [id])
|
|
917
907
|
affiliateLink AffiliateLink @relation(fields: [affiliateLinkId], references: [id])
|
|
918
908
|
affiliateEvent AffiliateEvent[]
|
|
919
909
|
}
|
|
@@ -1094,6 +1084,7 @@ model ListToSocialPost {
|
|
|
1094
1084
|
socialPost SocialPost @relation(fields: [postId], references: [id], onDelete: Cascade)
|
|
1095
1085
|
|
|
1096
1086
|
@@index([listId, postId])
|
|
1087
|
+
@@index([postId])
|
|
1097
1088
|
@@map("listtosocialpost")
|
|
1098
1089
|
}
|
|
1099
1090
|
|
|
@@ -1229,4 +1220,43 @@ model SequenceImapCheckpoint {
|
|
|
1229
1220
|
|
|
1230
1221
|
@@id([sequenceId, creatorListItemId])
|
|
1231
1222
|
@@map("sequenceimapcheckpoint")
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
model ShopifyStore {
|
|
1226
|
+
id Int @id @default(autoincrement())
|
|
1227
|
+
shopifyId String @unique
|
|
1228
|
+
name String
|
|
1229
|
+
url String
|
|
1230
|
+
accessToken String
|
|
1231
|
+
metaData Json @default("{}")
|
|
1232
|
+
|
|
1233
|
+
brandId Int
|
|
1234
|
+
|
|
1235
|
+
products ShopifyProduct[]
|
|
1236
|
+
|
|
1237
|
+
brand Brand @relation(fields: [brandId], references: [id])
|
|
1238
|
+
|
|
1239
|
+
@@map("shopify_store")
|
|
1240
|
+
}
|
|
1241
|
+
model ShopifyProduct {
|
|
1242
|
+
id Int @id @default(autoincrement())
|
|
1243
|
+
shopifyId String @unique
|
|
1244
|
+
title String
|
|
1245
|
+
handle String
|
|
1246
|
+
createdAt DateTime?
|
|
1247
|
+
updatedAt DateTime?
|
|
1248
|
+
|
|
1249
|
+
description String? @db.Text
|
|
1250
|
+
price Float
|
|
1251
|
+
tags String? @db.Text
|
|
1252
|
+
status String
|
|
1253
|
+
metaData Json @default("{}")
|
|
1254
|
+
|
|
1255
|
+
lastSynced DateTime @default(now())
|
|
1256
|
+
|
|
1257
|
+
shopifyStoreId Int
|
|
1258
|
+
|
|
1259
|
+
shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id])
|
|
1260
|
+
|
|
1261
|
+
@@map("shopify_product")
|
|
1232
1262
|
}
|
package/wasm.js
CHANGED
|
@@ -569,13 +569,6 @@ exports.Prisma.SocialPostScalarFieldEnum = {
|
|
|
569
569
|
campaignId: 'campaignId'
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
exports.Prisma.SocialPostTagScalarFieldEnum = {
|
|
573
|
-
id: 'id',
|
|
574
|
-
title: 'title',
|
|
575
|
-
type: 'type',
|
|
576
|
-
socialPostId: 'socialPostId'
|
|
577
|
-
};
|
|
578
|
-
|
|
579
572
|
exports.Prisma.ImageScalarFieldEnum = {
|
|
580
573
|
id: 'id',
|
|
581
574
|
url: 'url',
|
|
@@ -640,6 +633,7 @@ exports.Prisma.AffiliateClickScalarFieldEnum = {
|
|
|
640
633
|
id: 'id',
|
|
641
634
|
created: 'created',
|
|
642
635
|
visitorIp: 'visitorIp',
|
|
636
|
+
optInId: 'optInId',
|
|
643
637
|
metaData: 'metaData',
|
|
644
638
|
affiliateLinkId: 'affiliateLinkId'
|
|
645
639
|
};
|
|
@@ -842,6 +836,32 @@ exports.Prisma.SequenceImapCheckpointScalarFieldEnum = {
|
|
|
842
836
|
updatedAt: 'updatedAt'
|
|
843
837
|
};
|
|
844
838
|
|
|
839
|
+
exports.Prisma.ShopifyStoreScalarFieldEnum = {
|
|
840
|
+
id: 'id',
|
|
841
|
+
shopifyId: 'shopifyId',
|
|
842
|
+
name: 'name',
|
|
843
|
+
url: 'url',
|
|
844
|
+
accessToken: 'accessToken',
|
|
845
|
+
metaData: 'metaData',
|
|
846
|
+
brandId: 'brandId'
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
exports.Prisma.ShopifyProductScalarFieldEnum = {
|
|
850
|
+
id: 'id',
|
|
851
|
+
shopifyId: 'shopifyId',
|
|
852
|
+
title: 'title',
|
|
853
|
+
handle: 'handle',
|
|
854
|
+
createdAt: 'createdAt',
|
|
855
|
+
updatedAt: 'updatedAt',
|
|
856
|
+
description: 'description',
|
|
857
|
+
price: 'price',
|
|
858
|
+
tags: 'tags',
|
|
859
|
+
status: 'status',
|
|
860
|
+
metaData: 'metaData',
|
|
861
|
+
lastSynced: 'lastSynced',
|
|
862
|
+
shopifyStoreId: 'shopifyStoreId'
|
|
863
|
+
};
|
|
864
|
+
|
|
845
865
|
exports.Prisma.SortOrder = {
|
|
846
866
|
asc: 'asc',
|
|
847
867
|
desc: 'desc'
|
|
@@ -1060,11 +1080,6 @@ exports.Prisma.SocialPostOrderByRelevanceFieldEnum = {
|
|
|
1060
1080
|
visibility: 'visibility'
|
|
1061
1081
|
};
|
|
1062
1082
|
|
|
1063
|
-
exports.Prisma.SocialPostTagOrderByRelevanceFieldEnum = {
|
|
1064
|
-
title: 'title',
|
|
1065
|
-
type: 'type'
|
|
1066
|
-
};
|
|
1067
|
-
|
|
1068
1083
|
exports.Prisma.ImageOrderByRelevanceFieldEnum = {
|
|
1069
1084
|
url: 'url',
|
|
1070
1085
|
size: 'size'
|
|
@@ -1173,6 +1188,22 @@ exports.Prisma.SequenceOrderByRelevanceFieldEnum = {
|
|
|
1173
1188
|
exports.Prisma.SequenceInboundEmailOrderByRelevanceFieldEnum = {
|
|
1174
1189
|
msgHash: 'msgHash'
|
|
1175
1190
|
};
|
|
1191
|
+
|
|
1192
|
+
exports.Prisma.ShopifyStoreOrderByRelevanceFieldEnum = {
|
|
1193
|
+
shopifyId: 'shopifyId',
|
|
1194
|
+
name: 'name',
|
|
1195
|
+
url: 'url',
|
|
1196
|
+
accessToken: 'accessToken'
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
|
|
1200
|
+
shopifyId: 'shopifyId',
|
|
1201
|
+
title: 'title',
|
|
1202
|
+
handle: 'handle',
|
|
1203
|
+
description: 'description',
|
|
1204
|
+
tags: 'tags',
|
|
1205
|
+
status: 'status'
|
|
1206
|
+
};
|
|
1176
1207
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1177
1208
|
optIn: 'optIn',
|
|
1178
1209
|
tip: 'tip',
|
|
@@ -1221,7 +1252,6 @@ exports.Prisma.ModelName = {
|
|
|
1221
1252
|
TrolleyPayment: 'TrolleyPayment',
|
|
1222
1253
|
OptInVariable: 'OptInVariable',
|
|
1223
1254
|
SocialPost: 'SocialPost',
|
|
1224
|
-
SocialPostTag: 'SocialPostTag',
|
|
1225
1255
|
Image: 'Image',
|
|
1226
1256
|
BrandImage: 'BrandImage',
|
|
1227
1257
|
Country: 'Country',
|
|
@@ -1248,7 +1278,9 @@ exports.Prisma.ModelName = {
|
|
|
1248
1278
|
SequenceStep: 'SequenceStep',
|
|
1249
1279
|
SequenceOutboundEmail: 'SequenceOutboundEmail',
|
|
1250
1280
|
SequenceInboundEmail: 'SequenceInboundEmail',
|
|
1251
|
-
SequenceImapCheckpoint: 'SequenceImapCheckpoint'
|
|
1281
|
+
SequenceImapCheckpoint: 'SequenceImapCheckpoint',
|
|
1282
|
+
ShopifyStore: 'ShopifyStore',
|
|
1283
|
+
ShopifyProduct: 'ShopifyProduct'
|
|
1252
1284
|
};
|
|
1253
1285
|
|
|
1254
1286
|
/**
|