@gofynd/fdk-client-javascript 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
237
237
|
The above code will log the curl command in the console
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
|
-
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.6.
|
|
240
|
+
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.6.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
241
241
|
Active Theme: Emerge
|
|
242
242
|
```
|
|
243
243
|
|
package/package.json
CHANGED
|
@@ -1950,6 +1950,11 @@ export = CartPlatformModel;
|
|
|
1950
1950
|
* @property {string} key - Key name of custom meta
|
|
1951
1951
|
* @property {string} value - Value to be added in key
|
|
1952
1952
|
*/
|
|
1953
|
+
/**
|
|
1954
|
+
* @typedef OrderTag
|
|
1955
|
+
* @property {string} [display_text] - Display text for order tag
|
|
1956
|
+
* @property {string} [slug] - Slug to be used for tagging order with any unique value
|
|
1957
|
+
*/
|
|
1953
1958
|
/**
|
|
1954
1959
|
* @typedef PlatformCartCheckoutDetailCreation
|
|
1955
1960
|
* @property {CartCheckoutCustomMeta[]} [custom_meta]
|
|
@@ -1987,6 +1992,8 @@ export = CartPlatformModel;
|
|
|
1987
1992
|
* redirected after payment received
|
|
1988
1993
|
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
1989
1994
|
* redirected after payment failed
|
|
1995
|
+
* @property {OrderTag[]} [order_tags] - Order tags used to identify specific
|
|
1996
|
+
* type of order which is tagged using order tags
|
|
1990
1997
|
*/
|
|
1991
1998
|
/**
|
|
1992
1999
|
* @typedef CheckCart
|
|
@@ -2189,6 +2196,8 @@ export = CartPlatformModel;
|
|
|
2189
2196
|
* redirected after payment received
|
|
2190
2197
|
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
2191
2198
|
* redirected after payment failed
|
|
2199
|
+
* @property {OrderTag[]} [order_tags] - Order tags used to identify specific
|
|
2200
|
+
* type of order which is tagged using order tags
|
|
2192
2201
|
*/
|
|
2193
2202
|
/**
|
|
2194
2203
|
* @typedef UpdateCartPaymentRequestV2
|
|
@@ -2281,7 +2290,7 @@ export = CartPlatformModel;
|
|
|
2281
2290
|
declare class CartPlatformModel {
|
|
2282
2291
|
}
|
|
2283
2292
|
declare namespace CartPlatformModel {
|
|
2284
|
-
export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError };
|
|
2293
|
+
export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError };
|
|
2285
2294
|
}
|
|
2286
2295
|
/** @returns {CouponDateMeta} */
|
|
2287
2296
|
declare function CouponDateMeta(): CouponDateMeta;
|
|
@@ -7207,6 +7216,18 @@ type CartCheckoutCustomMeta = {
|
|
|
7207
7216
|
*/
|
|
7208
7217
|
value: string;
|
|
7209
7218
|
};
|
|
7219
|
+
/** @returns {OrderTag} */
|
|
7220
|
+
declare function OrderTag(): OrderTag;
|
|
7221
|
+
type OrderTag = {
|
|
7222
|
+
/**
|
|
7223
|
+
* - Display text for order tag
|
|
7224
|
+
*/
|
|
7225
|
+
display_text?: string;
|
|
7226
|
+
/**
|
|
7227
|
+
* - Slug to be used for tagging order with any unique value
|
|
7228
|
+
*/
|
|
7229
|
+
slug?: string;
|
|
7230
|
+
};
|
|
7210
7231
|
/** @returns {PlatformCartCheckoutDetailCreation} */
|
|
7211
7232
|
declare function PlatformCartCheckoutDetailCreation(): PlatformCartCheckoutDetailCreation;
|
|
7212
7233
|
type PlatformCartCheckoutDetailCreation = {
|
|
@@ -7257,6 +7278,11 @@ type PlatformCartCheckoutDetailCreation = {
|
|
|
7257
7278
|
* redirected after payment failed
|
|
7258
7279
|
*/
|
|
7259
7280
|
failure_callback_url?: string;
|
|
7281
|
+
/**
|
|
7282
|
+
* - Order tags used to identify specific
|
|
7283
|
+
* type of order which is tagged using order tags
|
|
7284
|
+
*/
|
|
7285
|
+
order_tags?: OrderTag[];
|
|
7260
7286
|
};
|
|
7261
7287
|
/** @returns {CheckCart} */
|
|
7262
7288
|
declare function CheckCart(): CheckCart;
|
|
@@ -7795,6 +7821,11 @@ type PlatformCartCheckoutDetailV2Creation = {
|
|
|
7795
7821
|
* redirected after payment failed
|
|
7796
7822
|
*/
|
|
7797
7823
|
failure_callback_url?: string;
|
|
7824
|
+
/**
|
|
7825
|
+
* - Order tags used to identify specific
|
|
7826
|
+
* type of order which is tagged using order tags
|
|
7827
|
+
*/
|
|
7828
|
+
order_tags?: OrderTag[];
|
|
7798
7829
|
};
|
|
7799
7830
|
/** @returns {UpdateCartPaymentRequestV2} */
|
|
7800
7831
|
declare function UpdateCartPaymentRequestV2(): UpdateCartPaymentRequestV2;
|
|
@@ -2131,6 +2131,12 @@ const Joi = require("joi");
|
|
|
2131
2131
|
* @property {string} value - Value to be added in key
|
|
2132
2132
|
*/
|
|
2133
2133
|
|
|
2134
|
+
/**
|
|
2135
|
+
* @typedef OrderTag
|
|
2136
|
+
* @property {string} [display_text] - Display text for order tag
|
|
2137
|
+
* @property {string} [slug] - Slug to be used for tagging order with any unique value
|
|
2138
|
+
*/
|
|
2139
|
+
|
|
2134
2140
|
/**
|
|
2135
2141
|
* @typedef PlatformCartCheckoutDetailCreation
|
|
2136
2142
|
* @property {CartCheckoutCustomMeta[]} [custom_meta]
|
|
@@ -2168,6 +2174,8 @@ const Joi = require("joi");
|
|
|
2168
2174
|
* redirected after payment received
|
|
2169
2175
|
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
2170
2176
|
* redirected after payment failed
|
|
2177
|
+
* @property {OrderTag[]} [order_tags] - Order tags used to identify specific
|
|
2178
|
+
* type of order which is tagged using order tags
|
|
2171
2179
|
*/
|
|
2172
2180
|
|
|
2173
2181
|
/**
|
|
@@ -2382,6 +2390,8 @@ const Joi = require("joi");
|
|
|
2382
2390
|
* redirected after payment received
|
|
2383
2391
|
* @property {string} [failure_callback_url] - Failure callback url to be
|
|
2384
2392
|
* redirected after payment failed
|
|
2393
|
+
* @property {OrderTag[]} [order_tags] - Order tags used to identify specific
|
|
2394
|
+
* type of order which is tagged using order tags
|
|
2385
2395
|
*/
|
|
2386
2396
|
|
|
2387
2397
|
/**
|
|
@@ -4709,6 +4719,14 @@ class CartPlatformModel {
|
|
|
4709
4719
|
});
|
|
4710
4720
|
}
|
|
4711
4721
|
|
|
4722
|
+
/** @returns {OrderTag} */
|
|
4723
|
+
static OrderTag() {
|
|
4724
|
+
return Joi.object({
|
|
4725
|
+
display_text: Joi.string().allow(""),
|
|
4726
|
+
slug: Joi.string().allow(""),
|
|
4727
|
+
});
|
|
4728
|
+
}
|
|
4729
|
+
|
|
4712
4730
|
/** @returns {PlatformCartCheckoutDetailCreation} */
|
|
4713
4731
|
static PlatformCartCheckoutDetailCreation() {
|
|
4714
4732
|
return Joi.object({
|
|
@@ -4747,6 +4765,7 @@ class CartPlatformModel {
|
|
|
4747
4765
|
card_id: Joi.string().allow(""),
|
|
4748
4766
|
success_callback_url: Joi.string().allow("").allow(null),
|
|
4749
4767
|
failure_callback_url: Joi.string().allow("").allow(null),
|
|
4768
|
+
order_tags: Joi.array().items(CartPlatformModel.OrderTag()),
|
|
4750
4769
|
});
|
|
4751
4770
|
}
|
|
4752
4771
|
|
|
@@ -4948,6 +4967,7 @@ class CartPlatformModel {
|
|
|
4948
4967
|
card_id: Joi.string().allow(""),
|
|
4949
4968
|
success_callback_url: Joi.string().allow("").allow(null),
|
|
4950
4969
|
failure_callback_url: Joi.string().allow("").allow(null),
|
|
4970
|
+
order_tags: Joi.array().items(CartPlatformModel.OrderTag()),
|
|
4951
4971
|
});
|
|
4952
4972
|
}
|
|
4953
4973
|
|