@creator.co/creatorco-prisma-client 1.0.22-alpha-a3bca2f → 1.0.22-alpha-15b27e5

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/package.json CHANGED
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "./*": "./*"
75
75
  },
76
- "version": "1.0.22-alpha-a3bca2f",
76
+ "version": "1.0.22-alpha-15b27e5",
77
77
  "sideEffects": false,
78
78
  "description": "Prisma client for creatorco Database"
79
79
  }
package/schema.prisma CHANGED
@@ -342,7 +342,6 @@ model Brand {
342
342
  creatorsearchfilter CreatorSearchFilter[]
343
343
  sequences Sequence[]
344
344
  impactRadiusEvents ImpactRadiusEvent[]
345
- shopifyStores ShopifyStore[]
346
345
 
347
346
  // for agencies
348
347
  parentBrandId Int?
@@ -519,7 +518,6 @@ model Campaign {
519
518
  campaignPins CampaignPin[]
520
519
  socialPosts SocialPost[]
521
520
  campaignInvites CampaignInvite[]
522
- campaignToShopifyProducts CampaignToShopifyProduct[]
523
521
 
524
522
  brandId Int
525
523
  brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
@@ -1223,75 +1221,4 @@ model SequenceImapCheckpoint {
1223
1221
 
1224
1222
  @@id([sequenceId, creatorListItemId])
1225
1223
  @@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")
1297
1224
  }
package/wasm.js CHANGED
@@ -849,43 +849,6 @@ 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
-
889
852
  exports.Prisma.SortOrder = {
890
853
  asc: 'asc',
891
854
  desc: 'desc'
@@ -1212,27 +1175,6 @@ exports.Prisma.SequenceOrderByRelevanceFieldEnum = {
1212
1175
  exports.Prisma.SequenceInboundEmailOrderByRelevanceFieldEnum = {
1213
1176
  msgHash: 'msgHash'
1214
1177
  };
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
- };
1236
1178
  exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1237
1179
  optIn: 'optIn',
1238
1180
  tip: 'tip',
@@ -1247,12 +1189,6 @@ exports.trolleyPaymentStatus = exports.$Enums.trolleyPaymentStatus = {
1247
1189
  returned: 'returned'
1248
1190
  };
1249
1191
 
1250
- exports.ShopifyStoreSyncStatus = exports.$Enums.ShopifyStoreSyncStatus = {
1251
- syncing: 'syncing',
1252
- synced: 'synced',
1253
- error: 'error'
1254
- };
1255
-
1256
1192
  exports.Prisma.ModelName = {
1257
1193
  User: 'User',
1258
1194
  Log: 'Log',
@@ -1313,11 +1249,7 @@ exports.Prisma.ModelName = {
1313
1249
  SequenceStep: 'SequenceStep',
1314
1250
  SequenceOutboundEmail: 'SequenceOutboundEmail',
1315
1251
  SequenceInboundEmail: 'SequenceInboundEmail',
1316
- SequenceImapCheckpoint: 'SequenceImapCheckpoint',
1317
- ShopifyStore: 'ShopifyStore',
1318
- ShopifyProduct: 'ShopifyProduct',
1319
- ShopifyProductVariation: 'ShopifyProductVariation',
1320
- CampaignToShopifyProduct: 'CampaignToShopifyProduct'
1252
+ SequenceImapCheckpoint: 'SequenceImapCheckpoint'
1321
1253
  };
1322
1254
 
1323
1255
  /**