@beechcms/api 0.6.0-preview.3 → 0.6.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/assets/dashboard/assets/chart-FUiy4I7R.js +39 -0
- package/assets/dashboard/assets/index-BlehzIfd.js +644 -0
- package/assets/dashboard/assets/index-Dve7eEqA.css +1 -0
- package/assets/dashboard/assets/pie-chart-recharts-iaYz4FeR.js +1 -0
- package/assets/dashboard/assets/timeseries-chart-recharts-C8Lcylom.js +1 -0
- package/assets/dashboard/index.html +3 -4
- package/dist/auth/constants.d.ts +5 -5
- package/dist/factory.d.ts +7 -1
- package/dist/features/automations/{automations.handler.d.ts → api/automations.handler.d.ts} +1 -1
- package/dist/features/automations/{automation-runner.utils.d.ts → engine/automation-runner.utils.d.ts} +1 -1
- package/dist/features/automations/{action-executors → executors}/edit-field.executor.d.ts +1 -1
- package/dist/features/automations/{action-executors → executors}/index.d.ts +1 -1
- package/dist/features/automations/{action-executors → executors}/send-mail.executor.d.ts +1 -1
- package/dist/features/automations/{action-executors → executors}/set-variable.executor.d.ts +1 -1
- package/dist/features/automations/{action-executors → executors}/webhook.executor.d.ts +1 -1
- package/dist/features/automations/{when-evaluator.d.ts → filters/when-evaluator.d.ts} +1 -1
- package/dist/features/automations/index.d.ts +7 -7
- package/dist/features/content/constants.d.ts +10 -10
- package/dist/features/content/handlers/kanban-move.d.ts +3 -0
- package/dist/features/content/handlers/kanban-position.d.ts +3 -0
- package/dist/features/content/handlers/view-config.d.ts +4 -0
- package/dist/{search.d.ts → features/search/search.d.ts} +1 -1
- package/dist/features/upload/index.d.ts +9 -0
- package/dist/{widget.d.ts → features/widget/widget.d.ts} +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1126 -421
- package/dist/{middleware.d.ts → middleware/auth.middleware.d.ts} +1 -1
- package/dist/middleware/queue.middleware.d.ts +11 -0
- package/dist/middleware/repository.middleware.d.ts +2 -1
- package/dist/public/access-policy.d.ts +1 -1
- package/dist/public/problem-details.d.ts +1 -0
- package/dist/public/public-errors.d.ts +4 -4
- package/dist/rate-limit/cloudflare-rate-limiter.d.ts +4 -1
- package/dist/rate-limit/in-memory-rate-limiter.d.ts +2 -1
- package/dist/shared/cloudflare-queue-service.d.ts +11 -0
- package/dist/shared/{schema-mutator.d1.d.ts → db/migrations/schema-mutator.d1.d.ts} +1 -0
- package/dist/shared/db/repositories/content.repository.d1.d.ts +259 -0
- package/dist/shared/db/repositories/kanban-position.repository.d1.d.ts +9 -0
- package/dist/shared/{seed-layout.repository.d1.d.ts → db/repositories/seed-layout.repository.d1.d.ts} +3 -1
- package/dist/shared/email/email.provider.d.ts +1 -0
- package/dist/{features → shared}/email/email.types.d.ts +1 -16
- package/dist/{features → shared}/email/providers/resend.d.ts +1 -2
- package/dist/{features → shared}/email/providers/smtp.d.ts +1 -2
- package/dist/shared/in-memory-queue-service.d.ts +16 -0
- package/dist/shared/jobs/queue-consumer.d.ts +9 -0
- package/dist/shared/queue-consumer.d.ts +9 -0
- package/dist/shared/services/queue/cloudflare-queue-service.d.ts +11 -0
- package/dist/shared/services/queue/in-memory-queue-service.d.ts +16 -0
- package/dist/shared/storage/s3-bucket.d.ts +0 -1
- package/dist/shared/storage/upload.d.ts +7 -0
- package/dist/{media-utils.d.ts → shared/utils/media-utils.d.ts} +4 -2
- package/dist/types.d.ts +95 -2
- package/package.json +6 -4
- package/assets/dashboard/assets/chart-Cws4Yj6K.js +0 -39
- package/assets/dashboard/assets/index-BjPpppHe.css +0 -1
- package/assets/dashboard/assets/index-CrW-zhkA.js +0 -642
- package/assets/dashboard/assets/pie-chart-recharts-CAxoDQp2.js +0 -1
- package/assets/dashboard/assets/timeseries-chart-recharts-CixDW-LM.js +0 -1
- package/dist/features/email/email.provider.d.ts +0 -37
- package/dist/shared/content.repository.d1.d.ts +0 -68
- package/dist/upload.d.ts +0 -16
- package/dist/auth/{bcrypt-hash-provider.d.ts → providers/hash.provider.d.ts} +0 -0
- package/dist/auth/{jose-token-service.d.ts → providers/jwt-token.service.d.ts} +0 -0
- package/dist/auth/{login.d.ts → utils/login-helpers.d.ts} +0 -0
- package/dist/auth/{refresh.d.ts → utils/refresh-token.d.ts} +0 -0
- package/dist/features/automations/{automations.schema.d.ts → api/automations.schema.d.ts} +19 -19
- /package/dist/features/automations/{automation-runner.d.ts → engine/automation-runner.d.ts} +0 -0
- /package/dist/features/automations/{cron-runner.d.ts → engine/cron-runner.d.ts} +0 -0
- /package/dist/features/automations/{cron-runner.utils.d.ts → engine/cron-runner.utils.d.ts} +0 -0
- /package/dist/features/automations/{context-resolver.d.ts → evaluator/context-resolver.d.ts} +0 -0
- /package/dist/features/automations/{template-grammar.d.ts → evaluator/template-grammar.d.ts} +0 -0
- /package/dist/features/automations/{var-access-resolver.d.ts → evaluator/var-access-resolver.d.ts} +0 -0
- /package/dist/features/automations/{action-executors → executors}/create-entry.executor.d.ts +0 -0
- /package/dist/features/automations/{filter-translation.d.ts → filters/filter-translation.d.ts} +0 -0
- /package/dist/features/automations/{when-pushdown.d.ts → filters/when-pushdown.d.ts} +0 -0
- /package/dist/{search-utils.d.ts → features/search/search-utils.d.ts} +0 -0
- /package/dist/shared/{demo-data-sql.d.ts → db/migrations/demo-data-sql.d.ts} +0 -0
- /package/dist/shared/{automations.repository.d1.d.ts → db/repositories/automations.repository.d1.d.ts} +0 -0
- /package/dist/shared/{base.repository.d1.d.ts → db/repositories/base.repository.d1.d.ts} +0 -0
- /package/dist/shared/{d1-activity-log.repository.d.ts → db/repositories/d1-activity-log.repository.d.ts} +0 -0
- /package/dist/shared/{d1-analytics.repository.d.ts → db/repositories/d1-analytics.repository.d.ts} +0 -0
- /package/dist/shared/{d1-content-scan.repository.d.ts → db/repositories/d1-content-scan.repository.d.ts} +0 -0
- /package/dist/shared/{d1-notification.repository.d.ts → db/repositories/d1-notification.repository.d.ts} +0 -0
- /package/dist/shared/{d1-password-reset-token.repository.d.ts → db/repositories/d1-password-reset-token.repository.d.ts} +0 -0
- /package/dist/shared/{d1-search.repository.d.ts → db/repositories/d1-search.repository.d.ts} +0 -0
- /package/dist/shared/{d1-session.repository.d.ts → db/repositories/d1-session.repository.d.ts} +0 -0
- /package/dist/shared/{d1-setup-checklist.repository.d.ts → db/repositories/d1-setup-checklist.repository.d.ts} +0 -0
- /package/dist/shared/{d1-user.repository.d.ts → db/repositories/d1-user.repository.d.ts} +0 -0
- /package/dist/shared/{d1-widget.repository.d.ts → db/repositories/d1-widget.repository.d.ts} +0 -0
- /package/dist/shared/{dashboard-layout.repository.d1.d.ts → db/repositories/dashboard-layout.repository.d1.d.ts} +0 -0
- /package/dist/shared/{demo-data.repository.d1.d.ts → db/repositories/demo-data.repository.d1.d.ts} +0 -0
- /package/dist/shared/{idempotency.repository.d1.d.ts → db/repositories/idempotency.repository.d1.d.ts} +0 -0
- /package/dist/shared/{in-memory-seed.repository.d.ts → db/repositories/in-memory-seed.repository.d.ts} +0 -0
- /package/dist/shared/{media.repository.d1.d.ts → db/repositories/media.repository.d1.d.ts} +0 -0
- /package/dist/shared/{seed.repository.d1.d.ts → db/repositories/seed.repository.d1.d.ts} +0 -0
- /package/dist/shared/{site-settings.repository.d1.d.ts → db/repositories/site-settings.repository.d1.d.ts} +0 -0
- /package/dist/shared/{system-stats.repository.d1.d.ts → db/repositories/system-stats.repository.d1.d.ts} +0 -0
- /package/dist/{features → shared}/email/email.service.d.ts +0 -0
- /package/dist/{features → shared}/email/index.d.ts +0 -0
- /package/dist/{features → shared}/email/templates/automation-mail.d.ts +0 -0
- /package/dist/{features → shared}/email/templates/password-changed.d.ts +0 -0
- /package/dist/{features → shared}/email/templates/password-reset.d.ts +0 -0
- /package/dist/{features → shared}/email/templates/shell.d.ts +0 -0
- /package/dist/shared/{fts-sync.d.ts → jobs/fts-sync.d.ts} +0 -0
- /package/dist/shared/{apply-policies.d.ts → policies/apply-policies.d.ts} +0 -0
- /package/dist/shared/{d1-activity-logger.d.ts → services/activity-log/d1-activity-logger.d.ts} +0 -0
- /package/dist/shared/{in-memory-activity-logger.d.ts → services/activity-log/in-memory-activity-logger.d.ts} +0 -0
- /package/dist/shared/{seed-registry-cache.d.ts → services/cache/seed-registry-cache.d.ts} +0 -0
- /package/dist/shared/{fixed-clock.d.ts → services/clock/fixed-clock.d.ts} +0 -0
- /package/dist/shared/{sequential-id-generator.d.ts → services/id-generator/sequential-id-generator.d.ts} +0 -0
- /package/dist/shared/{background-notification-service.d.ts → services/notification/background-notification-service.d.ts} +0 -0
- /package/dist/shared/{in-memory-notification-service.d.ts → services/notification/in-memory-notification-service.d.ts} +0 -0
- /package/dist/shared/{qstash-notification-service.d.ts → services/notification/qstash-notification-service.d.ts} +0 -0
- /package/dist/shared/{execution-context-scheduler.d.ts → services/scheduler/execution-context-scheduler.d.ts} +0 -0
- /package/dist/shared/{content-utils.d.ts → utils/content-utils.d.ts} +0 -0
- /package/dist/shared/{query-utils.d.ts → utils/query-utils.d.ts} +0 -0
- /package/dist/shared/{request-utils.d.ts → utils/request-utils.d.ts} +0 -0
- /package/dist/shared/{storage-utils.d.ts → utils/storage-utils.d.ts} +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,84 +1,177 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module Types
|
|
3
|
+
* Hono app-level type contracts: Cloudflare Worker bindings (`Env`),
|
|
4
|
+
* per-request context values injected by middleware (`Variables`), and
|
|
5
|
+
* the combined `AppEnv` used to type every Hono app/router in the API.
|
|
6
|
+
*/
|
|
7
|
+
import type { Seed, ContentRepository, IdempotencyRepository, BeechBucket, MediaRepository, SystemStatsRepository, IHashProvider, ITokenService, IUserRepository, ISessionRepository, IPasswordResetTokenRepository, IActivityLogger, IActivityLogRepository, INotificationRepository, INotificationService, IWidgetRepository, ISearchRepository, IAnalyticsRepository, IContentScanRepository, ISeedRegistry, IClock, IIdGenerator, IAutomationRunner, IAutomationRepository, IScheduler, BackrefMap, ISiteSettingsRepository, IDemoDataRepository, JwtClaims, ISeedLayoutRepository, ISeedRepository, ISchemaMutator, IDashboardLayoutRepository, IQueueService, IKanbanPositionRepository } from '@beechcms/core';
|
|
2
8
|
import type { IRateLimiterRegistry } from './middleware/rate-limit.middleware';
|
|
3
|
-
import type { ISetupChecklistRepository } from './shared/d1-setup-checklist.repository';
|
|
9
|
+
import type { ISetupChecklistRepository } from './shared/db/repositories/d1-setup-checklist.repository';
|
|
10
|
+
/**
|
|
11
|
+
* Cloudflare Worker bindings and environment variables, as declared in `wrangler.toml`.
|
|
12
|
+
* Populated by the Workers runtime; optional fields are unset in some environments (e.g. local dev, tests).
|
|
13
|
+
*/
|
|
4
14
|
export interface Env {
|
|
15
|
+
/** D1 database binding, the source of truth for all content and system tables. */
|
|
5
16
|
DB: D1Database;
|
|
17
|
+
/** Secret used to sign and verify JWTs. */
|
|
6
18
|
JWT_SECRET: string;
|
|
19
|
+
/** Expected `iss` claim on issued/verified JWTs. */
|
|
7
20
|
JWT_ISSUER?: string;
|
|
21
|
+
/** Expected `aud` claim on issued/verified JWTs. */
|
|
8
22
|
JWT_AUDIENCE?: string;
|
|
23
|
+
/** R2-compatible access key ID for media storage. */
|
|
9
24
|
R2_ACCESS_KEY_ID?: string;
|
|
25
|
+
/** R2-compatible secret access key for media storage. */
|
|
10
26
|
R2_SECRET_ACCESS_KEY?: string;
|
|
27
|
+
/** R2-compatible S3 API endpoint. */
|
|
11
28
|
R2_ENDPOINT?: string;
|
|
29
|
+
/** R2 bucket name used for media uploads. */
|
|
12
30
|
R2_BUCKET_NAME?: string;
|
|
31
|
+
/** Rate limiter binding for the login endpoint. */
|
|
13
32
|
LOGIN_RATE_LIMITER?: RateLimit;
|
|
33
|
+
/** Rate limiter binding for the token refresh endpoint. */
|
|
14
34
|
REFRESH_RATE_LIMITER?: RateLimit;
|
|
35
|
+
/** Rate limiter binding for public (API-key) read endpoints. */
|
|
15
36
|
PUBLIC_READ_RATE_LIMITER?: RateLimit;
|
|
37
|
+
/** Rate limiter binding for public (API-key) write endpoints. */
|
|
16
38
|
PUBLIC_WRITE_RATE_LIMITER?: RateLimit;
|
|
39
|
+
/** Comma-separated list of allowed CORS origins. */
|
|
17
40
|
CORS_ORIGINS?: string;
|
|
41
|
+
/** API key required for public read-only requests. */
|
|
18
42
|
PUBLIC_READ_API_KEY?: string;
|
|
43
|
+
/** API key required for public write requests. */
|
|
19
44
|
PUBLIC_WRITE_API_KEY?: string;
|
|
45
|
+
/** When set, restricts the public API to `published` status entries only. */
|
|
20
46
|
PUBLIC_PUBLISHED_ONLY?: string;
|
|
47
|
+
/** TTL, in seconds, for public API idempotency keys. */
|
|
21
48
|
PUBLIC_IDEMPOTENCY_TTL_SECONDS?: string;
|
|
49
|
+
/** Base URL used to build public media asset URLs. */
|
|
22
50
|
MEDIA_BASE_URL?: string;
|
|
51
|
+
/** CDN URL prepended to media asset URLs when serving through a CDN. */
|
|
23
52
|
MEDIA_CDN_URL?: string;
|
|
53
|
+
/** Maximum accepted upload size, in bytes. */
|
|
24
54
|
MAX_UPLOAD_BYTES?: string;
|
|
55
|
+
/** API key for the Resend transactional email provider. */
|
|
25
56
|
RESEND_API_KEY?: string;
|
|
57
|
+
/** Generic email provider API key, used when `EMAIL_PROVIDER` is not Resend/SMTP-specific. */
|
|
26
58
|
EMAIL_API_KEY?: string;
|
|
59
|
+
/** Public base URL of the dashboard app, used in outbound email links. */
|
|
27
60
|
APP_URL?: string;
|
|
61
|
+
/** Default `From` address for outbound email. */
|
|
28
62
|
EMAIL_FROM?: string;
|
|
63
|
+
/** Selects the email transport (e.g. `resend`, `smtp`). */
|
|
29
64
|
EMAIL_PROVIDER?: string;
|
|
65
|
+
/** SMTP host, used when `EMAIL_PROVIDER` is SMTP. */
|
|
30
66
|
SMTP_HOST?: string;
|
|
67
|
+
/** SMTP port, used when `EMAIL_PROVIDER` is SMTP. */
|
|
31
68
|
SMTP_PORT?: string;
|
|
69
|
+
/** URL of a webhook-capture service used in dev/testing to inspect outbound webhook calls. */
|
|
32
70
|
WEBHOOK_TESTER_URL?: string;
|
|
71
|
+
/** Rate limiter binding for the forgot-password endpoint. */
|
|
33
72
|
FORGOT_PASSWORD_RATE_LIMITER?: RateLimit;
|
|
73
|
+
/** Rate limiter binding for the reset-password endpoint. */
|
|
34
74
|
RESET_PASSWORD_RATE_LIMITER?: RateLimit;
|
|
75
|
+
/** Deployment environment name (e.g. `development`, `production`). */
|
|
35
76
|
ENV?: string;
|
|
77
|
+
/** Default date format string used for display/formatting purposes. */
|
|
36
78
|
DATE_FORMAT?: string;
|
|
79
|
+
/** Static assets binding, serving the dashboard SPA in production. */
|
|
37
80
|
ASSETS?: Fetcher;
|
|
81
|
+
/** Cloudflare Queue binding for async job dispatch. */
|
|
82
|
+
QUEUE?: Queue;
|
|
83
|
+
/** Auth token for the QStash scheduling/delivery service. */
|
|
38
84
|
QSTASH_TOKEN?: string;
|
|
85
|
+
/** Base URL of the QStash API. */
|
|
39
86
|
QSTASH_URL?: string;
|
|
40
87
|
/** Public base URL the worker is reachable at, used by QStash to call back the webhook (e.g. an ngrok tunnel in dev). Falls back to APP_URL. */
|
|
41
88
|
QSTASH_CALLBACK_URL?: string;
|
|
89
|
+
/** Current QStash signing key, used to verify inbound webhook signatures. */
|
|
42
90
|
QSTASH_CURRENT_SIGNING_KEY?: string;
|
|
91
|
+
/** Next QStash signing key, accepted during key rotation. */
|
|
43
92
|
QSTASH_NEXT_SIGNING_KEY?: string;
|
|
44
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Per-request context values (`c.get(...)` / `c.set(...)`), injected by middleware
|
|
96
|
+
* before route handlers run. Every entry here must be set by some middleware on the request path.
|
|
97
|
+
*/
|
|
45
98
|
export interface Variables {
|
|
99
|
+
/** Decoded JWT claims of the authenticated user. */
|
|
46
100
|
jwtPayload: JwtClaims;
|
|
101
|
+
/** Looks up a Seed definition by slug from the loaded schema. */
|
|
47
102
|
getSeed: (slug: string) => Seed | null;
|
|
103
|
+
/** Registry of all loaded Seed definitions. */
|
|
48
104
|
seedRegistry: ISeedRegistry;
|
|
105
|
+
/** Repository for reading/writing content entries. */
|
|
49
106
|
repository: ContentRepository;
|
|
107
|
+
/** Repository for idempotency key storage (dedupes retried writes). */
|
|
50
108
|
idempotencyRepository: IdempotencyRepository;
|
|
109
|
+
/** Media storage bucket abstraction (R2-backed). */
|
|
51
110
|
bucket: BeechBucket;
|
|
111
|
+
/** Repository for media asset metadata. */
|
|
52
112
|
mediaRepository: MediaRepository;
|
|
113
|
+
/** Repository for aggregate system/dashboard statistics. */
|
|
53
114
|
systemStatsRepository: SystemStatsRepository;
|
|
115
|
+
/** Password hashing provider. */
|
|
54
116
|
hashProvider: IHashProvider;
|
|
117
|
+
/** Issues and verifies auth tokens (JWT access/refresh). */
|
|
55
118
|
tokenService: ITokenService;
|
|
119
|
+
/** Repository for user accounts. */
|
|
56
120
|
userRepository: IUserRepository;
|
|
121
|
+
/** Repository for auth sessions. */
|
|
57
122
|
sessionRepository: ISessionRepository;
|
|
123
|
+
/** Repository for password reset tokens. */
|
|
58
124
|
passwordResetTokenRepository: IPasswordResetTokenRepository;
|
|
125
|
+
/** Registry of configured rate limiters, keyed by route/binding. */
|
|
59
126
|
rateLimiters: IRateLimiterRegistry;
|
|
127
|
+
/** Records activity log entries for auditing. */
|
|
60
128
|
activityLogger: IActivityLogger;
|
|
129
|
+
/** Repository for reading activity log entries. */
|
|
61
130
|
activityLogRepository: IActivityLogRepository;
|
|
131
|
+
/** Repository for user notifications. */
|
|
62
132
|
notificationRepository: INotificationRepository;
|
|
133
|
+
/** Dispatches notifications (in-app, email, etc). */
|
|
63
134
|
notificationService: INotificationService;
|
|
135
|
+
/** Repository for dashboard widget configuration. */
|
|
64
136
|
widgetRepository: IWidgetRepository;
|
|
137
|
+
/** Repository backing full-text/content search. */
|
|
65
138
|
searchRepository: ISearchRepository;
|
|
139
|
+
/** Repository for analytics event storage/queries. */
|
|
66
140
|
analyticsRepository: IAnalyticsRepository;
|
|
141
|
+
/** Repository for content scan results (e.g. broken links, validation issues). */
|
|
67
142
|
contentScanRepository: IContentScanRepository;
|
|
143
|
+
/** Clock abstraction, used instead of `Date.now()` for testability. */
|
|
68
144
|
clock: IClock;
|
|
145
|
+
/** Generates unique IDs for new records. */
|
|
69
146
|
idGenerator: IIdGenerator;
|
|
147
|
+
/** Repository for automation (workflow) definitions. */
|
|
70
148
|
automationRepository: IAutomationRepository;
|
|
149
|
+
/** Executes automation runs. */
|
|
71
150
|
automationRunner: IAutomationRunner;
|
|
151
|
+
/** Schedules deferred/delayed jobs. */
|
|
72
152
|
scheduler: IScheduler;
|
|
153
|
+
/** Enqueues async jobs onto the Queue binding. */
|
|
154
|
+
queue: IQueueService;
|
|
155
|
+
/** Map of reverse relation references, used to resolve backrefs between content types. */
|
|
73
156
|
backrefMap: BackrefMap;
|
|
157
|
+
/** Repository for global site settings. */
|
|
74
158
|
siteSettingsRepository: ISiteSettingsRepository;
|
|
159
|
+
/** Repository for demo/seed data generation. */
|
|
75
160
|
demoDataRepository: IDemoDataRepository;
|
|
161
|
+
/** Repository tracking onboarding/setup checklist completion. */
|
|
76
162
|
setupChecklistRepository: ISetupChecklistRepository;
|
|
163
|
+
/** Repository for per-seed layout configuration (form/list layouts). */
|
|
77
164
|
seedLayoutRepository: ISeedLayoutRepository;
|
|
165
|
+
/** Repository for Seed (content type) definitions themselves. */
|
|
78
166
|
seedRepository: ISeedRepository;
|
|
167
|
+
/** Applies schema mutations (create/alter/drop) to the database. */
|
|
79
168
|
schemaMutator: ISchemaMutator;
|
|
169
|
+
/** Repository for dashboard layout configuration. */
|
|
80
170
|
dashboardLayoutRepository: IDashboardLayoutRepository;
|
|
171
|
+
/** Repository for Kanban card position/ordering state. */
|
|
172
|
+
kanbanPositionRepository: IKanbanPositionRepository;
|
|
81
173
|
}
|
|
174
|
+
/** Combined Hono generic type (`Bindings` + `Variables`) used to type every app/router in the API. */
|
|
82
175
|
export type AppEnv = {
|
|
83
176
|
Bindings: Env;
|
|
84
177
|
Variables: Variables;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beechcms/api",
|
|
3
|
-
"version": "0.6.0
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/factory.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-sdk/client-s3": "^3.995.0",
|
|
22
22
|
"@aws-sdk/s3-request-presigner": "^3.995.0",
|
|
23
|
-
"@beechcms/core": "^0.6.0
|
|
23
|
+
"@beechcms/core": "^0.6.0",
|
|
24
24
|
"@upstash/qstash": "^2.11.0",
|
|
25
25
|
"bcryptjs": "^2.4.3",
|
|
26
26
|
"hono": "^4.12.21",
|
|
@@ -30,9 +30,10 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@cloudflare/workers-types": "^4.20260213.0",
|
|
32
32
|
"@types/bcryptjs": "^2.4.6",
|
|
33
|
+
"@types/node": "^24.10.1",
|
|
33
34
|
"@vitest/coverage-v8": "^4.1.0",
|
|
34
35
|
"esbuild": "0.28.1",
|
|
35
|
-
"vite": "8.
|
|
36
|
+
"vite": "8.1.3",
|
|
36
37
|
"vitest": "^4.1.0",
|
|
37
38
|
"wrangler": "^4.100.0"
|
|
38
39
|
},
|
|
@@ -41,10 +42,11 @@
|
|
|
41
42
|
"scripts": {
|
|
42
43
|
"dev": "wrangler dev --port 8789",
|
|
43
44
|
"build": "esbuild src/factory.ts --bundle --packages=external --platform=neutral --format=esm --outfile=dist/index.js && tsc -p tsconfig.build.json",
|
|
45
|
+
"lint": "eslint .",
|
|
44
46
|
"type-check": "tsc -p tsconfig.build.json --noEmit",
|
|
45
47
|
"db:migrate:local": "node ./scripts/bootstrap-d1.mjs",
|
|
46
48
|
"db:reset:local": "node -e \"require('fs').rmSync('.wrangler/state', {recursive:true,force:true})\" && node ./scripts/bootstrap-d1.mjs",
|
|
47
|
-
"deploy": "wrangler deploy --minify",
|
|
49
|
+
"deploy": "wrangler deploy --minify --env production",
|
|
48
50
|
"cf-typegen": "wrangler types --env-interface CloudflareBindings",
|
|
49
51
|
"test": "vitest run",
|
|
50
52
|
"test:coverage": "vitest run --coverage"
|