@creator.co/creatorco-prisma-client 1.0.89 → 1.0.90
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 +18 -0
- package/index.d.ts +1459 -177
- package/index.js +23 -5
- package/package.json +1 -1
- package/schema.prisma +16 -0
- package/wasm.js +18 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -1939,3 +1939,19 @@ model SequenceOutboundReplyEmail {
|
|
|
1939
1939
|
|
|
1940
1940
|
@@map("sequenceoutboundreplyemail") // Custom table name
|
|
1941
1941
|
}
|
|
1942
|
+
|
|
1943
|
+
model LLMPrompt {
|
|
1944
|
+
id String @id @default(uuid())
|
|
1945
|
+
collectionName String // Logical identifier for the LLM chain (e.g., "campaign-generation", "creator-search")
|
|
1946
|
+
version Int // Incremental version number, always positive and forward-moving
|
|
1947
|
+
steps Json // Array of objects: [{prompt: string, role: string}, ...]
|
|
1948
|
+
published Boolean @default(false) // Only one version per collectionId can be published
|
|
1949
|
+
extraData Json @default("{}") // Additional metadata for future extensibility
|
|
1950
|
+
editorUserId Int?
|
|
1951
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
1952
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1953
|
+
|
|
1954
|
+
@@unique([collectionName, version]) // Ensure unique version per collection
|
|
1955
|
+
@@index([collectionName, published]) // Index for finding published versions
|
|
1956
|
+
@@map("llm_prompt")
|
|
1957
|
+
}
|
package/wasm.js
CHANGED
|
@@ -1223,6 +1223,18 @@ exports.Prisma.SequenceOutboundReplyEmailScalarFieldEnum = {
|
|
|
1223
1223
|
updatedAt: 'updatedAt'
|
|
1224
1224
|
};
|
|
1225
1225
|
|
|
1226
|
+
exports.Prisma.LLMPromptScalarFieldEnum = {
|
|
1227
|
+
id: 'id',
|
|
1228
|
+
collectionName: 'collectionName',
|
|
1229
|
+
version: 'version',
|
|
1230
|
+
steps: 'steps',
|
|
1231
|
+
published: 'published',
|
|
1232
|
+
extraData: 'extraData',
|
|
1233
|
+
editorUserId: 'editorUserId',
|
|
1234
|
+
createdAt: 'createdAt',
|
|
1235
|
+
updatedAt: 'updatedAt'
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1226
1238
|
exports.Prisma.LatestCreatorPaymentTransactionScalarFieldEnum = {
|
|
1227
1239
|
id: 'id',
|
|
1228
1240
|
balance: 'balance',
|
|
@@ -1726,6 +1738,11 @@ exports.Prisma.SequenceOutboundReplyEmailOrderByRelevanceFieldEnum = {
|
|
|
1726
1738
|
typeId: 'typeId'
|
|
1727
1739
|
};
|
|
1728
1740
|
|
|
1741
|
+
exports.Prisma.LLMPromptOrderByRelevanceFieldEnum = {
|
|
1742
|
+
id: 'id',
|
|
1743
|
+
collectionName: 'collectionName'
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1729
1746
|
exports.Prisma.LatestCreatorPaymentTransactionOrderByRelevanceFieldEnum = {
|
|
1730
1747
|
type: 'type',
|
|
1731
1748
|
notes: 'notes'
|
|
@@ -1884,6 +1901,7 @@ exports.Prisma.ModelName = {
|
|
|
1884
1901
|
EmailProvider: 'EmailProvider',
|
|
1885
1902
|
EmailTracking: 'EmailTracking',
|
|
1886
1903
|
SequenceOutboundReplyEmail: 'SequenceOutboundReplyEmail',
|
|
1904
|
+
LLMPrompt: 'LLMPrompt',
|
|
1887
1905
|
LatestCreatorPaymentTransaction: 'LatestCreatorPaymentTransaction',
|
|
1888
1906
|
SocialPostAnalytics: 'SocialPostAnalytics'
|
|
1889
1907
|
};
|