@gofynd/fdk-client-javascript 1.4.0-beta.1 → 1.4.0-beta.3
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 +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +2 -0
- package/sdk/application/Cart/CartApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
- package/sdk/application/Order/OrderApplicationModel.js +2 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +240 -315
- package/sdk/partner/Theme/ThemePartnerModel.js +332 -222
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +4 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +4 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -12
- package/sdk/platform/Catalog/CatalogPlatformClient.js +17 -87
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +11 -25
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +4 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +8 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +2 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +4 -1
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -44
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +120 -54
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +4 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -12
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -86
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -12
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -14
- package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -61
- package/sdk/platform/Order/OrderPlatformClient.js +87 -481
- package/sdk/platform/Order/OrderPlatformModel.d.ts +442 -171
- package/sdk/platform/Order/OrderPlatformModel.js +483 -169
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +22 -69
- package/sdk/platform/Order/OrderPlatformValidator.js +17 -79
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +4 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +4 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +4 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +4 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -1
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -21
- package/sdk/platform/Theme/ThemePlatformModel.js +108 -20
- package/sdk/platform/User/UserPlatformApplicationClient.js +4 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformClient.js +4 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +21 -27
- package/sdk/platform/Webhook/WebhookPlatformModel.js +30 -27
package/README.md
CHANGED
|
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
214
214
|
The above code will log the curl command in the console
|
|
215
215
|
|
|
216
216
|
```bash
|
|
217
|
-
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.
|
|
217
|
+
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'
|
|
218
218
|
Active Theme: Emerge
|
|
219
219
|
```
|
|
220
220
|
|
package/package.json
CHANGED
|
@@ -497,6 +497,7 @@ export = CartApplicationModel;
|
|
|
497
497
|
* @property {string} [display]
|
|
498
498
|
* @property {string} [key]
|
|
499
499
|
* @property {string[]} [message]
|
|
500
|
+
* @property {number} [preset]
|
|
500
501
|
* @property {number} [value]
|
|
501
502
|
*/
|
|
502
503
|
/**
|
|
@@ -1611,6 +1612,7 @@ type DisplayBreakup = {
|
|
|
1611
1612
|
display?: string;
|
|
1612
1613
|
key?: string;
|
|
1613
1614
|
message?: string[];
|
|
1615
|
+
preset?: number;
|
|
1614
1616
|
value?: number;
|
|
1615
1617
|
};
|
|
1616
1618
|
/** @returns {FreeGiftItem} */
|
|
@@ -545,6 +545,7 @@ const Joi = require("joi");
|
|
|
545
545
|
* @property {string} [display]
|
|
546
546
|
* @property {string} [key]
|
|
547
547
|
* @property {string[]} [message]
|
|
548
|
+
* @property {number} [preset]
|
|
548
549
|
* @property {number} [value]
|
|
549
550
|
*/
|
|
550
551
|
|
|
@@ -1671,6 +1672,7 @@ class CartApplicationModel {
|
|
|
1671
1672
|
display: Joi.string().allow(""),
|
|
1672
1673
|
key: Joi.string().allow(""),
|
|
1673
1674
|
message: Joi.array().items(Joi.string().allow("")),
|
|
1675
|
+
preset: Joi.number(),
|
|
1674
1676
|
value: Joi.number(),
|
|
1675
1677
|
});
|
|
1676
1678
|
}
|
|
@@ -110,6 +110,7 @@ export = OrderApplicationModel;
|
|
|
110
110
|
* @property {string} [country_iso_code]
|
|
111
111
|
* @property {string} [country_phone_code]
|
|
112
112
|
* @property {string} [created_at]
|
|
113
|
+
* @property {string} [display_address]
|
|
113
114
|
* @property {string} [email]
|
|
114
115
|
* @property {string} [landmark]
|
|
115
116
|
* @property {number} [latitude]
|
|
@@ -648,6 +649,7 @@ type DeliveryAddress = {
|
|
|
648
649
|
country_iso_code?: string;
|
|
649
650
|
country_phone_code?: string;
|
|
650
651
|
created_at?: string;
|
|
652
|
+
display_address?: string;
|
|
651
653
|
email?: string;
|
|
652
654
|
landmark?: string;
|
|
653
655
|
latitude?: number;
|
|
@@ -123,6 +123,7 @@ const Joi = require("joi");
|
|
|
123
123
|
* @property {string} [country_iso_code]
|
|
124
124
|
* @property {string} [country_phone_code]
|
|
125
125
|
* @property {string} [created_at]
|
|
126
|
+
* @property {string} [display_address]
|
|
126
127
|
* @property {string} [email]
|
|
127
128
|
* @property {string} [landmark]
|
|
128
129
|
* @property {number} [latitude]
|
|
@@ -737,6 +738,7 @@ class OrderApplicationModel {
|
|
|
737
738
|
country_iso_code: Joi.string().allow(""),
|
|
738
739
|
country_phone_code: Joi.string().allow(""),
|
|
739
740
|
created_at: Joi.string().allow(""),
|
|
741
|
+
display_address: Joi.string().allow(""),
|
|
740
742
|
email: Joi.string().allow(""),
|
|
741
743
|
landmark: Joi.string().allow(""),
|
|
742
744
|
latitude: Joi.number().allow(null),
|