Skip to content

Commit

Permalink
[Auto Generated] 1.4.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Jan 12, 2024
1 parent 202ba5b commit 141f2d8
Show file tree
Hide file tree
Showing 23 changed files with 341 additions and 26 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHANGE LOG (1.4.0-beta.2) - v1.9.0-prerelease-v2
# CHANGE LOG (1.4.0-beta.3) - v1.9.0-prerelease-v3

## Application Client

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,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.0-beta.2' --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.0-beta.3' --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.

65 changes: 65 additions & 0 deletions documentation/partner/THEME.md
Original file line number Diff line number Diff line change
Expand Up @@ -16928,3 +16928,68 @@ Theme updated successfully



### Enums





#### [PageType](#PageType)
Type : string

| Name | Value | Description |
| ---- | ----- | ----------- |
| aboutUs | about-us | Symbolic link for About Us: /about-us |
| addresses | addresses | Symbolic link for Saved Addresses: /profile/address |
| blog | blog | Symbolic link for Blog: /blog/:slug |
| brands | brands | Symbolic link for Brands: /brands/:department |
| cards | cards | Symbolic link for Saved Cards: /profile/my-cards |
| cart | cart | Symbolic link for Cart: /cart/bag/ |
| categories | categories | Symbolic link for Categories: /categories/:department |
| brand | brand | Symbolic link for Brand: /brand/:slug |
| category | category | Symbolic link for Category: /category/:slug |
| collection | collection | Symbolic link for Collection: /collection/:slug |
| collections | collections | Symbolic link for Collections: /collections/ |
| contactUs | contact-us | Symbolic link for Contact Us: /contact-us/ |
| external | external | Symbolic link for External Link: /external/ |
| faq | faq | Symbolic link for FAQ: /faq |
| freshchat | freshchat | Symbolic link for Chat by Freshchat: /freshchat |
| home | home | Symbolic link for Home: / |
| notificationSettings | notification-settings | Symbolic link for Notification Settings: /notification-settings |
| orders | orders | Symbolic link for Orders: /profile/orders |
| page | page | Symbolic link for Page: /page/:slug |
| policy | policy | Symbolic link for Privacy Policy: /privacy-policy |
| product | product | Symbolic link for Product: /product/:slug |
| productRequest | product-request | Symbolic link for Product Request: /product-request/ |
| products | products | Symbolic link for Products: /products/ |
| profile | profile | Symbolic link for Profile: /profile |
| profileOrderShipment | profile-order-shipment | Symbolic link for profile orders shipment: /profile/orders/shipment/:shipmentid |
| profileBasic | profile-basic | Symbolic link for Basic Profile: /profile/details |
| profileCompany | profile-company | Symbolic link for Profile Company: /profile/company |
| profileEmails | profile-emails | Symbolic link for Profile Emails: /profile/email |
| profilePhones | profile-phones | Symbolic link for Profile Phones: /profile/phone |
| rateUs | rate-us | Symbolic link for Rate Us: /rate-us |
| referEarn | refer-earn | Symbolic link for Refer & Earn: /profile/refer-earn |
| settings | settings | Symbolic link for Settings: /setting/currency |
| sharedCart | shared-cart | Symbolic link for Shared Cart: /shared-cart/:token |
| tnc | tnc | Symbolic link for Terms and Conditions: /terms-and-conditions |
| trackOrder | track-order | Symbolic link for Track Order: /order-tracking/:orderId |
| wishlist | wishlist | Symbolic link for Wishlist: /wishlist/ |
| sections | sections | Symbolic link for Sections: /sections/:group |
| form | form | Symbolic link for Form: /form/:slug |
| cartDelivery | cart-delivery | Symbolic link for Cart Delivery: /cart/delivery |
| cartPayment | cart-payment | Symbolic link for Cart Payment Information: /cart/payment-info |
| cartReview | cart-review | Symbolic link for Cart Order Review: /cart/order-review |
| login | login | Symbolic link for Login: /auth/login |
| register | register | Symbolic link for Register: /auth/register |
| shippingPolicy | shipping-policy | Symbolic link for Shipping policy: /shipping-policy |
| returnPolicy | return-policy | Symbolic link for Return policy: /return-policy |
| orderStatus | order-status | Symbolic link for Order status: /cart/order-status |

