Skip to content

Commit 8435a1e

Browse files
committed
[Auto Generated] 3.5.0
1 parent 2373b63 commit 8435a1e

13 files changed

+338
-18
lines changed

CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
# CHANGE LOG (3.5.0) - 2.7.7
2+
3+
## Application Client
4+
5+
6+
7+
### Logistic
8+
9+
10+
11+
#### getFulfillmentOptions
12+
13+
- ##### What's Changed
14+
- [Breaking] [Changed] Possible values from <code>StorePickup</code> to <code>PickAtStore</code> of property <code>items[].type</code> of schema <code>FulfillmentOptionItem</code> in response with status code 200
15+
16+
17+
## Platform Client
18+
19+
20+
21+
### Configuration
22+
23+
24+
25+
#### getInventoryConfig
26+
27+
- ##### What's New
28+
- [Added] property <code>search.skg_identification</code> of schema <code>SearchConfig</code> in response with status code 200
29+
30+
31+
### Serviceability
32+
33+
34+
35+
#### createFulfillmentOption
36+
37+
- ##### What's Changed
38+
- [Breaking] [Changed] Possible values from <code>StorePickup</code> to <code>PickAtStore</code> of property <code>type</code> of schema <code>FulfillmentOption</code> in request body
39+
- [Breaking] [Changed] Possible values from <code>StorePickup</code> to <code>PickAtStore</code> of property <code>type</code> of schema <code>FulfillmentOption</code> in response with status code 200
40+
41+
42+
#### getFulfillmentOptions
43+
44+
- ##### What's Changed
45+
- [Breaking] [Changed] Possible values from <code>StorePickup</code> to <code>PickAtStore</code> of property <code>type</code> of schema <code>FulfillmentOption</code> in response with status code 200
46+
47+
48+
#### putFulfillmentOption
49+
50+
- ##### What's Changed
51+
- [Breaking] [Changed] Possible values from <code>StorePickup</code> to <code>PickAtStore</code> of property <code>type</code> of schema <code>FulfillmentOption</code> in request body
52+
- [Breaking] [Changed] Possible values from <code>StorePickup</code> to <code>PickAtStore</code> of property <code>type</code> of schema <code>FulfillmentOption</code> in response with status code 200
53+
54+
55+
#### getFulfillmentOptionsList
56+
57+
- ##### What's New
58+
- [Added] method <code>getFulfillmentOptionsList</code>
59+
60+
61+
162
# CHANGE LOG (3.4.4) - 2.7.5
263

364
## Platform Client

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
234234
The above code will log the curl command in the console
235235

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

dist/application.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gofynd/fdk-client-javascript",
3-
"version": "3.4.4",
3+
"version": "3.5.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

