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