---






4 changes: 2 additions & 2 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.0-beta.2",
"version": "1.4.0-beta.3",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
61 changes: 58 additions & 3 deletions sdk/partner/Theme/ThemePartnerModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export = ThemePartnerModel;
* @typedef ActionPage
* @property {Object} [params]
* @property {Object} [query]
* @property {string} [type]
* @property {PageType} type
* @property {string} [url]
*/
/**
Expand Down Expand Up @@ -544,10 +544,58 @@ export = ThemePartnerModel;
* @property {MarketplaceThemeImages} [images]
* @property {string} [name] - Variation name
*/
/**
* @typedef {| "about-us"
* | "addresses"
* | "blog"
* | "brands"
* | "cards"
* | "cart"
* | "categories"
* | "brand"
* | "category"
* | "collection"
* | "collections"
* | "contact-us"
* | "external"
* | "faq"
* | "freshchat"
* | "home"
* | "notification-settings"
* | "orders"
* | "page"
* | "policy"
* | "product"
* | "product-request"
* | "products"
* | "profile"
* | "profile-order-shipment"
* | "profile-basic"
* | "profile-company"
* | "profile-emails"
* | "profile-phones"
* | "rate-us"
* | "refer-earn"
* | "settings"
* | "shared-cart"
* | "tnc"
* | "track-order"
* | "wishlist"
* | "sections"
* | "form"
* | "cart-delivery"
* | "cart-payment"
* | "cart-review"
* | "login"
* | "register"
* | "shipping-policy"
* | "return-policy"
* | "order-status"} PageType
*/
declare class ThemePartnerModel {
}
declare namespace ThemePartnerModel {
export { Action, ActionPage, AllAvailablePageSchema, Assets, AvailablePagePlatformPredicate, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchedulePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, CarouselItem, CatalogSize, CheckboxProp, Comments, CommonJS, Config, ContactInfo, CreateNewTheme, CSS, CustomConfig, CustomProps, DividerStrokeHighlight, Documentation, ExploreInfo, Feature, FeatureItem, Font, FontVariant, FontVariants, GlobalSchema, Highlight, ImagePickerProp, Images, MarketplaceTheme, MarketplaceThemeImages, MarketplaceThemeSchema, OrderTracking, OverlayPopup, Page, PaginationSchema, PaymentInfo, Predicate, Preset, Prop, RangeProp, Release, Route, Screen, Section, SectionItem, SectionPreset, SectionProps, SEObreadcrumb, SEOMetaItem, SEOMetaItems, SEOSitemap, TextProp, ThemeConfigListPage, ThemeConfigListPageSettingsProps, ThemeConfiguration, ThemeMeta, ThemePayment, ThemeRejectionReasons, ThemesSchema, ThemeUserSchema, UMDJs, UpdateThemeRequestBody, UrlProp, UserAlerts, Variation };
export { Action, ActionPage, AllAvailablePageSchema, Assets, AvailablePagePlatformPredicate, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchedulePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, CarouselItem, CatalogSize, CheckboxProp, Comments, CommonJS, Config, ContactInfo, CreateNewTheme, CSS, CustomConfig, CustomProps, DividerStrokeHighlight, Documentation, ExploreInfo, Feature, FeatureItem, Font, FontVariant, FontVariants, GlobalSchema, Highlight, ImagePickerProp, Images, MarketplaceTheme, MarketplaceThemeImages, MarketplaceThemeSchema, OrderTracking, OverlayPopup, Page, PaginationSchema, PaymentInfo, Predicate, Preset, Prop, RangeProp, Release, Route, Screen, Section, SectionItem, SectionPreset, SectionProps, SEObreadcrumb, SEOMetaItem, SEOMetaItems, SEOSitemap, TextProp, ThemeConfigListPage, ThemeConfigListPageSettingsProps, ThemeConfiguration, ThemeMeta, ThemePayment, ThemeRejectionReasons, ThemesSchema, ThemeUserSchema, UMDJs, UpdateThemeRequestBody, UrlProp, UserAlerts, Variation, PageType };
}
/** @returns {Action} */
declare function Action(): Action;
Expand All @@ -561,7 +609,7 @@ declare function ActionPage(): ActionPage;
type ActionPage = {
params?: any;
query?: any;
type?: string;
type: PageType;
url?: string;
};
/** @returns {AllAvailablePageSchema} */
Expand Down Expand Up @@ -1631,3 +1679,10 @@ type Variation = {
*/
name?: string;
};
/**
* Enum: PageType Used By: Theme
*
* @returns {PageType}
*/
declare function PageType(): PageType;
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
154 changes: 152 additions & 2 deletions sdk/partner/Theme/ThemePartnerModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Joi = require("joi");
* @typedef ActionPage
* @property {Object} [params]
* @property {Object} [query]
* @property {string} [type]
* @property {PageType} type
* @property {string} [url]
*/

