@creator.co/creatorco-prisma-client 1.0.57 → 1.0.59
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 +26 -5
- package/index-browser.js +22 -1
- package/index.d.ts +2042 -126
- package/index.js +26 -5
- package/package.json +1 -1
- package/schema.prisma +48 -31
- package/wasm.js +22 -1
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -328,31 +328,32 @@ model Brand {
|
|
|
328
328
|
affiliateCommission Float?
|
|
329
329
|
extraData Json @default("{}")
|
|
330
330
|
|
|
331
|
-
specialistId
|
|
332
|
-
dedicatedSpecialist
|
|
333
|
-
instagramProfile
|
|
334
|
-
youtubeProfile
|
|
335
|
-
tiktokProfile
|
|
336
|
-
campaigns
|
|
337
|
-
brandUsers
|
|
338
|
-
searchContacts
|
|
339
|
-
reportCredits
|
|
340
|
-
categories
|
|
341
|
-
paymentTransactions
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
331
|
+
specialistId Int?
|
|
332
|
+
dedicatedSpecialist User? @relation(fields: [specialistId], references: [id])
|
|
333
|
+
instagramProfile InstagramProfile?
|
|
334
|
+
youtubeProfile YoutubeProfile?
|
|
335
|
+
tiktokProfile TiktokProfile?
|
|
336
|
+
campaigns Campaign[]
|
|
337
|
+
brandUsers BrandUserProfile[]
|
|
338
|
+
searchContacts SearchContacts[]
|
|
339
|
+
reportCredits ReportCredits[]
|
|
340
|
+
categories BrandToCategory[]
|
|
341
|
+
paymentTransactions PaymentTransaction[]
|
|
342
|
+
PendingBrandInvoicePayments PendingBrandInvoicePayment[]
|
|
343
|
+
savedfiles SavedFile[]
|
|
344
|
+
creatorLists CreatorList[]
|
|
345
|
+
affiliateLinks BrandAffiliateLink[]
|
|
346
|
+
messageTemplate MessageTemplate[]
|
|
347
|
+
emailTemplates EmailTemplate[]
|
|
348
|
+
socialListeningLists SocialListeningList[]
|
|
349
|
+
campaignInvites CampaignInvite[]
|
|
350
|
+
images BrandToImage[]
|
|
351
|
+
creatorsearchfilter CreatorSearchFilter[]
|
|
352
|
+
sequences Sequence[]
|
|
353
|
+
impactRadiusEvents ImpactRadiusEvent[]
|
|
354
|
+
cjEvents CjEvent[]
|
|
355
|
+
shopifyStores ShopifyStore[]
|
|
356
|
+
productLists ProductList[]
|
|
356
357
|
|
|
357
358
|
// for agencies
|
|
358
359
|
parentBrandId Int?
|
|
@@ -1002,6 +1003,20 @@ model State {
|
|
|
1002
1003
|
@@map("state")
|
|
1003
1004
|
}
|
|
1004
1005
|
|
|
1006
|
+
model PendingBrandInvoicePayment {
|
|
1007
|
+
id Int @id @default(autoincrement())
|
|
1008
|
+
invoiceId String
|
|
1009
|
+
type String
|
|
1010
|
+
source String
|
|
1011
|
+
brandId Int?
|
|
1012
|
+
status String
|
|
1013
|
+
|
|
1014
|
+
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1015
|
+
|
|
1016
|
+
createdAt DateTime @default(now())
|
|
1017
|
+
updatedAt DateTime @updatedAt
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1005
1020
|
model PaymentTransaction {
|
|
1006
1021
|
id Int @id @default(autoincrement())
|
|
1007
1022
|
amount Float
|
|
@@ -1237,12 +1252,14 @@ model SocialProfile {
|
|
|
1237
1252
|
}
|
|
1238
1253
|
|
|
1239
1254
|
model MessageTemplate {
|
|
1240
|
-
id
|
|
1241
|
-
label
|
|
1242
|
-
template
|
|
1243
|
-
brandId
|
|
1244
|
-
brand
|
|
1245
|
-
metaData
|
|
1255
|
+
id Int @id @default(autoincrement())
|
|
1256
|
+
label String?
|
|
1257
|
+
template String @db.Text
|
|
1258
|
+
brandId Int?
|
|
1259
|
+
brand Brand? @relation(fields: [brandId], references: [id])
|
|
1260
|
+
metaData Json @default("{}") // To save any additional data such as user-defined variables
|
|
1261
|
+
createdAt DateTime? @default(now())
|
|
1262
|
+
updatedAt DateTime? @updatedAt
|
|
1246
1263
|
|
|
1247
1264
|
@@index([brandId])
|
|
1248
1265
|
@@map("messagetemplate")
|
package/wasm.js
CHANGED
|
@@ -693,6 +693,17 @@ exports.Prisma.StateScalarFieldEnum = {
|
|
|
693
693
|
stateName: 'stateName'
|
|
694
694
|
};
|
|
695
695
|
|
|
696
|
+
exports.Prisma.PendingBrandInvoicePaymentScalarFieldEnum = {
|
|
697
|
+
id: 'id',
|
|
698
|
+
invoiceId: 'invoiceId',
|
|
699
|
+
type: 'type',
|
|
700
|
+
source: 'source',
|
|
701
|
+
brandId: 'brandId',
|
|
702
|
+
status: 'status',
|
|
703
|
+
createdAt: 'createdAt',
|
|
704
|
+
updatedAt: 'updatedAt'
|
|
705
|
+
};
|
|
706
|
+
|
|
696
707
|
exports.Prisma.PaymentTransactionScalarFieldEnum = {
|
|
697
708
|
id: 'id',
|
|
698
709
|
amount: 'amount',
|
|
@@ -844,7 +855,9 @@ exports.Prisma.MessageTemplateScalarFieldEnum = {
|
|
|
844
855
|
label: 'label',
|
|
845
856
|
template: 'template',
|
|
846
857
|
brandId: 'brandId',
|
|
847
|
-
metaData: 'metaData'
|
|
858
|
+
metaData: 'metaData',
|
|
859
|
+
createdAt: 'createdAt',
|
|
860
|
+
updatedAt: 'updatedAt'
|
|
848
861
|
};
|
|
849
862
|
|
|
850
863
|
exports.Prisma.EmailTemplateScalarFieldEnum = {
|
|
@@ -1309,6 +1322,13 @@ exports.Prisma.StateOrderByRelevanceFieldEnum = {
|
|
|
1309
1322
|
stateName: 'stateName'
|
|
1310
1323
|
};
|
|
1311
1324
|
|
|
1325
|
+
exports.Prisma.PendingBrandInvoicePaymentOrderByRelevanceFieldEnum = {
|
|
1326
|
+
invoiceId: 'invoiceId',
|
|
1327
|
+
type: 'type',
|
|
1328
|
+
source: 'source',
|
|
1329
|
+
status: 'status'
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1312
1332
|
exports.Prisma.PaymentTransactionOrderByRelevanceFieldEnum = {
|
|
1313
1333
|
type: 'type',
|
|
1314
1334
|
notes: 'notes'
|
|
@@ -1519,6 +1539,7 @@ exports.Prisma.ModelName = {
|
|
|
1519
1539
|
BrandImage: 'BrandImage',
|
|
1520
1540
|
Country: 'Country',
|
|
1521
1541
|
State: 'State',
|
|
1542
|
+
PendingBrandInvoicePayment: 'PendingBrandInvoicePayment',
|
|
1522
1543
|
PaymentTransaction: 'PaymentTransaction',
|
|
1523
1544
|
ExternalAffiliateClick: 'ExternalAffiliateClick',
|
|
1524
1545
|
BrandAffiliateLink: 'BrandAffiliateLink',
|