@actuate-media/cms-core 0.2.3 → 0.3.1
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/LICENSE +21 -21
- package/dist/__tests__/auth/session.test.js +1 -1
- package/dist/__tests__/auth/session.test.js.map +1 -1
- package/dist/api/handler-factory.d.ts.map +1 -1
- package/dist/api/handler-factory.js +85 -68
- package/dist/api/handler-factory.js.map +1 -1
- package/dist/api/handlers.d.ts +1 -1
- package/dist/api/handlers.d.ts.map +1 -1
- package/dist/api/handlers.js +212 -31
- package/dist/api/handlers.js.map +1 -1
- package/dist/api/index.d.ts +2 -19
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -54
- package/dist/api/index.js.map +1 -1
- package/dist/api/router.d.ts +20 -0
- package/dist/api/router.d.ts.map +1 -0
- package/dist/api/router.js +55 -0
- package/dist/api/router.js.map +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -1
- package/dist/i18n/index.js +8 -8
- package/dist/media/optimize.d.ts +2 -3
- package/dist/media/optimize.d.ts.map +1 -1
- package/dist/media/optimize.js +10 -1
- package/dist/media/optimize.js.map +1 -1
- package/dist/next.d.ts +3 -3
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +8 -8
- package/dist/next.js.map +1 -1
- package/dist/search/index.js +22 -22
- package/dist/security/anomaly-detection.d.ts +1 -1
- package/dist/security/anomaly-detection.d.ts.map +1 -1
- package/dist/security/anomaly-detection.js +27 -5
- package/dist/security/anomaly-detection.js.map +1 -1
- package/dist/security/reauth.d.ts +1 -1
- package/dist/security/reauth.d.ts.map +1 -1
- package/dist/security/reauth.js +12 -4
- package/dist/security/reauth.js.map +1 -1
- package/dist/security/sanitize.d.ts +1 -1
- package/dist/security/sanitize.d.ts.map +1 -1
- package/dist/security/sanitize.js +9 -11
- package/dist/security/sanitize.js.map +1 -1
- package/dist/security/webhook.d.ts +1 -1
- package/dist/security/webhook.d.ts.map +1 -1
- package/dist/security/webhook.js +24 -3
- package/dist/security/webhook.js.map +1 -1
- package/package.json +3 -2
- package/prisma/cms-schema.prisma +237 -237
- package/prisma/migrations/0001_init/migration.sql +384 -384
- package/prisma/migrations/0002_folders/migration.sql +39 -39
- package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
- package/prisma/migrations/migration_lock.toml +3 -3
- package/prisma/schema.prisma +485 -485
- package/prisma/seed.ts +82 -82
- package/generated/browser.ts +0 -109
- package/generated/client.ts +0 -133
- package/generated/commonInputTypes.ts +0 -709
- package/generated/enums.ts +0 -125
- package/generated/internal/class.ts +0 -376
- package/generated/internal/prismaNamespace.ts +0 -2617
- package/generated/internal/prismaNamespaceBrowser.ts +0 -611
- package/generated/models/ApiKey.ts +0 -1550
- package/generated/models/AuditLog.ts +0 -1206
- package/generated/models/BackupRecord.ts +0 -1250
- package/generated/models/ContentLock.ts +0 -1472
- package/generated/models/ContentTemplate.ts +0 -1416
- package/generated/models/Document.ts +0 -3005
- package/generated/models/Folder.ts +0 -1904
- package/generated/models/FormSubmission.ts +0 -1200
- package/generated/models/InAppNotification.ts +0 -1457
- package/generated/models/Media.ts +0 -2340
- package/generated/models/MediaUsage.ts +0 -1472
- package/generated/models/OAuthAccount.ts +0 -1463
- package/generated/models/Redirect.ts +0 -1284
- package/generated/models/Session.ts +0 -1492
- package/generated/models/Site.ts +0 -1206
- package/generated/models/User.ts +0 -3513
- package/generated/models/Version.ts +0 -1511
- package/generated/models/WorkflowState.ts +0 -1514
- package/generated/models.ts +0 -29
package/generated/enums.ts
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
} as const
|
|
29
|
-
|
|
30
|
-
export type UserRole = (typeof UserRole)[keyof typeof UserRole]
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export const ChangeType = {
|
|
34
|
-
CREATE: 'CREATE',
|
|
35
|
-
UPDATE: 'UPDATE',
|
|
36
|
-
PUBLISH: 'PUBLISH',
|
|
37
|
-
RESTORE: 'RESTORE'
|
|
38
|
-
} as const
|
|
39
|
-
|
|
40
|
-
export type ChangeType = (typeof ChangeType)[keyof typeof ChangeType]
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export const AuditEvent = {
|
|
44
|
-
login_success: 'login_success',
|
|
45
|
-
login_failed: 'login_failed',
|
|
46
|
-
logout: 'logout',
|
|
47
|
-
password_change: 'password_change',
|
|
48
|
-
password_reset_request: 'password_reset_request',
|
|
49
|
-
password_reset_complete: 'password_reset_complete',
|
|
50
|
-
totp_enabled: 'totp_enabled',
|
|
51
|
-
totp_disabled: 'totp_disabled',
|
|
52
|
-
api_key_created: 'api_key_created',
|
|
53
|
-
api_key_revoked: 'api_key_revoked',
|
|
54
|
-
document_created: 'document_created',
|
|
55
|
-
document_updated: 'document_updated',
|
|
56
|
-
document_published: 'document_published',
|
|
57
|
-
document_deleted: 'document_deleted',
|
|
58
|
-
media_uploaded: 'media_uploaded',
|
|
59
|
-
media_deleted: 'media_deleted',
|
|
60
|
-
user_created: 'user_created',
|
|
61
|
-
user_updated: 'user_updated',
|
|
62
|
-
user_deactivated: 'user_deactivated',
|
|
63
|
-
settings_changed: 'settings_changed',
|
|
64
|
-
export_requested: 'export_requested',
|
|
65
|
-
import_completed: 'import_completed'
|
|
66
|
-
} as const
|
|
67
|
-
|
|
68
|
-
export type AuditEvent = (typeof AuditEvent)[keyof typeof AuditEvent]
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export const NotificationType = {
|
|
72
|
-
DOCUMENT_PUBLISHED: 'DOCUMENT_PUBLISHED',
|
|
73
|
-
DOCUMENT_ASSIGNED: 'DOCUMENT_ASSIGNED',
|
|
74
|
-
REVIEW_REQUESTED: 'REVIEW_REQUESTED',
|
|
75
|
-
REVIEW_APPROVED: 'REVIEW_APPROVED',
|
|
76
|
-
COMMENT_ADDED: 'COMMENT_ADDED',
|
|
77
|
-
SYSTEM_ALERT: 'SYSTEM_ALERT',
|
|
78
|
-
WORKFLOW_STEP: 'WORKFLOW_STEP'
|
|
79
|
-
} as const
|
|
80
|
-
|
|
81
|
-
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
export const OrderStatus = {
|
|
85
|
-
PENDING: 'PENDING',
|
|
86
|
-
CONFIRMED: 'CONFIRMED',
|
|
87
|
-
PROCESSING: 'PROCESSING',
|
|
88
|
-
SHIPPED: 'SHIPPED',
|
|
89
|
-
DELIVERED: 'DELIVERED',
|
|
90
|
-
CANCELLED: 'CANCELLED',
|
|
91
|
-
REFUNDED: 'REFUNDED'
|
|
92
|
-
} as const
|
|
93
|
-
|
|
94
|
-
export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus]
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export const PaymentStatus = {
|
|
98
|
-
PENDING: 'PENDING',
|
|
99
|
-
AUTHORIZED: 'AUTHORIZED',
|
|
100
|
-
CAPTURED: 'CAPTURED',
|
|
101
|
-
FAILED: 'FAILED',
|
|
102
|
-
REFUNDED: 'REFUNDED',
|
|
103
|
-
PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED'
|
|
104
|
-
} as const
|
|
105
|
-
|
|
106
|
-
export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus]
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
export const DiscountType = {
|
|
110
|
-
PERCENTAGE: 'PERCENTAGE',
|
|
111
|
-
FIXED_AMOUNT: 'FIXED_AMOUNT',
|
|
112
|
-
FREE_SHIPPING: 'FREE_SHIPPING'
|
|
113
|
-
} as const
|
|
114
|
-
|
|
115
|
-
export type DiscountType = (typeof DiscountType)[keyof typeof DiscountType]
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export const ProductType = {
|
|
119
|
-
PHYSICAL: 'PHYSICAL',
|
|
120
|
-
DIGITAL: 'DIGITAL',
|
|
121
|
-
SUBSCRIPTION: 'SUBSCRIPTION',
|
|
122
|
-
BUNDLE: 'BUNDLE'
|
|
123
|
-
} as const
|
|
124
|
-
|
|
125
|
-
export type ProductType = (typeof ProductType)[keyof typeof ProductType]
|