@creator.co/creatorco-prisma-client 1.0.44-alpha-eead9dc → 1.0.44-alpha-49cbfe3
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 +10 -27
- package/index-browser.js +6 -23
- package/index.d.ts +293 -3179
- package/index.js +10 -27
- package/package.json +1 -1
- package/schema.prisma +3 -27
- package/wasm.js +6 -23
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -70,7 +70,8 @@ model User {
|
|
|
70
70
|
socialProfiles SocialProfile[]
|
|
71
71
|
rakutenActivity RakutenActivity[]
|
|
72
72
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
fullName String? @default(dbgenerated())
|
|
74
75
|
|
|
75
76
|
@@index([phoneCode, phone])
|
|
76
77
|
@@map("user")
|
|
@@ -777,7 +778,6 @@ model OptIn {
|
|
|
777
778
|
affiliateClicks AffiliateClick[]
|
|
778
779
|
productListItems OptinToProductListItem[]
|
|
779
780
|
ExternalAffiliateClick ExternalAffiliateClick[]
|
|
780
|
-
shopifyDiscountCodes ShopifyDiscountCode[]
|
|
781
781
|
|
|
782
782
|
@@index([userId])
|
|
783
783
|
@@index([campaignId])
|
|
@@ -846,6 +846,7 @@ model SocialPost {
|
|
|
846
846
|
isOwnedByUser Boolean?
|
|
847
847
|
// METRICS
|
|
848
848
|
views Int?
|
|
849
|
+
replays Int?
|
|
849
850
|
impressions Int?
|
|
850
851
|
impressionsOrganic Int?
|
|
851
852
|
impressionsPaid Int?
|
|
@@ -1437,28 +1438,3 @@ model CampaignToShopifyProduct {
|
|
|
1437
1438
|
@@id([campaignId, shopifyProductId])
|
|
1438
1439
|
@@map("campaign_to_shopify_product")
|
|
1439
1440
|
}
|
|
1440
|
-
|
|
1441
|
-
model ShopifyDiscountCode {
|
|
1442
|
-
id Int @id @default(autoincrement())
|
|
1443
|
-
code String
|
|
1444
|
-
discount Float
|
|
1445
|
-
|
|
1446
|
-
optInId Int @map("optin_id")
|
|
1447
|
-
|
|
1448
|
-
optIn OptIn @relation(fields: [optInId], references: [id], onDelete: Cascade)
|
|
1449
|
-
|
|
1450
|
-
shopifySales ShopifySale[]
|
|
1451
|
-
|
|
1452
|
-
@@map("shopify_discount_code")
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
model ShopifySale {
|
|
1456
|
-
id Int @id @default(autoincrement())
|
|
1457
|
-
amount Float
|
|
1458
|
-
metaData Json? @map("meta_data")
|
|
1459
|
-
discountCodeId Int @map("discount_code_id")
|
|
1460
|
-
|
|
1461
|
-
discountCode ShopifyDiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade)
|
|
1462
|
-
|
|
1463
|
-
@@map("shopify_sale")
|
|
1464
|
-
}
|
package/wasm.js
CHANGED
|
@@ -138,7 +138,8 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
138
138
|
closedReason: 'closedReason',
|
|
139
139
|
usercomLastSynced: 'usercomLastSynced',
|
|
140
140
|
extraData: 'extraData',
|
|
141
|
-
referrerId: 'referrerId'
|
|
141
|
+
referrerId: 'referrerId',
|
|
142
|
+
fullName: 'fullName'
|
|
142
143
|
};
|
|
143
144
|
|
|
144
145
|
exports.Prisma.LogScalarFieldEnum = {
|
|
@@ -600,6 +601,7 @@ exports.Prisma.SocialPostScalarFieldEnum = {
|
|
|
600
601
|
hasCollaborators: 'hasCollaborators',
|
|
601
602
|
isOwnedByUser: 'isOwnedByUser',
|
|
602
603
|
views: 'views',
|
|
604
|
+
replays: 'replays',
|
|
603
605
|
impressions: 'impressions',
|
|
604
606
|
impressionsOrganic: 'impressionsOrganic',
|
|
605
607
|
impressionsPaid: 'impressionsPaid',
|
|
@@ -967,20 +969,6 @@ exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
|
|
|
967
969
|
shopifyProductId: 'shopifyProductId'
|
|
968
970
|
};
|
|
969
971
|
|
|
970
|
-
exports.Prisma.ShopifyDiscountCodeScalarFieldEnum = {
|
|
971
|
-
id: 'id',
|
|
972
|
-
code: 'code',
|
|
973
|
-
discount: 'discount',
|
|
974
|
-
optInId: 'optInId'
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
exports.Prisma.ShopifySaleScalarFieldEnum = {
|
|
978
|
-
id: 'id',
|
|
979
|
-
amount: 'amount',
|
|
980
|
-
metaData: 'metaData',
|
|
981
|
-
discountCodeId: 'discountCodeId'
|
|
982
|
-
};
|
|
983
|
-
|
|
984
972
|
exports.Prisma.SortOrder = {
|
|
985
973
|
asc: 'asc',
|
|
986
974
|
desc: 'desc'
|
|
@@ -1022,7 +1010,8 @@ exports.Prisma.UserOrderByRelevanceFieldEnum = {
|
|
|
1022
1010
|
profilePicUrl: 'profilePicUrl',
|
|
1023
1011
|
forgotPasswordKey: 'forgotPasswordKey',
|
|
1024
1012
|
affiliateSlug: 'affiliateSlug',
|
|
1025
|
-
closedReason: 'closedReason'
|
|
1013
|
+
closedReason: 'closedReason',
|
|
1014
|
+
fullName: 'fullName'
|
|
1026
1015
|
};
|
|
1027
1016
|
|
|
1028
1017
|
exports.Prisma.CreatorProfileOrderByRelevanceFieldEnum = {
|
|
@@ -1357,10 +1346,6 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
|
|
|
1357
1346
|
title: 'title',
|
|
1358
1347
|
imageUrl: 'imageUrl'
|
|
1359
1348
|
};
|
|
1360
|
-
|
|
1361
|
-
exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
|
|
1362
|
-
code: 'code'
|
|
1363
|
-
};
|
|
1364
1349
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1365
1350
|
optIn: 'optIn',
|
|
1366
1351
|
tip: 'tip',
|
|
@@ -1452,9 +1437,7 @@ exports.Prisma.ModelName = {
|
|
|
1452
1437
|
ShopifyStore: 'ShopifyStore',
|
|
1453
1438
|
ShopifyProduct: 'ShopifyProduct',
|
|
1454
1439
|
ShopifyProductVariation: 'ShopifyProductVariation',
|
|
1455
|
-
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1456
|
-
ShopifyDiscountCode: 'ShopifyDiscountCode',
|
|
1457
|
-
ShopifySale: 'ShopifySale'
|
|
1440
|
+
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1458
1441
|
};
|
|
1459
1442
|
|
|
1460
1443
|
/**
|