@creator.co/creatorco-prisma-client 1.0.50 → 1.0.51-alpha-c446596
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 +23 -4
- package/index-browser.js +19 -0
- package/index.d.ts +3154 -225
- package/index.js +23 -4
- package/package.json +1 -1
- package/schema.prisma +21 -0
- package/wasm.js +19 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -29,6 +29,7 @@ datasource db {
|
|
|
29
29
|
|
|
30
30
|
model User {
|
|
31
31
|
id Int @id @default(autoincrement())
|
|
32
|
+
idmId String? @unique @map("idm_id")
|
|
32
33
|
role String
|
|
33
34
|
email String? @unique
|
|
34
35
|
password String?
|
|
@@ -70,6 +71,7 @@ model User {
|
|
|
70
71
|
socialProfiles SocialProfile[]
|
|
71
72
|
rakutenActivity RakutenActivity[]
|
|
72
73
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
74
|
+
cjEvents CJEvent[]
|
|
73
75
|
flagsAssigned CreatorFlag[] @relation("UserAssignedFlags") // flags assigned to the user
|
|
74
76
|
flagsCreated CreatorFlag[] @relation("UserCreatedFlags") // flags created by the user
|
|
75
77
|
flagsEdited CreatorFlag[] @relation("UserEditedFlags") // flags edited by the user
|
|
@@ -347,6 +349,7 @@ model Brand {
|
|
|
347
349
|
creatorsearchfilter CreatorSearchFilter[]
|
|
348
350
|
sequences Sequence[]
|
|
349
351
|
impactRadiusEvents ImpactRadiusEvent[]
|
|
352
|
+
cjEvents CJEvent[]
|
|
350
353
|
shopifyStores ShopifyStore[]
|
|
351
354
|
productLists ProductList[]
|
|
352
355
|
|
|
@@ -784,6 +787,7 @@ model OptIn {
|
|
|
784
787
|
productListItems OptinToProductListItem[]
|
|
785
788
|
ExternalAffiliateClick ExternalAffiliateClick[]
|
|
786
789
|
ImpactRadiusEvent ImpactRadiusEvent[]
|
|
790
|
+
CJEvent CJEvent[]
|
|
787
791
|
ShareASaleEvents ShareASaleEvent[]
|
|
788
792
|
shopifyDiscountCodes ShopifyDiscountCode[]
|
|
789
793
|
|
|
@@ -1287,6 +1291,23 @@ model ImpactRadiusEvent {
|
|
|
1287
1291
|
optIn OptIn? @relation(fields: [optInId], references: [id])
|
|
1288
1292
|
}
|
|
1289
1293
|
|
|
1294
|
+
model CJEvent {
|
|
1295
|
+
id Int @id @default(autoincrement())
|
|
1296
|
+
type String // action/click
|
|
1297
|
+
created DateTime @default(now())
|
|
1298
|
+
amount Float?
|
|
1299
|
+
commission Float?
|
|
1300
|
+
metaData Json @default("{}")
|
|
1301
|
+
|
|
1302
|
+
userId Int
|
|
1303
|
+
brandId Int?
|
|
1304
|
+
optInId Int?
|
|
1305
|
+
|
|
1306
|
+
user User @relation(fields: [userId], references: [id])
|
|
1307
|
+
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1308
|
+
optIn OptIn? @relation(fields: [optInId], references: [id])
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1290
1311
|
model ShareASaleEvent {
|
|
1291
1312
|
id Int @id @default(autoincrement())
|
|
1292
1313
|
transactionId String? @unique @map("transaction_id")
|
package/wasm.js
CHANGED
|
@@ -121,6 +121,7 @@ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
|
121
121
|
|
|
122
122
|
exports.Prisma.UserScalarFieldEnum = {
|
|
123
123
|
id: 'id',
|
|
124
|
+
idmId: 'idmId',
|
|
124
125
|
role: 'role',
|
|
125
126
|
email: 'email',
|
|
126
127
|
password: 'password',
|
|
@@ -883,6 +884,18 @@ exports.Prisma.ImpactRadiusEventScalarFieldEnum = {
|
|
|
883
884
|
optInId: 'optInId'
|
|
884
885
|
};
|
|
885
886
|
|
|
887
|
+
exports.Prisma.CJEventScalarFieldEnum = {
|
|
888
|
+
id: 'id',
|
|
889
|
+
type: 'type',
|
|
890
|
+
created: 'created',
|
|
891
|
+
amount: 'amount',
|
|
892
|
+
commission: 'commission',
|
|
893
|
+
metaData: 'metaData',
|
|
894
|
+
userId: 'userId',
|
|
895
|
+
brandId: 'brandId',
|
|
896
|
+
optInId: 'optInId'
|
|
897
|
+
};
|
|
898
|
+
|
|
886
899
|
exports.Prisma.ShareASaleEventScalarFieldEnum = {
|
|
887
900
|
id: 'id',
|
|
888
901
|
transactionId: 'transactionId',
|
|
@@ -1041,6 +1054,7 @@ exports.Prisma.NullsOrder = {
|
|
|
1041
1054
|
};
|
|
1042
1055
|
|
|
1043
1056
|
exports.Prisma.UserOrderByRelevanceFieldEnum = {
|
|
1057
|
+
idmId: 'idmId',
|
|
1044
1058
|
role: 'role',
|
|
1045
1059
|
email: 'email',
|
|
1046
1060
|
password: 'password',
|
|
@@ -1358,6 +1372,10 @@ exports.Prisma.ImpactRadiusEventOrderByRelevanceFieldEnum = {
|
|
|
1358
1372
|
type: 'type'
|
|
1359
1373
|
};
|
|
1360
1374
|
|
|
1375
|
+
exports.Prisma.CJEventOrderByRelevanceFieldEnum = {
|
|
1376
|
+
type: 'type'
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1361
1379
|
exports.Prisma.ShareASaleEventOrderByRelevanceFieldEnum = {
|
|
1362
1380
|
transactionId: 'transactionId'
|
|
1363
1381
|
};
|
|
@@ -1484,6 +1502,7 @@ exports.Prisma.ModelName = {
|
|
|
1484
1502
|
OptInView: 'OptInView',
|
|
1485
1503
|
RakutenActivity: 'RakutenActivity',
|
|
1486
1504
|
ImpactRadiusEvent: 'ImpactRadiusEvent',
|
|
1505
|
+
CJEvent: 'CJEvent',
|
|
1487
1506
|
ShareASaleEvent: 'ShareASaleEvent',
|
|
1488
1507
|
CreatorSearchFilter: 'CreatorSearchFilter',
|
|
1489
1508
|
Sequence: 'Sequence',
|