Skip to content

Commit

Permalink
[Auto Generated] 1.4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Sep 6, 2024
1 parent ecf999e commit 0687755
Show file tree
Hide file tree
Showing 15 changed files with 2,922 additions and 107 deletions.
2,667 changes: 2,667 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
The above code will log the curl command in the console

```bash
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.10' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.11' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
Active Theme: Emerge
```

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

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gofynd/fdk-client-javascript",
"version": "1.4.10",
"version": "1.4.11",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export = ConfigurationApplicationModel;
*/
/**
* @typedef GoogleMap
* @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
* @property {GoogleMapCredentials} [credentials]
*/
/**
Expand Down Expand Up @@ -1253,6 +1254,10 @@ type FyndRewardsCredentials = {
/** @returns {GoogleMap} */
declare function GoogleMap(): GoogleMap;
type GoogleMap = {
/**
* - Shows whether Google map integration is enabled or not.
*/
enabled?: boolean;
credentials?: GoogleMapCredentials;
};
/** @returns {GoogleMapCredentials} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ const Joi = require("joi");

/**
* @typedef GoogleMap
* @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
* @property {GoogleMapCredentials} [credentials]
*/

Expand Down Expand Up @@ -1174,6 +1175,7 @@ class ConfigurationApplicationModel {
/** @returns {GoogleMap} */
static GoogleMap() {
return Joi.object({
enabled: Joi.boolean(),
credentials: ConfigurationApplicationModel.GoogleMapCredentials(),
});
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ declare class Catalog {
* @summary: Get category return configuration
* @description: Get all category level configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/).
*/
getAppCategoryReturnConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.BaseAppCategoryReturnConfigResponse>;
getAppCategoryReturnConfig({ q, pageNo, pageSize, requestHeaders }?: CatalogPlatformApplicationValidator.GetAppCategoryReturnConfigParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.BaseAppCategoryReturnConfigResponse>;
/**
* @param {CatalogPlatformApplicationValidator.GetAppInventoryParam} arg - Arg object
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
Expand Down
17 changes: 14 additions & 3 deletions sdk/platform/Catalog/CatalogPlatformApplicationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1746,13 +1746,17 @@ class Catalog {
* @description: Get all category level configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/).
*/
async getAppCategoryReturnConfig(
{ requestHeaders } = { requestHeaders: {} },
{ q, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
{ responseHeaders } = { responseHeaders: false }
) {
const {
error,
} = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate(
{},
{
q,
pageNo,
pageSize,
},
{ abortEarly: false, allowUnknown: true }
);
if (error) {
Expand All @@ -1763,7 +1767,11 @@ class Catalog {
const {
error: warrning,
} = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate(
{},
{
q,
pageNo,
pageSize,
},
{ abortEarly: false, allowUnknown: false }
);
if (warrning) {
Expand All @@ -1774,6 +1782,9 @@ class Catalog {
}

const query_params = {};
query_params["q"] = q;
query_params["page_no"] = pageNo;
query_params["page_size"] = pageSize;

const response = await PlatformAPIClient.execute(
this.config,
Expand Down
30 changes: 27 additions & 3 deletions sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,15 @@ export = CatalogPlatformApplicationValidator;
* Default is 12.
*/
/** @typedef GetAllSearchKeywordParam */
/** @typedef GetAppCategoryReturnConfigParam */
/**
* @typedef GetAppCategoryReturnConfigParam
* @property {string} [q] - Get return configurations for categories by matching
* the search string with category names.
* @property {number} [pageNo] - The page number to navigate through the given
* set of results
* @property {number} [pageSize] - Number of items to retrieve in each page.
* Default is 10.
*/
/**
* @typedef GetAppInventoryParam
* @property {number[]} [itemIds] - The Item Id of the product.
Expand Down Expand Up @@ -465,7 +473,7 @@ declare class CatalogPlatformApplicationValidator {
/** @returns {GetAllSearchKeywordParam} */
static getAllSearchKeyword(): any;
/** @returns {GetAppCategoryReturnConfigParam} */
static getAppCategoryReturnConfig(): any;
static getAppCategoryReturnConfig(): GetAppCategoryReturnConfigParam;
/** @returns {GetAppInventoryParam} */
static getAppInventory(): GetAppInventoryParam;
/** @returns {GetAppLocationsParam} */
Expand Down Expand Up @@ -691,6 +699,23 @@ type GetAllCollectionsParam = {
*/
pageSize?: number;
};
type GetAppCategoryReturnConfigParam = {
/**
* - Get return configurations for categories by matching
* the search string with category names.
*/
q?: string;
/**
* - The page number to navigate through the given
* set of results
*/
pageNo?: number;
/**
* - Number of items to retrieve in each page.
* Default is 10.
*/
pageSize?: number;
};
type GetAppInventoryParam = {
/**
* - The Item Id of the product.
Expand Down Expand Up @@ -1289,7 +1314,6 @@ type UpdateSearchKeywordsParam = {
};
type DeleteSearchConfigurationParam = any;
type GetAllSearchKeywordParam = any;
type GetAppCategoryReturnConfigParam = any;
type GetAppReturnConfigurationParam = any;
type GetAutocompleteConfigParam = any;
type GetCatalogConfigurationParam = any;
Expand Down
16 changes: 14 additions & 2 deletions sdk/platform/Catalog/CatalogPlatformApplicationValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");

/** @typedef GetAllSearchKeywordParam */

/** @typedef GetAppCategoryReturnConfigParam */
/**
* @typedef GetAppCategoryReturnConfigParam
* @property {string} [q] - Get return configurations for categories by matching
* the search string with category names.
* @property {number} [pageNo] - The page number to navigate through the given
* set of results
* @property {number} [pageSize] - Number of items to retrieve in each page.
* Default is 10.
*/

/**
* @typedef GetAppInventoryParam
Expand Down Expand Up @@ -643,7 +651,11 @@ class CatalogPlatformApplicationValidator {

/** @returns {GetAppCategoryReturnConfigParam} */
static getAppCategoryReturnConfig() {
return Joi.object({}).required();
return Joi.object({
q: Joi.string().allow(""),
pageNo: Joi.number(),
pageSize: Joi.number(),
}).required();
}

/** @returns {GetAppInventoryParam} */
Expand Down
5 changes: 5 additions & 0 deletions sdk/platform/Configuration/ConfigurationPlatformModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ export = ConfigurationPlatformModel;
*/
/**
* @typedef GoogleMap
* @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
* @property {GoogleMapCredentials} [credentials]
*/
/**
Expand Down Expand Up @@ -2882,6 +2883,10 @@ type FyndRewardsCredentials = {
/** @returns {GoogleMap} */
declare function GoogleMap(): GoogleMap;
type GoogleMap = {
/**
* - Shows whether Google map integration is enabled or not.
*/
enabled?: boolean;
credentials?: GoogleMapCredentials;
};
/** @returns {GoogleMapCredentials} */
Expand Down
2 changes: 2 additions & 0 deletions sdk/platform/Configuration/ConfigurationPlatformModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ const Joi = require("joi");

/**
* @typedef GoogleMap
* @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
* @property {GoogleMapCredentials} [credentials]
*/

Expand Down Expand Up @@ -2473,6 +2474,7 @@ class ConfigurationPlatformModel {
/** @returns {GoogleMap} */
static GoogleMap() {
return Joi.object({
enabled: Joi.boolean(),
credentials: ConfigurationPlatformModel.GoogleMapCredentials(),
});
}
Expand Down
Loading

0 comments on commit 0687755

Please sign in to comment.