@yimingliao/cms 0.0.62 → 0.0.64
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/dist/{chunk-YDNPEEO6.js → chunk-AOAWCZ4L.js} +117 -1
- package/dist/{chunk-QW5O7NHA.js → chunk-LPZEYEIM.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.d.ts +131 -1
- package/dist/server/index.js +1 -1
- package/dist/storage/r2/index.js +2 -2
- package/dist/storage/sftp/index.js +2 -2
- package/package.json +1 -1
|
@@ -4480,6 +4480,122 @@ function createPostFindManyAction(ctx) {
|
|
|
4480
4480
|
};
|
|
4481
4481
|
}
|
|
4482
4482
|
|
|
4483
|
+
// src/server/interfaces/actions/resources/seo-metadata/commands/upsert/seo-metadata-upsert-validator.ts
|
|
4484
|
+
var seoMetadataUpsertValidator = (schemas) => schemas.z.object({
|
|
4485
|
+
// -----------------------------------------------------------------------
|
|
4486
|
+
// relations
|
|
4487
|
+
// -----------------------------------------------------------------------
|
|
4488
|
+
// Post
|
|
4489
|
+
postId: schemas.id().exist({ table: "posts", column: "id" }),
|
|
4490
|
+
// ----------------------------------------------------------------------------
|
|
4491
|
+
// translation
|
|
4492
|
+
// ----------------------------------------------------------------------------
|
|
4493
|
+
translations: schemas.array(
|
|
4494
|
+
schemas.z.object({
|
|
4495
|
+
// core
|
|
4496
|
+
locale: schemas.locale(),
|
|
4497
|
+
// ---------------------------------------------------
|
|
4498
|
+
// Basic
|
|
4499
|
+
// ---------------------------------------------------
|
|
4500
|
+
title: schemas.text().nullable(),
|
|
4501
|
+
description: schemas.text().nullable(),
|
|
4502
|
+
// identity
|
|
4503
|
+
author: schemas.text().nullable(),
|
|
4504
|
+
// url
|
|
4505
|
+
canonical: schemas.url().nullable(),
|
|
4506
|
+
// URL
|
|
4507
|
+
alternate: schemas.array(
|
|
4508
|
+
schemas.z.object({
|
|
4509
|
+
hreflang: schemas.text().bcp47(),
|
|
4510
|
+
// BCP47
|
|
4511
|
+
href: schemas.url()
|
|
4512
|
+
// URL
|
|
4513
|
+
})
|
|
4514
|
+
),
|
|
4515
|
+
// robots
|
|
4516
|
+
robots: schemas.text().nullable(),
|
|
4517
|
+
// ---------------------------------------------------
|
|
4518
|
+
// Basic
|
|
4519
|
+
// ---------------------------------------------------
|
|
4520
|
+
ogTitle: schemas.text().nullable(),
|
|
4521
|
+
ogDescription: schemas.text().nullable(),
|
|
4522
|
+
// url
|
|
4523
|
+
ogUrl: schemas.url().nullable(),
|
|
4524
|
+
// URL
|
|
4525
|
+
// identity
|
|
4526
|
+
ogType: schemas.z.enum(OG_TYPE_ARRAY).nullable(),
|
|
4527
|
+
ogSiteName: schemas.text().nullable(),
|
|
4528
|
+
// image
|
|
4529
|
+
ogImage: schemas.url().nullable(),
|
|
4530
|
+
// URL
|
|
4531
|
+
ogImageAlt: schemas.text().nullable(),
|
|
4532
|
+
ogImageType: schemas.text().nullable(),
|
|
4533
|
+
ogImageWidth: schemas.z.number().nullable(),
|
|
4534
|
+
ogImageHeight: schemas.z.number().nullable(),
|
|
4535
|
+
// locale
|
|
4536
|
+
ogLocale: schemas.text().ogLocale().nullable(),
|
|
4537
|
+
// OG Locale
|
|
4538
|
+
ogLocaleAlternate: schemas.array(schemas.text().ogLocale()),
|
|
4539
|
+
// OG Locale
|
|
4540
|
+
// article
|
|
4541
|
+
ogArticlePublishedTime: schemas.isoString().nullable(),
|
|
4542
|
+
// ISOString
|
|
4543
|
+
ogArticleModifiedTime: schemas.isoString().nullable(),
|
|
4544
|
+
// ISOString
|
|
4545
|
+
ogArticleAuthor: schemas.text().nullable(),
|
|
4546
|
+
ogArticleSection: schemas.text().nullable(),
|
|
4547
|
+
ogArticleTag: schemas.array(schemas.text()),
|
|
4548
|
+
// ---------------------------------------------------
|
|
4549
|
+
// Twitter
|
|
4550
|
+
// ---------------------------------------------------
|
|
4551
|
+
twitterCard: schemas.z.enum(TWITTER_CARD_ARRAY).nullable(),
|
|
4552
|
+
// identity
|
|
4553
|
+
twitterSite: schemas.text().nullable(),
|
|
4554
|
+
twitterCreator: schemas.text().nullable(),
|
|
4555
|
+
// ---------------------------------------------------
|
|
4556
|
+
// JSON-LD
|
|
4557
|
+
// ---------------------------------------------------
|
|
4558
|
+
jsonLd: schemas.array(schemas.z.any())
|
|
4559
|
+
})
|
|
4560
|
+
)
|
|
4561
|
+
});
|
|
4562
|
+
|
|
4563
|
+
// src/server/interfaces/actions/resources/seo-metadata/commands/upsert/create-seo-metadata-upsert-action.ts
|
|
4564
|
+
function createSeoMetadataUpsertAction(ctx) {
|
|
4565
|
+
const {
|
|
4566
|
+
repositories: { seoMetadataCommandRepository },
|
|
4567
|
+
middlewares: { authMiddleware },
|
|
4568
|
+
action: { executeAction },
|
|
4569
|
+
schemas: { schemas }
|
|
4570
|
+
} = ctx;
|
|
4571
|
+
return async function seoMetadataCreateAction({
|
|
4572
|
+
formData
|
|
4573
|
+
}) {
|
|
4574
|
+
return executeAction(
|
|
4575
|
+
async () => {
|
|
4576
|
+
await authMiddleware.authenticate();
|
|
4577
|
+
const normalizedPayload = {
|
|
4578
|
+
...formData,
|
|
4579
|
+
translations: formData.translations.map((t) => {
|
|
4580
|
+
t.ogArticlePublishedTime = datetimeToDb(t.ogArticlePublishedTime);
|
|
4581
|
+
t.ogArticleModifiedTime = datetimeToDb(t.ogArticleModifiedTime);
|
|
4582
|
+
t.jsonLd = jsonArrayToDb(t.jsonLd);
|
|
4583
|
+
return t;
|
|
4584
|
+
})
|
|
4585
|
+
};
|
|
4586
|
+
const validatedPayload = await seoMetadataUpsertValidator(schemas).parseAsync(
|
|
4587
|
+
normalizedPayload
|
|
4588
|
+
);
|
|
4589
|
+
await seoMetadataCommandRepository.upsert(validatedPayload);
|
|
4590
|
+
return {
|
|
4591
|
+
i18nKey: "ok.update-ok"
|
|
4592
|
+
};
|
|
4593
|
+
},
|
|
4594
|
+
{ type: "command" }
|
|
4595
|
+
);
|
|
4596
|
+
};
|
|
4597
|
+
}
|
|
4598
|
+
|
|
4483
4599
|
// src/server/applications/auth/create-auth-use-cases.ts
|
|
4484
4600
|
function createAuthUseCases({
|
|
4485
4601
|
prisma,
|
|
@@ -4730,4 +4846,4 @@ function createMultiFileSchema({
|
|
|
4730
4846
|
};
|
|
4731
4847
|
}
|
|
4732
4848
|
|
|
4733
|
-
export { ADMIN_ORDER_BY, ADMIN_ROLES, FILE_TYPES, OG_TYPE_ARRAY, ORDER_BY, POST_ORDER_BY, POST_TYPES, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, SIZE, ServerError, TWITTER_CARD_ARRAY, classifyFileType, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostCreateAction, createPostDeleteAction, createPostFindAction, createPostFindFullAction, createPostFindListCardsAction, createPostFindManyAction, createPostQueryRepository, createPostUpdateAction, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, datetimeToDb, datetimeToUi, findTranslation, formatFileSize, getMediaInfo, isFileLocked, isFolderLocked, jsonArrayToDb, jsonArrayToUi, mimeToExtension, normalizeCacheKey, result, serializeJsonLd };
|
|
4849
|
+
export { ADMIN_ORDER_BY, ADMIN_ROLES, FILE_TYPES, OG_TYPE_ARRAY, ORDER_BY, POST_ORDER_BY, POST_TYPES, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, SIZE, ServerError, TWITTER_CARD_ARRAY, classifyFileType, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostCreateAction, createPostDeleteAction, createPostFindAction, createPostFindFullAction, createPostFindListCardsAction, createPostFindManyAction, createPostQueryRepository, createPostUpdateAction, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSeoMetadataUpsertAction, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, datetimeToDb, datetimeToUi, findTranslation, formatFileSize, getMediaInfo, isFileLocked, isFolderLocked, jsonArrayToDb, jsonArrayToUi, mimeToExtension, normalizeCacheKey, result, serializeJsonLd };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ADMIN_ROLES, FILE_TYPES, OG_TYPE_ARRAY, POST_TYPES, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, SIZE, TWITTER_CARD_ARRAY, classifyFileType, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, datetimeToDb, datetimeToUi, findTranslation, formatFileSize, getMediaInfo, isFileLocked, isFolderLocked, jsonArrayToDb, jsonArrayToUi, mimeToExtension, result, serializeJsonLd } from './chunk-
|
|
1
|
+
export { ADMIN_ROLES, FILE_TYPES, OG_TYPE_ARRAY, POST_TYPES, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, SIZE, TWITTER_CARD_ARRAY, classifyFileType, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, datetimeToDb, datetimeToUi, findTranslation, formatFileSize, getMediaInfo, isFileLocked, isFolderLocked, jsonArrayToDb, jsonArrayToUi, mimeToExtension, result, serializeJsonLd } from './chunk-AOAWCZ4L.js';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -2312,6 +2312,136 @@ declare function createPostFindManyAction(ctx: ActionContext): (params: {
|
|
|
2312
2312
|
})[];
|
|
2313
2313
|
}>>;
|
|
2314
2314
|
|
|
2315
|
+
declare const seoMetadataUpsertValidator: (schemas: ReturnType<typeof createSchemas>) => zod.ZodObject<{
|
|
2316
|
+
postId: zod.ZodString;
|
|
2317
|
+
translations: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
2318
|
+
locale: zod.ZodString;
|
|
2319
|
+
title: zod.ZodNullable<zod.ZodString>;
|
|
2320
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
2321
|
+
author: zod.ZodNullable<zod.ZodString>;
|
|
2322
|
+
canonical: zod.ZodNullable<zod.ZodPipe<zod.ZodTransform<{} | null | undefined, unknown>, zod.ZodNullable<zod.ZodURL>>>;
|
|
2323
|
+
alternate: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
2324
|
+
hreflang: zod.ZodString;
|
|
2325
|
+
href: zod.ZodPipe<zod.ZodTransform<{} | null | undefined, unknown>, zod.ZodNullable<zod.ZodURL>>;
|
|
2326
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
2327
|
+
hreflang: string;
|
|
2328
|
+
href: string | null;
|
|
2329
|
+
}[], {
|
|
2330
|
+
hreflang: string;
|
|
2331
|
+
href: string | null;
|
|
2332
|
+
}[]>>;
|
|
2333
|
+
robots: zod.ZodNullable<zod.ZodString>;
|
|
2334
|
+
ogTitle: zod.ZodNullable<zod.ZodString>;
|
|
2335
|
+
ogDescription: zod.ZodNullable<zod.ZodString>;
|
|
2336
|
+
ogUrl: zod.ZodNullable<zod.ZodPipe<zod.ZodTransform<{} | null | undefined, unknown>, zod.ZodNullable<zod.ZodURL>>>;
|
|
2337
|
+
ogType: zod.ZodNullable<zod.ZodEnum<{
|
|
2338
|
+
article: "article";
|
|
2339
|
+
book: "book";
|
|
2340
|
+
"music.song": "music.song";
|
|
2341
|
+
"music.album": "music.album";
|
|
2342
|
+
"music.playlist": "music.playlist";
|
|
2343
|
+
"music.radio_station": "music.radio_station";
|
|
2344
|
+
profile: "profile";
|
|
2345
|
+
website: "website";
|
|
2346
|
+
"video.tv_show": "video.tv_show";
|
|
2347
|
+
"video.other": "video.other";
|
|
2348
|
+
"video.movie": "video.movie";
|
|
2349
|
+
"video.episode": "video.episode";
|
|
2350
|
+
}>>;
|
|
2351
|
+
ogSiteName: zod.ZodNullable<zod.ZodString>;
|
|
2352
|
+
ogImage: zod.ZodNullable<zod.ZodPipe<zod.ZodTransform<{} | null | undefined, unknown>, zod.ZodNullable<zod.ZodURL>>>;
|
|
2353
|
+
ogImageAlt: zod.ZodNullable<zod.ZodString>;
|
|
2354
|
+
ogImageType: zod.ZodNullable<zod.ZodString>;
|
|
2355
|
+
ogImageWidth: zod.ZodNullable<zod.ZodNumber>;
|
|
2356
|
+
ogImageHeight: zod.ZodNullable<zod.ZodNumber>;
|
|
2357
|
+
ogLocale: zod.ZodNullable<zod.ZodString>;
|
|
2358
|
+
ogLocaleAlternate: zod.ZodPipe<zod.ZodArray<zod.ZodString>, zod.ZodTransform<string[], string[]>>;
|
|
2359
|
+
ogArticlePublishedTime: zod.ZodNullable<zod.ZodString>;
|
|
2360
|
+
ogArticleModifiedTime: zod.ZodNullable<zod.ZodString>;
|
|
2361
|
+
ogArticleAuthor: zod.ZodNullable<zod.ZodString>;
|
|
2362
|
+
ogArticleSection: zod.ZodNullable<zod.ZodString>;
|
|
2363
|
+
ogArticleTag: zod.ZodPipe<zod.ZodArray<zod.ZodString>, zod.ZodTransform<string[], string[]>>;
|
|
2364
|
+
twitterCard: zod.ZodNullable<zod.ZodEnum<{
|
|
2365
|
+
summary: "summary";
|
|
2366
|
+
summary_large_image: "summary_large_image";
|
|
2367
|
+
player: "player";
|
|
2368
|
+
app: "app";
|
|
2369
|
+
}>>;
|
|
2370
|
+
twitterSite: zod.ZodNullable<zod.ZodString>;
|
|
2371
|
+
twitterCreator: zod.ZodNullable<zod.ZodString>;
|
|
2372
|
+
jsonLd: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
2373
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
2374
|
+
locale: string;
|
|
2375
|
+
title: string | null;
|
|
2376
|
+
description: string | null;
|
|
2377
|
+
author: string | null;
|
|
2378
|
+
canonical: string | null;
|
|
2379
|
+
alternate: {
|
|
2380
|
+
hreflang: string;
|
|
2381
|
+
href: string | null;
|
|
2382
|
+
}[];
|
|
2383
|
+
robots: string | null;
|
|
2384
|
+
ogTitle: string | null;
|
|
2385
|
+
ogDescription: string | null;
|
|
2386
|
+
ogUrl: string | null;
|
|
2387
|
+
ogType: "article" | "book" | "music.song" | "music.album" | "music.playlist" | "music.radio_station" | "profile" | "website" | "video.tv_show" | "video.other" | "video.movie" | "video.episode" | null;
|
|
2388
|
+
ogSiteName: string | null;
|
|
2389
|
+
ogImage: string | null;
|
|
2390
|
+
ogImageAlt: string | null;
|
|
2391
|
+
ogImageType: string | null;
|
|
2392
|
+
ogImageWidth: number | null;
|
|
2393
|
+
ogImageHeight: number | null;
|
|
2394
|
+
ogLocale: string | null;
|
|
2395
|
+
ogLocaleAlternate: string[];
|
|
2396
|
+
ogArticlePublishedTime: string | null;
|
|
2397
|
+
ogArticleModifiedTime: string | null;
|
|
2398
|
+
ogArticleAuthor: string | null;
|
|
2399
|
+
ogArticleSection: string | null;
|
|
2400
|
+
ogArticleTag: string[];
|
|
2401
|
+
twitterCard: "summary" | "summary_large_image" | "player" | "app" | null;
|
|
2402
|
+
twitterSite: string | null;
|
|
2403
|
+
twitterCreator: string | null;
|
|
2404
|
+
jsonLd: any[];
|
|
2405
|
+
}[], {
|
|
2406
|
+
locale: string;
|
|
2407
|
+
title: string | null;
|
|
2408
|
+
description: string | null;
|
|
2409
|
+
author: string | null;
|
|
2410
|
+
canonical: string | null;
|
|
2411
|
+
alternate: {
|
|
2412
|
+
hreflang: string;
|
|
2413
|
+
href: string | null;
|
|
2414
|
+
}[];
|
|
2415
|
+
robots: string | null;
|
|
2416
|
+
ogTitle: string | null;
|
|
2417
|
+
ogDescription: string | null;
|
|
2418
|
+
ogUrl: string | null;
|
|
2419
|
+
ogType: "article" | "book" | "music.song" | "music.album" | "music.playlist" | "music.radio_station" | "profile" | "website" | "video.tv_show" | "video.other" | "video.movie" | "video.episode" | null;
|
|
2420
|
+
ogSiteName: string | null;
|
|
2421
|
+
ogImage: string | null;
|
|
2422
|
+
ogImageAlt: string | null;
|
|
2423
|
+
ogImageType: string | null;
|
|
2424
|
+
ogImageWidth: number | null;
|
|
2425
|
+
ogImageHeight: number | null;
|
|
2426
|
+
ogLocale: string | null;
|
|
2427
|
+
ogLocaleAlternate: string[];
|
|
2428
|
+
ogArticlePublishedTime: string | null;
|
|
2429
|
+
ogArticleModifiedTime: string | null;
|
|
2430
|
+
ogArticleAuthor: string | null;
|
|
2431
|
+
ogArticleSection: string | null;
|
|
2432
|
+
ogArticleTag: string[];
|
|
2433
|
+
twitterCard: "summary" | "summary_large_image" | "player" | "app" | null;
|
|
2434
|
+
twitterSite: string | null;
|
|
2435
|
+
twitterCreator: string | null;
|
|
2436
|
+
jsonLd: any[];
|
|
2437
|
+
}[]>>;
|
|
2438
|
+
}, zod_v4_core.$strip>;
|
|
2439
|
+
|
|
2440
|
+
type SeoMetadataUpsertFormData = zod__default.infer<ReturnType<typeof seoMetadataUpsertValidator>>;
|
|
2441
|
+
declare function createSeoMetadataUpsertAction(ctx: ActionContext): ({ formData, }: {
|
|
2442
|
+
formData: SeoMetadataUpsertFormData;
|
|
2443
|
+
}) => Promise<Result<void>>;
|
|
2444
|
+
|
|
2315
2445
|
declare class ServerError extends Error {
|
|
2316
2446
|
readonly i18nKey?: string;
|
|
2317
2447
|
readonly statusCode?: number;
|
|
@@ -2330,4 +2460,4 @@ declare class ServerError extends Error {
|
|
|
2330
2460
|
static internalServerError(): ServerError;
|
|
2331
2461
|
}
|
|
2332
2462
|
|
|
2333
|
-
export { ADMIN_ORDER_BY, type ActionContext, type AdminCreateFormData, type AdminUpdateFormData, type ChangePasswordFormData, type EmailUnverifiedFormData, type FileCreateFormData, type FileCreateManyFormData, type FileUpdateFormData, type FolderCreateFormData, type FolderUpdateFormData, type ForgotPasswordFormData, ORDER_BY, POST_ORDER_BY, type PostCreateFormData, type PostUpdateFormData, type RawCacheKey, type ResetPasswordFormData, ServerError, type SignInFormData, type VerifyEmailFormData, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostCreateAction, createPostDeleteAction, createPostFindAction, createPostFindFullAction, createPostFindListCardsAction, createPostFindManyAction, createPostQueryRepository, createPostUpdateAction, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, normalizeCacheKey };
|
|
2463
|
+
export { ADMIN_ORDER_BY, type ActionContext, type AdminCreateFormData, type AdminUpdateFormData, type ChangePasswordFormData, type EmailUnverifiedFormData, type FileCreateFormData, type FileCreateManyFormData, type FileUpdateFormData, type FolderCreateFormData, type FolderUpdateFormData, type ForgotPasswordFormData, ORDER_BY, POST_ORDER_BY, type PostCreateFormData, type PostUpdateFormData, type RawCacheKey, type ResetPasswordFormData, type SeoMetadataUpsertFormData, ServerError, type SignInFormData, type VerifyEmailFormData, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostCreateAction, createPostDeleteAction, createPostFindAction, createPostFindFullAction, createPostFindListCardsAction, createPostFindManyAction, createPostQueryRepository, createPostUpdateAction, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSeoMetadataUpsertAction, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, normalizeCacheKey };
|
package/dist/server/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ADMIN_ORDER_BY, ORDER_BY, POST_ORDER_BY, ServerError, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostCreateAction, createPostDeleteAction, createPostFindAction, createPostFindFullAction, createPostFindListCardsAction, createPostFindManyAction, createPostQueryRepository, createPostUpdateAction, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, normalizeCacheKey } from '../chunk-
|
|
1
|
+
export { ADMIN_ORDER_BY, ORDER_BY, POST_ORDER_BY, ServerError, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostCreateAction, createPostDeleteAction, createPostFindAction, createPostFindFullAction, createPostFindListCardsAction, createPostFindManyAction, createPostQueryRepository, createPostUpdateAction, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSeoMetadataUpsertAction, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, normalizeCacheKey } from '../chunk-AOAWCZ4L.js';
|
package/dist/storage/r2/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createObjectKey } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
import { createObjectKey } from '../../chunk-LPZEYEIM.js';
|
|
2
|
+
import '../../chunk-AOAWCZ4L.js';
|
|
3
3
|
import { PutObjectCommand, DeleteObjectCommand, CopyObjectCommand } from '@aws-sdk/client-s3';
|
|
4
4
|
|
|
5
5
|
function createR2Service({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createObjectKey } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
import { createObjectKey } from '../../chunk-LPZEYEIM.js';
|
|
2
|
+
import '../../chunk-AOAWCZ4L.js';
|
|
3
3
|
import path from 'path/posix';
|
|
4
4
|
import { createPool } from 'generic-pool';
|
|
5
5
|
import SFTPClient from 'ssh2-sftp-client';
|