@creator.co/creatorco-prisma-client 1.0.22-alpha-f7bb6e5 → 1.0.22-alpha-a3bca2f
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 +73 -5
- package/index-browser.js +69 -1
- package/index.d.ts +7240 -398
- package/index.js +73 -5
- package/package.json +1 -1
- package/schema.prisma +73 -0
- package/wasm.js +69 -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)
|
|
@@ -1221,4 +1223,75 @@ model SequenceImapCheckpoint {
|
|
|
1221
1223
|
|
|
1222
1224
|
@@id([sequenceId, creatorListItemId])
|
|
1223
1225
|
@@map("sequenceimapcheckpoint")
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
model ShopifyStore {
|
|
1229
|
+
id Int @id @default(autoincrement())
|
|
1230
|
+
shopifyId String? @unique @map("shopify_id")
|
|
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])
|
|
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
|
+
shopifyProductId String @unique @map("shopify_product_id")
|
|
1260
|
+
|
|
1261
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1262
|
+
|
|
1263
|
+
shopifyStoreId Int @map("shopify_store_id")
|
|
1264
|
+
|
|
1265
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
1266
|
+
variations ShopifyProductVariation[]
|
|
1267
|
+
|
|
1268
|
+
shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id])
|
|
1269
|
+
|
|
1270
|
+
@@map("shopify_product")
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
model ShopifyProductVariation {
|
|
1274
|
+
id Int @id @default(autoincrement())
|
|
1275
|
+
shopifyId String @unique @map("shopify_id")
|
|
1276
|
+
title String
|
|
1277
|
+
imageUrl String @db.Text @map("image_url")
|
|
1278
|
+
|
|
1279
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1280
|
+
|
|
1281
|
+
shopifyProductId Int @map("shopify_product_id")
|
|
1282
|
+
|
|
1283
|
+
shopifyProduct ShopifyProduct @relation(fields: [shopifyProductId], references: [id])
|
|
1284
|
+
|
|
1285
|
+
@@map("shopify_product_variation")
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
model CampaignToShopifyProduct {
|
|
1289
|
+
campaignId Int @map("campaign_id")
|
|
1290
|
+
shopifyProductId Int @map("shopify_product_id")
|
|
1291
|
+
|
|
1292
|
+
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
1293
|
+
shopifyProduct ShopifyProduct @relation(fields: [shopifyProductId], references: [id], onDelete: Cascade)
|
|
1294
|
+
|
|
1295
|
+
@@id([campaignId, shopifyProductId])
|
|
1296
|
+
@@map("campaign_to_shopify_product")
|
|
1224
1297
|
}
|
package/wasm.js
CHANGED
|
@@ -849,6 +849,43 @@ exports.Prisma.SequenceImapCheckpointScalarFieldEnum = {
|
|
|
849
849
|
updatedAt: 'updatedAt'
|
|
850
850
|
};
|
|
851
851
|
|
|
852
|
+
exports.Prisma.ShopifyStoreScalarFieldEnum = {
|
|
853
|
+
id: 'id',
|
|
854
|
+
shopifyId: 'shopifyId',
|
|
855
|
+
name: 'name',
|
|
856
|
+
url: 'url',
|
|
857
|
+
accessToken: 'accessToken',
|
|
858
|
+
syncStatus: 'syncStatus',
|
|
859
|
+
lastSynced: 'lastSynced',
|
|
860
|
+
metaData: 'metaData',
|
|
861
|
+
brandId: 'brandId'
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
exports.Prisma.ShopifyProductScalarFieldEnum = {
|
|
865
|
+
id: 'id',
|
|
866
|
+
shopifyId: 'shopifyId',
|
|
867
|
+
title: 'title',
|
|
868
|
+
handle: 'handle',
|
|
869
|
+
imageUrl: 'imageUrl',
|
|
870
|
+
shopifyProductId: 'shopifyProductId',
|
|
871
|
+
metaData: 'metaData',
|
|
872
|
+
shopifyStoreId: 'shopifyStoreId'
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
exports.Prisma.ShopifyProductVariationScalarFieldEnum = {
|
|
876
|
+
id: 'id',
|
|
877
|
+
shopifyId: 'shopifyId',
|
|
878
|
+
title: 'title',
|
|
879
|
+
imageUrl: 'imageUrl',
|
|
880
|
+
metaData: 'metaData',
|
|
881
|
+
shopifyProductId: 'shopifyProductId'
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
|
|
885
|
+
campaignId: 'campaignId',
|
|
886
|
+
shopifyProductId: 'shopifyProductId'
|
|
887
|
+
};
|
|
888
|
+
|
|
852
889
|
exports.Prisma.SortOrder = {
|
|
853
890
|
asc: 'asc',
|
|
854
891
|
desc: 'desc'
|
|
@@ -1175,6 +1212,27 @@ exports.Prisma.SequenceOrderByRelevanceFieldEnum = {
|
|
|
1175
1212
|
exports.Prisma.SequenceInboundEmailOrderByRelevanceFieldEnum = {
|
|
1176
1213
|
msgHash: 'msgHash'
|
|
1177
1214
|
};
|
|
1215
|
+
|
|
1216
|
+
exports.Prisma.ShopifyStoreOrderByRelevanceFieldEnum = {
|
|
1217
|
+
shopifyId: 'shopifyId',
|
|
1218
|
+
name: 'name',
|
|
1219
|
+
url: 'url',
|
|
1220
|
+
accessToken: 'accessToken'
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1223
|
+
exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
|
|
1224
|
+
shopifyId: 'shopifyId',
|
|
1225
|
+
title: 'title',
|
|
1226
|
+
handle: 'handle',
|
|
1227
|
+
imageUrl: 'imageUrl',
|
|
1228
|
+
shopifyProductId: 'shopifyProductId'
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
|
|
1232
|
+
shopifyId: 'shopifyId',
|
|
1233
|
+
title: 'title',
|
|
1234
|
+
imageUrl: 'imageUrl'
|
|
1235
|
+
};
|
|
1178
1236
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1179
1237
|
optIn: 'optIn',
|
|
1180
1238
|
tip: 'tip',
|
|
@@ -1189,6 +1247,12 @@ exports.trolleyPaymentStatus = exports.$Enums.trolleyPaymentStatus = {
|
|
|
1189
1247
|
returned: 'returned'
|
|
1190
1248
|
};
|
|
1191
1249
|
|
|
1250
|
+
exports.ShopifyStoreSyncStatus = exports.$Enums.ShopifyStoreSyncStatus = {
|
|
1251
|
+
syncing: 'syncing',
|
|
1252
|
+
synced: 'synced',
|
|
1253
|
+
error: 'error'
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1192
1256
|
exports.Prisma.ModelName = {
|
|
1193
1257
|
User: 'User',
|
|
1194
1258
|
Log: 'Log',
|
|
@@ -1249,7 +1313,11 @@ exports.Prisma.ModelName = {
|
|
|
1249
1313
|
SequenceStep: 'SequenceStep',
|
|
1250
1314
|
SequenceOutboundEmail: 'SequenceOutboundEmail',
|
|
1251
1315
|
SequenceInboundEmail: 'SequenceInboundEmail',
|
|
1252
|
-
SequenceImapCheckpoint: 'SequenceImapCheckpoint'
|
|
1316
|
+
SequenceImapCheckpoint: 'SequenceImapCheckpoint',
|
|
1317
|
+
ShopifyStore: 'ShopifyStore',
|
|
1318
|
+
ShopifyProduct: 'ShopifyProduct',
|
|
1319
|
+
ShopifyProductVariation: 'ShopifyProductVariation',
|
|
1320
|
+
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1253
1321
|
};
|
|
1254
1322
|
|
|
1255
1323
|
/**
|