@tryghost/ghst 0.17.6 → 0.18.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/dist/index.js +24 -11
- package/dist/index.js.map +1 -1
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -7404,7 +7404,10 @@ function registerCoreTools(server, global, enabledGroups) {
|
|
|
7404
7404
|
status: z6.enum(["draft", "published", "scheduled"]).optional(),
|
|
7405
7405
|
publish_at: z6.string().datetime().optional(),
|
|
7406
7406
|
tags: z6.array(z6.string()).optional(),
|
|
7407
|
-
visibility: z6.enum(["public", "members", "paid", "tiers"]).optional()
|
|
7407
|
+
visibility: z6.enum(["public", "members", "paid", "tiers"]).optional(),
|
|
7408
|
+
feature_image: z6.string().url().optional(),
|
|
7409
|
+
feature_image_alt: z6.string().max(191).optional(),
|
|
7410
|
+
feature_image_caption: z6.string().optional()
|
|
7408
7411
|
})
|
|
7409
7412
|
},
|
|
7410
7413
|
async (global2, args) => {
|
|
@@ -7416,7 +7419,10 @@ function registerCoreTools(server, global, enabledGroups) {
|
|
|
7416
7419
|
status: args.status,
|
|
7417
7420
|
published_at: args.publish_at,
|
|
7418
7421
|
tags: args.tags,
|
|
7419
|
-
visibility: args.visibility
|
|
7422
|
+
visibility: args.visibility,
|
|
7423
|
+
feature_image: args.feature_image,
|
|
7424
|
+
feature_image_alt: args.feature_image_alt,
|
|
7425
|
+
feature_image_caption: args.feature_image_caption
|
|
7420
7426
|
},
|
|
7421
7427
|
args.html ? "html" : void 0
|
|
7422
7428
|
);
|
|
@@ -7440,6 +7446,9 @@ function registerCoreTools(server, global, enabledGroups) {
|
|
|
7440
7446
|
publish_at: z6.string().datetime().optional(),
|
|
7441
7447
|
tags: z6.array(z6.string()).optional(),
|
|
7442
7448
|
visibility: z6.enum(["public", "members", "paid", "tiers"]).optional(),
|
|
7449
|
+
feature_image: z6.string().url().optional(),
|
|
7450
|
+
feature_image_alt: z6.string().max(191).optional(),
|
|
7451
|
+
feature_image_caption: z6.string().optional(),
|
|
7443
7452
|
newsletter: z6.string().optional(),
|
|
7444
7453
|
email_only: z6.boolean().optional(),
|
|
7445
7454
|
email_segment: z6.string().optional()
|
|
@@ -7455,7 +7464,10 @@ function registerCoreTools(server, global, enabledGroups) {
|
|
|
7455
7464
|
status: args.status,
|
|
7456
7465
|
published_at: args.publish_at,
|
|
7457
7466
|
tags: args.tags,
|
|
7458
|
-
visibility: args.visibility
|
|
7467
|
+
visibility: args.visibility,
|
|
7468
|
+
feature_image: args.feature_image,
|
|
7469
|
+
feature_image_alt: args.feature_image_alt,
|
|
7470
|
+
feature_image_caption: args.feature_image_caption
|
|
7459
7471
|
},
|
|
7460
7472
|
source: args.html ? "html" : void 0,
|
|
7461
7473
|
params: buildEmailParams({
|
|
@@ -9445,7 +9457,7 @@ var MemberUpdateInputSchema = z7.object({
|
|
|
9445
9457
|
subscribed: z7.boolean().optional(),
|
|
9446
9458
|
comp: z7.boolean().optional(),
|
|
9447
9459
|
tier: z7.string().min(1).optional(),
|
|
9448
|
-
expiry: z7.string().datetime().optional(),
|
|
9460
|
+
expiry: z7.string().datetime({ offset: true }).optional(),
|
|
9449
9461
|
clearTiers: z7.boolean().optional()
|
|
9450
9462
|
}).refine((data) => Boolean(data.id || data.email), {
|
|
9451
9463
|
message: "Provide an id argument or --email.",
|
|
@@ -9568,11 +9580,12 @@ function registerMemberCommands(program) {
|
|
|
9568
9580
|
throwValidationError4(parsed.error);
|
|
9569
9581
|
}
|
|
9570
9582
|
const allPages = parsed.data.limit === "all";
|
|
9571
|
-
const combinedFilter = parsed.data.filter && parsed.data.status ?
|
|
9583
|
+
const combinedFilter = parsed.data.filter && parsed.data.status ? `(${parsed.data.filter})+status:${parsed.data.status}` : parsed.data.filter ?? (parsed.data.status ? `status:${parsed.data.status}` : void 0);
|
|
9584
|
+
const { status: _status, ...listInput } = parsed.data;
|
|
9572
9585
|
const payload = await listMembers(
|
|
9573
9586
|
global,
|
|
9574
9587
|
{
|
|
9575
|
-
...
|
|
9588
|
+
...listInput,
|
|
9576
9589
|
filter: combinedFilter,
|
|
9577
9590
|
limit: parsed.data.limit === "all" ? void 0 : parsed.data.limit
|
|
9578
9591
|
},
|
|
@@ -10924,7 +10937,7 @@ var PageCreateInputSchema = withSingleContentSource(
|
|
|
10924
10937
|
title: z11.string().min(1).optional(),
|
|
10925
10938
|
slug: z11.string().min(1).optional(),
|
|
10926
10939
|
status: StatusSchema.optional(),
|
|
10927
|
-
publishAt: z11.string().datetime().optional(),
|
|
10940
|
+
publishAt: z11.string().datetime({ offset: true }).optional(),
|
|
10928
10941
|
html: z11.string().optional(),
|
|
10929
10942
|
htmlFile: z11.string().min(1).optional(),
|
|
10930
10943
|
lexicalFile: z11.string().min(1).optional(),
|
|
@@ -10949,7 +10962,7 @@ var PageUpdateInputSchema = withSingleContentSource(
|
|
|
10949
10962
|
slug: z11.string().min(1).optional(),
|
|
10950
10963
|
title: z11.string().min(1).optional(),
|
|
10951
10964
|
status: StatusSchema.optional(),
|
|
10952
|
-
publishAt: z11.string().datetime().optional(),
|
|
10965
|
+
publishAt: z11.string().datetime({ offset: true }).optional(),
|
|
10953
10966
|
html: z11.string().optional(),
|
|
10954
10967
|
htmlFile: z11.string().min(1).optional(),
|
|
10955
10968
|
lexicalFile: z11.string().min(1).optional(),
|
|
@@ -11317,7 +11330,7 @@ var PostCreateInputSchema = withSingleContentSource2(
|
|
|
11317
11330
|
z12.object({
|
|
11318
11331
|
title: z12.string().min(1).optional(),
|
|
11319
11332
|
status: StatusSchema2.optional(),
|
|
11320
|
-
publishAt: z12.string().datetime().optional(),
|
|
11333
|
+
publishAt: z12.string().datetime({ offset: true }).optional(),
|
|
11321
11334
|
html: z12.string().optional(),
|
|
11322
11335
|
htmlFile: z12.string().min(1).optional(),
|
|
11323
11336
|
lexicalFile: z12.string().min(1).optional(),
|
|
@@ -11351,7 +11364,7 @@ var PostUpdateInputSchema = withSingleContentSource2(
|
|
|
11351
11364
|
slug: z12.string().min(1).optional(),
|
|
11352
11365
|
title: z12.string().min(1).optional(),
|
|
11353
11366
|
status: StatusSchema2.optional(),
|
|
11354
|
-
publishAt: z12.string().datetime().optional(),
|
|
11367
|
+
publishAt: z12.string().datetime({ offset: true }).optional(),
|
|
11355
11368
|
html: z12.string().optional(),
|
|
11356
11369
|
htmlFile: z12.string().min(1).optional(),
|
|
11357
11370
|
lexicalFile: z12.string().min(1).optional(),
|
|
@@ -11408,7 +11421,7 @@ var PostPublishInputSchema = z12.object({
|
|
|
11408
11421
|
});
|
|
11409
11422
|
var PostScheduleInputSchema = z12.object({
|
|
11410
11423
|
id: z12.string().min(1),
|
|
11411
|
-
at: z12.string().datetime(),
|
|
11424
|
+
at: z12.string().datetime({ offset: true }),
|
|
11412
11425
|
newsletter: z12.string().optional(),
|
|
11413
11426
|
emailOnly: z12.boolean().optional(),
|
|
11414
11427
|
emailSegment: z12.string().optional()
|