@gofynd/fdk-client-javascript 1.3.5-beta.4 → 1.3.6-beta.1
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 +33 -3
- package/sdk/application/Cart/CartApplicationModel.js +38 -2
- package/sdk/common/BaseOAuthClient.js +1 -1
- package/sdk/partner/OAuthClient.d.ts +5 -4
- package/sdk/partner/OAuthClient.js +78 -9
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +86 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +533 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +54 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +74 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +212 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +166 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +20 -14
- package/sdk/platform/Order/OrderPlatformModel.js +20 -14
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationClient.js +5 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +16 -3
- package/sdk/platform/User/UserPlatformModel.js +18 -2
|
@@ -232,7 +232,8 @@ const Joi = require("joi");
|
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
234
|
* @typedef SessionDeleteResponseSchema
|
|
235
|
-
* @property {string
|
|
235
|
+
* @property {string} [session_id]
|
|
236
|
+
* @property {string} [user_id]
|
|
236
237
|
*/
|
|
237
238
|
|
|
238
239
|
/**
|
|
@@ -256,6 +257,12 @@ const Joi = require("joi");
|
|
|
256
257
|
* @property {SessionListResponseInfo[]} [items]
|
|
257
258
|
*/
|
|
258
259
|
|
|
260
|
+
/**
|
|
261
|
+
* @typedef SessionsDeleteResponseSchema
|
|
262
|
+
* @property {string[]} [session_ids]
|
|
263
|
+
* @property {string} [user_id]
|
|
264
|
+
*/
|
|
265
|
+
|
|
259
266
|
/**
|
|
260
267
|
* @typedef Social
|
|
261
268
|
* @property {boolean} [account_kit]
|
|
@@ -664,7 +671,8 @@ class UserPlatformModel {
|
|
|
664
671
|
/** @returns {SessionDeleteResponseSchema} */
|
|
665
672
|
static SessionDeleteResponseSchema() {
|
|
666
673
|
return Joi.object({
|
|
667
|
-
|
|
674
|
+
session_id: Joi.string().allow(""),
|
|
675
|
+
user_id: Joi.string().allow(""),
|
|
668
676
|
});
|
|
669
677
|
}
|
|
670
678
|
|
|
@@ -695,6 +703,14 @@ class UserPlatformModel {
|
|
|
695
703
|
});
|
|
696
704
|
}
|
|
697
705
|
|
|
706
|
+
/** @returns {SessionsDeleteResponseSchema} */
|
|
707
|
+
static SessionsDeleteResponseSchema() {
|
|
708
|
+
return Joi.object({
|
|
709
|
+
session_ids: Joi.array().items(Joi.string().allow("")),
|
|
710
|
+
user_id: Joi.string().allow(""),
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
|
|
698
714
|
/** @returns {Social} */
|
|
699
715
|
static Social() {
|
|
700
716
|
return Joi.object({
|