Skip to content

Commit

Permalink
[Auto Generated] 1.4.8-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Jun 20, 2024
1 parent 5ea1345 commit be1a4b7
Show file tree
Hide file tree
Showing 14 changed files with 148 additions and 53 deletions.
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,29 @@

#### getBlog

- ##### What's New
- [Added] property <code>summary</code> of schema <code>BlogSchema</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### getBlogs

- ##### What's New
- [Added] <code>query</code> parameter <code>tags</code> (type: <code>string</code>)

- [Added] <code>query</code> parameter <code>search</code> (type: <code>string</code>)

- [Added] property <code>items[].summary</code> of schema <code>BlogSchema</code> in response with status code 200
- [Added] property <code>filters</code> of schema <code>BlogGetResponse</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>items[].seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>items[].seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>items[]._schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### getLandingPage
Expand Down Expand Up @@ -1320,41 +1333,76 @@

#### createBlog

- ##### What's New
- [Added] property <code>summary</code> of schema <code>BlogRequest</code> in request body
- [Added] property <code>summary</code> of schema <code>BlogSchema</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in request body
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in request body
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogRequest</code> in request body
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### getBlogs

- ##### What's New
- [Added] <code>query</code> parameter <code>tags</code> (type: <code>string</code>)

- [Added] <code>query</code> parameter <code>q</code> (type: <code>string</code>)

- [Added] <code>query</code> parameter <code>slug</code> (type: <code>string</code>)

- [Added] <code>query</code> parameter <code>title</code> (type: <code>string</code>)

- [Added] <code>query</code> parameter <code>status</code> (type: <code>string</code>)

- [Added] property <code>items[].summary</code> of schema <code>BlogSchema</code> in response with status code 200
- [Added] property <code>filters</code> of schema <code>BlogGetResponse</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>items[].seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>items[].seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>items[]._schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### updateBlog

- ##### What's New
- [Added] property <code>summary</code> of schema <code>BlogRequest</code> in request body
- [Added] property <code>summary</code> of schema <code>BlogSchema</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in request body
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in request body
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogRequest</code> in request body
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### deleteBlog

- ##### What's New
- [Added] property <code>summary</code> of schema <code>BlogSchema</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### getComponentById

- ##### What's New
- [Added] property <code>summary</code> of schema <code>BlogSchema</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### getLandingPages
Expand Down Expand Up @@ -1508,9 +1556,13 @@

#### getBlogBySlug

