Skip to content

Commit 2373b63

Browse files
committed
[Auto Generated] 3.4.4
1 parent 5fa3f7a commit 2373b63

File tree

10 files changed

+166
-107
lines changed

10 files changed

+166
-107
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CHANGE LOG (3.4.4) - 2.7.5
2+
3+
## Platform Client
4+
5+
6+
7+
### Catalog
8+
9+
10+
11+
#### updateLocationQuantity
12+
13+
- ##### What's New
14+
- [Added] property <code>mode</code> of schema <code>LocationQuantityRequestSchema</code> in request body
15+
16+
117
# CHANGE LOG (3.4.3) - 2.7.3
218

319
## Application Client

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
234234
The above code will log the curl command in the console
235235

236236
```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.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
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'
238238
Active Theme: Emerge
239239
```
240240

dist/application.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 98 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gofynd/fdk-client-javascript",
3-
"version": "3.4.3",
3+
"version": "3.4.4",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

sdk/common/AxiosHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fdkAxios.interceptors.request.use(
105105
Logger({
106106
level: "ERROR",
107107
message: error.data || error.message,
108-
stack: error.data.stack || error.stack,
108+
stack: error?.data?.stack || error.stack,
109109
});
110110
}
111111
);

sdk/platform/Catalog/CatalogPlatformModel.d.ts

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,9 +2628,16 @@ export = CatalogPlatformModel;
26282628
/**
26292629
* @typedef LocationQuantityRequestSchema
26302630
* @property {string} [expiration_date] - The expiration date of the inventory item.
2631-
* @property {number} [total_quantity] - The total quantity of the inventory item.
2632-
* @property {number} [damaged_quantity] - The total quantity of the inventory item.
2633-
* @property {number} [not_available_quantity] - The total quantity of the inventory item.
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
26342641
*/
26352642
/**
26362643
* @typedef LocationPriceQuantitySuccessResponseSchema
@@ -10042,17 +10049,27 @@ type LocationQuantityRequestSchema = {
1004210049
*/
1004310050
expiration_date?: string;
1004410051
/**
10045-
* - The total quantity of the inventory item.
10052+
* - The total quantity of the inventory
10053+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
10054+
* should be provided.
1004610055
*/
1004710056
total_quantity?: number;
1004810057
/**
10049-
* - The total quantity of the inventory item.
10058+
* - The damaged quantity of the inventory
10059+
* item. Any one of total_quantity, damaged_quantity, not_available_quantity
10060+
* should be provided.
1005010061
*/
1005110062
damaged_quantity?: number;
1005210063
/**
10053-
* - The total quantity of the inventory item.
10064+
* - The not available quantity of
10065+
* the inventory item. Any one of total_quantity, damaged_quantity,
10066+
* not_available_quantity should be provided.
1005410067
*/
1005510068
not_available_quantity?: number;
10069+
/**
10070+
* - Indicates whether delta or replace operation for inventory
10071+
*/
10072+
mode?: string;
1005610073
};
1005710074
/** @returns {LocationPriceQuantitySuccessResponseSchema} */
1005810075
declare function LocationPriceQuantitySuccessResponseSchema(): LocationPriceQuantitySuccessResponseSchema;

sdk/platform/Catalog/CatalogPlatformModel.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,9 +2890,16 @@ const Joi = require("joi");
28902890
/**
28912891
* @typedef LocationQuantityRequestSchema
28922892
* @property {string} [expiration_date] - The expiration date of the inventory item.
2893-
* @property {number} [total_quantity] - The total quantity of the inventory item.
2894-
* @property {number} [damaged_quantity] - The total quantity of the inventory item.
2895-
* @property {number} [not_available_quantity] - The total quantity of the inventory item.
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
28962903
*/
28972904

28982905
/**
@@ -7961,6 +7968,7 @@ class CatalogPlatformModel {
79617968
total_quantity: Joi.number(),
79627969
damaged_quantity: Joi.number(),
79637970
not_available_quantity: Joi.number(),
7971+
mode: Joi.string().allow(""),
79647972
});
79657973
}
79667974

sdk/platform/Communication/CommunicationPlatformModel.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export = CommunicationPlatformModel;
114114
* @property {string} [name]
115115
* @property {string} [file_url]
116116
* @property {string} [type]
117+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
117118
* @property {number} [records_count]
118119
* @property {string} [application]
119120
*/
@@ -147,6 +148,7 @@ export = CommunicationPlatformModel;
147148
* @property {string} [_id]
148149
* @property {string} [datasource]
149150
* @property {string} [type]
151+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
150152
* @property {string} [name]
151153
* @property {string} [application]
152154
* @property {string} [created_at]
@@ -1027,6 +1029,10 @@ type CampaignReq = {
10271029
name?: string;
10281030
file_url?: string;
10291031
type?: string;
1032+
/**
1033+
* - Type of the datasource (audience or user_group)
1034+
*/
1035+
datasource_type?: string;
10301036
records_count?: number;
10311037
application?: string;
10321038
};
@@ -1065,6 +1071,10 @@ type Campaign = {
10651071
_id?: string;
10661072
datasource?: string;
10671073
type?: string;
1074+
/**
1075+
* - Type of the datasource (audience or user_group)
1076+
*/
1077+
datasource_type?: string;
10681078
name?: string;
10691079
application?: string;
10701080
created_at?: string;

sdk/platform/Communication/CommunicationPlatformModel.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const Joi = require("joi");
133133
* @property {string} [name]
134134
* @property {string} [file_url]
135135
* @property {string} [type]
136+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
136137
* @property {number} [records_count]
137138
* @property {string} [application]
138139
*/
@@ -171,6 +172,7 @@ const Joi = require("joi");
171172
* @property {string} [_id]
172173
* @property {string} [datasource]
173174
* @property {string} [type]
175+
* @property {string} [datasource_type] - Type of the datasource (audience or user_group)
174176
* @property {string} [name]
175177
* @property {string} [application]
176178
* @property {string} [created_at]
@@ -1178,6 +1180,7 @@ class CommunicationPlatformModel {
11781180
name: Joi.string().allow(""),
11791181
file_url: Joi.string().allow(""),
11801182
type: Joi.string().allow(""),
1183+
datasource_type: Joi.string().allow(""),
11811184
records_count: Joi.number(),
11821185
application: Joi.string().allow(""),
11831186
});
@@ -1226,6 +1229,7 @@ class CommunicationPlatformModel {
12261229
_id: Joi.string().allow(""),
12271230
datasource: Joi.string().allow(""),
12281231
type: Joi.string().allow(""),
1232+
datasource_type: Joi.string().allow(""),
12291233
name: Joi.string().allow(""),
12301234
application: Joi.string().allow(""),
12311235
created_at: Joi.string().allow(""),

0 commit comments

Comments
 (0)