@actuate-media/cms-core 0.90.1 → 0.91.0
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/CHANGELOG.md +63 -0
- package/dist/actions.d.ts +31 -1
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +76 -21
- package/dist/actions.js.map +1 -1
- package/dist/api/route-helpers.d.ts +4 -1
- package/dist/api/route-helpers.d.ts.map +1 -1
- package/dist/api/route-helpers.js +2 -2
- package/dist/api/route-helpers.js.map +1 -1
- package/dist/api/routes/documents.d.ts.map +1 -1
- package/dist/api/routes/documents.js +4 -1
- package/dist/api/routes/documents.js.map +1 -1
- package/dist/api/routes/media.d.ts.map +1 -1
- package/dist/api/routes/media.js +10 -0
- package/dist/api/routes/media.js.map +1 -1
- package/dist/api/routes/url-resolution.d.ts.map +1 -1
- package/dist/api/routes/url-resolution.js +4 -1
- package/dist/api/routes/url-resolution.js.map +1 -1
- package/dist/config/index.d.ts +16 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +59 -2
- package/dist/config/index.js.map +1 -1
- package/dist/config/runtime.d.ts +8 -0
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/runtime.js.map +1 -1
- package/dist/config/types.d.ts +35 -4
- package/dist/config/types.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/media/usage-sync.d.ts +37 -0
- package/dist/media/usage-sync.d.ts.map +1 -0
- package/dist/media/usage-sync.js +234 -0
- package/dist/media/usage-sync.js.map +1 -0
- package/dist/realtime/comments.d.ts +1 -1
- package/dist/realtime/comments.js +1 -1
- package/dist/realtime/notifications.d.ts +1 -1
- package/dist/realtime/notifications.js +1 -1
- package/dist/realtime/persistence.d.ts +1 -1
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +58 -35
- package/dist/search/index.js.map +1 -1
- package/generated/browser.ts +229 -0
- package/generated/client.ts +253 -0
- package/generated/commonInputTypes.ts +1024 -0
- package/generated/enums.ts +211 -0
- package/generated/internal/class.ts +547 -0
- package/generated/internal/prismaNamespace.ts +4596 -0
- package/generated/internal/prismaNamespaceBrowser.ts +1188 -0
- package/generated/models/AiCrawlerHit.ts +1275 -0
- package/generated/models/ApiKey.ts +1559 -0
- package/generated/models/ApiRequestMetric.ts +1390 -0
- package/generated/models/AuditLog.ts +1215 -0
- package/generated/models/BackupRecord.ts +1259 -0
- package/generated/models/ContentIssue.ts +1496 -0
- package/generated/models/ContentLock.ts +1481 -0
- package/generated/models/ContentTemplate.ts +1425 -0
- package/generated/models/Document.ts +3486 -0
- package/generated/models/Folder.ts +1905 -0
- package/generated/models/FormSchemaVersion.ts +1265 -0
- package/generated/models/FormSubmission.ts +2105 -0
- package/generated/models/FormSubmissionFile.ts +1615 -0
- package/generated/models/FormWebhook.ts +1371 -0
- package/generated/models/InAppNotification.ts +1466 -0
- package/generated/models/Invite.ts +1393 -0
- package/generated/models/Media.ts +2887 -0
- package/generated/models/MediaUsage.ts +1488 -0
- package/generated/models/OAuthAccount.ts +1472 -0
- package/generated/models/PageTemplate.ts +1271 -0
- package/generated/models/PasswordResetToken.ts +1396 -0
- package/generated/models/Redirect.ts +1501 -0
- package/generated/models/Redirect404Hit.ts +1266 -0
- package/generated/models/RedirectSuggestion.ts +1344 -0
- package/generated/models/SavedSection.ts +1315 -0
- package/generated/models/ScriptTag.ts +1453 -0
- package/generated/models/SeoAuditRun.ts +1745 -0
- package/generated/models/SeoIssue.ts +2047 -0
- package/generated/models/Session.ts +1501 -0
- package/generated/models/Site.ts +1215 -0
- package/generated/models/User.ts +4558 -0
- package/generated/models/Version.ts +1520 -0
- package/generated/models/WebhookDeliveryLog.ts +1656 -0
- package/generated/models/WebhookEndpoint.ts +1433 -0
- package/generated/models/WorkflowState.ts +1523 -0
- package/generated/models.ts +46 -0
- package/package.json +5 -3
- package/{prisma → schema-fragments}/cms-schema.prisma +15 -2
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports all enum related types from the schema.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export const DocumentStatus = {
|
|
13
|
+
DRAFT: 'DRAFT',
|
|
14
|
+
PUBLISHED: 'PUBLISHED',
|
|
15
|
+
ARCHIVED: 'ARCHIVED',
|
|
16
|
+
SCHEDULED: 'SCHEDULED',
|
|
17
|
+
SCHEDULED_UNPUBLISH: 'SCHEDULED_UNPUBLISH'
|
|
18
|
+
} as const
|
|
19
|
+
|
|
20
|
+
export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export const UserRole = {
|
|
24
|
+
ADMIN: 'ADMIN',
|
|
25
|
+
EDITOR: 'EDITOR',
|
|
26
|
+
AUTHOR: 'AUTHOR',
|
|
27
|
+
CLIENT: 'CLIENT',
|
|
28
|
+
OWNER: 'OWNER',
|
|
29
|
+
VIEWER: 'VIEWER'
|
|
30
|
+
} as const
|
|
31
|
+
|
|
32
|
+
export type UserRole = (typeof UserRole)[keyof typeof UserRole]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export const InviteStatus = {
|
|
36
|
+
PENDING: 'PENDING',
|
|
37
|
+
ACCEPTED: 'ACCEPTED',
|
|
38
|
+
EXPIRED: 'EXPIRED',
|
|
39
|
+
CANCELLED: 'CANCELLED'
|
|
40
|
+
} as const
|
|
41
|
+
|
|
42
|
+
export type InviteStatus = (typeof InviteStatus)[keyof typeof InviteStatus]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export const ChangeType = {
|
|
46
|
+
CREATE: 'CREATE',
|
|
47
|
+
UPDATE: 'UPDATE',
|
|
48
|
+
PUBLISH: 'PUBLISH',
|
|
49
|
+
RESTORE: 'RESTORE',
|
|
50
|
+
DELETE: 'DELETE'
|
|
51
|
+
} as const
|
|
52
|
+
|
|
53
|
+
export type ChangeType = (typeof ChangeType)[keyof typeof ChangeType]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
export const AuditEvent = {
|
|
57
|
+
login_success: 'login_success',
|
|
58
|
+
login_failed: 'login_failed',
|
|
59
|
+
logout: 'logout',
|
|
60
|
+
password_change: 'password_change',
|
|
61
|
+
password_reset_request: 'password_reset_request',
|
|
62
|
+
password_reset_complete: 'password_reset_complete',
|
|
63
|
+
totp_enabled: 'totp_enabled',
|
|
64
|
+
totp_disabled: 'totp_disabled',
|
|
65
|
+
api_key_created: 'api_key_created',
|
|
66
|
+
api_key_revoked: 'api_key_revoked',
|
|
67
|
+
document_created: 'document_created',
|
|
68
|
+
document_updated: 'document_updated',
|
|
69
|
+
document_published: 'document_published',
|
|
70
|
+
document_deleted: 'document_deleted',
|
|
71
|
+
media_uploaded: 'media_uploaded',
|
|
72
|
+
media_deleted: 'media_deleted',
|
|
73
|
+
user_created: 'user_created',
|
|
74
|
+
user_updated: 'user_updated',
|
|
75
|
+
user_deactivated: 'user_deactivated',
|
|
76
|
+
settings_changed: 'settings_changed',
|
|
77
|
+
version_restored: 'version_restored',
|
|
78
|
+
export_requested: 'export_requested',
|
|
79
|
+
import_completed: 'import_completed'
|
|
80
|
+
} as const
|
|
81
|
+
|
|
82
|
+
export type AuditEvent = (typeof AuditEvent)[keyof typeof AuditEvent]
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
export const ContentIssueType = {
|
|
86
|
+
MISSING_META_DESCRIPTION: 'MISSING_META_DESCRIPTION',
|
|
87
|
+
MISSING_ALT_TEXT: 'MISSING_ALT_TEXT',
|
|
88
|
+
BROKEN_INTERNAL_LINK: 'BROKEN_INTERNAL_LINK',
|
|
89
|
+
OUTDATED_CONTENT: 'OUTDATED_CONTENT'
|
|
90
|
+
} as const
|
|
91
|
+
|
|
92
|
+
export type ContentIssueType = (typeof ContentIssueType)[keyof typeof ContentIssueType]
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
export const NotificationType = {
|
|
96
|
+
DOCUMENT_PUBLISHED: 'DOCUMENT_PUBLISHED',
|
|
97
|
+
DOCUMENT_ASSIGNED: 'DOCUMENT_ASSIGNED',
|
|
98
|
+
REVIEW_REQUESTED: 'REVIEW_REQUESTED',
|
|
99
|
+
REVIEW_APPROVED: 'REVIEW_APPROVED',
|
|
100
|
+
COMMENT_ADDED: 'COMMENT_ADDED',
|
|
101
|
+
SYSTEM_ALERT: 'SYSTEM_ALERT',
|
|
102
|
+
WORKFLOW_STEP: 'WORKFLOW_STEP'
|
|
103
|
+
} as const
|
|
104
|
+
|
|
105
|
+
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
export const OrderStatus = {
|
|
109
|
+
PENDING: 'PENDING',
|
|
110
|
+
CONFIRMED: 'CONFIRMED',
|
|
111
|
+
PROCESSING: 'PROCESSING',
|
|
112
|
+
SHIPPED: 'SHIPPED',
|
|
113
|
+
DELIVERED: 'DELIVERED',
|
|
114
|
+
CANCELLED: 'CANCELLED',
|
|
115
|
+
REFUNDED: 'REFUNDED'
|
|
116
|
+
} as const
|
|
117
|
+
|
|
118
|
+
export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus]
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
export const PaymentStatus = {
|
|
122
|
+
PENDING: 'PENDING',
|
|
123
|
+
AUTHORIZED: 'AUTHORIZED',
|
|
124
|
+
CAPTURED: 'CAPTURED',
|
|
125
|
+
FAILED: 'FAILED',
|
|
126
|
+
REFUNDED: 'REFUNDED',
|
|
127
|
+
PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED'
|
|
128
|
+
} as const
|
|
129
|
+
|
|
130
|
+
export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus]
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
export const WorkflowStage = {
|
|
134
|
+
DRAFT: 'DRAFT',
|
|
135
|
+
IN_REVIEW: 'IN_REVIEW',
|
|
136
|
+
APPROVED: 'APPROVED',
|
|
137
|
+
PUBLISHED: 'PUBLISHED',
|
|
138
|
+
ARCHIVED: 'ARCHIVED'
|
|
139
|
+
} as const
|
|
140
|
+
|
|
141
|
+
export type WorkflowStage = (typeof WorkflowStage)[keyof typeof WorkflowStage]
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
export const DiscountType = {
|
|
145
|
+
PERCENTAGE: 'PERCENTAGE',
|
|
146
|
+
FIXED_AMOUNT: 'FIXED_AMOUNT',
|
|
147
|
+
FREE_SHIPPING: 'FREE_SHIPPING'
|
|
148
|
+
} as const
|
|
149
|
+
|
|
150
|
+
export type DiscountType = (typeof DiscountType)[keyof typeof DiscountType]
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
export const ProductType = {
|
|
154
|
+
PHYSICAL: 'PHYSICAL',
|
|
155
|
+
DIGITAL: 'DIGITAL',
|
|
156
|
+
SUBSCRIPTION: 'SUBSCRIPTION',
|
|
157
|
+
BUNDLE: 'BUNDLE'
|
|
158
|
+
} as const
|
|
159
|
+
|
|
160
|
+
export type ProductType = (typeof ProductType)[keyof typeof ProductType]
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
export const MediaStatus = {
|
|
164
|
+
PROCESSING: 'PROCESSING',
|
|
165
|
+
READY: 'READY',
|
|
166
|
+
FAILED: 'FAILED'
|
|
167
|
+
} as const
|
|
168
|
+
|
|
169
|
+
export type MediaStatus = (typeof MediaStatus)[keyof typeof MediaStatus]
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
export const SeoAuditStatus = {
|
|
173
|
+
RUNNING: 'RUNNING',
|
|
174
|
+
COMPLETED: 'COMPLETED',
|
|
175
|
+
FAILED: 'FAILED'
|
|
176
|
+
} as const
|
|
177
|
+
|
|
178
|
+
export type SeoAuditStatus = (typeof SeoAuditStatus)[keyof typeof SeoAuditStatus]
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
export const SeoIssueSeverity = {
|
|
182
|
+
critical: 'critical',
|
|
183
|
+
warning: 'warning',
|
|
184
|
+
info: 'info'
|
|
185
|
+
} as const
|
|
186
|
+
|
|
187
|
+
export type SeoIssueSeverity = (typeof SeoIssueSeverity)[keyof typeof SeoIssueSeverity]
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
export const SeoIssueStatus = {
|
|
191
|
+
open: 'open',
|
|
192
|
+
ignored: 'ignored',
|
|
193
|
+
resolved: 'resolved',
|
|
194
|
+
recurring: 'recurring'
|
|
195
|
+
} as const
|
|
196
|
+
|
|
197
|
+
export type SeoIssueStatus = (typeof SeoIssueStatus)[keyof typeof SeoIssueStatus]
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
export const SeoIssueCategory = {
|
|
201
|
+
content: 'content',
|
|
202
|
+
technical: 'technical',
|
|
203
|
+
redirects: 'redirects',
|
|
204
|
+
media: 'media',
|
|
205
|
+
performance: 'performance',
|
|
206
|
+
schema: 'schema',
|
|
207
|
+
social: 'social',
|
|
208
|
+
indexing: 'indexing'
|
|
209
|
+
} as const
|
|
210
|
+
|
|
211
|
+
export type SeoIssueCategory = (typeof SeoIssueCategory)[keyof typeof SeoIssueCategory]
|