- ##### What's New
- [Added] property <code>summary</code> of schema <code>BlogSchema</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.page.type</code> of schema <code>PageType</code> in response with status code 200
- [Deleted] Possible nullable value from <code>true</code> from property <code>seo.breadcrumb[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200
- [Breaking] [Deleted] property <code>_schedule</code> of schema <code>BlogSchema</code> in response with status code 200


#### createPage
Expand Down
2 changes: 1 addition & 1 deletion dist/application.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/application/Content/ContentApplicationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ declare class Content {
* @summary: List blogs
* @description: List all the blogs against an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
*/
getBlogs({ pageNo, pageSize, requestHeaders }?: ContentApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentApplicationModel.BlogGetResponse>;
getBlogs({ pageNo, pageSize, tags, search, requestHeaders }?: ContentApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentApplicationModel.BlogGetResponse>;
/**
* @param {ContentApplicationValidator.GetCustomFieldsParam} arg - Arg object.
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
Expand Down
8 changes: 5 additions & 3 deletions sdk/application/Content/ContentApplicationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ class Content {
* @description: List all the blogs against an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
*/
async getBlogs(
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
{ pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
const { error } = ContentApplicationValidator.getBlogs().validate(
{ pageNo, pageSize },
{ pageNo, pageSize, tags, search },
{ abortEarly: false, allowUnknown: true }
);
if (error) {
Expand All @@ -237,7 +237,7 @@ class Content {

// Showing warrnings if extra unknown parameters are found
const { error: warrning } = ContentApplicationValidator.getBlogs().validate(
{ pageNo, pageSize },
{ pageNo, pageSize, tags, search },
{ abortEarly: false, allowUnknown: false }
);
if (warrning) {
Expand All @@ -250,6 +250,8 @@ class Content {
const query_params = {};
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;
query_params["tags"] = tags;
query_params["search"] = search;

const xHeaders = {};

Expand Down
23 changes: 5 additions & 18 deletions sdk/application/Content/ContentApplicationModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export = ContentApplicationModel;
* @typedef BlogGetResponse
* @property {BlogSchema[]} [items]
* @property {Page} [page]
* @property {string[]} [filters]
*/
/**
* @typedef ResourceContent
Expand Down Expand Up @@ -121,9 +122,9 @@ export = ContentApplicationModel;
* @property {string[]} [tags]
* @property {string} [publish_date]
* @property {SEO} [seo]
* @property {CronSchedule} [_schedule]
* @property {string} [title]
* @property {DateMeta} [date_meta]
* @property {string} [summary]
*/
/**
* @typedef SEO
Expand Down Expand Up @@ -390,13 +391,6 @@ export = ContentApplicationModel;
* @typedef CreatedBySchema
* @property {string} [id]
*/
/**
* @typedef CronSchedule
* @property {string} [cron]
* @property {string} [start]
* @property {string} [end]
* @property {number} [duration]
*/
/**
* @typedef SlideshowGetResponse
* @property {SlideshowSchema[]} [items]
Expand Down Expand Up @@ -589,7 +583,7 @@ export = ContentApplicationModel;
declare class ContentApplicationModel {
}
declare namespace ContentApplicationModel {
export { ApplicationLegal, ApplicationLegalFAQ, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, AnnouncementSchema, ScheduleStartSchema, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, LocaleLanguage, Language, Action, NavigationReference, ConfigurationSchema, SlideshowMedia, AnnouncementsResponseSchema, FaqResponseSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, FAQCategorySchema, FaqSchema, GetFaqSchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageSchema, NavigationGetResponse, Orientation, NavigationSchema, PageGetResponse, PageSchema, CreatedBySchema, CronSchedule, SlideshowGetResponse, SlideshowSchema, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, CustomObjectFieldValue, CustomObjectListItemDefinationSchema, CustomObjectFieldSchema, CustomObjectByIdSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseByResourceIdSchema, ActionPage, PageType };
export { ApplicationLegal, ApplicationLegalFAQ, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, AnnouncementSchema, ScheduleStartSchema, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, LocaleLanguage, Language, Action, NavigationReference, ConfigurationSchema, SlideshowMedia, AnnouncementsResponseSchema, FaqResponseSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, FAQCategorySchema, FaqSchema, GetFaqSchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageSchema, NavigationGetResponse, Orientation, NavigationSchema, PageGetResponse, PageSchema, CreatedBySchema, SlideshowGetResponse, SlideshowSchema, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, CustomObjectFieldValue, CustomObjectListItemDefinationSchema, CustomObjectFieldSchema, CustomObjectByIdSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseByResourceIdSchema, ActionPage, PageType };
}
/** @returns {ApplicationLegal} */
declare function ApplicationLegal(): ApplicationLegal;
Expand Down Expand Up @@ -693,6 +687,7 @@ declare function BlogGetResponse(): BlogGetResponse;
type BlogGetResponse = {
items?: BlogSchema[];
page?: Page;
filters?: string[];
};
/** @returns {ResourceContent} */
declare function ResourceContent(): ResourceContent;
Expand Down Expand Up @@ -730,9 +725,9 @@ type BlogSchema = {
tags?: string[];
publish_date?: string;
seo?: SEO;
_schedule?: CronSchedule;
title?: string;
date_meta?: DateMeta;
summary?: string;
};
/** @returns {SEO} */
declare function SEO(): SEO;
Expand Down Expand Up @@ -1043,14 +1038,6 @@ declare function CreatedBySchema(): CreatedBySchema;
type CreatedBySchema = {
id?: string;
};
/** @returns {CronSchedule} */
declare function CronSchedule(): CronSchedule;
type CronSchedule = {
cron?: string;
start?: string;
end?: string;
duration?: number;
};
/** @returns {SlideshowGetResponse} */
declare function SlideshowGetResponse(): SlideshowGetResponse;
type SlideshowGetResponse = {
Expand Down
24 changes: 4 additions & 20 deletions sdk/application/Content/ContentApplicationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const Joi = require("joi");
* @typedef BlogGetResponse
* @property {BlogSchema[]} [items]
* @property {Page} [page]
* @property {string[]} [filters]
*/

/**
Expand Down Expand Up @@ -138,9 +139,9 @@ const Joi = require("joi");
* @property {string[]} [tags]
* @property {string} [publish_date]
* @property {SEO} [seo]
* @property {CronSchedule} [_schedule]
* @property {string} [title]
* @property {DateMeta} [date_meta]
* @property {string} [summary]
*/

/**
Expand Down Expand Up @@ -443,14 +444,6 @@ const Joi = require("joi");
* @property {string} [id]
*/

/**
* @typedef CronSchedule
* @property {string} [cron]
* @property {string} [start]
* @property {string} [end]
* @property {number} [duration]
*/

/**
* @typedef SlideshowGetResponse
* @property {SlideshowSchema[]} [items]
Expand Down Expand Up @@ -791,6 +784,7 @@ class ContentApplicationModel {
return Joi.object({
items: Joi.array().items(ContentApplicationModel.BlogSchema()),
page: ContentApplicationModel.Page(),
filters: Joi.array().items(Joi.string().allow("")),
});
}

Expand Down Expand Up @@ -836,9 +830,9 @@ class ContentApplicationModel {
tags: Joi.array().items(Joi.string().allow("")),
publish_date: Joi.string().allow(""),
seo: ContentApplicationModel.SEO(),
_schedule: ContentApplicationModel.CronSchedule(),
title: Joi.string().allow(""),
date_meta: ContentApplicationModel.DateMeta(),
summary: Joi.string().allow(""),
});
}

Expand Down Expand Up @@ -1214,16 +1208,6 @@ class ContentApplicationModel {
});
}

/** @returns {CronSchedule} */
static CronSchedule() {
return Joi.object({
cron: Joi.string().allow(""),
start: Joi.string().allow(""),
end: Joi.string().allow(""),
duration: Joi.number(),
});
}

/** @returns {SlideshowGetResponse} */
static SlideshowGetResponse() {
return Joi.object({
Expand Down
10 changes: 10 additions & 0 deletions sdk/application/Content/ContentApplicationValidator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export = ContentApplicationValidator;
* @property {number} [pageNo] - The page number to navigate through the given
* set of results. Default value is 1.
* @property {number} [pageSize] - The number of items to retrieve in each page.
* @property {string} [tags] - Blogs retrieve based on the list of tags passed.
* @property {string} [search] - Blogs retrieve based on the title.
*/
/**
* @typedef GetCustomFieldsParam
Expand Down Expand Up @@ -156,6 +158,14 @@ type GetBlogsParam = {
* - The number of items to retrieve in each page.
*/
pageSize?: number;
/**
* - Blogs retrieve based on the list of tags passed.
*/
tags?: string;
/**
* - Blogs retrieve based on the title.
*/
search?: string;
};
type GetCustomFieldsParam = {
resource: string;
Expand Down
4 changes: 4 additions & 0 deletions sdk/application/Content/ContentApplicationValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const ContentApplicationModel = require("./ContentApplicationModel");
* @property {number} [pageNo] - The page number to navigate through the given
* set of results. Default value is 1.
* @property {number} [pageSize] - The number of items to retrieve in each page.
* @property {string} [tags] - Blogs retrieve based on the list of tags passed.
* @property {string} [search] - Blogs retrieve based on the title.
*/

/**
Expand Down Expand Up @@ -129,6 +131,8 @@ class ContentApplicationValidator {
return Joi.object({
pageNo: Joi.number(),
pageSize: Joi.number(),
tags: Joi.string().allow(""),
search: Joi.string().allow(""),
});
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/platform/Content/ContentPlatformApplicationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ declare class Content {
* @summary: List blogs
* @description: List all blogs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
*/
getBlogs({ pageNo, pageSize, requestHeaders }?: ContentPlatformApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentPlatformModel.BlogGetResponse>;
getBlogs({ pageNo, pageSize, tags, q, slug, title, status, requestHeaders }?: ContentPlatformApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentPlatformModel.BlogGetResponse>;
/**
* @param {ContentPlatformApplicationValidator.GetComponentByIdParam} arg - Arg object
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
Expand Down
Loading

0 comments on commit be1a4b7

Please sign in to comment.