@creator.co/creatorco-prisma-client 1.0.21 → 1.0.22-alpha-c4b16cb
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/default.d.ts +1 -0
- package/default.js +1 -0
- package/edge.d.ts +1 -1
- package/edge.js +56 -12
- package/index-browser.js +63 -20
- package/index.d.ts +5616 -412
- package/index.js +57 -13
- package/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/libquery_engine-darwin.dylib.node +0 -0
- package/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-1.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/package.json +67 -2
- package/query_engine-windows.dll.node +0 -0
- package/runtime/edge-esm.js +27 -74
- package/runtime/edge.js +27 -74
- package/runtime/index-browser.js +1 -1
- package/runtime/library.d.ts +207 -152
- package/runtime/library.js +59 -57
- package/runtime/wasm.js +94 -0
- package/schema.prisma +49 -2
- package/wasm.d.ts +1 -0
- package/wasm.js +1318 -0
package/schema.prisma
CHANGED
|
@@ -10,9 +10,7 @@ generator kysely {
|
|
|
10
10
|
fileName = "types.ts"
|
|
11
11
|
enumFileName = "enums.ts"
|
|
12
12
|
readOnlyIds = true
|
|
13
|
-
camelCase = true
|
|
14
13
|
jsonTypeOverride = Json
|
|
15
|
-
previewFeatures = ["multiSchema"]
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
generator client {
|
|
@@ -343,6 +341,7 @@ model Brand {
|
|
|
343
341
|
creatorsearchfilter CreatorSearchFilter[]
|
|
344
342
|
sequences Sequence[]
|
|
345
343
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
344
|
+
shopifyStores ShopifyStore[]
|
|
346
345
|
|
|
347
346
|
// for agencies
|
|
348
347
|
parentBrandId Int?
|
|
@@ -519,6 +518,7 @@ model Campaign {
|
|
|
519
518
|
campaignPins CampaignPin[]
|
|
520
519
|
socialPosts SocialPost[]
|
|
521
520
|
campaignInvites CampaignInvite[]
|
|
521
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
522
522
|
|
|
523
523
|
brandId Int
|
|
524
524
|
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
@@ -1221,4 +1221,51 @@ model SequenceImapCheckpoint {
|
|
|
1221
1221
|
|
|
1222
1222
|
@@id([sequenceId, creatorListItemId])
|
|
1223
1223
|
@@map("sequenceimapcheckpoint")
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
model ShopifyStore {
|
|
1227
|
+
id Int @id @default(autoincrement())
|
|
1228
|
+
shopifyId String? @unique @map("shopify_id")
|
|
1229
|
+
name String?
|
|
1230
|
+
url String
|
|
1231
|
+
accessToken String? @map("access_token")
|
|
1232
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1233
|
+
|
|
1234
|
+
brandId Int @map("brand_id")
|
|
1235
|
+
|
|
1236
|
+
products ShopifyProduct[]
|
|
1237
|
+
|
|
1238
|
+
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1239
|
+
|
|
1240
|
+
@@map("shopify_store")
|
|
1241
|
+
}
|
|
1242
|
+
model ShopifyProduct {
|
|
1243
|
+
id Int @id @default(autoincrement())
|
|
1244
|
+
shopifyId String @unique @map("shopify_id")
|
|
1245
|
+
title String
|
|
1246
|
+
handle String
|
|
1247
|
+
imageUrl String @db.Text @map("image_url")
|
|
1248
|
+
|
|
1249
|
+
metaData Json @default("{}") @map("meta_data")
|
|
1250
|
+
|
|
1251
|
+
lastSynced DateTime @default(now()) @map("last_synced")
|
|
1252
|
+
|
|
1253
|
+
shopifyStoreId Int @map("shopify_store_id")
|
|
1254
|
+
|
|
1255
|
+
campaignToShopifyProducts CampaignToShopifyProduct[]
|
|
1256
|
+
|
|
1257
|
+
shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id])
|
|
1258
|
+
|
|
1259
|
+
@@map("shopify_product")
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
model CampaignToShopifyProduct {
|
|
1263
|
+
campaignId Int @map("campaign_id")
|
|
1264
|
+
shopifyProductId Int @map("shopify_product_id")
|
|
1265
|
+
|
|
1266
|
+
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
1267
|
+
shopifyProduct ShopifyProduct @relation(fields: [shopifyProductId], references: [id], onDelete: Cascade)
|
|
1268
|
+
|
|
1269
|
+
@@id([campaignId, shopifyProductId])
|
|
1270
|
+
@@map("campaign_to_shopify_product")
|
|
1224
1271
|
}
|
package/wasm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index'
|