@gofynd/fdk-client-javascript 1.4.8-beta.2 → 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 (198) 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 +1206 -281
  36. package/sdk/application/Content/ContentApplicationModel.js +342 -276
  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 +1401 -324
  58. package/sdk/application/Order/OrderApplicationModel.js +392 -316
  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 +75 -8
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
  98. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
  99. package/sdk/partner/PartnerClient.d.ts +8 -0
  100. package/sdk/partner/PartnerClient.js +14 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  102. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  103. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  104. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  105. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  107. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  108. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  110. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  111. package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
  112. package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
  113. package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
  114. package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
  115. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
  116. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
  117. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  118. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  119. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  120. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
  121. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
  122. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
  123. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  124. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  125. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  126. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  127. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  128. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  143. package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
  144. package/sdk/platform/Content/ContentPlatformModel.js +30 -15
  145. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  146. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  148. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  149. package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
  150. package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
  151. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
  152. package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
  153. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  154. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  155. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  156. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  157. package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
  158. package/sdk/platform/Order/OrderPlatformModel.js +367 -41
  159. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  160. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  161. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  162. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  163. package/sdk/platform/PlatformClient.d.ts +8 -0
  164. package/sdk/platform/PlatformClient.js +14 -0
  165. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  166. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  167. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  168. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  169. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  170. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  171. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
  172. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
  173. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  174. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  175. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  176. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  177. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  178. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  179. package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
  180. package/sdk/platform/User/UserPlatformModel.js +9 -11
  181. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
  182. package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
  183. package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
  184. package/sdk/public/Billing/BillingPublicClient.js +80 -0
  185. package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
  186. package/sdk/public/Billing/BillingPublicModel.js +252 -87
  187. package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
  188. package/sdk/public/Billing/BillingPublicValidator.js +12 -0
  189. package/sdk/public/PublicClient.d.ts +0 -2
  190. package/sdk/public/PublicClient.js +0 -4
  191. package/sdk/public/index.d.ts +0 -1
  192. package/sdk/public/index.js +0 -2
  193. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  194. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  195. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  196. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  197. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  198. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -2,158 +2,179 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef TicketHistoryPayload
5
- * @property {Object} value - Details of history event
5
+ * @property {Object} value - Details of history event.
6
6
  * @property {HistoryTypeEnum} type
7
7
  */
8
8
 
9
9
  /**
10
10
  * @typedef CustomFormSubmissionPayload
11
- * @property {Object[]} response - Form response
12
- * @property {TicketAsset[]} [attachments] - List of all attachments related to the form
11
+ * @property {Object[]} response - Custom form response.
12
+ * @property {TicketAsset[]} [attachments] - List of all attachments related to the form.
13
13
  */
14
14
 
15
15
  /**
16
16
  * @typedef SubmitCustomFormResponse
17
- * @property {string} message - Success message for form submission
17
+ * @property {string} message - Success message for form submission.
18
18
  * @property {Ticket} [ticket]
19
+ * @property {FormFieldResponse} [response]
20
+ */
21
+
22
+ /**
23
+ * @typedef FormFieldResponse
24
+ * @property {string} [_id] - Unique identifier for a custom form response.
25
+ * @property {number} [__v] - Version of the form.
26
+ * @property {string} [application_id] - Unique identifier for a Sales channel.
27
+ * @property {string} [form_slug] - A short, human-readable, URL-friendly unique
28
+ * identifier for a custom form.
29
+ * @property {CreatedOn} [created_on]
30
+ * @property {FormFieldResponseValues[]} [response] - Data related to
31
+ * acknowledgement on submission of custom form.
32
+ */
33
+
34
+ /**
35
+ * @typedef FormFieldResponseValues
36
+ * @property {string} [key] - Keyname of field against which the input was
37
+ * filled in custom form.
19
38
  */
20
39
 
21
40
  /**
22
41
  * @typedef TicketContext
23
- * @property {string} [application_id] - Application ID related to the ticket
24
- * @property {string} company_id - Company ID related to the ticket
42
+ * @property {string} [application_id] - Unique identifier for a Sales channel.
43
+ * @property {string} company_id - Company ID related to the ticket.
25
44
  */
26
45
 
27
46
  /**
28
47
  * @typedef CreatedOn
29
- * @property {string} user_agent - Useragent details
48
+ * @property {string} user_agent - Useragent details.
30
49
  */
31
50
 
