@gofynd/fdk-client-javascript 1.3.9 → 1.3.10-beta.2
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
|
@@ -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.3.
|
|
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.3.10-beta.2' --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
|
@@ -28,6 +28,7 @@ export = DiscountPlatformModel;
|
|
|
28
28
|
* @property {number[]} [store_ids]
|
|
29
29
|
* @property {ValidityObject} validity
|
|
30
30
|
* @property {number} [value]
|
|
31
|
+
* @property {string[]} [zone_ids]
|
|
31
32
|
*/
|
|
32
33
|
/**
|
|
33
34
|
* @typedef DiscountItems
|
|
@@ -163,6 +164,7 @@ type CreateUpdateDiscount = {
|
|
|
163
164
|
store_ids?: number[];
|
|
164
165
|
validity: ValidityObject;
|
|
165
166
|
value?: number;
|
|
167
|
+
zone_ids?: string[];
|
|
166
168
|
};
|
|
167
169
|
/** @returns {DiscountItems} */
|
|
168
170
|
declare function DiscountItems(): DiscountItems;
|
|
@@ -32,6 +32,7 @@ const Joi = require("joi");
|
|
|
32
32
|
* @property {number[]} [store_ids]
|
|
33
33
|
* @property {ValidityObject} validity
|
|
34
34
|
* @property {number} [value]
|
|
35
|
+
* @property {string[]} [zone_ids]
|
|
35
36
|
*/
|
|
36
37
|
|
|
37
38
|
/**
|
|
@@ -182,6 +183,7 @@ class DiscountPlatformModel {
|
|
|
182
183
|
store_ids: Joi.array().items(Joi.number()),
|
|
183
184
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
184
185
|
value: Joi.number(),
|
|
186
|
+
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
185
187
|
});
|
|
186
188
|
}
|
|
187
189
|
|
|
@@ -76,6 +76,7 @@ export = OrderPlatformModel;
|
|
|
76
76
|
/**
|
|
77
77
|
* @typedef AffiliateBagsDetails
|
|
78
78
|
* @property {string} [affiliate_bag_id]
|
|
79
|
+
* @property {AffiliateMeta} [affiliate_meta]
|
|
79
80
|
* @property {string} [coupon_code]
|
|
80
81
|
*/
|
|
81
82
|
/**
|
|
@@ -1174,6 +1175,7 @@ export = OrderPlatformModel;
|
|
|
1174
1175
|
* @property {OrderBagArticle} [article]
|
|
1175
1176
|
* @property {BagConfigs} [bag_configs]
|
|
1176
1177
|
* @property {number} bag_id
|
|
1178
|
+
* @property {BagStatusHistory[]} [bag_status]
|
|
1177
1179
|
* @property {OrderBrandName} [brand]
|
|
1178
1180
|
* @property {boolean} [can_cancel]
|
|
1179
1181
|
* @property {boolean} [can_return]
|
|
@@ -1876,7 +1878,7 @@ export = OrderPlatformModel;
|
|
|
1876
1878
|
/**
|
|
1877
1879
|
* @typedef ShipmentItemFulFillingStore
|
|
1878
1880
|
* @property {string} [address]
|
|
1879
|
-
* @property {string} [brand_store_tags]
|
|
1881
|
+
* @property {string[]} [brand_store_tags]
|
|
1880
1882
|
* @property {string} [city]
|
|
1881
1883
|
* @property {string} code
|
|
1882
1884
|
* @property {number} id
|
|
@@ -2484,6 +2486,7 @@ type AffiliateBagDetails = {
|
|
|
2484
2486
|
declare function AffiliateBagsDetails(): AffiliateBagsDetails;
|
|
2485
2487
|
type AffiliateBagsDetails = {
|
|
2486
2488
|
affiliate_bag_id?: string;
|
|
2489
|
+
affiliate_meta?: AffiliateMeta;
|
|
2487
2490
|
coupon_code?: string;
|
|
2488
2491
|
};
|
|
2489
2492
|
/** @returns {AffiliateConfig} */
|
|
@@ -3872,6 +3875,7 @@ type OrderBags = {
|
|
|
3872
3875
|
article?: OrderBagArticle;
|
|
3873
3876
|
bag_configs?: BagConfigs;
|
|
3874
3877
|
bag_id: number;
|
|
3878
|
+
bag_status?: BagStatusHistory[];
|
|
3875
3879
|
brand?: OrderBrandName;
|
|
3876
3880
|
can_cancel?: boolean;
|
|
3877
3881
|
can_return?: boolean;
|
|
@@ -4701,7 +4705,7 @@ type ShipmentItem = {
|
|
|
4701
4705
|
declare function ShipmentItemFulFillingStore(): ShipmentItemFulFillingStore;
|
|
4702
4706
|
type ShipmentItemFulFillingStore = {
|
|
4703
4707
|
address?: string;
|
|
4704
|
-
brand_store_tags?: string;
|
|
4708
|
+
brand_store_tags?: string[];
|
|
4705
4709
|
city?: string;
|
|
4706
4710
|
code: string;
|
|
4707
4711
|
id: number;
|
|
@@ -84,6 +84,7 @@ const Joi = require("joi");
|
|
|
84
84
|
/**
|
|
85
85
|
* @typedef AffiliateBagsDetails
|
|
86
86
|
* @property {string} [affiliate_bag_id]
|
|
87
|
+
* @property {AffiliateMeta} [affiliate_meta]
|
|
87
88
|
* @property {string} [coupon_code]
|
|
88
89
|
*/
|
|
89
90
|
|
|
@@ -1304,6 +1305,7 @@ const Joi = require("joi");
|
|
|
1304
1305
|
* @property {OrderBagArticle} [article]
|
|
1305
1306
|
* @property {BagConfigs} [bag_configs]
|
|
1306
1307
|
* @property {number} bag_id
|
|
1308
|
+
* @property {BagStatusHistory[]} [bag_status]
|
|
1307
1309
|
* @property {OrderBrandName} [brand]
|
|
1308
1310
|
* @property {boolean} [can_cancel]
|
|
1309
1311
|
* @property {boolean} [can_return]
|
|
@@ -2082,7 +2084,7 @@ const Joi = require("joi");
|
|
|
2082
2084
|
/**
|
|
2083
2085
|
* @typedef ShipmentItemFulFillingStore
|
|
2084
2086
|
* @property {string} [address]
|
|
2085
|
-
* @property {string} [brand_store_tags]
|
|
2087
|
+
* @property {string[]} [brand_store_tags]
|
|
2086
2088
|
* @property {string} [city]
|
|
2087
2089
|
* @property {string} code
|
|
2088
2090
|
* @property {number} id
|
|
@@ -2752,6 +2754,7 @@ class OrderPlatformModel {
|
|
|
2752
2754
|
static AffiliateBagsDetails() {
|
|
2753
2755
|
return Joi.object({
|
|
2754
2756
|
affiliate_bag_id: Joi.string().allow("").allow(null),
|
|
2757
|
+
affiliate_meta: OrderPlatformModel.AffiliateMeta(),
|
|
2755
2758
|
coupon_code: Joi.string().allow("").allow(null),
|
|
2756
2759
|
});
|
|
2757
2760
|
}
|
|
@@ -4223,6 +4226,7 @@ class OrderPlatformModel {
|
|
|
4223
4226
|
article: OrderPlatformModel.OrderBagArticle(),
|
|
4224
4227
|
bag_configs: OrderPlatformModel.BagConfigs(),
|
|
4225
4228
|
bag_id: Joi.number().required(),
|
|
4229
|
+
bag_status: Joi.array().items(OrderPlatformModel.BagStatusHistory()),
|
|
4226
4230
|
brand: OrderPlatformModel.OrderBrandName(),
|
|
4227
4231
|
can_cancel: Joi.boolean().allow(null),
|
|
4228
4232
|
can_return: Joi.boolean().allow(null),
|
|
@@ -5167,7 +5171,7 @@ class OrderPlatformModel {
|
|
|
5167
5171
|
static ShipmentItemFulFillingStore() {
|
|
5168
5172
|
return Joi.object({
|
|
5169
5173
|
address: Joi.string().allow("").allow(null),
|
|
5170
|
-
brand_store_tags: Joi.string().allow("")
|
|
5174
|
+
brand_store_tags: Joi.array().items(Joi.string().allow("")),
|
|
5171
5175
|
city: Joi.string().allow("").allow(null),
|
|
5172
5176
|
code: Joi.string().allow("").required(),
|
|
5173
5177
|
id: Joi.number().required(),
|