@creator.co/creatorco-prisma-client 1.0.44-alpha-eead9dc → 1.0.44-alpha-bafa2f4
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 -27
- package/index-browser.js +8 -23
- package/index.d.ts +409 -3179
- package/index.js +12 -27
- package/package.json +1 -1
- package/schema.prisma +4 -27
- package/wasm.js +8 -23
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -70,7 +70,9 @@ model User {
|
|
|
70
70
|
socialProfiles SocialProfile[]
|
|
71
71
|
rakutenActivity RakutenActivity[]
|
|
72
72
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
fullName String? @default(dbgenerated())
|
|
75
|
+
phoneNormalised String? @default(dbgenerated())
|
|
74
76
|
|
|
75
77
|
@@index([phoneCode, phone])
|
|
76
78
|
@@map("user")
|
|
@@ -777,7 +779,6 @@ model OptIn {
|
|
|
777
779
|
affiliateClicks AffiliateClick[]
|
|
778
780
|
productListItems OptinToProductListItem[]
|
|
779
781
|
ExternalAffiliateClick ExternalAffiliateClick[]
|
|
780
|
-
shopifyDiscountCodes ShopifyDiscountCode[]
|
|
781
782
|
|
|
782
783
|
@@index([userId])
|
|
783
784
|
@@index([campaignId])
|
|
@@ -846,6 +847,7 @@ model SocialPost {
|
|
|
846
847
|
isOwnedByUser Boolean?
|
|
847
848
|
// METRICS
|
|
848
849
|
views Int?
|
|
850
|
+
replays Int?
|
|
849
851
|
impressions Int?
|
|
850
852
|
impressionsOrganic Int?
|
|
851
853
|
impressionsPaid Int?
|
|
@@ -1437,28 +1439,3 @@ model CampaignToShopifyProduct {
|
|
|
1437
1439
|
@@id([campaignId, shopifyProductId])
|
|
1438
1440
|
@@map("campaign_to_shopify_product")
|
|
1439
1441
|
}
|
|
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,9 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
138
138
|
closedReason: 'closedReason',
|
|
139
139
|
usercomLastSynced: 'usercomLastSynced',
|
|
140
140
|
extraData: 'extraData',
|
|
141
|
-
referrerId: 'referrerId'
|
|
141
|
+
referrerId: 'referrerId',
|
|
142
|
+
fullName: 'fullName',
|
|
143
|
+
phoneNormalised: 'phoneNormalised'
|
|
142
144
|
};
|
|
143
145
|
|
|
144
146
|
exports.Prisma.LogScalarFieldEnum = {
|
|
@@ -600,6 +602,7 @@ exports.Prisma.SocialPostScalarFieldEnum = {
|
|
|
600
602
|
hasCollaborators: 'hasCollaborators',
|
|
601
603
|
isOwnedByUser: 'isOwnedByUser',
|
|
602
604
|
views: 'views',
|
|
605
|
+
replays: 'replays',
|
|
603
606
|
impressions: 'impressions',
|
|
604
607
|
impressionsOrganic: 'impressionsOrganic',
|
|
605
608
|
impressionsPaid: 'impressionsPaid',
|
|
@@ -967,20 +970,6 @@ exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
|
|
|
967
970
|
shopifyProductId: 'shopifyProductId'
|
|
968
971
|
};
|
|
969
972
|
|
|
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
973
|
exports.Prisma.SortOrder = {
|
|
985
974
|
asc: 'asc',
|
|
986
975
|
desc: 'desc'
|
|
@@ -1022,7 +1011,9 @@ exports.Prisma.UserOrderByRelevanceFieldEnum = {
|
|
|
1022
1011
|
profilePicUrl: 'profilePicUrl',
|
|
1023
1012
|
forgotPasswordKey: 'forgotPasswordKey',
|
|
1024
1013
|
affiliateSlug: 'affiliateSlug',
|
|
1025
|
-
closedReason: 'closedReason'
|
|
1014
|
+
closedReason: 'closedReason',
|
|
1015
|
+
fullName: 'fullName',
|
|
1016
|
+
phoneNormalised: 'phoneNormalised'
|
|
1026
1017
|
};
|
|
1027
1018
|
|
|
1028
1019
|
exports.Prisma.CreatorProfileOrderByRelevanceFieldEnum = {
|
|
@@ -1357,10 +1348,6 @@ exports.Prisma.ShopifyProductVariationOrderByRelevanceFieldEnum = {
|
|
|
1357
1348
|
title: 'title',
|
|
1358
1349
|
imageUrl: 'imageUrl'
|
|
1359
1350
|
};
|
|
1360
|
-
|
|
1361
|
-
exports.Prisma.ShopifyDiscountCodeOrderByRelevanceFieldEnum = {
|
|
1362
|
-
code: 'code'
|
|
1363
|
-
};
|
|
1364
1351
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1365
1352
|
optIn: 'optIn',
|
|
1366
1353
|
tip: 'tip',
|
|
@@ -1452,9 +1439,7 @@ exports.Prisma.ModelName = {
|
|
|
1452
1439
|
ShopifyStore: 'ShopifyStore',
|
|
1453
1440
|
ShopifyProduct: 'ShopifyProduct',
|
|
1454
1441
|
ShopifyProductVariation: 'ShopifyProductVariation',
|
|
1455
|
-
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1456
|
-
ShopifyDiscountCode: 'ShopifyDiscountCode',
|
|
1457
|
-
ShopifySale: 'ShopifySale'
|
|
1442
|
+
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1458
1443
|
};
|
|
1459
1444
|
|
|
1460
1445
|
/**
|