32
51
  /**
33
52
  * @typedef TicketAsset
34
- * @property {string} [display] - Display text for asset
35
- * @property {string} value - To be used for details
53
+ * @property {string} [display] - Display text for asset.
54
+ * @property {string} value - To be used for details.
36
55
  * @property {TicketAssetTypeEnum} type
37
56
  */
38
57
 
39
58
  /**
40
59
  * @typedef TicketContent
41
- * @property {string} title - Title for ticket
42
- * @property {string} [description] - Long description of issue
43
- * @property {TicketAsset[]} [attachments] - List of all attachments related to the ticket
60
+ * @property {string} title - Title for ticket.
61
+ * @property {string} [description] - Long description of issue.
62
+ * @property {TicketAsset[]} [attachments] - List of all attachments related to
63
+ * the ticket.
44
64
  */
45
65
 
46
66
  /**
47
67
  * @typedef AddTicketPayload
48
- * @property {Object} [created_by] - Creator of the ticket
49
- * @property {string} [status] - Status of the ticket
68
+ * @property {Object} [created_by] - Creator of the ticket.
69
+ * @property {string} [status] - Status of the ticket.
50
70
  * @property {PriorityEnum} [priority]
51
- * @property {string} category - Category of the ticket
71
+ * @property {string} category - Category of the ticket.
52
72
  * @property {TicketContent} content
53
- * @property {Object} [_custom_json] - Optional custom data that needs to be sent
54
- * @property {string[]} [subscribers]
73
+ * @property {Object} [_custom_json] - Optional custom data that needs to be sent.
74
+ * @property {string[]} [subscribers] - List of emails to be informed for ticket updates.
55
75
  */
56
76
 
57
77
  /**
58
78
  * @typedef Priority
59
79
  * @property {PriorityEnum} key
60
- * @property {string} display - Display text for priority
61
- * @property {string} color - Color for priority
80
+ * @property {string} display - Display text for priority.
81
+ * @property {string} color - Color for priority.
62
82
  */
63
83
 
64
84
  /**
65
85
  * @typedef Status
66
- * @property {string} key - Key for status
67
- * @property {string} display - Display text for status
68
- * @property {string} color - Color for status
86
+ * @property {string} key - Key for status.
87
+ * @property {string} display - Display text for status.
88
+ * @property {string} color - Color for status.
69
89
  */
70
90
 
71
91
  /**
72
92
  * @typedef SubmitButton
73
- * @property {string} title - Title for submit button
74
- * @property {string} title_color - Title color submit button
75
- * @property {string} background_color - Color for submit button
93
+ * @property {string} title - Title for submit button.
94
+ * @property {string} title_color - Title color submit button.
95
+ * @property {string} background_color - Color for submit button.
76
96
  */
77
97
 
78
98
  /**
79
99
  * @typedef PollForAssignment
80
- * @property {number} duration - Duration for polling of staff
81
- * @property {string} message - Message for polling
82
- * @property {string} success_message - Message for successful polling
83
- * @property {string} failure_message - Message if polling failed
100
+ * @property {number} duration - Duration for polling of staff.
101
+ * @property {string} message - Message for polling.
102
+ * @property {string} success_message - Message for successful polling.
103
+ * @property {string} failure_message - Message if polling failed.
84
104
  */
85
105
 
86
106
  /**
87
107
  * @typedef CustomForm
88
- * @property {string} application_id - Application ID for form
89
- * @property {string} slug - Slug for the form, which is to be used for accessing the form
90
- * @property {string} [header_image] - Form header image that will be shown to the user
91
- * @property {string} title - Form title that will be shown to the user
92
- * @property {string} [description] - Form description that will be shown to the user
108
+ * @property {string} application_id - Application ID - Identifier for a Sales channel.
109
+ * @property {string} slug - Slug for the form, which is to be used for
110
+ * accessing the form.
111
+ * @property {string} [header_image] - Form header image that will be shown to the user.
112
+ * @property {string} title - Form title that will be shown to the user.
113
+ * @property {string} [description] - Form description that will be shown to the user.
93
114
  * @property {Priority} priority
94
- * @property {boolean} login_required - Denotes if login is required to make a
95
- * form response submission
96
- * @property {boolean} should_notify - Denotes if new response submission for
97
- * the form should be notified to the assignees
115
+ * @property {boolean} login_required - If login is required to make a form
116
+ * response submission.
117
+ * @property {boolean} should_notify - If new response submission for the form
118
+ * should be notified to the assignees.
98
119
  * @property {string} [success_message] - Message that is to be shown on
99
- * succesfull form response submission
120
+ * successful form response submission.
100
121
  * @property {SubmitButton} [submit_button]
101
- * @property {Object[]} inputs - List of all the form fields
122
+ * @property {Object[]} inputs - List of all the form fields.
102
123
  * @property {CreatedOn} [created_on]
103
124
  * @property {PollForAssignment} [poll_for_assignment]
104
- * @property {string} _id - Unique identifier for the form
125
+ * @property {string} _id - Unique identifier for the form.
105
126
  */
