@creator.co/creatorco-prisma-client 1.0.21-alpha-f0d1b14 → 1.0.22-alpha-6b3aed6
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 +12 -12
- package/index-browser.js +8 -8
- package/index.d.ts +1812 -754
- package/index.js +12 -12
- package/package.json +1 -1
- package/schema.prisma +13 -6
- package/wasm.js +8 -8
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -518,7 +518,7 @@ model Campaign {
|
|
|
518
518
|
campaignPins CampaignPin[]
|
|
519
519
|
socialPosts SocialPost[]
|
|
520
520
|
campaignInvites CampaignInvite[]
|
|
521
|
-
|
|
521
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
522
522
|
|
|
523
523
|
brandId Int
|
|
524
524
|
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
@@ -1244,20 +1244,27 @@ model ShopifyProduct {
|
|
|
1244
1244
|
shopifyId String @unique @map("shopify_id")
|
|
1245
1245
|
title String
|
|
1246
1246
|
handle String
|
|
1247
|
-
createdAt DateTime? @map("created_at")
|
|
1248
|
-
updatedAt DateTime? @map("updated_at")
|
|
1249
1247
|
|
|
1250
|
-
tags String? @db.Text
|
|
1251
|
-
status String?
|
|
1252
1248
|
metaData Json @default("{}") @map("meta_data")
|
|
1253
1249
|
|
|
1254
1250
|
lastSynced DateTime @default(now()) @map("last_synced")
|
|
1255
1251
|
|
|
1256
1252
|
shopifyStoreId Int @map("shopify_store_id")
|
|
1257
1253
|
|
|
1258
|
-
|
|
1254
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
1259
1255
|
|
|
1260
1256
|
shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id])
|
|
1261
1257
|
|
|
1262
1258
|
@@map("shopify_product")
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
model CampaignToShopifyProduct {
|
|
1262
|
+
campaignId Int @map("campaign_id")
|
|
1263
|
+
shopifyProductId Int @map("shopify_product_id")
|
|
1264
|
+
|
|
1265
|
+
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
1266
|
+
shopifyProduct ShopifyProduct @relation(fields: [shopifyProductId], references: [id], onDelete: Cascade)
|
|
1267
|
+
|
|
1268
|
+
@@id([campaignId, shopifyProductId])
|
|
1269
|
+
@@map("campaign_to_shopify_product")
|
|
1263
1270
|
}
|
package/wasm.js
CHANGED
|
@@ -851,15 +851,16 @@ exports.Prisma.ShopifyProductScalarFieldEnum = {
|
|
|
851
851
|
shopifyId: 'shopifyId',
|
|
852
852
|
title: 'title',
|
|
853
853
|
handle: 'handle',
|
|
854
|
-
createdAt: 'createdAt',
|
|
855
|
-
updatedAt: 'updatedAt',
|
|
856
|
-
tags: 'tags',
|
|
857
|
-
status: 'status',
|
|
858
854
|
metaData: 'metaData',
|
|
859
855
|
lastSynced: 'lastSynced',
|
|
860
856
|
shopifyStoreId: 'shopifyStoreId'
|
|
861
857
|
};
|
|
862
858
|
|
|
859
|
+
exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
|
|
860
|
+
campaignId: 'campaignId',
|
|
861
|
+
shopifyProductId: 'shopifyProductId'
|
|
862
|
+
};
|
|
863
|
+
|
|
863
864
|
exports.Prisma.SortOrder = {
|
|
864
865
|
asc: 'asc',
|
|
865
866
|
desc: 'desc'
|
|
@@ -1197,9 +1198,7 @@ exports.Prisma.ShopifyStoreOrderByRelevanceFieldEnum = {
|
|
|
1197
1198
|
exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
|
|
1198
1199
|
shopifyId: 'shopifyId',
|
|
1199
1200
|
title: 'title',
|
|
1200
|
-
handle: 'handle'
|
|
1201
|
-
tags: 'tags',
|
|
1202
|
-
status: 'status'
|
|
1201
|
+
handle: 'handle'
|
|
1203
1202
|
};
|
|
1204
1203
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1205
1204
|
optIn: 'optIn',
|
|
@@ -1277,7 +1276,8 @@ exports.Prisma.ModelName = {
|
|
|
1277
1276
|
SequenceInboundEmail: 'SequenceInboundEmail',
|
|
1278
1277
|
SequenceImapCheckpoint: 'SequenceImapCheckpoint',
|
|
1279
1278
|
ShopifyStore: 'ShopifyStore',
|
|
1280
|
-
ShopifyProduct: 'ShopifyProduct'
|
|
1279
|
+
ShopifyProduct: 'ShopifyProduct',
|
|
1280
|
+
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1281
1281
|
};
|
|
1282
1282
|
|
|
1283
1283
|
/**
|