@creator.co/creatorco-prisma-client 1.0.23 → 1.0.24-alpha-28b252a
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 +69 -5
- package/index-browser.js +65 -1
- package/index.d.ts +7158 -398
- package/index.js +69 -5
- package/package.json +1 -1
- package/schema.prisma +72 -0
- package/wasm.js +65 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -342,6 +342,7 @@ model Brand {
|
|
|
342
342
|
creatorsearchfilter CreatorSearchFilter[]
|
|
343
343
|
sequences Sequence[]
|
|
344
344
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
345
|
+
shopifyStores ShopifyStore[]
|
|
345
346
|
|
|
346
347
|
// for agencies
|
|
347
348
|
parentBrandId Int?
|
|
@@ -518,6 +519,7 @@ model Campaign {
|
|
|
518
519
|
campaignPins CampaignPin[]
|
|
519
520
|
socialPosts SocialPost[]
|
|
520
521
|
campaignInvites CampaignInvite[]
|
|
522
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
521
523
|
|
|
522
524
|
brandId Int
|
|
523
525
|
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
@@ -974,6 +976,7 @@ model CreatorList {
|
|
|
974
976
|
campaign Campaign? @relation(fields: [campaignId], references: [id])
|
|
975
977
|
sequences Sequence[]
|
|
976
978
|
|
|
979
|
+
@@index ([brandId])
|
|
977
980
|
@@map("creatorlist")
|
|
978
981
|
}
|
|
979
982
|
|
|
@@ -1221,4 +1224,73 @@ model SequenceImapCheckpoint {
|
|
|
1221
1224
|
|
|
1222
1225
|
@@id([sequenceId, creatorListItemId])
|
|
1223
1226
|
@@map("sequenceimapcheckpoint")
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
model ShopifyStore {
|
|
1230
|
+
id Int @id @default(autoincrement())
|
|
1231
|
+
name String?
|
|
1232
|
+
url String
|
|
1233
|
+
accessToken String? @map("access_token")
|
|
1234
|
+
syncStatus ShopifyStoreSyncStatus @default(syncing) @map("sync_status")
|
|
1235
|
+
lastSynced DateTime? @map("last_synced")
|
|
1236
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1237
|
+
|
|
1238
|
+
brandId Int @map("brand_id")
|
|
1239
|
+
|
|
1240
|
+
products ShopifyProduct[]
|
|
1241
|
+
|
|
1242
|
+
brand Brand? @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1243
|
+
|
|
1244
|
+
@@map("shopify_store")
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
enum ShopifyStoreSyncStatus {
|
|
1248
|
+
syncing
|
|
1249
|
+
synced
|
|
1250
|
+
error
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
model ShopifyProduct {
|
|
1254
|
+
id Int @id @default(autoincrement())
|
|
1255
|
+
shopifyId String @unique @map("shopify_id")
|
|
1256
|
+
title String
|
|
1257
|
+
handle String
|
|
1258
|
+
imageUrl String @db.Text @map("image_url")
|
|
1259
|
+
|
|
1260
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1261
|
+
|
|
1262
|
+
shopifyStoreId Int @map("shopify_store_id")
|
|
1263
|
+
|
|
1264
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
1265
|
+
variations ShopifyProductVariation[]
|
|
1266
|
+
|
|
1267
|
+
shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id], onDelete: Cascade)
|
|
1268
|
+
|
|
1269
|
+
@@map("shopify_product")
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
model ShopifyProductVariation {
|
|
1273
|
+
id Int @id @default(autoincrement())
|
|
1274
|
+
shopifyId String @unique @map("shopify_id")
|
|
1275
|
+
title String
|
|
1276
|
+
imageUrl String @db.Text @map("image_url")
|
|
1277
|
+
|
|
1278
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1279
|
+
|
|
1280
|
+
shopifyProductId Int @map("shopify_product_id")
|
|
1281
|
+
|
|
1282
|
+
shopifyProduct ShopifyProduct @relation(fields: [shopifyProductId], references: [id], onDelete: Cascade)
|
|
1283
|
+
|
|
1284
|
+
@@map("shopify_product_variation")
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
model CampaignToShopifyProduct {
|
|
1288
|
+
campaignId Int @map("campaign_id")
|
|
1289
|
+
shopifyProductId Int @map("shopify_product_id")
|
|
1290
|
+
|
|
1291
|
+
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
1292
|
+
shopifyProduct ShopifyProduct @relation(fields: [shopifyProductId], references: [id], onDelete: Cascade)
|
|
1293
|
+
|
|
1294
|
+
@@id([campaignId, shopifyProductId])
|
|
1295
|
+
@@map("campaign_to_shopify_product")
|
|
1224
1296
|
}
|
package/wasm.js
CHANGED
|
@@ -849,6 +849,41 @@ exports.Prisma.SequenceImapCheckpointScalarFieldEnum = {
|
|
|
849
849
|
updatedAt: 'updatedAt'
|
|
850
850
|
};
|
|
851
851
|
|
|
852
|
+
exports.Prisma.ShopifyStoreScalarFieldEnum = {
|
|
853
|
+
id: 'id',
|
|
854
|
+
name: 'name',
|
|
855
|
+
url: 'url',
|
|
856
|
+
accessToken: 'accessToken',
|
|
857
|
+
syncStatus: 'syncStatus',
|
|
858
|
+
lastSynced: 'lastSynced',
|
|
859
|
+
metaData: 'metaData',
|
|
860
|
+
brandId: 'brandId'
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
exports.Prisma.ShopifyProductScalarFieldEnum = {
|
|
864
|
+
id: 'id',
|
|
865
|
+
shopifyId: 'shopifyId',
|
|
866
|
+
title: 'title',
|
|
867
|
+
handle: 'handle',
|
|
868
|
+
imageUrl: 'imageUrl',
|
|
869
|
+
metaData: 'metaData',
|
|
870
|
+
shopifyStoreId: 'shopifyStoreId'
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
exports.Prisma.ShopifyProductVariationScalarFieldEnum = {
|
|
874
|
+
id: 'id',
|
|
875
|
+
shopifyId: 'shopifyId',
|
|
876
|
+
title: 'title',
|
|
877
|
+
imageUrl: 'imageUrl',
|
|
878
|
+
metaData: 'metaData',
|
|
879
|
+
shopifyProductId: 'shopifyProductId'
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
|
|
883
|
+
campaignId: 'campaignId',
|
|
884
|
+
shopifyProductId: 'shopifyProductId'
|
|
885
|
+
};
|
|
886
|
+
|
|
852
887
|
exports.Prisma.SortOrder = {
|
|
853
888
|
asc: 'asc',
|
|
854
889
|
desc: 'desc'
|
|
@@ -1175,6 +1210,25 @@ exports.Prisma.SequenceOrderByRelevanceFieldEnum = {
|
|
|
1175
1210
|
exports.Prisma.SequenceInboundEmailOrderByRelevanceFieldEnum = {
|
|
1176
1211
|
msgHash: 'msgHash'
|
|
1177
1212
|
};
|
|
1213
|
+
|
|
1214
|
+
exports.Prisma.ShopifyStoreOrderByRelevanceFieldEnum = {
|
|
1215
|
+
name: 'name',
|
|
1216
|
+
url: 'url',
|
|
1217
|
+
accessToken: 'accessToken'
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
|
|
1221
|
+
shopifyId: 'shopifyId',
|
|
1222
|
+
title: 'title',
|
|
1223
|
+
handle: 'handle',
|
|
1224
|
+
imageUrl: 'imageUrl'
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
|
|
1228
|
+
shopifyId: 'shopifyId',
|
|
1229
|
+
title: 'title',
|
|
1230
|
+
imageUrl: 'imageUrl'
|
|
1231
|
+
};
|
|
1178
1232
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1179
1233
|
optIn: 'optIn',
|
|
1180
1234
|
tip: 'tip',
|
|
@@ -1189,6 +1243,12 @@ exports.trolleyPaymentStatus = exports.$Enums.trolleyPaymentStatus = {
|
|
|
1189
1243
|
returned: 'returned'
|
|
1190
1244
|
};
|
|
1191
1245
|
|
|
1246
|
+
exports.ShopifyStoreSyncStatus = exports.$Enums.ShopifyStoreSyncStatus = {
|
|
1247
|
+
syncing: 'syncing',
|
|
1248
|
+
synced: 'synced',
|
|
1249
|
+
error: 'error'
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1192
1252
|
exports.Prisma.ModelName = {
|
|
1193
1253
|
User: 'User',
|
|
1194
1254
|
Log: 'Log',
|
|
@@ -1249,7 +1309,11 @@ exports.Prisma.ModelName = {
|
|
|
1249
1309
|
SequenceStep: 'SequenceStep',
|
|
1250
1310
|
SequenceOutboundEmail: 'SequenceOutboundEmail',
|
|
1251
1311
|
SequenceInboundEmail: 'SequenceInboundEmail',
|
|
1252
|
-
SequenceImapCheckpoint: 'SequenceImapCheckpoint'
|
|
1312
|
+
SequenceImapCheckpoint: 'SequenceImapCheckpoint',
|
|
1313
|
+
ShopifyStore: 'ShopifyStore',
|
|
1314
|
+
ShopifyProduct: 'ShopifyProduct',
|
|
1315
|
+
ShopifyProductVariation: 'ShopifyProductVariation',
|
|
1316
|
+
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1253
1317
|
};
|
|
1254
1318
|
|
|
1255
1319
|
/**
|