106
127
 
107
128
  /**
108
129
  * @typedef FeedbackForm
109
- * @property {Object} [inputs] - Input details for the feed back form
110
- * @property {string} [title] - Title for the feed back form
111
- * @property {Object} [timestamps] - Gives details of category releted data
130
+ * @property {Object} [inputs] - Input details for the feedback form.
131
+ * @property {string} [title] - Title for the feedback form.
132
+ * @property {Object} [timestamps] - Timestamp details of feedback form.
112
133
  */
113
134
 
114
135
  /**
115
136
  * @typedef TicketCategory
116
- * @property {string} display - Category display value identifier
117
- * @property {string} key - Category key value identifier
137
+ * @property {string} display - Category display value identifier.
138
+ * @property {string} key - Category key value identifier.
118
139
  * @property {TicketCategory} [sub_categories]
119
- * @property {number} [group_id] - Group id of category releted data
140
+ * @property {number} [group_id] - Group id of category related data.
120
141
  * @property {FeedbackForm} [feedback_form]
121
142
  */
122
143
 
123
144
  /**
124
145
  * @typedef TicketHistory
125
- * @property {string} type - Type of the history event
126
- * @property {Object} value - Data of the history event
127
- * @property {string} ticket_id - Readable ticket number
146
+ * @property {string} type - Type of the history event.
147
+ * @property {Object} value - Data of the history event.
148
+ * @property {string} ticket_id - Readable ticket number.
128
149
  * @property {CreatedOn} [created_on]
129
- * @property {Object} [created_by] - User who created the history event
130
- * @property {string} _id - Unique identifier of the history event
131
- * @property {string} [updated_at] - Time of last update of the history event
132
- * @property {string} [created_at] - Time of creation of the history event
150
+ * @property {Object} [created_by] - User who created the history event.
151
+ * @property {string} _id - Unique identifier of the history event.
152
+ * @property {string} [updated_at] - Time of last update of the history event.
153
+ * @property {string} [created_at] - Time of creation of the history event.
133
154
  */
134
155
 
135
156
  /**
136
157
  * @typedef Ticket
137
158
  * @property {TicketContext} [context]
138
159
  * @property {CreatedOn} [created_on]
139
- * @property {string} [response_id] - Details of company and application
140
- * realated to the ticket
160
+ * @property {string} [response_id] - Details of company and application related
161
+ * to the ticket.
141
162
  * @property {TicketContent} [content]
142
163
  * @property {TicketCategory} category
143
- * @property {string} [sub_category] - Sub-category assigned to the ticket
164
+ * @property {string} [sub_category] - Sub-category assigned to the ticket.
144
165
  * @property {TicketSourceEnum} source
145
166
  * @property {Status} status
146
167
  * @property {Priority} priority
147
- * @property {Object} [created_by] - User details of ticket creator
148
- * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
149
- * @property {string[]} [tags] - Tags relevant to ticket
150
- * @property {Object} [_custom_json] - Custom json relevant to the ticket
151
- * @property {boolean} [is_feedback_pending] - Denotes if feedback submission is
152
- * pending for the ticket
153
- * @property {Object} [integration] - Integration type and its details of the ticket
154
- * @property {string} _id - Unique identifier for the ticket
155
- * @property {string} [updated_at] - Time when the ticket was last updated
156
- * @property {string} [created_at] - Time when the ticket was created
168
+ * @property {Object} [created_by] - User details of ticket creator.
169
+ * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned.
170
+ * @property {string[]} [tags] - Tags relevant to ticket.
171
+ * @property {Object} [_custom_json] - Custom json relevant to the ticket.
172
+ * @property {boolean} [is_feedback_pending] - If feedback submission is pending
173
+ * for the ticket.
174
+ * @property {Object} [integration] - Integration type and its details of the ticket.
175
+ * @property {string} _id - Unique identifier for the ticket.
176
+ * @property {string} [updated_at] - Time when the ticket was last updated.
177
+ * @property {string} [created_at] - Time when the ticket was created.
157
178
  */
