@gofynd/fdk-client-javascript 1.3.5-beta.1 → 1.3.5-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 +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.js +7 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -4
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -0
- package/sdk/platform/Order/OrderPlatformModel.js +4 -0
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.5-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.3.5-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
|
@@ -1129,23 +1129,23 @@ class CartApplicationModel {
|
|
|
1129
1129
|
aggregator: Joi.string().allow(""),
|
|
1130
1130
|
billing_address: Joi.any(),
|
|
1131
1131
|
billing_address_id: Joi.string().allow(""),
|
|
1132
|
-
callback_url: Joi.string().allow("")
|
|
1132
|
+
callback_url: Joi.string().allow(""),
|
|
1133
1133
|
custom_meta: Joi.array().items(
|
|
1134
1134
|
CartApplicationModel.CartCheckoutCustomMeta()
|
|
1135
1135
|
),
|
|
1136
|
-
customer_details: Joi.any()
|
|
1136
|
+
customer_details: Joi.any(),
|
|
1137
1137
|
delivery_address: Joi.any(),
|
|
1138
1138
|
extra_meta: Joi.any(),
|
|
1139
|
-
id: Joi.string().allow("")
|
|
1139
|
+
id: Joi.string().allow(""),
|
|
1140
1140
|
merchant_code: Joi.string().allow(""),
|
|
1141
1141
|
meta: Joi.any(),
|
|
1142
1142
|
order_type: Joi.string().allow(""),
|
|
1143
|
-
ordering_store: Joi.number()
|
|
1143
|
+
ordering_store: Joi.number(),
|
|
1144
1144
|
payment_auto_confirm: Joi.boolean(),
|
|
1145
1145
|
payment_extra_identifiers: Joi.any(),
|
|
1146
|
-
payment_identifier: Joi.string().allow("")
|
|
1146
|
+
payment_identifier: Joi.string().allow(""),
|
|
1147
1147
|
payment_mode: Joi.string().allow("").required(),
|
|
1148
|
-
payment_params: Joi.any()
|
|
1148
|
+
payment_params: Joi.any(),
|
|
1149
1149
|
staff: CartApplicationModel.StaffCheckout(),
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
@@ -1452,7 +1452,7 @@ class CartApplicationModel {
|
|
|
1452
1452
|
/** @returns {CustomerDetails} */
|
|
1453
1453
|
static CustomerDetails() {
|
|
1454
1454
|
return Joi.object({
|
|
1455
|
-
email: Joi.string().allow("")
|
|
1455
|
+
email: Joi.string().allow(""),
|
|
1456
1456
|
mobile: Joi.string().allow("").required(),
|
|
1457
1457
|
name: Joi.string().allow(""),
|
|
1458
1458
|
});
|
|
@@ -2044,12 +2044,12 @@ export = CatalogPlatformModel;
|
|
|
2044
2044
|
/**
|
|
2045
2045
|
* @typedef ProductBulkRequest
|
|
2046
2046
|
* @property {number} [cancelled]
|
|
2047
|
-
* @property {
|
|
2047
|
+
* @property {Object[]} [cancelled_records]
|
|
2048
2048
|
* @property {number} [company_id]
|
|
2049
2049
|
* @property {UserDetail1} [created_by]
|
|
2050
2050
|
* @property {string} [created_on]
|
|
2051
2051
|
* @property {number} [failed]
|
|
2052
|
-
* @property {
|
|
2052
|
+
* @property {Object[]} [failed_records]
|
|
2053
2053
|
* @property {string} [file_path]
|
|
2054
2054
|
* @property {boolean} [is_active]
|
|
2055
2055
|
* @property {UserDetail1} [modified_by]
|
|
@@ -6122,12 +6122,12 @@ type ProductBulkAssets = {
|
|
|
6122
6122
|
declare function ProductBulkRequest(): ProductBulkRequest;
|
|
6123
6123
|
type ProductBulkRequest = {
|
|
6124
6124
|
cancelled?: number;
|
|
6125
|
-
cancelled_records?:
|
|
6125
|
+
cancelled_records?: any[];
|
|
6126
6126
|
company_id?: number;
|
|
6127
6127
|
created_by?: UserDetail1;
|
|
6128
6128
|
created_on?: string;
|
|
6129
6129
|
failed?: number;
|
|
6130
|
-
failed_records?:
|
|
6130
|
+
failed_records?: any[];
|
|
6131
6131
|
file_path?: string;
|
|
6132
6132
|
is_active?: boolean;
|
|
6133
6133
|
modified_by?: UserDetail1;
|
|
@@ -2285,12 +2285,12 @@ const Joi = require("joi");
|
|
|
2285
2285
|
/**
|
|
2286
2286
|
* @typedef ProductBulkRequest
|
|
2287
2287
|
* @property {number} [cancelled]
|
|
2288
|
-
* @property {
|
|
2288
|
+
* @property {Object[]} [cancelled_records]
|
|
2289
2289
|
* @property {number} [company_id]
|
|
2290
2290
|
* @property {UserDetail1} [created_by]
|
|
2291
2291
|
* @property {string} [created_on]
|
|
2292
2292
|
* @property {number} [failed]
|
|
2293
|
-
* @property {
|
|
2293
|
+
* @property {Object[]} [failed_records]
|
|
2294
2294
|
* @property {string} [file_path]
|
|
2295
2295
|
* @property {boolean} [is_active]
|
|
2296
2296
|
* @property {UserDetail1} [modified_by]
|
|
@@ -6092,12 +6092,12 @@ class CatalogPlatformModel {
|
|
|
6092
6092
|
static ProductBulkRequest() {
|
|
6093
6093
|
return Joi.object({
|
|
6094
6094
|
cancelled: Joi.number(),
|
|
6095
|
-
cancelled_records: Joi.array().items(Joi.
|
|
6095
|
+
cancelled_records: Joi.array().items(Joi.any()),
|
|
6096
6096
|
company_id: Joi.number(),
|
|
6097
6097
|
created_by: CatalogPlatformModel.UserDetail1(),
|
|
6098
6098
|
created_on: Joi.string().allow(""),
|
|
6099
6099
|
failed: Joi.number(),
|
|
6100
|
-
failed_records: Joi.array().items(Joi.
|
|
6100
|
+
failed_records: Joi.array().items(Joi.any()),
|
|
6101
6101
|
file_path: Joi.string().allow(""),
|
|
6102
6102
|
is_active: Joi.boolean(),
|
|
6103
6103
|
modified_by: CatalogPlatformModel.UserDetail1(),
|
|
@@ -1761,6 +1761,7 @@ export = OrderPlatformModel;
|
|
|
1761
1761
|
* @property {LineItem[]} line_items
|
|
1762
1762
|
* @property {number} location_id
|
|
1763
1763
|
* @property {Object} [meta]
|
|
1764
|
+
* @property {string} [order_type]
|
|
1764
1765
|
* @property {number} [priority]
|
|
1765
1766
|
* @property {ProcessingDates} [processing_dates]
|
|
1766
1767
|
*/
|
|
@@ -2008,6 +2009,7 @@ export = OrderPlatformModel;
|
|
|
2008
2009
|
* @typedef ShipmentStatusData
|
|
2009
2010
|
* @property {string[]} [bag_list]
|
|
2010
2011
|
* @property {string} [created_at]
|
|
2012
|
+
* @property {string} [current_shipment_status]
|
|
2011
2013
|
* @property {string} [display_name]
|
|
2012
2014
|
* @property {number} [id]
|
|
2013
2015
|
* @property {Object} [meta]
|
|
@@ -4537,6 +4539,7 @@ type Shipment = {
|
|
|
4537
4539
|
line_items: LineItem[];
|
|
4538
4540
|
location_id: number;
|
|
4539
4541
|
meta?: any;
|
|
4542
|
+
order_type?: string;
|
|
4540
4543
|
priority?: number;
|
|
4541
4544
|
processing_dates?: ProcessingDates;
|
|
4542
4545
|
};
|
|
@@ -4810,6 +4813,7 @@ declare function ShipmentStatusData(): ShipmentStatusData;
|
|
|
4810
4813
|
type ShipmentStatusData = {
|
|
4811
4814
|
bag_list?: string[];
|
|
4812
4815
|
created_at?: string;
|
|
4816
|
+
current_shipment_status?: string;
|
|
4813
4817
|
display_name?: string;
|
|
4814
4818
|
id?: number;
|
|
4815
4819
|
meta?: any;
|
|
@@ -1955,6 +1955,7 @@ const Joi = require("joi");
|
|
|
1955
1955
|
* @property {LineItem[]} line_items
|
|
1956
1956
|
* @property {number} location_id
|
|
1957
1957
|
* @property {Object} [meta]
|
|
1958
|
+
* @property {string} [order_type]
|
|
1958
1959
|
* @property {number} [priority]
|
|
1959
1960
|
* @property {ProcessingDates} [processing_dates]
|
|
1960
1961
|
*/
|
|
@@ -2222,6 +2223,7 @@ const Joi = require("joi");
|
|
|
2222
2223
|
* @typedef ShipmentStatusData
|
|
2223
2224
|
* @property {string[]} [bag_list]
|
|
2224
2225
|
* @property {string} [created_at]
|
|
2226
|
+
* @property {string} [current_shipment_status]
|
|
2225
2227
|
* @property {string} [display_name]
|
|
2226
2228
|
* @property {number} [id]
|
|
2227
2229
|
* @property {Object} [meta]
|
|
@@ -4969,6 +4971,7 @@ class OrderPlatformModel {
|
|
|
4969
4971
|
line_items: Joi.array().items(OrderPlatformModel.LineItem()).required(),
|
|
4970
4972
|
location_id: Joi.number().required(),
|
|
4971
4973
|
meta: Joi.any(),
|
|
4974
|
+
order_type: Joi.string().allow(""),
|
|
4972
4975
|
priority: Joi.number(),
|
|
4973
4976
|
processing_dates: OrderPlatformModel.ProcessingDates(),
|
|
4974
4977
|
});
|
|
@@ -5284,6 +5287,7 @@ class OrderPlatformModel {
|
|
|
5284
5287
|
return Joi.object({
|
|
5285
5288
|
bag_list: Joi.array().items(Joi.string().allow("")),
|
|
5286
5289
|
created_at: Joi.string().allow("").allow(null),
|
|
5290
|
+
current_shipment_status: Joi.string().allow("").allow(null),
|
|
5287
5291
|
display_name: Joi.string().allow("").allow(null),
|
|
5288
5292
|
id: Joi.number().allow(null),
|
|
5289
5293
|
meta: Joi.any().allow(null),
|