@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/package.json CHANGED
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "./*": "./*"
81
81
  },
82
- "version": "1.0.57",
82
+ "version": "1.0.59",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -328,31 +328,32 @@ model Brand {
328
328
  affiliateCommission Float?
329
329
  extraData Json @default("{}")
330
330
 
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
- savedfiles SavedFile[]
343
- creatorLists CreatorList[]
344
- affiliateLinks BrandAffiliateLink[]
345
- messageTemplate MessageTemplate[]
346
- emailTemplates EmailTemplate[]
347
- socialListeningLists SocialListeningList[]
348
- campaignInvites CampaignInvite[]
349
- images BrandToImage[]
350
- creatorsearchfilter CreatorSearchFilter[]
351
- sequences Sequence[]
352
- impactRadiusEvents ImpactRadiusEvent[]
353
- cjEvents CjEvent[]
354
- shopifyStores ShopifyStore[]
355
- productLists ProductList[]
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 Int @id @default(autoincrement())
1241
- label String?
1242
- template String @db.Text
1243
- brandId Int?
1244
- brand Brand? @relation(fields: [brandId], references: [id])
1245
- metaData Json @default("{}") // to save any additional data such as user defined variables
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',