@actuate-media/cms-core 0.19.0 → 0.21.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.
Files changed (72) hide show
  1. package/LICENSE +21 -21
  2. package/dist/__tests__/api/ai-quality.test.d.ts +2 -0
  3. package/dist/__tests__/api/ai-quality.test.d.ts.map +1 -0
  4. package/dist/__tests__/api/ai-quality.test.js +470 -0
  5. package/dist/__tests__/api/ai-quality.test.js.map +1 -0
  6. package/dist/__tests__/fields/component-block.test.d.ts +2 -0
  7. package/dist/__tests__/fields/component-block.test.d.ts.map +1 -0
  8. package/dist/__tests__/fields/component-block.test.js +129 -0
  9. package/dist/__tests__/fields/component-block.test.js.map +1 -0
  10. package/dist/__tests__/seo/config-store.test.d.ts +2 -0
  11. package/dist/__tests__/seo/config-store.test.d.ts.map +1 -0
  12. package/dist/__tests__/seo/config-store.test.js +167 -0
  13. package/dist/__tests__/seo/config-store.test.js.map +1 -0
  14. package/dist/api/handler-factory.d.ts.map +1 -1
  15. package/dist/api/handler-factory.js +4 -0
  16. package/dist/api/handler-factory.js.map +1 -1
  17. package/dist/api/handlers.d.ts.map +1 -1
  18. package/dist/api/handlers.js +566 -21
  19. package/dist/api/handlers.js.map +1 -1
  20. package/dist/config/types.d.ts +61 -1
  21. package/dist/config/types.d.ts.map +1 -1
  22. package/dist/fields/component-block.d.ts +23 -0
  23. package/dist/fields/component-block.d.ts.map +1 -0
  24. package/dist/fields/component-block.js +137 -0
  25. package/dist/fields/component-block.js.map +1 -0
  26. package/dist/fields/index.d.ts.map +1 -1
  27. package/dist/fields/index.js +2 -0
  28. package/dist/fields/index.js.map +1 -1
  29. package/dist/seo/config-store.d.ts +61 -0
  30. package/dist/seo/config-store.d.ts.map +1 -0
  31. package/dist/seo/config-store.js +158 -0
  32. package/dist/seo/config-store.js.map +1 -0
  33. package/dist/seo/index.d.ts +2 -0
  34. package/dist/seo/index.d.ts.map +1 -1
  35. package/dist/seo/index.js +1 -0
  36. package/dist/seo/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/prisma/cms-schema.prisma +306 -306
  39. package/prisma/migrations/0001_init/migration.sql +384 -384
  40. package/prisma/migrations/0002_folders/migration.sql +39 -39
  41. package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
  42. package/prisma/migrations/0004_script_tags/migration.sql +21 -21
  43. package/prisma/migrations/0005_password_reset_tokens/migration.sql +20 -20
  44. package/prisma/migrations/0006_page_builder/migration.sql +38 -38
  45. package/prisma/migrations/migration_lock.toml +3 -3
  46. package/prisma/schema.prisma +549 -549
  47. package/generated/browser.ts +0 -109
  48. package/generated/client.ts +0 -133
  49. package/generated/commonInputTypes.ts +0 -709
  50. package/generated/enums.ts +0 -125
  51. package/generated/internal/class.ts +0 -376
  52. package/generated/internal/prismaNamespace.ts +0 -2617
  53. package/generated/internal/prismaNamespaceBrowser.ts +0 -611
  54. package/generated/models/ApiKey.ts +0 -1550
  55. package/generated/models/AuditLog.ts +0 -1206
  56. package/generated/models/BackupRecord.ts +0 -1250
  57. package/generated/models/ContentLock.ts +0 -1472
  58. package/generated/models/ContentTemplate.ts +0 -1416
  59. package/generated/models/Document.ts +0 -3005
  60. package/generated/models/Folder.ts +0 -1904
  61. package/generated/models/FormSubmission.ts +0 -1200
  62. package/generated/models/InAppNotification.ts +0 -1457
  63. package/generated/models/Media.ts +0 -2340
  64. package/generated/models/MediaUsage.ts +0 -1472
  65. package/generated/models/OAuthAccount.ts +0 -1463
  66. package/generated/models/Redirect.ts +0 -1284
  67. package/generated/models/Session.ts +0 -1492
  68. package/generated/models/Site.ts +0 -1206
  69. package/generated/models/User.ts +0 -3513
  70. package/generated/models/Version.ts +0 -1511
  71. package/generated/models/WorkflowState.ts +0 -1514
  72. package/generated/models.ts +0 -29
@@ -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]