Expand Down Expand Up @@ -623,6 +623,55 @@ const Joi = require("joi");
* @property {string} [name] - Variation name
*/

/**
* @typedef {| "about-us"
* | "addresses"
* | "blog"
* | "brands"
* | "cards"
* | "cart"
* | "categories"
* | "brand"
* | "category"
* | "collection"
* | "collections"
* | "contact-us"
* | "external"
* | "faq"
* | "freshchat"
* | "home"
* | "notification-settings"
* | "orders"
* | "page"
* | "policy"
* | "product"
* | "product-request"
* | "products"
* | "profile"
* | "profile-order-shipment"
* | "profile-basic"
* | "profile-company"
* | "profile-emails"
* | "profile-phones"
* | "rate-us"
* | "refer-earn"
* | "settings"
* | "shared-cart"
* | "tnc"
* | "track-order"
* | "wishlist"
* | "sections"
* | "form"
* | "cart-delivery"
* | "cart-payment"
* | "cart-review"
* | "login"
* | "register"
* | "shipping-policy"
* | "return-policy"
* | "order-status"} PageType
*/

class ThemePartnerModel {
/** @returns {Action} */
static Action() {
Expand All @@ -644,7 +693,7 @@ class ThemePartnerModel {
/\S/,
Joi.array().items(Joi.string().allow(""))
),
type: Joi.string().allow(""),
type: ThemePartnerModel.PageType().required(),
url: Joi.string().allow(""),
});
}
Expand Down Expand Up @@ -1409,5 +1458,106 @@ class ThemePartnerModel {
name: Joi.string().allow(""),
});
}

/**
* Enum: PageType Used By: Theme
*
* @returns {PageType}
*/
static PageType() {
return Joi.string().valid(
"about-us",

"addresses",

"blog",

"brands",

"cards",

"cart",

"categories",

"brand",

"category",

"collection",

"collections",

"contact-us",

"external",

"faq",

"freshchat",

"home",

"notification-settings",

"orders",

"page",

"policy",

"product",

"product-request",

"products",

"profile",

"profile-order-shipment",

"profile-basic",

"profile-company",

"profile-emails",

"profile-phones",

"rate-us",

"refer-earn",

"settings",

"shared-cart",

"tnc",

"track-order",

"wishlist",

"sections",

"form",

"cart-delivery",

"cart-payment",

"cart-review",

"login",

"register",

"shipping-policy",

"return-policy",

"order-status"
);
}
}
module.exports = ThemePartnerModel;
5 changes: 4 additions & 1 deletion sdk/platform/Cart/CartPlatformApplicationClient.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const PlatformAPIClient = require("../PlatformAPIClient");
const { FDKClientValidationError } = require("../../common/FDKError");
const {
FDKClientValidationError,
FDKResponseValidationError,
} = require("../../common/FDKError");
const Paginator = require("../../common/Paginator");
const CartPlatformApplicationValidator = require("./CartPlatformApplicationValidator");
const CartPlatformModel = require("./CartPlatformModel");
Expand Down
5 changes: 4 additions & 1 deletion sdk/platform/Catalog/CatalogPlatformApplicationClient.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const PlatformAPIClient = require("../PlatformAPIClient");
const { FDKClientValidationError } = require("../../common/FDKError");
const {
FDKClientValidationError,
FDKResponseValidationError,
} = require("../../common/FDKError");
const Paginator = require("../../common/Paginator");
const CatalogPlatformApplicationValidator = require("./CatalogPlatformApplicationValidator");
const CatalogPlatformModel = require("./CatalogPlatformModel");
Expand Down
Loading

0 comments on commit 141f2d8

Please sign in to comment.