@gofynd/fdk-client-javascript 3.4.3 → 3.4.4
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/common/AxiosHelper.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +23 -6
- package/sdk/platform/Catalog/CatalogPlatformModel.js +11 -3
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +10 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +4 -0
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
234
234
|
The above code will log the curl command in the console
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.4.
|
|
237
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.4.4' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
238
238
|
Active Theme: Emerge
|
|
239
239
|
```
|
|
240
240
|
|
package/package.json
CHANGED
|
@@ -2628,9 +2628,16 @@ export = CatalogPlatformModel;
|
|
|
2628
2628
|
/**
|
|
2629
2629
|
* @typedef LocationQuantityRequestSchema
|
|
2630
2630
|
* @property {string} [expiration_date] - The expiration date of the inventory item.
|
|
2631
|
-
* @property {number} [total_quantity] - The total quantity of the inventory
|
|
2632
|
-
*
|
|
2633
|
-
*
|
|
2631
|
+
* @property {number} [total_quantity] - The total quantity of the inventory
|
|
2632
|
+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
|
|
2633
|
+
* should be provided.
|
|
2634
|
+
* @property {number} [damaged_quantity] - The damaged quantity of the inventory
|
|
2635
|
+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
|
|
2636
|
+
* should be provided.
|
|
2637
|
+
* @property {number} [not_available_quantity] - The not available quantity of
|
|
2638
|
+
* the inventory item. Any one of total_quantity, damaged_quantity,
|
|
2639
|
+
* not_available_quantity should be provided.
|
|
2640
|
+
* @property {string} [mode] - Indicates whether delta or replace operation for inventory
|
|
2634
2641
|
*/
|
|
2635
2642
|
/**
|
|
2636
2643
|
* @typedef LocationPriceQuantitySuccessResponseSchema
|
|
@@ -10042,17 +10049,27 @@ type LocationQuantityRequestSchema = {
|
|
|
10042
10049
|
*/
|
|
10043
10050
|
expiration_date?: string;
|
|
10044
10051
|
/**
|
|
10045
|
-
* - The total quantity of the inventory
|
|
10052
|
+
* - The total quantity of the inventory
|
|
10053
|
+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
|
|
10054
|
+
* should be provided.
|
|
10046
10055
|
*/
|
|
10047
10056
|
total_quantity?: number;
|
|
10048
10057
|
/**
|
|
10049
|
-
* - The
|
|
10058
|
+
* - The damaged quantity of the inventory
|
|
10059
|
+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
|
|
10060
|
+
* should be provided.
|
|
10050
10061
|
*/
|
|
10051
10062
|
damaged_quantity?: number;
|
|
10052
10063
|
/**
|
|
10053
|
-
* - The
|
|
10064
|
+
* - The not available quantity of
|
|
10065
|
+
* the inventory item. Any one of total_quantity, damaged_quantity,
|
|
10066
|
+
* not_available_quantity should be provided.
|
|
10054
10067
|
*/
|
|
10055
10068
|
not_available_quantity?: number;
|
|
10069
|
+
/**
|
|
10070
|
+
* - Indicates whether delta or replace operation for inventory
|
|
10071
|
+
*/
|
|
10072
|
+
mode?: string;
|
|
10056
10073
|
};
|
|
10057
10074
|
/** @returns {LocationPriceQuantitySuccessResponseSchema} */
|
|
10058
10075
|
declare function LocationPriceQuantitySuccessResponseSchema(): LocationPriceQuantitySuccessResponseSchema;
|
|
@@ -2890,9 +2890,16 @@ const Joi = require("joi");
|
|
|
2890
2890
|
/**
|
|
2891
2891
|
* @typedef LocationQuantityRequestSchema
|
|
2892
2892
|
* @property {string} [expiration_date] - The expiration date of the inventory item.
|
|
2893
|
-
* @property {number} [total_quantity] - The total quantity of the inventory
|
|
2894
|
-
*
|
|
2895
|
-
*
|
|
2893
|
+
* @property {number} [total_quantity] - The total quantity of the inventory
|
|
2894
|
+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
|
|
2895
|
+
* should be provided.
|
|
2896
|
+
* @property {number} [damaged_quantity] - The damaged quantity of the inventory
|
|
2897
|
+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
|
|
2898
|
+
* should be provided.
|
|
2899
|
+
* @property {number} [not_available_quantity] - The not available quantity of
|
|
2900
|
+
* the inventory item. Any one of total_quantity, damaged_quantity,
|
|
2901
|
+
* not_available_quantity should be provided.
|
|
2902
|
+
* @property {string} [mode] - Indicates whether delta or replace operation for inventory
|
|
2896
2903
|
*/
|
|
2897
2904
|
|
|
2898
2905
|
/**
|
|
@@ -7961,6 +7968,7 @@ class CatalogPlatformModel {
|
|
|
7961
7968
|
total_quantity: Joi.number(),
|
|
7962
7969
|
damaged_quantity: Joi.number(),
|
|
7963
7970
|
not_available_quantity: Joi.number(),
|
|
7971
|
+
mode: Joi.string().allow(""),
|
|
7964
7972
|
});
|
|
7965
7973
|
}
|
|
7966
7974
|
|
|
@@ -114,6 +114,7 @@ export = CommunicationPlatformModel;
|
|
|
114
114
|
* @property {string} [name]
|
|
115
115
|
* @property {string} [file_url]
|
|
116
116
|
* @property {string} [type]
|
|
117
|
+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
|
|
117
118
|
* @property {number} [records_count]
|
|
118
119
|
* @property {string} [application]
|
|
119
120
|
*/
|
|
@@ -147,6 +148,7 @@ export = CommunicationPlatformModel;
|
|
|
147
148
|
* @property {string} [_id]
|
|
148
149
|
* @property {string} [datasource]
|
|
149
150
|
* @property {string} [type]
|
|
151
|
+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
|
|
150
152
|
* @property {string} [name]
|
|
151
153
|
* @property {string} [application]
|
|
152
154
|
* @property {string} [created_at]
|
|
@@ -1027,6 +1029,10 @@ type CampaignReq = {
|
|
|
1027
1029
|
name?: string;
|
|
1028
1030
|
file_url?: string;
|
|
1029
1031
|
type?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* - Type of the datasource (audience or user_group)
|
|
1034
|
+
*/
|
|
1035
|
+
datasource_type?: string;
|
|
1030
1036
|
records_count?: number;
|
|
1031
1037
|
application?: string;
|
|
1032
1038
|
};
|
|
@@ -1065,6 +1071,10 @@ type Campaign = {
|
|
|
1065
1071
|
_id?: string;
|
|
1066
1072
|
datasource?: string;
|
|
1067
1073
|
type?: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* - Type of the datasource (audience or user_group)
|
|
1076
|
+
*/
|
|
1077
|
+
datasource_type?: string;
|
|
1068
1078
|
name?: string;
|
|
1069
1079
|
application?: string;
|
|
1070
1080
|
created_at?: string;
|
|
@@ -133,6 +133,7 @@ const Joi = require("joi");
|
|
|
133
133
|
* @property {string} [name]
|
|
134
134
|
* @property {string} [file_url]
|
|
135
135
|
* @property {string} [type]
|
|
136
|
+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
|
|
136
137
|
* @property {number} [records_count]
|
|
137
138
|
* @property {string} [application]
|
|
138
139
|
*/
|
|
@@ -171,6 +172,7 @@ const Joi = require("joi");
|
|
|
171
172
|
* @property {string} [_id]
|
|
172
173
|
* @property {string} [datasource]
|
|
173
174
|
* @property {string} [type]
|
|
175
|
+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
|
|
174
176
|
* @property {string} [name]
|
|
175
177
|
* @property {string} [application]
|
|
176
178
|
* @property {string} [created_at]
|
|
@@ -1178,6 +1180,7 @@ class CommunicationPlatformModel {
|
|
|
1178
1180
|
name: Joi.string().allow(""),
|
|
1179
1181
|
file_url: Joi.string().allow(""),
|
|
1180
1182
|
type: Joi.string().allow(""),
|
|
1183
|
+
datasource_type: Joi.string().allow(""),
|
|
1181
1184
|
records_count: Joi.number(),
|
|
1182
1185
|
application: Joi.string().allow(""),
|
|
1183
1186
|
});
|
|
@@ -1226,6 +1229,7 @@ class CommunicationPlatformModel {
|
|
|
1226
1229
|
_id: Joi.string().allow(""),
|
|
1227
1230
|
datasource: Joi.string().allow(""),
|
|
1228
1231
|
type: Joi.string().allow(""),
|
|
1232
|
+
datasource_type: Joi.string().allow(""),
|
|
1229
1233
|
name: Joi.string().allow(""),
|
|
1230
1234
|
application: Joi.string().allow(""),
|
|
1231
1235
|
created_at: Joi.string().allow(""),
|