@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.8

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 (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
  111. package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
  113. package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
  175. package/sdk/public/Billing/BillingPublicClient.js +80 -0
  176. package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
  177. package/sdk/public/Billing/BillingPublicModel.js +252 -87
  178. package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
  179. package/sdk/public/Billing/BillingPublicValidator.js +12 -0
  180. package/sdk/public/PublicClient.d.ts +0 -2
  181. package/sdk/public/PublicClient.js +0 -4
  182. package/sdk/public/index.d.ts +0 -1
  183. package/sdk/public/index.js +0 -2
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -2,195 +2,198 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef UpdateUserAttributesRequest
5
- * @property {Object} [attributes]
5
+ * @property {Object} [attributes] - Describes the request structure to update
6
+ * the user attribute.
6
7
  */
7
8
 
8
9
  /**
9
10
  * @typedef UserAttributes
10
- * @property {Object} [attributes]
11
+ * @property {Object} [attributes] - Describes the structure of user attribute.
11
12
  */
12
13
 
13
14
  /**
14
15
  * @typedef DeleteApplicationUserRequestSchema
15
- * @property {string} [user_id]
16
- * @property {string} [reason]
17
- * @property {string} [reason_id]
18
- * @property {string} [request_id]
19
- * @property {string} [otp]
16
+ * @property {string} [user_id] - User id for the application user.
17
+ * @property {string} [reason] - Reason to delete the application user.
18
+ * @property {string} [reason_id] - Reason id of request to delete the application user .
19
+ * @property {string} [request_id] - ID of request to delete the application user .
20
+ * @property {string} [otp] - OTP to verify the delete application user request.
20
21
  */
21
22
 
22
23
  /**
23
24
  * @typedef EditEmailRequestSchema
24
- * @property {string} [email]
25
+ * @property {string} [email] - Email of the user.
25
26
  */
26
27
 
27
28
  /**
28
29
  * @typedef SendVerificationLinkMobileRequestSchema
29
- * @property {boolean} [verified]
30
- * @property {boolean} [active]
31
- * @property {string} [country_code]
32
- * @property {string} [phone]
33
- * @property {boolean} [primary]
30
+ * @property {boolean} [verified] - Boolean to specify if the phone number is
31
+ * verified or not.
32
+ * @property {boolean} [active] - Boolean to specify if the phone number is active or not.
33
+ * @property {string} [country_code] - Country code for the phone number.
34
+ * @property {string} [phone] - Phone number.
35
+ * @property {boolean} [primary] - Boolean to specify if the phone number is
36
+ * primary or not.
34
37
  */
35
38
 
36
39
  /**
37
40
  * @typedef EditMobileRequestSchema
38
- * @property {string} [country_code]
39
- * @property {string} [phone]
41
+ * @property {string} [country_code] - Country code for the phone number.
42
+ * @property {string} [phone] - Phone number of user.
40
43
  */
41
44
 
42
45
  /**
43
46
  * @typedef EditProfileRequestSchema
44
47
  * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
45
- * @property {string} [first_name]
46
- * @property {string} [last_name]
48
+ * @property {string} [first_name] - First name of the application user.
49
+ * @property {string} [last_name] - Last name of the application user.
47
50
  * @property {EditProfileMobileSchema} [mobile]
48
- * @property {string} [country_code]
49
- * @property {string} [email]
50
- * @property {string} [gender]
51
- * @property {string} [dob]
52
- * @property {string} [profile_pic_url]
53
- * @property {string} [android_hash]
54
- * @property {string} [sender]
55
- * @property {string} [register_token]
51
+ * @property {string} [country_code] - Country code for the phone number.
52
+ * @property {string} [email] - Email id of user.
53
+ * @property {string} [gender] - Gender of user.
54
+ * @property {string} [dob] - Date of birth of user.
55
+ * @property {string} [profile_pic_url] - Profile picture of user.
56
+ * @property {string} [android_hash] - Unique hash value.
57
+ * @property {string} [sender] - Identity of the sender.
58
+ * @property {string} [register_token] - Unique temporary registration of the user.
56
59
  */
57
60
 
58
61
  /**
59
62
  * @typedef EditProfileMobileSchema
60
- * @property {string} [phone]
61
- * @property {string} [country_code]
63
+ * @property {string} [phone] - Phone number of user.
64
+ * @property {string} [country_code] - Country code for the phone number.
62
65
  */
63
66
 
64
67
  /**
65
68
  * @typedef SendEmailOtpRequestSchema
66
- * @property {string} [email]
67
- * @property {string} [action]
68
- * @property {string} [token]
69
- * @property {string} [register_token]
69
+ * @property {string} [email] - Email of a user to send email OTP.
70
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
71
+ * @property {string} [token] - Token to validate the request.
72
+ * @property {string} [register_token] - Unique temporary registration of the user.
70
73
  */
71
74
 
72
75
  /**
73
76
  * @typedef SendEmailForgotOtpRequestSchema
74
- * @property {string} [email]
75
- * @property {string} [action]
76
- * @property {string} [token]
77
+ * @property {string} [email] - Email of a user to send email OTP.
78
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
79
+ * @property {string} [token] - Token to validate the request.
77
80
  */
78
81
 
79
82
  /**
80
83
  * @typedef VerifyEmailOtpRequestSchema
81
- * @property {string} [email]
82
- * @property {string} [action]
83
- * @property {string} [register_token]
84
- * @property {string} [otp]
84
+ * @property {string} [email] - Email of a user to verify OTP.
85
+ * @property {string} [action] - Action to verify the send or resent OTP.
86
+ * @property {string} [register_token] - Unique temporary registration of the user.
87
+ * @property {string} [otp] - OTP for verification.
85
88
  */
86
89
 
87
90
  /**
88
91
  * @typedef VerifyEmailForgotOtpRequestSchema
89
- * @property {string} [email]
90
- * @property {string} [otp]
92
+ * @property {string} [email] - Email id of user.
93
+ * @property {string} [otp] - OTP for verification.
91
94
  */
92
95
 
93
96
  /**
94
97
  * @typedef VerifyOtpRequestSchema
95
- * @property {string} [request_id]
96
- * @property {string} [register_token]
97
- * @property {string} [otp]
98
+ * @property {string} [request_id] - Unique request id for the OTP sent to mobile number.
99
+ * @property {string} [register_token] - Unique temporary registration of the user.
100
+ * @property {string} [otp] - OTP for verification.
98
101
  */
99
102
 
100
103
  /**
101
104
  * @typedef VerifyMobileForgotOtpRequestSchema
102
- * @property {string} [request_id]
103
- * @property {string} [otp]
105
+ * @property {string} [request_id] - Unique request id for the OTP.
106
+ * @property {string} [otp] - OTP for verification.
104
107
  */
105
108
 
106
109
  /**
107
110
  * @typedef SendMobileOtpRequestSchema
108
111
  * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
109
- * @property {string} [mobile]
110
- * @property {string} [country_code]
111
- * @property {string} [action]
112
- * @property {string} [token]
113
- * @property {string} [android_hash]
114
- * @property {string} [force]
112
+ * @property {string} [mobile] - Mobile number of user.
113
+ * @property {string} [country_code] - Country code for the phone number.
114
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
115
+ * @property {string} [token] - Token to validate the request.
116
+ * @property {string} [android_hash] - Unique hash value.
117
+ * @property {string} [force] - Force verify the OTP.
115
118
  */
116
119
 
117
120
  /**
118
121
  * @typedef SendMobileForgotOtpRequestSchema
119
- * @property {string} [mobile]
120
- * @property {string} [country_code]
121
- * @property {string} [action]
122
- * @property {string} [token]
123
- * @property {string} [android_hash]
122
+ * @property {string} [mobile] - Phone number of user.
123
+ * @property {string} [country_code] - Country code for the phone number.
124
+ * @property {string} [action] - Action to specify if to send or resent the OTP.
125
+ * @property {string} [token] - Token to validate the request.
126
+ * @property {string} [android_hash] - Unique hash value.
124
127
  */
125
128
 
126
129
  /**
127
130
  * @typedef UpdatePasswordRequestSchema
128
- * @property {string} [old_password]
129
- * @property {string} [new_password]
131
+ * @property {string} [old_password] - Old password.
132
+ * @property {string} [new_password] - New password.
130
133
  */
131
134
 
132
135
  /**
133
136
  * @typedef FormRegisterRequestSchema
134
- * @property {string} [first_name]
135
- * @property {string} [last_name]
136
- * @property {string} [gender]
137
- * @property {string} [email]
138
- * @property {string} [password]
137
+ * @property {string} [first_name] - First name of the application user.
138
+ * @property {string} [last_name] - Last name of the application user.
139
+ * @property {string} [gender] - Gender of user.
140
+ * @property {string} [email] - Email of user.
141
+ * @property {string} [password] - Password of user.
139
142
  * @property {FormRegisterRequestSchemaPhone} [phone]
140
- * @property {string} [register_token]
143
+ * @property {string} [register_token] - Unique registration token of user.
141
144
  */
142
145
 
143
146
  /**
144
147
  * @typedef TokenRequestBodySchema
145
- * @property {string} [token]
148
+ * @property {string} [token] - Unique token.
146
149
  */
147
150
 
148
151
  /**
149
152
  * @typedef ForgotPasswordRequestSchema
150
- * @property {string} [code]
151
- * @property {string} [password]
153
+ * @property {string} [code] - Unique code to verify request.
154
+ * @property {string} [password] - Password of user.
152
155
  */
153
156
 
154
157
  /**
155
158
  * @typedef CodeRequestBodySchema
156
- * @property {string} [code]
159
+ * @property {string} [code] - Unique code to verify request.
157
160
  */
158
161
 
159
162
  /**
160
163
  * @typedef SendResetPasswordEmailRequestSchema
161
- * @property {string} [email]
164
+ * @property {string} [email] - Email id of user.
162
165
  */
163
166
 
164
167
  /**
165
168
  * @typedef SendResetPasswordMobileRequestSchema
166
- * @property {string} [country_code]
167
- * @property {string} [mobile]
169
+ * @property {string} [country_code] - Country code for the phone number.
170
+ * @property {string} [mobile] - Phone number of user.
168
171
  */
169
172
 
170
173
  /**
171
174
  * @typedef PasswordLoginRequestSchema
172
- * @property {string} [password]
173
- * @property {string} [username]
175
+ * @property {string} [password] - Password of user.
176
+ * @property {string} [username] - Username of user.
174
177
  */
175
178
 
176
179
  /**
177
180
  * @typedef SendOtpRequestSchema
178
- * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP.
179
- * @property {string} [country_code]
180
- * @property {string} [mobile]
181
- * @property {string} [android_hash]
181
+ * @property {boolean} [encrypt_otp] - Eet to true if you want to encrypt the OTP.
182
+ * @property {string} [country_code] - Country code for the phone number.
183
+ * @property {string} [mobile] - Phone number.
184
+ * @property {string} [android_hash] - Unique hash value.
182
185
  */
183
186
 
184
187
  /**
185
188
  * @typedef OAuthRequestSchema
186
- * @property {boolean} [is_signed_in]
189
+ * @property {boolean} [is_signed_in] - Boolean to specify if the user is signed in .
187
190
  * @property {OAuthRequestSchemaOauth2} [oauth2]
188
191
  * @property {OAuthRequestSchemaProfile} [profile]
189
192
  */
190
193
 
191
194
  /**
192
195
  * @typedef OAuthRequestAppleSchema
193
- * @property {string} [user_identifier]
196
+ * @property {string} [user_identifier] - Unique user identifier.
194
197
  * @property {OAuthRequestAppleSchemaOauth} [oauth]
195
198
  * @property {OAuthRequestAppleSchemaProfile} [profile]
196
199
  */
@@ -202,263 +205,302 @@ const Joi = require("joi");
202
205
 
203
206
  /**
204
207
  * @typedef AuthSuccess
205
- * @property {string} [register_token]
206
- * @property {boolean} [user_exists]
208
+ * @property {string} [register_token] - Unique registration token for user.
209
+ * @property {boolean} [user_exists] - Boolean which specifies if user is registered.
207
210
  * @property {UserSchema} [user]
208
211
  */
209
212
 
210
213
  /**
211
214
  * @typedef UserExistsResponse
212
- * @property {boolean} [user_exists]
215
+ * @property {boolean} [user_exists] - Boolean which specifies if user is
216
+ * registered or not.
213
217
  */
214
218
 
215
219
  /**
216
220
  * @typedef SendOtpResponse
217
- * @property {number} [resend_timer]
218
- * @property {string} [resend_token]
219
- * @property {boolean} [success]
220
- * @property {string} [request_id]
221
- * @property {string} [message]
222
- * @property {string} [mobile]
223
- * @property {string} [country_code]
224
- * @property {string} [email]
225
- * @property {string} [resend_email_token]
226
- * @property {string} [register_token]
227
- * @property {boolean} [verify_email_otp]
228
- * @property {boolean} [verify_mobile_otp]
229
- * @property {boolean} [user_exists]
221
+ * @property {number} [resend_timer] - Time after which opt can be resent.
222
+ * @property {string} [resend_token] - Unique token to identify the OTP send
223
+ * request and resend the token.
224
+ * @property {boolean} [success] - Specify if the OTP is successfully sent.
225
+ * @property {string} [request_id] - Unique request id for the OTP.
226
+ * @property {string} [message] - Message to specify the OTP send status. Eg.
227
+ * OTP sent, failed to send OTP etc.
228
+ * @property {string} [mobile] - Phone number of user.
229
+ * @property {string} [country_code] - Country code for the phone number.
230
+ * @property {string} [email] - Email id of user.
231
+ * @property {string} [resend_email_token] - Unique token to identify the OTP
232
+ * send request and resend the token on email.
233
+ * @property {string} [register_token] - Unique registration token for user.
234
+ * @property {boolean} [verify_email_otp] - If email OTP verification is
235
+ * mandatory for registration.
236
+ * @property {boolean} [verify_mobile_otp] - If mobile OTP verification is
237
+ * mandatory for registration.
238
+ * @property {boolean} [user_exists] - If user is registered or not.
230
239
  */
231
240
 
232
241
  /**
233
242
  * @typedef ProfileEditSuccess
234
243
  * @property {UserSchema} [user]
235
- * @property {string} [register_token]
236
- * @property {string} [resend_email_token]
237
- * @property {boolean} [user_exists]
238
- * @property {boolean} [verify_email_link]
239
- * @property {boolean} [verify_email_otp]
240
- * @property {boolean} [verify_mobile_otp]
241
- * @property {string} [email]
242
- * @property {string} [request_id]
243
- * @property {string} [country_code]
244
- * @property {string} [mobile]
245
- * @property {boolean} [success]
246
- * @property {string} [message]
247
- * @property {number} [resend_timer]
248
- * @property {string} [resend_token]
244
+ * @property {string} [register_token] - Unique registration token for user.
245
+ * @property {string} [resend_email_token] - Unique token to identify the
246
+ * request for OTP verification in case of unverified email.
247
+ * @property {boolean} [user_exists] - If user is registered or not.
248
+ * @property {boolean} [verify_email_link] - Whether to send a link to verify
249
+ * the registered email id of the user.
250
+ * @property {boolean} [verify_email_otp] - Whether to send a OTP to verify the
251
+ * registered email id of the user.
252
+ * @property {boolean} [verify_mobile_otp] - Whether to send a OTP to verify the
253
+ * registered phone of the user.
254
+ * @property {string} [email] - Email id of user.
255
+ * @property {string} [request_id] - A random uuid string used to track the request.
256
+ * @property {string} [country_code] - The country specific prefix for the phone number.
257
+ * @property {string} [mobile] - The user's mobile number without the country code.
258
+ * @property {boolean} [success] - Whether the operation was successful.
259
+ * @property {string} [message] - Information about the operation's result.
260
+ * @property {number} [resend_timer] - Time in seconds before an request can be resent.
261
+ * @property {string} [resend_token] - A token used to authorize the resending of request.
249
262
  */
250
263
 
251
264
  /**
252
265
  * @typedef LoginSuccess
253
266
  * @property {UserSchema} [user]
254
- * @property {string} [request_id]
255
- * @property {string} [register_token]
267
+ * @property {string} [request_id] - A random uuid string used to track the send
268
+ * OTP response.
269
+ * @property {string} [register_token] - A token used for registration purposes.
256
270
  */
257
271
 
258
272
  /**
259
273
  * @typedef ResetForgotPasswordSuccess
260
- * @property {boolean} [success]
274
+ * @property {boolean} [success] - Whether the password reset operation was successful.
261
275
  */
262
276
 
263
277
  /**
264
278
  * @typedef VerifyOtpSuccess
265
279
  * @property {UserSchema} [user]
266
- * @property {boolean} [user_exists]
267
- * @property {string} [register_token]
280
+ * @property {boolean} [user_exists] - Whether the user already exists.
281
+ * @property {string} [register_token] - A token used for registration purposes.
268
282
  */
269
283
 
270
284
  /**
271
285
  * @typedef VerifyForgotOtpSuccess
272
- * @property {boolean} [success]
273
- * @property {string} [forgot_token]
286
+ * @property {boolean} [success] - Whether the OTP verification was successful.
287
+ * @property {string} [forgot_token] - A token used for resetting the forgotten password.
274
288
  */
275
289
 
276
290
  /**
277
291
  * @typedef ResetPasswordSuccess
278
- * @property {string} [status]
292
+ * @property {string} [status] - Status of the password reset operation.
279
293
  */
280
294
 
281
295
  /**
282
296
  * @typedef RegisterFormSuccess
283
- * @property {string} [email]
284
- * @property {number} [resend_timer]
285
- * @property {string} [resend_token]
286
- * @property {string} [resend_email_token]
287
- * @property {string} [register_token]
288
- * @property {boolean} [success]
289
- * @property {string} [request_id]
290
- * @property {string} [message]
291
- * @property {string} [mobile]
292
- * @property {string} [country_code]
293
- * @property {boolean} [verify_email_otp]
294
- * @property {boolean} [verify_mobile_otp]
295
- * @property {boolean} [user_exists]
297
+ * @property {string} [email] - The email address provided during registration.
298
+ * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
299
+ * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
300
+ * @property {string} [resend_email_token] - A token used to authorize the
301
+ * resending of an OTP via email.
302
+ * @property {string} [register_token] - A token used for completing the
303
+ * registration process.
304
+ * @property {boolean} [success] - A boolean value indicating whether the
305
+ * registration operation was successful.
306
+ * @property {string} [request_id] - A random uuid string used to track the
307
+ * registration response.
308
+ * @property {string} [message] - A string containing additional information
309
+ * about the operation's result.
310
+ * @property {string} [mobile] - The user's phone mobile without the country code.
311
+ * @property {string} [country_code] - The country specific prefix for the phone number.
312
+ * @property {boolean} [verify_email_otp] - Whether email OTP verification is required.
313
+ * @property {boolean} [verify_mobile_otp] - Whether mobile OTP verification is required.
314
+ * @property {boolean} [user_exists] - Whether the user already exists.
296
315
  */
297
316
 
298
317
  /**
299
318
  * @typedef VerifyEmailSuccess
300
- * @property {string} [message]
319
+ * @property {string} [message] - Result of the email verification process.
301
320
  */
302
321
 
303
322
  /**
304
323
  * @typedef HasPasswordSuccess
305
- * @property {number} [result]
324
+ * @property {number} [result] - An integer value indicating whether the user
325
+ * has set a password (1 for true, 0 for false).
306
326
  */
307
327
 
308
328
  /**
309
329
  * @typedef LogoutSuccess
310
- * @property {boolean} [logout]
330
+ * @property {boolean} [logout] - Whether the logout operation was successful.
311
331
  */
312
332
 
313
333
  /**
314
334
  * @typedef DeleteUserSuccess
315
- * @property {boolean} [success]
335
+ * @property {boolean} [success] - Whether the user deletion operation was successful.
316
336
  */
317
337
 
318
338
  /**
319
339
  * @typedef OtpSuccess
320
- * @property {number} [resend_timer]
321
- * @property {string} [resend_token]
322
- * @property {string} [register_token]
323
- * @property {boolean} [success]
324
- * @property {string} [request_id]
325
- * @property {string} [message]
326
- * @property {string} [mobile]
327
- * @property {string} [country_code]
340
+ * @property {number} [resend_timer] - The time in seconds before an OTP can be resent.
341
+ * @property {string} [resend_token] - A token used to authorize the resending of an OTP.
342
+ * @property {string} [register_token] - A token used for completing the
343
+ * registration process.
344
+ * @property {boolean} [success] - Whether the OTP send operation was successful.
345
+ * @property {string} [request_id] - A random uuid string used to track the OTP
346
+ * send response.
347
+ * @property {string} [message] - Additional information about the operation's result.
348
+ * @property {string} [mobile] - The user's mobile number without the country code.
349
+ * @property {string} [country_code] - The country specific prefix for the phone number.
328
350
  */
329
351
 
330
352
  /**
331
353
  * @typedef EmailOtpSuccess
332
- * @property {boolean} [success]
333
- * @property {string} [resend_email_token]
354
+ * @property {boolean} [success] - Whether the OTP send operation was successful.
355
+ * @property {string} [resend_email_token] - A token used to authorize the
356
+ * resending of an OTP via email.
334
357
  */
335
358
 
336
359
  /**
337
360
  * @typedef SessionListSuccess
338
- * @property {string[]} [sessions]
361
+ * @property {string[]} [sessions] - An array of active session identifiers.
339
362
  */
340
363
 
341
364
  /**
342
365
  * @typedef VerifyMobileOTPSuccess
343
366
  * @property {UserSchema} [user]
344
- * @property {boolean} [verify_mobile_link]
367
+ * @property {boolean} [verify_mobile_link] - Whether the mobile number
368
+ * verification link was successful.
345
369
  */
346
370
 
347
371
  /**
348
372
  * @typedef VerifyEmailOTPSuccess
349
373
  * @property {UserSchema} [user]
350
- * @property {boolean} [verify_email_link]
374
+ * @property {boolean} [verify_email_link] - Whether the email verification link
375
+ * was successful.
351
376
  */
352
377
 
353
378
  /**
354
379
  * @typedef SendMobileVerifyLinkSuccess
355
- * @property {boolean} [verify_mobile_link]
380
+ * @property {boolean} [verify_mobile_link] - Whether the mobile verification
381
+ * link was successfully sent.
356
382
  */
357
383
 
358
384
  /**
359
385
  * @typedef SendEmailVerifyLinkSuccess
360
- * @property {boolean} [verify_email_link]
386
+ * @property {boolean} [verify_email_link] - Whether the email verification link
387
+ * was successfully sent.
361
388
  */
362
389
 
363
390
  /**
364
391
  * @typedef APIError
365
- * @property {string} [code]
366
- * @property {string} [message]
367
- * @property {string} [info] - Error code description link
368
- * @property {string} [request_id]
369
- * @property {string} [error]
370
- * @property {Object} [meta]
371
- * @property {boolean} [authenticated]
392
+ * @property {string} [code] - The error code representing the type of error.
393
+ * @property {string} [message] - A descriptive message providing more details
394
+ * about the error.
395
+ * @property {string} [info] - A link to the error code description.
396
+ * @property {string} [request_id] - A random uuid string used to track the api request.
397
+ * @property {string} [error] - The error message or stack trace.
398
+ * @property {Object} [meta] - Additional metadata associated with the error.
399
+ * @property {boolean} [authenticated] - Whether the user is authenticated.
372
400
  */
373
401
 
374
402
  /**
375
403
  * @typedef FormRegisterRequestSchemaPhone
376
- * @property {string} [country_code]
377
- * @property {string} [mobile]
404
+ * @property {string} [country_code] - Country code for mobile number.
405
+ * @property {string} [mobile] - The user's mobile number without the country code.
378
406
  */
379
407
 
380
408
  /**
381
409
  * @typedef OAuthRequestSchemaOauth2
382
- * @property {string} [access_token]
383
- * @property {number} [expiry]
384
- * @property {string} [refresh_token]
410
+ * @property {string} [access_token] - The access token issued by the oauth2 provider.
411
+ * @property {number} [expiry] - The expiry time of the access token in
412
+ * milliseconds since epoch.
413
+ * @property {string} [refresh_token] - The refresh token issued by the oauth2 provider.
385
414
  */
386
415
 
387
416
  /**
388
417
  * @typedef OAuthRequestSchemaProfile
389
- * @property {string} [last_name]
390
- * @property {string} [image]
391
- * @property {string} [id]
392
- * @property {string} [email]
393
- * @property {string} [full_name]
394
- * @property {string} [first_name]
418
+ * @property {string} [last_name] - The last name of the user.
419
+ * @property {string} [image] - The url of the user's profile picture.
420
+ * @property {string} [id] - The unique identifier of the user.
421
+ * @property {string} [email] - The email address of the user.
422
+ * @property {string} [full_name] - The full name of the user.
423
+ * @property {string} [first_name] - The first name of the user.
395
424
  */
396
425
 
397
426
  /**
398
427
  * @typedef OAuthRequestAppleSchemaOauth
399
- * @property {string} [identity_token]
428
+ * @property {string} [identity_token] - The identity token issued by apple.
400
429
  */
401
430
 
402
431
  /**
403
432
  * @typedef OAuthRequestAppleSchemaProfile
404
- * @property {string} [last_name]
405
- * @property {string} [full_name]
406
- * @property {string} [first_name]
433
+ * @property {string} [last_name] - The last name of the user.
434
+ * @property {string} [full_name] - The full name of the user.
435
+ * @property {string} [first_name] - The first name of the user.
407
436
  */
408
437
 
409
438
  /**
410
439
  * @typedef PlatformSchema
411
- * @property {string} [display]
440
+ * @property {string} [display] - The display name of the platform.
412
441
  * @property {LookAndFeel} [look_and_feel]
413
- * @property {string} [updated_at]
414
- * @property {boolean} [active]
415
- * @property {boolean} [forgot_password]
442
+ * @property {string} [updated_at] - The date and time when the configuration
443
+ * was last updated.
444
+ * @property {boolean} [active] - Is the application config active or not .
445
+ * @property {boolean} [forgot_password] - Forgot password option to be given or
446
+ * not to application user.
416
447
  * @property {Login} [login]
417
- * @property {boolean} [skip_captcha]
418
- * @property {string} [name]
448
+ * @property {boolean} [skip_captcha] - Skip the captcha or not .
449
+ * @property {string} [name] - Name of the application.
419
450
  * @property {MetaSchema} [meta]
420
- * @property {string} [_id]
451
+ * @property {string} [_id] - Unique document id of the platform config.
421
452
  * @property {Social} [social]
422
453
  * @property {RequiredFields} [required_fields]
423
454
  * @property {RegisterRequiredFields} [register_required_fields]
424
- * @property {boolean} [skip_login]
455
+ * @property {boolean} [skip_login] - Whether to skip the login or not .
425
456
  * @property {FlashCard} [flash_card]
426
- * @property {string} [subtext]
457
+ * @property {string} [subtext] - Text to be shown at the top of the flash card
458
+ * like login to fynd, login to tira.
427
459
  * @property {SocialTokens} [social_tokens]
428
- * @property {string} [created_at]
429
- * @property {boolean} [register]
430
- * @property {string} [mobile_image]
431
- * @property {string} [desktop_image]
432
- * @property {number} [delete_account_day]
433
- * @property {DeleteAccountReasons[]} [delete_account_reasons]
460
+ * @property {string} [created_at] - When was the application platform config
461
+ * document was created.
462
+ * @property {boolean} [register] - Whether to show the registration page on
463
+ * landing page or not.
464
+ * @property {string} [mobile_image] - Image to be shown on registration page
465
+ * for mobile devices.
466
+ * @property {string} [desktop_image] - Image to be shown on registration page
467
+ * for desktop devices.
468
+ * @property {number} [delete_account_day] - Number of days after which the user
469
+ * account will be deleted.
470
+ * @property {DeleteAccountReasons[]} [delete_account_reasons] - List of reasons
471
+ * you can set to ask user when account is being deleted from application.
434
472
  * @property {DeleteAccountConsent} [delete_account_consent]
435
473
  * @property {SessionExpiry} [session_config]
436
- * @property {number} [__v]
474
+ * @property {number} [__v] - Version of the document.
437
475
  */
438
476
 
439
477
  /**
440
478
  * @typedef LookAndFeel
441
- * @property {string} [card_position]
442
- * @property {string} [background_color]
479
+ * @property {string} [card_position] - Position of the card eg right, left,
480
+ * top-right etc.
481
+ * @property {string} [background_color] - Background colour of the card.
443
482
  */
444
483
 
445
484
  /**
446
485
  * @typedef Login
447
- * @property {boolean} [password]
448
- * @property {boolean} [otp]
486
+ * @property {boolean} [password] - Application is providing login with password or not.
487
+ * @property {boolean} [otp] - Application is providing login with OTP or not.
449
488
  */
450
489
 
451
490
  /**
452
491
  * @typedef MetaSchema
453
- * @property {boolean} [fynd_default]
492
+ * @property {boolean} [fynd_default] - One of the custom field that you are
493
+ * storing in meta.
454
494
  */
455
495
 
456
496
  /**
457
497
  * @typedef Social
458
- * @property {boolean} [account_kit]
459
- * @property {boolean} [facebook]
460
- * @property {boolean} [google]
461
- * @property {boolean} [apple]
498
+ * @property {boolean} [account_kit] - Is accountkit social login active for
499
+ * application or not.
500
+ * @property {boolean} [facebook] - Is facebook social login active for
501
+ * application or not .
502
+ * @property {boolean} [google] - Is google social login active for application or not .
503
+ * @property {boolean} [apple] - Is apple social login active for application or not.
462
504
  */
463
505
 
464
506
  /**
@@ -469,14 +511,18 @@ const Joi = require("joi");
469
511
 
470
512
  /**
471
513
  * @typedef PlatformEmail
472
- * @property {boolean} [is_required]
473
- * @property {string} [level]
514
+ * @property {boolean} [is_required] - Is email mandatory for user to register
515
+ * on a application or not.
516
+ * @property {string} [level] - Level of email mandatory hard is mandatory and
517
+ * soft is optional.
474
518
  */
475
519
 
476
520
  /**
477
521
  * @typedef PlatformMobile
478
- * @property {boolean} [is_required]
479
- * @property {string} [level]
522
+ * @property {boolean} [is_required] - Is mobile mandatory for user to register
523
+ * on a application or not.
524
+ * @property {string} [level] - Level of mobile mandatory hard is mandatory and
525
+ * soft is optional.
480
526
  */
481
527
 
482
528
  /**
@@ -487,21 +533,26 @@ const Joi = require("joi");
487
533
 
488
534
  /**
489
535
  * @typedef RegisterRequiredFieldsEmail
490
- * @property {boolean} [is_required]
491
- * @property {string} [level]
536
+ * @property {boolean} [is_required] - Is email mandatory for user to register
537
+ * on a application or not.
538
+ * @property {string} [level] - Level of email mandatory hard is mandatory and
539
+ * soft is optional.
492
540
  */
493
541
 
494
542
  /**
495
543
  * @typedef RegisterRequiredFieldsMobile
496
- * @property {boolean} [is_required]
497
- * @property {string} [level]
544
+ * @property {boolean} [is_required] - Is mobile mandatory for user to register
545
+ * on a application or not.
546
+ * @property {string} [level] - Level of mobile mandatory hard is mandatory and
547
+ * soft is optional.
498
548
  */
499
549
 
500
550
  /**
501
551
  * @typedef FlashCard
502
- * @property {string} [text]
503
- * @property {string} [text_color]
504
- * @property {string} [background_color]
552
+ * @property {string} [text] - Text to be shown in the flash card.
553
+ * @property {string} [text_color] - Text colour for the text in the flash card.
554
+ * @property {string} [background_color] - Background colour of the text to be
555
+ * shown on the flash card.
505
556
  */
506
557
 
507
558
  /**
@@ -513,75 +564,78 @@ const Joi = require("joi");
513
564
 
514
565
  /**
515
566
  * @typedef DeleteAccountReasons
516
- * @property {string} [reason_text]
517
- * @property {string} [reason_id]
518
- * @property {boolean} [show_text_area]
567
+ * @property {string} [reason_text] - Text of the reason to be shown to user.
568
+ * @property {string} [reason_id] - Unique id of the reason .
569
+ * @property {boolean} [show_text_area] - A boolean whether to show text area or not.
519
570
  */
520
571
 
521
572
  /**
522
573
  * @typedef DeleteAccountConsent
523
- * @property {string} [consent_text]
574
+ * @property {string} [consent_text] - Consent text to be shown to user.
524
575
  */
525
576
 
526
577
  /**
527
578
  * @typedef Facebook
528
- * @property {string} [app_id]
579
+ * @property {string} [app_id] - App id of the credentials facebook.
529
580
  */
530
581
 
531
582
  /**
532
583
  * @typedef Accountkit
533
- * @property {string} [app_id]
584
+ * @property {string} [app_id] - App id of the credentials account kit.
534
585
  */
535
586
 
536
587
  /**
537
588
  * @typedef Google
538
- * @property {string} [app_id]
589
+ * @property {string} [app_id] - App id of the credentials google.
539
590
  */
540
591
 
541
592
  /**
542
593
  * @typedef SessionExpiry
543
- * @property {number} [duration]
544
- * @property {string} [type]
545
- * @property {boolean} [is_rolling]
594
+ * @property {number} [duration] - Number of days or hours based on type till
595
+ * which the session can be rolled back.
596
+ * @property {string} [type] - Days or hours the type of time for session rollback.
597
+ * @property {boolean} [is_rolling] - Whether session needs to be rollback or not.
546
598
  */
547
599
 
548
600
  /**
549
601
  * @typedef UserSchema
550
- * @property {string} [application_id]
551
- * @property {string} [user_id]
552
- * @property {string} [first_name]
553
- * @property {Object} [meta]
554
- * @property {string} [last_name]
555
- * @property {PhoneNumber[]} [phone_numbers]
556
- * @property {Email[]} [emails]
557
- * @property {string} [gender]
558
- * @property {string} [dob]
559
- * @property {boolean} [active]
560
- * @property {string} [profile_pic_url]
561
- * @property {string} [username]
562
- * @property {string} [account_type]
563
- * @property {string} [_id]
564
- * @property {string} [created_at]
565
- * @property {string} [updated_at]
566
- * @property {string} [external_id]
567
- * @property {string} [rr_id]
602
+ * @property {string} [application_id] - Application id of the user.
603
+ * @property {string} [user_id] - Unique id of the user.
604
+ * @property {string} [first_name] - First name of the user.
605
+ * @property {Object} [meta] - Metadata of the user, used to store details about the user
606
+ * @property {string} [last_name] - Last name of the user
607
+ * @property {PhoneNumber[]} [phone_numbers] - List of phone numbers of the user.
608
+ * @property {Email[]} [emails] - List of email addresses of the user.
609
+ * @property {string} [gender] - Gender of the user.
610
+ * @property {string} [dob] - Date of birth of the user.
611
+ * @property {boolean} [active] - Is the user active.
612
+ * @property {string} [profile_pic_url] - URL of the profile picture of the user.
613
+ * @property {string} [username] - Unique username of the user.
614
+ * @property {string} [account_type] - Type of user (user, programmatic (created
615
+ * by system))
616
+ * @property {string} [_id] - Unique id of the user.
617
+ * @property {string} [created_at] - Date and time of user creation.
618
+ * @property {string} [updated_at] - Date and time of user update.
619
+ * @property {string} [external_id] - Unique id referencing any user external
620
+ * documents (jio).
621
+ * @property {string} [rr_id] - Unique id referencing any user external documents.
568
622
  */
569
623
 
570
624
  /**
571
625
  * @typedef PhoneNumber
572
- * @property {string} [phone] - Phone number
573
- * @property {number} [country_code] - Country code
574
- * @property {boolean} [active] - Is the phone number active
575
- * @property {boolean} [primary] - Is it a primary phone number
576
- * @property {boolean} [verified] - Is the phone number verified
626
+ * @property {string} [phone] - Phone number of the user.
627
+ * @property {number} [country_code] - Country code for mobile number.
628
+ * @property {boolean} [active] - Is the phone number active.
629
+ * @property {boolean} [primary] - Is it a primary phone number.
630
+ * @property {boolean} [verified] - Is the phone number verified.
577
631
  */
578
632
 
579
633
  /**
580
634
  * @typedef Email
581
- * @property {string} [email] - Email address
582
- * @property {boolean} [active] - Is the email active
583
- * @property {boolean} [primary] - Is it a primary email
584
- * @property {boolean} [verified] - Is the email verified
635
+ * @property {string} [email] - Email address.
636
+ * @property {boolean} [active] - Is the email active.
637
+ * @property {boolean} [primary] - Is it a primary email.
638
+ * @property {boolean} [verified] - Is the email verified.
585
639
  */
586
640
 
587
641
  class UserApplicationModel {