@gofynd/fdk-client-javascript 1.3.3 → 1.3.4-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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +18 -1
  4. package/sdk/application/Catalog/CatalogApplicationModel.js +20 -0
  5. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  6. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -9
  7. package/sdk/application/FileStorage/FileStorageApplicationModel.js +21 -7
  8. package/sdk/application/User/UserApplicationClient.d.ts +56 -0
  9. package/sdk/application/User/UserApplicationClient.js +385 -0
  10. package/sdk/application/User/UserApplicationModel.d.ts +93 -1
  11. package/sdk/application/User/UserApplicationModel.js +110 -0
  12. package/sdk/application/User/UserApplicationValidator.d.ts +66 -1
  13. package/sdk/application/User/UserApplicationValidator.js +68 -0
  14. package/sdk/common/AxiosHelper.js +10 -0
  15. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +96 -0
  16. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +177 -0
  17. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +139 -0
  18. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -0
  19. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +6 -0
  20. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +33 -0
  21. package/sdk/partner/PartnerClient.d.ts +2 -0
  22. package/sdk/partner/PartnerClient.js +3 -0
  23. package/sdk/partner/PartnerConfig.js +3 -5
  24. package/sdk/partner/index.d.ts +1 -0
  25. package/sdk/partner/index.js +2 -0
  26. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -16
  27. package/sdk/platform/Content/ContentPlatformApplicationClient.js +11 -79
  28. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +12 -8
  29. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -9
  30. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +37 -27
  31. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -56
  32. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +22 -11
  33. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +24 -10
  34. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +4 -4
  35. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +4 -8
  36. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +832 -150
  37. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +940 -138
  38. package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
  39. package/sdk/platform/Order/OrderPlatformClient.js +1 -1
  40. package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -2
  41. package/sdk/platform/Order/OrderPlatformModel.js +10 -2
  42. package/sdk/platform/Order/OrderPlatformValidator.d.ts +4 -4
  43. package/sdk/platform/Order/OrderPlatformValidator.js +4 -4
  44. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +42 -0
  45. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +241 -0
  46. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +41 -1
  47. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +40 -0
  48. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +72 -1
  49. package/sdk/platform/Payment/PaymentPlatformModel.js +54 -0
  50. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -0
  51. package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
  52. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -1
  53. package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -0
  54. package/sdk/platform/User/UserPlatformModel.d.ts +63 -1
  55. package/sdk/platform/User/UserPlatformModel.js +44 -0
@@ -140,6 +140,21 @@ const Joi = require("joi");
140
140
  * @property {string} [type]
141
141
  */
142
142
 
143
+ /**
144
+ * @typedef PartialUserGroupUpdateSchema
145
+ * @property {string} [description]
146
+ * @property {string} [file_url] - Required property when passed type file_url.
147
+ * Internet reachable csv file url which will be used to fetch download data.
148
+ * It must have one of columns from `phone_number``, `email`, `user_id` and
149
+ * must have `action` column. `action` column can have `add` or `remove` value.
150
+ * @property {string} [name]
151
+ * @property {string} [type] - Source of update to be used to update individual
152
+ * users. Default value is considered file_url if not passed.
153
+ * @property {UserGroupUpdateData[]} [user_data] - Required property when passed
154
+ * type json. Array of user data. Must have `action` field and one of
155
+ * `phone_number`, `email` or `user_id` field in object
156
+ */
157
+
143
158
  /**
144
159
  * @typedef PhoneNumber
145
160
  * @property {boolean} [active]
@@ -313,6 +328,14 @@ const Joi = require("joi");
313
328
  * @property {number} [uid]
314
329
  */
315
330
 
331
+ /**
332
+ * @typedef UserGroupUpdateData
333
+ * @property {string} action
334
+ * @property {string} [email] - Email of registered user
335
+ * @property {string} [phone_number] - Phone number of registered user
336
+ * @property {string} [user_id] - Must be valid mongodb objectid of existing user
337
+ */
338
+
316
339
  /**
317
340
  * @typedef UserPhoneNumbers
318
341
  * @property {boolean} [active]
@@ -532,6 +555,17 @@ class UserPlatformModel {
532
555
  });
533
556
  }
534
557
 
558
+ /** @returns {PartialUserGroupUpdateSchema} */
559
+ static PartialUserGroupUpdateSchema() {
560
+ return Joi.object({
561
+ description: Joi.string().allow(""),
562
+ file_url: Joi.string().allow(""),
563
+ name: Joi.string().allow(""),
564
+ type: Joi.string().allow(""),
565
+ user_data: Joi.array().items(UserPlatformModel.UserGroupUpdateData()),
566
+ });
567
+ }
568
+
535
569
  /** @returns {PhoneNumber} */
536
570
  static PhoneNumber() {
537
571
  return Joi.object({
@@ -749,6 +783,16 @@ class UserPlatformModel {
749
783
  });
750
784
  }
751
785
 
786
+ /** @returns {UserGroupUpdateData} */
787
+ static UserGroupUpdateData() {
788
+ return Joi.object({
789
+ action: Joi.string().allow("").required(),
790
+ email: Joi.string().allow(""),
791
+ phone_number: Joi.string().allow(""),
792
+ user_id: Joi.string().allow(""),
793
+ });
794
+ }
795
+
752
796
  /** @returns {UserPhoneNumbers} */
753
797
  static UserPhoneNumbers() {
754
798
  return Joi.object({