158
179
 
159
180
  /** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
@@ -196,6 +217,28 @@ class LeadApplicationModel {
196
217
  return Joi.object({
197
218
  message: Joi.string().allow("").required(),
198
219
  ticket: LeadApplicationModel.Ticket(),
220
+ response: LeadApplicationModel.FormFieldResponse(),
221
+ });
222
+ }
223
+
224
+ /** @returns {FormFieldResponse} */
225
+ static FormFieldResponse() {
226
+ return Joi.object({
227
+ _id: Joi.string().allow(""),
228
+ __v: Joi.number(),
229
+ application_id: Joi.string().allow(""),
230
+ form_slug: Joi.string().allow(""),
231
+ created_on: LeadApplicationModel.CreatedOn(),
232
+ response: Joi.array().items(
233
+ LeadApplicationModel.FormFieldResponseValues()
234
+ ),
235
+ });
236
+ }
237
+
238
+ /** @returns {FormFieldResponseValues} */
239
+ static FormFieldResponseValues() {
240
+ return Joi.object({
241
+ key: Joi.string().allow(""),
199
242
  });
200
243
  }
201
244
 
@@ -1,7 +1,7 @@
1
1
  export = LeadApplicationValidator;
2
2
  /**
3
3
  * @typedef CreateHistoryParam
4
- * @property {string} id - Ticket ID for which history is created
4
+ * @property {string} id - Ticket ID for which history is created.
5
5
  * @property {LeadApplicationModel.TicketHistoryPayload} body
6
6
  */
7
7
  /**
@@ -10,15 +10,15 @@ export = LeadApplicationValidator;
10
10
  */
11
11
  /**
12
12
  * @typedef GetCustomFormParam
13
- * @property {string} slug - Slug of form whose response is getting submitted
13
+ * @property {string} slug - Slug of form whose response is getting submitted.
14
14
  */
15
15
  /**
16
16
  * @typedef GetTicketParam
17
- * @property {string} id - ID of ticket to be retrieved
17
+ * @property {string} id - ID of ticket to be retrieved.
18
18
  */
19
19
  /**
20
20
  * @typedef SubmitCustomFormParam
21
- * @property {string} slug - Slug of form whose response is getting submitted
21
+ * @property {string} slug - Slug of form whose response is getting submitted.
22
22
  * @property {LeadApplicationModel.CustomFormSubmissionPayload} body
23
23
  */
