@ts-ghost/core-api
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -345,3 +345,3 @@ "use strict"; | ||
updated_at: import_zod4.z.string().nullish(), | ||
published_at: import_zod4.z.string().nullish(), | ||
published_at: import_zod4.z.string().nullable(), | ||
email_subject: import_zod4.z.string().nullish(), | ||
@@ -378,7 +378,7 @@ is_page: import_zod4.z.boolean().default(true) | ||
url: import_zod5.z.string(), | ||
excerpt: import_zod5.z.string().nullish(), | ||
excerpt: import_zod5.z.string().nullable(), | ||
reading_time: import_zod5.z.number().optional().default(0), | ||
created_at: import_zod5.z.string(), | ||
updated_at: import_zod5.z.string().nullish(), | ||
published_at: import_zod5.z.string().nullish(), | ||
published_at: import_zod5.z.string().nullable(), | ||
email_subject: import_zod5.z.string().nullish(), | ||
@@ -634,4 +634,7 @@ is_page: import_zod5.z.boolean().default(false) | ||
}); | ||
var parseBrowseParams = (args, schema) => { | ||
const keys = schema.keyof().options; | ||
var parseBrowseParams = (args, schema, includeSchema) => { | ||
const keys = [ | ||
...schema.keyof().options, | ||
...includeSchema && includeSchema.keyof().options || [] | ||
]; | ||
const augmentedSchema = browseParamsSchema.merge( | ||
@@ -1136,3 +1139,3 @@ import_zod14.z.object({ | ||
{ | ||
browseParams: options && parseBrowseParams(options, this.config.schema) || void 0 | ||
browseParams: options && parseBrowseParams(options, this.config.schema, this.config.include) || void 0 | ||
}, | ||
@@ -1139,0 +1142,0 @@ this._api |
@@ -345,3 +345,3 @@ "use strict"; | ||
updated_at: import_zod4.z.string().nullish(), | ||
published_at: import_zod4.z.string().nullish(), | ||
published_at: import_zod4.z.string().nullable(), | ||
email_subject: import_zod4.z.string().nullish(), | ||
@@ -378,7 +378,7 @@ is_page: import_zod4.z.boolean().default(true) | ||
url: import_zod5.z.string(), | ||
excerpt: import_zod5.z.string().nullish(), | ||
excerpt: import_zod5.z.string().nullable(), | ||
reading_time: import_zod5.z.number().optional().default(0), | ||
created_at: import_zod5.z.string(), | ||
updated_at: import_zod5.z.string().nullish(), | ||
published_at: import_zod5.z.string().nullish(), | ||
published_at: import_zod5.z.string().nullable(), | ||
email_subject: import_zod5.z.string().nullish(), | ||
@@ -634,4 +634,7 @@ is_page: import_zod5.z.boolean().default(false) | ||
}); | ||
var parseBrowseParams = (args, schema) => { | ||
const keys = schema.keyof().options; | ||
var parseBrowseParams = (args, schema, includeSchema) => { | ||
const keys = [ | ||
...schema.keyof().options, | ||
...includeSchema && includeSchema.keyof().options || [] | ||
]; | ||
const augmentedSchema = browseParamsSchema.merge( | ||
@@ -1136,3 +1139,3 @@ import_zod14.z.object({ | ||
{ | ||
browseParams: options && parseBrowseParams(options, this.config.schema) || void 0 | ||
browseParams: options && parseBrowseParams(options, this.config.schema, this.config.include) || void 0 | ||
}, | ||
@@ -1139,0 +1142,0 @@ this._api |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"main": "./dist/index.js", | ||
@@ -22,0 +22,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
418956
6656