@creator.co/creatorco-prisma-client 1.0.91 → 1.0.93
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 -5
- package/index-browser.js +14 -0
- package/index.d.ts +2907 -601
- package/index.js +27 -5
- package/libquery_engine-rhel-openssl-3.0.x.so.node +0 -0
- package/package.json +1 -1
- package/schema.prisma +17 -1
- package/wasm.js +14 -0
|
Binary file
|
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -19,7 +19,7 @@ generator client {
|
|
|
19
19
|
output = "../../client/creatorco/client"
|
|
20
20
|
previewFeatures = ["fullTextIndex", "fullTextSearch", "views"]
|
|
21
21
|
// macos (arm or x86), native, linux arm64 ssl3.x, windows
|
|
22
|
-
binaryTargets = ["native", "darwin", "darwin-arm64", "linux-arm64-openssl-3.0.x", "windows", "debian-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x", "linux-arm64-openssl-1.0.x", "linux-musl-arm64-openssl-1.1.x", "debian-openssl-1.1.x"]
|
|
22
|
+
binaryTargets = ["native", "darwin", "darwin-arm64", "linux-arm64-openssl-3.0.x", "windows", "debian-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x", "linux-arm64-openssl-1.0.x", "linux-musl-arm64-openssl-1.1.x", "debian-openssl-1.1.x", "rhel-openssl-3.0.x"]
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
datasource db {
|
|
@@ -79,6 +79,7 @@ model User {
|
|
|
79
79
|
contractsCreated BrandContract[] @relation("UserCreatedContract") // contracts created by the user
|
|
80
80
|
contractsEdited BrandContract[] @relation("UserEditedContract") // contracts edited by the user
|
|
81
81
|
creatorLists CreatorList[]
|
|
82
|
+
userInvites userInvite[]
|
|
82
83
|
|
|
83
84
|
filesCreated File[] @relation("UserCreatedFile") // files created by the user
|
|
84
85
|
filesEdited File[] @relation("UserEditedFile") // files edited by the user
|
|
@@ -370,6 +371,7 @@ model Brand {
|
|
|
370
371
|
creditRefundBatches CreditRefundBatch[]
|
|
371
372
|
emailProviders EmailProvider[]
|
|
372
373
|
emailTrackings EmailTracking[]
|
|
374
|
+
userInvites userInvite[]
|
|
373
375
|
|
|
374
376
|
// for agencies
|
|
375
377
|
parentBrandId Int?
|
|
@@ -1956,3 +1958,17 @@ model LLMPrompt {
|
|
|
1956
1958
|
@@index([collectionName, published]) // Index for finding published versions
|
|
1957
1959
|
@@map("llm_prompt")
|
|
1958
1960
|
}
|
|
1961
|
+
|
|
1962
|
+
model userInvite {
|
|
1963
|
+
inviteCode String @unique
|
|
1964
|
+
email String
|
|
1965
|
+
expiration DateTime @default(now())
|
|
1966
|
+
userId Int
|
|
1967
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
1968
|
+
brandId Int
|
|
1969
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1970
|
+
|
|
1971
|
+
@@index(inviteCode)
|
|
1972
|
+
@@index(email)
|
|
1973
|
+
@@map("user_invite")
|
|
1974
|
+
}
|
package/wasm.js
CHANGED
|
@@ -1236,6 +1236,14 @@ exports.Prisma.LLMPromptScalarFieldEnum = {
|
|
|
1236
1236
|
updatedAt: 'updatedAt'
|
|
1237
1237
|
};
|
|
1238
1238
|
|
|
1239
|
+
exports.Prisma.UserInviteScalarFieldEnum = {
|
|
1240
|
+
inviteCode: 'inviteCode',
|
|
1241
|
+
email: 'email',
|
|
1242
|
+
expiration: 'expiration',
|
|
1243
|
+
userId: 'userId',
|
|
1244
|
+
brandId: 'brandId'
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1239
1247
|
exports.Prisma.LatestCreatorPaymentTransactionScalarFieldEnum = {
|
|
1240
1248
|
id: 'id',
|
|
1241
1249
|
balance: 'balance',
|
|
@@ -1745,6 +1753,11 @@ exports.Prisma.LLMPromptOrderByRelevanceFieldEnum = {
|
|
|
1745
1753
|
collectionName: 'collectionName'
|
|
1746
1754
|
};
|
|
1747
1755
|
|
|
1756
|
+
exports.Prisma.userInviteOrderByRelevanceFieldEnum = {
|
|
1757
|
+
inviteCode: 'inviteCode',
|
|
1758
|
+
email: 'email'
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1748
1761
|
exports.Prisma.LatestCreatorPaymentTransactionOrderByRelevanceFieldEnum = {
|
|
1749
1762
|
type: 'type',
|
|
1750
1763
|
notes: 'notes'
|
|
@@ -1904,6 +1917,7 @@ exports.Prisma.ModelName = {
|
|
|
1904
1917
|
EmailTracking: 'EmailTracking',
|
|
1905
1918
|
SequenceOutboundReplyEmail: 'SequenceOutboundReplyEmail',
|
|
1906
1919
|
LLMPrompt: 'LLMPrompt',
|
|
1920
|
+
userInvite: 'userInvite',
|
|
1907
1921
|
LatestCreatorPaymentTransaction: 'LatestCreatorPaymentTransaction',
|
|
1908
1922
|
SocialPostAnalytics: 'SocialPostAnalytics'
|
|
1909
1923
|
};
|