24
24
  declare class LeadApplicationValidator {
@@ -38,7 +38,7 @@ declare namespace LeadApplicationValidator {
38
38
  }
39
39
  type CreateHistoryParam = {
40
40
  /**
41
- * - Ticket ID for which history is created
41
+ * - Ticket ID for which history is created.
42
42
  */
43
43
  id: string;
44
44
  body: LeadApplicationModel.TicketHistoryPayload;
@@ -48,19 +48,19 @@ type CreateTicketParam = {
48
48
  };
49
49
  type GetCustomFormParam = {
50
50
  /**
51
- * - Slug of form whose response is getting submitted
51
+ * - Slug of form whose response is getting submitted.
52
52
  */
53
53
  slug: string;
54
54
  };
55
55
  type GetTicketParam = {
56
56
  /**
57
- * - ID of ticket to be retrieved
57
+ * - ID of ticket to be retrieved.
58
58
  */
59
59
  id: string;
60
60
  };
61
61
  type SubmitCustomFormParam = {
62
62
  /**
63
- * - Slug of form whose response is getting submitted
63
+ * - Slug of form whose response is getting submitted.
64
64
  */
65
65
  slug: string;
66
66
  body: LeadApplicationModel.CustomFormSubmissionPayload;
@@ -4,7 +4,7 @@ const LeadApplicationModel = require("./LeadApplicationModel");
4
4
 
5
5
  /**
6
6
  * @typedef CreateHistoryParam
7
- * @property {string} id - Ticket ID for which history is created
7
+ * @property {string} id - Ticket ID for which history is created.
8
8
  * @property {LeadApplicationModel.TicketHistoryPayload} body
9
9
  */
10
10
 
@@ -15,17 +15,17 @@ const LeadApplicationModel = require("./LeadApplicationModel");
15
15
 
16
16
  /**
17
17
  * @typedef GetCustomFormParam
18
- * @property {string} slug - Slug of form whose response is getting submitted
18
+ * @property {string} slug - Slug of form whose response is getting submitted.
19
19
  */
20
20
 
21
21
  /**
22
22
  * @typedef GetTicketParam
23
- * @property {string} id - ID of ticket to be retrieved
23
+ * @property {string} id - ID of ticket to be retrieved.
24
24
  */
25
25
 
26
26
  /**
27
27
  * @typedef SubmitCustomFormParam
28
- * @property {string} slug - Slug of form whose response is getting submitted
28
+ * @property {string} slug - Slug of form whose response is getting submitted.
29
29
  * @property {LeadApplicationModel.CustomFormSubmissionPayload} body
30
30
  */
31
31
 
@@ -24,7 +24,7 @@ declare class Logistic {
24
24
  * @returns {Promise<LogisticApplicationModel.CountryListResponse>} - Success response
25
25
  * @name getAllCountries
26
26
  * @summary: Get deliverable countries
27
- * @description: Retrieves a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
27
+ * @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
28
28
  */
29
29
  getAllCountries({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LogisticApplicationModel.CountryListResponse>;
30
30
  /**
@@ -34,7 +34,7 @@ declare class Logistic {
34
34
  * @returns {Promise<LogisticApplicationModel.GetCountries>} - Success response
35
35
  * @name getCountries
36
36
  * @summary: Get countries
37
- * @description: Fetch the list of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
37
+ * @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
38
38
  */
39
39
  getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticApplicationValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountries>;
40
40
  /**
@@ -44,7 +44,7 @@ declare class Logistic {
44
44
  * @returns {Promise<LogisticApplicationModel.GetCountry>} - Success response
45
45
  * @name getCountry
46
46
  * @summary: Get country details
47
- * @description: Fetch details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
47
+ * @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
48
48
  */
49
49
  getCountry({ countryIsoCode, requestHeaders }?: LogisticApplicationValidator.GetCountryParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountry>;
50
50
  /**
@@ -54,7 +54,7 @@ declare class Logistic {
54
54
  * @returns {Promise<LogisticApplicationModel.GetLocalities>} - Success response
55
55
  * @name getLocalities
56
56
  * @summary: Get localities
57
- * @description: Retrieve geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
57
+ * @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
58
58
  */
59
59
  getLocalities({ localityType, country, state, city, pageNo, pageSize, q, requestHeaders, }?: LogisticApplicationValidator.GetLocalitiesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetLocalities>;
60
60
  /**
@@ -64,7 +64,7 @@ declare class Logistic {
64
64
  * @returns {Promise<LogisticApplicationModel.GetLocality>} - Success response
65
65
  * @name getLocality
66
66
  * @summary: Get locality detail
67
- * @description: Retrieve detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
67
+ * @description: Get detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
68
68
  */
69
69
  getLocality({ localityType, localityValue, country, state, city, requestHeaders }?: LogisticApplicationValidator.GetLocalityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetLocality>;
70
70
  /**
@@ -74,7 +74,7 @@ declare class Logistic {
74
74
  * @returns {Promise<LogisticApplicationModel.GetStoreResponse>} - Success response
75
75
  * @name getLocations
76
76
  * @summary: Get available selling locations
77
- * @description: Retrieves stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
77
+ * @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
78
78
  */
79
79
  getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: LogisticApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetStoreResponse>;
80
80
  /**
@@ -85,7 +85,7 @@ declare class Logistic {
85
85
  * Success response
86
86
  * @name getOptimalLocations
87
87
  * @summary: Get selling locations
88
- * @description: Determines and returns the best fulfillment center for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
88
+ * @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
89
89
  */
90
90
  getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ReAssignStoreResponse>;
91
91
  /**
@@ -95,7 +95,7 @@ declare class Logistic {
95
95
  * @returns {Promise<LogisticApplicationModel.PincodeApiResponse>} - Success response
96
96
  * @name getPincodeCity
97
97
  * @summary: Get pincode details
98
- * @description: Retrieve details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
98
+ * @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
99
99
  */
100
100
  getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.PincodeApiResponse>;
101
101
  /**
@@ -107,7 +107,7 @@ declare class Logistic {
107
107
  *
108
108
  * @name getPincodeZones
109
109
  * @summary: Get zones
110
- * @description: Retrieve the delivery zone associated with a given pincode - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
110
+ * @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
111
111
  */
112
112
  getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>;
113
113
  /**
@@ -117,7 +117,7 @@ declare class Logistic {
117
117
  * @returns {Promise<LogisticApplicationModel.TATViewResponse>} - Success response
118
118
  * @name getTatProduct
119
119
  * @summary: Get product's turnaround time
120
- * @description: Retrieve the estimated delivery timeframe for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
120
+ * @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
121
121
  */
122
122
  getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.TATViewResponse>;
123
123
  /**
@@ -54,7 +54,7 @@ class Logistic {
54
54
  * @returns {Promise<LogisticApplicationModel.CountryListResponse>} - Success response
55
55
  * @name getAllCountries
56
56
  * @summary: Get deliverable countries
57
- * @description: Retrieves a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
57
+ * @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
58
58
  */
59
59
  async getAllCountries(
60
60
  { requestHeaders } = { requestHeaders: {} },
@@ -132,7 +132,7 @@ class Logistic {
132
132
  * @returns {Promise<LogisticApplicationModel.GetCountries>} - Success response
133
133
  * @name getCountries
134
134
  * @summary: Get countries
135
- * @description: Fetch the list of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
135
+ * @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
136
136
  */
137
137
  async getCountries(
138
138
  { onboarding, pageNo, pageSize, q, requestHeaders } = {
@@ -216,7 +216,7 @@ class Logistic {
216
216
  * @returns {Promise<LogisticApplicationModel.GetCountry>} - Success response
217
217
  * @name getCountry
218
218
  * @summary: Get country details
219
- * @description: Fetch details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
219
+ * @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
220
220
  */
221
221
  async getCountry(
222
222
  { countryIsoCode, requestHeaders } = { requestHeaders: {} },
@@ -294,7 +294,7 @@ class Logistic {
294
294
  * @returns {Promise<LogisticApplicationModel.GetLocalities>} - Success response
295
295
  * @name getLocalities
296
296
  * @summary: Get localities
297
- * @description: Retrieve geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
297
+ * @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
298
298
  */
299
299
  async getLocalities(
300
300
  {
@@ -387,7 +387,7 @@ class Logistic {
387
387
  * @returns {Promise<LogisticApplicationModel.GetLocality>} - Success response
388
388
  * @name getLocality
389
389
  * @summary: Get locality detail
390
- * @description: Retrieve detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
390
+ * @description: Get detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
391
391
  */
392
392
  async getLocality(
393
393
  { localityType, localityValue, country, state, city, requestHeaders } = {
@@ -470,7 +470,7 @@ class Logistic {
470
470
  * @returns {Promise<LogisticApplicationModel.GetStoreResponse>} - Success response
471
471
  * @name getLocations
472
472
  * @summary: Get available selling locations
473
- * @description: Retrieves stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
473
+ * @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
474
474
  */
475
475
  async getLocations(
476
476
  {
@@ -589,7 +589,7 @@ class Logistic {
589
589
  * Success response
590
590
  * @name getOptimalLocations
591
591
  * @summary: Get selling locations
592
- * @description: Determines and returns the best fulfillment center for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
592
+ * @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
593
593
  */
594
594
  async getOptimalLocations(
595
595
  { body, requestHeaders } = { requestHeaders: {} },
@@ -669,7 +669,7 @@ class Logistic {
669
669
  * @returns {Promise<LogisticApplicationModel.PincodeApiResponse>} - Success response
670
670
  * @name getPincodeCity
671
671
  * @summary: Get pincode details
672
- * @description: Retrieve details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
672
+ * @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
673
673
  */
674
674
  async getPincodeCity(
675
675
  { pincode, requestHeaders } = { requestHeaders: {} },
@@ -749,7 +749,7 @@ class Logistic {
749
749
  *
750
750
  * @name getPincodeZones
751
751
  * @summary: Get zones
752
- * @description: Retrieve the delivery zone associated with a given pincode - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
752
+ * @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
753
753
  */
754
754
  async getPincodeZones(
755
755
  { body, requestHeaders } = { requestHeaders: {} },
@@ -827,7 +827,7 @@ class Logistic {
827
827
  * @returns {Promise<LogisticApplicationModel.TATViewResponse>} - Success response
828
828
  * @name getTatProduct
829
829
  * @summary: Get product's turnaround time
830
- * @description: Retrieve the estimated delivery timeframe for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
830
+ * @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
831
831
  */
832
832
  async getTatProduct(
833
833
  { body, requestHeaders } = { requestHeaders: {} },