sdk/platform/Configuration/ConfigurationPlatformModel.d.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export = ConfigurationPlatformModel;
5959
* @property {boolean} [enabled] - Indicates whether search query interpretation
6060
* is enabled for the application.
6161
*/
62+
/**
63+
* @typedef SkgIdentification
64+
* @property {boolean} [enabled] - Indicates whether semantic knowledge
65+
* graph-based search is enabled for the application.
66+
*/
6267
/**
6368
* @typedef QuerySuggestions
6469
* @property {boolean} [enabled] - Indicates whether to enable or disable query
@@ -71,6 +76,7 @@ export = ConfigurationPlatformModel;
7176
* @typedef SearchConfig
7277
* @property {FstIdentification} [fst_identification]
7378
* @property {QuerySuggestions} [query_suggestions]
79+
* @property {SkgIdentification} [skg_identification]
7480
*/
7581
/**
7682
* @typedef AppInventoryConfig
@@ -1409,7 +1415,7 @@ export = ConfigurationPlatformModel;
14091415
declare class ConfigurationPlatformModel {
14101416
}
14111417
declare namespace ConfigurationPlatformModel {
1412-
export { CurrencyExchangeResponseV2, CurrencyExchangeItem, ApplicationInventory, PiiMasking, FstIdentification, QuerySuggestions, SearchConfig, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, ProcessingSchedule, StartAfter, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequestSchema, CompanyByBrandsResponseSchema, StoreByBrandsRequestSchema, StoreByBrandsResponseSchema, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponseSchema, ValidationFailedResponseSchema, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequestSchema, CreateAppResponseSchema, ApplicationsResponseSchema, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequestSchema, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequestSchema, Domain, DomainsResponseSchema, UpdateDomain, UpdateDomainTypeRequestSchema, DomainStatusRequestSchema, DomainStatus, DomainStatusResponseSchema, DomainSuggestionsRequestSchema, DomainSuggestion, DomainSuggestionsResponseSchema, SuccessMessageResponseSchema, App, AppDomain, CompaniesResponseSchema, AppInventoryCompanies, StoresResponseSchema, AppInventoryStores, FilterOrderingStoreRequestSchema, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequestSchema, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponseSchema, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponseSchema, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, BuyboxFeature, DeliveryStrategy, FulfillmentOption, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, AppFeatureRequestSchema, AppFeatureResponseSchema, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, ApplicationById, TokenSchemaID, TokenSchema, InvalidPayloadRequestSchema, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponseSchema, AppCurrencyResponseSchema, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponseSchema, ValidationErrors, ValidationError };
1418+
export { CurrencyExchangeResponseV2, CurrencyExchangeItem, ApplicationInventory, PiiMasking, FstIdentification, SkgIdentification, QuerySuggestions, SearchConfig, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, ProcessingSchedule, StartAfter, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequestSchema, CompanyByBrandsResponseSchema, StoreByBrandsRequestSchema, StoreByBrandsResponseSchema, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponseSchema, ValidationFailedResponseSchema, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequestSchema, CreateAppResponseSchema, ApplicationsResponseSchema, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequestSchema, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequestSchema, Domain, DomainsResponseSchema, UpdateDomain, UpdateDomainTypeRequestSchema, DomainStatusRequestSchema, DomainStatus, DomainStatusResponseSchema, DomainSuggestionsRequestSchema, DomainSuggestion, DomainSuggestionsResponseSchema, SuccessMessageResponseSchema, App, AppDomain, CompaniesResponseSchema, AppInventoryCompanies, StoresResponseSchema, AppInventoryStores, FilterOrderingStoreRequestSchema, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequestSchema, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponseSchema, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponseSchema, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, BuyboxFeature, DeliveryStrategy, FulfillmentOption, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, AppFeatureRequestSchema, AppFeatureResponseSchema, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, ApplicationById, TokenSchemaID, TokenSchema, InvalidPayloadRequestSchema, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponseSchema, AppCurrencyResponseSchema, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponseSchema, ValidationErrors, ValidationError };
14131419
}
14141420
/** @returns {CurrencyExchangeResponseV2} */
14151421
declare function CurrencyExchangeResponseV2(): CurrencyExchangeResponseV2;
@@ -1539,6 +1545,15 @@ type FstIdentification = {
15391545
*/
15401546
enabled?: boolean;
15411547
};
1548+
/** @returns {SkgIdentification} */
1549+
declare function SkgIdentification(): SkgIdentification;
1550+
type SkgIdentification = {
1551+
/**
1552+
* - Indicates whether semantic knowledge
1553+
* graph-based search is enabled for the application.
1554+
*/
1555+
enabled?: boolean;
1556+
};
15421557
/** @returns {QuerySuggestions} */
15431558
declare function QuerySuggestions(): QuerySuggestions;
15441559
type QuerySuggestions = {
@@ -1559,6 +1574,7 @@ declare function SearchConfig(): SearchConfig;
15591574
type SearchConfig = {
15601575
fst_identification?: FstIdentification;
15611576
query_suggestions?: QuerySuggestions;
1577+
skg_identification?: SkgIdentification;
15621578
};
15631579
/** @returns {AppInventoryConfig} */
15641580
declare function AppInventoryConfig(): AppInventoryConfig;

sdk/platform/Configuration/ConfigurationPlatformModel.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ const Joi = require("joi");
6565
* is enabled for the application.
6666
*/
6767

68+
/**
69+
* @typedef SkgIdentification
70+
* @property {boolean} [enabled] - Indicates whether semantic knowledge
71+
* graph-based search is enabled for the application.
72+
*/
73+
6874
/**
6975
* @typedef QuerySuggestions
7076
* @property {boolean} [enabled] - Indicates whether to enable or disable query
@@ -78,6 +84,7 @@ const Joi = require("joi");
7884
* @typedef SearchConfig
7985
* @property {FstIdentification} [fst_identification]
8086
* @property {QuerySuggestions} [query_suggestions]
87+
* @property {SkgIdentification} [skg_identification]
8188
*/
8289

8390
/**
@@ -1657,6 +1664,13 @@ class ConfigurationPlatformModel {
16571664
});
16581665
}
16591666

1667+
/** @returns {SkgIdentification} */
1668+
static SkgIdentification() {
1669+
return Joi.object({
1670+
enabled: Joi.boolean(),
1671+
});
1672+
}
1673+
16601674
/** @returns {QuerySuggestions} */
16611675
static QuerySuggestions() {
16621676
return Joi.object({
@@ -1670,6 +1684,7 @@ class ConfigurationPlatformModel {
16701684
return Joi.object({
16711685
fst_identification: ConfigurationPlatformModel.FstIdentification(),
16721686
query_suggestions: ConfigurationPlatformModel.QuerySuggestions(),
1687+
skg_identification: ConfigurationPlatformModel.SkgIdentification(),
16731688
});
16741689
}
16751690

sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,19 @@ declare class Serviceability {
297297
* @description: Fetches available fulfillment options for a given product and store. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getFulfillmentOptions/).
298298
*/
299299
getFulfillmentOptions({ slug, productId, storeId, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetFulfillmentOptionsParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.FulfillmentOption>;
300+
/**
301+
* @param {ServiceabilityPlatformApplicationValidator.GetFulfillmentOptionsListParam} arg
302+
* - Arg object
303+
*
304+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
305+
* @param {import("../PlatformAPIClient").Options} - Options
306+
* @returns {Promise<ServiceabilityPlatformModel.FulfillmentOptionsList>} -
307+
* Success response
308+
* @name getFulfillmentOptionsList
309+
* @summary: Retrieve fulfillment options with optional filters.
310+
* @description: Fetches fulfillment options for an application. Queryable by product_slug, store_id, and status. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getFulfillmentOptionsList/).
311+
*/
312+
getFulfillmentOptionsList({ productSlug, storeId, status, requestHeaders }?: ServiceabilityPlatformApplicationValidator.GetFulfillmentOptionsListParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.FulfillmentOptionsList>;
300313
/**
301314
* @param {ServiceabilityPlatformApplicationValidator.GetGeoAreaParam} arg
302315
* - Arg object

sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,6 +1834,95 @@ class Serviceability {
18341834
return response;
18351835
}
18361836

1837+
/**
1838+
* @param {ServiceabilityPlatformApplicationValidator.GetFulfillmentOptionsListParam} arg
1839+
* - Arg object
1840+
*
1841+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1842+
* @param {import("../PlatformAPIClient").Options} - Options
1843+
* @returns {Promise<ServiceabilityPlatformModel.FulfillmentOptionsList>} -
1844+
* Success response
1845+
* @name getFulfillmentOptionsList
1846+
* @summary: Retrieve fulfillment options with optional filters.
1847+
* @description: Fetches fulfillment options for an application. Queryable by product_slug, store_id, and status. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/serviceability/getFulfillmentOptionsList/).
1848+
*/
1849+
async getFulfillmentOptionsList(
1850+
{ productSlug, storeId, status, requestHeaders } = { requestHeaders: {} },
1851+
{ responseHeaders } = { responseHeaders: false }
1852+
) {
1853+
const {
1854+
error,
1855+
} = ServiceabilityPlatformApplicationValidator.getFulfillmentOptionsList().validate(
1856+
{
1857+
productSlug,
1858+
storeId,
1859+
status,
1860+
},
1861+
{ abortEarly: false, allowUnknown: true }
1862+
);
1863+
if (error) {
1864+
return Promise.reject(new FDKClientValidationError(error));
1865+
}
1866+
1867+
// Showing warrnings if extra unknown parameters are found
1868+
const {
1869+
error: warrning,
1870+
} = ServiceabilityPlatformApplicationValidator.getFulfillmentOptionsList().validate(
1871+
{
1872+
productSlug,
1873+
storeId,
1874+
status,
1875+
},
1876+
{ abortEarly: false, allowUnknown: false }
1877+
);
1878+
if (warrning) {
1879+
Logger({
1880+
level: "WARN",
1881+
message: `Parameter Validation warrnings for platform > Serviceability > getFulfillmentOptionsList \n ${warrning}`,
1882+
});
1883+
}
1884+
1885+
const query_params = {};
1886+
query_params["product_slug"] = productSlug;
1887+
query_params["store_id"] = storeId;
1888+
query_params["status"] = status;
1889+
1890+
const response = await PlatformAPIClient.execute(
1891+
this.config,
1892+
"get",
1893+
`/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/fulfillment-options`,
1894+
query_params,
1895+
undefined,
1896+
requestHeaders,
1897+
{ responseHeaders }
1898+
);
1899+
1900+
let responseData = response;
1901+
if (responseHeaders) {
1902+
responseData = response[0];
1903+
}
1904+
1905+
const {
1906+
error: res_error,
1907+
} = ServiceabilityPlatformModel.FulfillmentOptionsList().validate(
1908+
responseData,
1909+
{ abortEarly: false, allowUnknown: true }
1910+
);
1911+
1912+
if (res_error) {
1913+
if (this.config.options.strictResponseCheck === true) {
1914+
return Promise.reject(new FDKResponseValidationError(res_error));
1915+
} else {
1916+
Logger({
1917+
level: "WARN",
1918+
message: `Response Validation Warnings for platform > Serviceability > getFulfillmentOptionsList \n ${res_error}`,
1919+
});
1920+
}
1921+
}
1922+
1923+
return response;
1924+
}
1925+
18371926
/**
18381927
* @param {ServiceabilityPlatformApplicationValidator.GetGeoAreaParam} arg
18391928
* - Arg object

0 commit comments

Comments
 (0)