@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
@@ -1,142 +1,161 @@
1
1
  export = LeadApplicationModel;
2
2
  /**
3
3
  * @typedef TicketHistoryPayload
4
- * @property {Object} value - Details of history event
4
+ * @property {Object} value - Details of history event.
5
5
  * @property {HistoryTypeEnum} type
6
6
  */
7
7
  /**
8
8
  * @typedef CustomFormSubmissionPayload
9
- * @property {Object[]} response - Form response
10
- * @property {TicketAsset[]} [attachments] - List of all attachments related to the form
9
+ * @property {Object[]} response - Custom form response.
10
+ * @property {TicketAsset[]} [attachments] - List of all attachments related to the form.
11
11
  */
12
12
  /**
13
13
  * @typedef SubmitCustomFormResponse
14
- * @property {string} message - Success message for form submission
14
+ * @property {string} message - Success message for form submission.
15
15
  * @property {Ticket} [ticket]
16
+ * @property {FormFieldResponse} [response]
17
+ */
18
+ /**
19
+ * @typedef FormFieldResponse
20
+ * @property {string} [_id] - Unique identifier for a custom form response.
21
+ * @property {number} [__v] - Version of the form.
22
+ * @property {string} [application_id] - Unique identifier for a Sales channel.
23
+ * @property {string} [form_slug] - A short, human-readable, URL-friendly unique
24
+ * identifier for a custom form.
25
+ * @property {CreatedOn} [created_on]
26
+ * @property {FormFieldResponseValues[]} [response] - Data related to
27
+ * acknowledgement on submission of custom form.
28
+ */
29
+ /**
30
+ * @typedef FormFieldResponseValues
31
+ * @property {string} [key] - Keyname of field against which the input was
32
+ * filled in custom form.
16
33
  */
17
34
  /**
18
35
  * @typedef TicketContext
19
- * @property {string} [application_id] - Application ID related to the ticket
20
- * @property {string} company_id - Company ID related to the ticket
36
+ * @property {string} [application_id] - Unique identifier for a Sales channel.
37
+ * @property {string} company_id - Company ID related to the ticket.
21
38
  */
22
39
  /**
23
40
  * @typedef CreatedOn
24
- * @property {string} user_agent - Useragent details
41
+ * @property {string} user_agent - Useragent details.
25
42
  */
26
43
  /**
27
44
  * @typedef TicketAsset
28
- * @property {string} [display] - Display text for asset
29
- * @property {string} value - To be used for details
45
+ * @property {string} [display] - Display text for asset.
46
+ * @property {string} value - To be used for details.
30
47
  * @property {TicketAssetTypeEnum} type
31
48
  */
32
49
  /**
33
50
  * @typedef TicketContent
34
- * @property {string} title - Title for ticket
35
- * @property {string} [description] - Long description of issue
36
- * @property {TicketAsset[]} [attachments] - List of all attachments related to the ticket
51
+ * @property {string} title - Title for ticket.
52
+ * @property {string} [description] - Long description of issue.
53
+ * @property {TicketAsset[]} [attachments] - List of all attachments related to
54
+ * the ticket.
37
55
  */
38
56
  /**
39
57
  * @typedef AddTicketPayload
40
- * @property {Object} [created_by] - Creator of the ticket
41
- * @property {string} [status] - Status of the ticket
58
+ * @property {Object} [created_by] - Creator of the ticket.
59
+ * @property {string} [status] - Status of the ticket.
42
60
  * @property {PriorityEnum} [priority]
43
- * @property {string} category - Category of the ticket
61
+ * @property {string} category - Category of the ticket.
44
62
  * @property {TicketContent} content
45
- * @property {Object} [_custom_json] - Optional custom data that needs to be sent
46
- * @property {string[]} [subscribers]
63
+ * @property {Object} [_custom_json] - Optional custom data that needs to be sent.
64
+ * @property {string[]} [subscribers] - List of emails to be informed for ticket updates.
47
65
  */
48
66
  /**
49
67
  * @typedef Priority
50
68
  * @property {PriorityEnum} key
51
- * @property {string} display - Display text for priority
52
- * @property {string} color - Color for priority
69
+ * @property {string} display - Display text for priority.
70
+ * @property {string} color - Color for priority.
53
71
  */
54
72
  /**
55
73
  * @typedef Status
56
- * @property {string} key - Key for status
57
- * @property {string} display - Display text for status
58
- * @property {string} color - Color for status
74
+ * @property {string} key - Key for status.
75
+ * @property {string} display - Display text for status.
76
+ * @property {string} color - Color for status.
59
77
  */
60
78
  /**
61
79
  * @typedef SubmitButton
62
- * @property {string} title - Title for submit button
63
- * @property {string} title_color - Title color submit button
64
- * @property {string} background_color - Color for submit button
80
+ * @property {string} title - Title for submit button.
81
+ * @property {string} title_color - Title color submit button.
82
+ * @property {string} background_color - Color for submit button.
65
83
  */
66
84
  /**
67
85
  * @typedef PollForAssignment
68
- * @property {number} duration - Duration for polling of staff
69
- * @property {string} message - Message for polling
70
- * @property {string} success_message - Message for successful polling
71
- * @property {string} failure_message - Message if polling failed
86
+ * @property {number} duration - Duration for polling of staff.
87
+ * @property {string} message - Message for polling.
88
+ * @property {string} success_message - Message for successful polling.
89
+ * @property {string} failure_message - Message if polling failed.
72
90
  */
73
91
  /**
74
92
  * @typedef CustomForm
75
- * @property {string} application_id - Application ID for form
76
- * @property {string} slug - Slug for the form, which is to be used for accessing the form
77
- * @property {string} [header_image] - Form header image that will be shown to the user
78
- * @property {string} title - Form title that will be shown to the user
79
- * @property {string} [description] - Form description that will be shown to the user
93
+ * @property {string} application_id - Application ID - Identifier for a Sales channel.
94
+ * @property {string} slug - Slug for the form, which is to be used for
95
+ * accessing the form.
96
+ * @property {string} [header_image] - Form header image that will be shown to the user.
97
+ * @property {string} title - Form title that will be shown to the user.
98
+ * @property {string} [description] - Form description that will be shown to the user.
80
99
  * @property {Priority} priority
81
- * @property {boolean} login_required - Denotes if login is required to make a
82
- * form response submission
83
- * @property {boolean} should_notify - Denotes if new response submission for
84
- * the form should be notified to the assignees
100
+ * @property {boolean} login_required - If login is required to make a form
101
+ * response submission.
102
+ * @property {boolean} should_notify - If new response submission for the form
103
+ * should be notified to the assignees.
85
104
  * @property {string} [success_message] - Message that is to be shown on
86
- * succesfull form response submission
105
+ * successful form response submission.
87
106
  * @property {SubmitButton} [submit_button]
88
- * @property {Object[]} inputs - List of all the form fields
107
+ * @property {Object[]} inputs - List of all the form fields.
89
108
  * @property {CreatedOn} [created_on]
90
109
  * @property {PollForAssignment} [poll_for_assignment]
91
- * @property {string} _id - Unique identifier for the form
110
+ * @property {string} _id - Unique identifier for the form.
92
111
  */
93
112
  /**
94
113
  * @typedef FeedbackForm
95
- * @property {Object} [inputs] - Input details for the feed back form
96
- * @property {string} [title] - Title for the feed back form
97
- * @property {Object} [timestamps] - Gives details of category releted data
114
+ * @property {Object} [inputs] - Input details for the feedback form.
115
+ * @property {string} [title] - Title for the feedback form.
116
+ * @property {Object} [timestamps] - Timestamp details of feedback form.
98
117
  */
99
118
  /**
100
119
  * @typedef TicketCategory
101
- * @property {string} display - Category display value identifier
102
- * @property {string} key - Category key value identifier
120
+ * @property {string} display - Category display value identifier.
121
+ * @property {string} key - Category key value identifier.
103
122
  * @property {TicketCategory} [sub_categories]
104
- * @property {number} [group_id] - Group id of category releted data
123
+ * @property {number} [group_id] - Group id of category related data.
105
124
  * @property {FeedbackForm} [feedback_form]
106
125
  */
107
126
  /**
108
127
  * @typedef TicketHistory
109
- * @property {string} type - Type of the history event
110
- * @property {Object} value - Data of the history event
111
- * @property {string} ticket_id - Readable ticket number
128
+ * @property {string} type - Type of the history event.
129
+ * @property {Object} value - Data of the history event.
130
+ * @property {string} ticket_id - Readable ticket number.
112
131
  * @property {CreatedOn} [created_on]
113
- * @property {Object} [created_by] - User who created the history event
114
- * @property {string} _id - Unique identifier of the history event
115
- * @property {string} [updated_at] - Time of last update of the history event
116
- * @property {string} [created_at] - Time of creation of the history event
132
+ * @property {Object} [created_by] - User who created the history event.
133
+ * @property {string} _id - Unique identifier of the history event.
134
+ * @property {string} [updated_at] - Time of last update of the history event.
135
+ * @property {string} [created_at] - Time of creation of the history event.
117
136
  */
118
137
  /**
119
138
  * @typedef Ticket
120
139
  * @property {TicketContext} [context]
121
140
  * @property {CreatedOn} [created_on]
122
- * @property {string} [response_id] - Details of company and application
123
- * realated to the ticket
141
+ * @property {string} [response_id] - Details of company and application related
142
+ * to the ticket.
124
143
  * @property {TicketContent} [content]
125
144
  * @property {TicketCategory} category
126
- * @property {string} [sub_category] - Sub-category assigned to the ticket
145
+ * @property {string} [sub_category] - Sub-category assigned to the ticket.
127
146
  * @property {TicketSourceEnum} source
128
147
  * @property {Status} status
129
148
  * @property {Priority} priority
130
- * @property {Object} [created_by] - User details of ticket creator
131
- * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
132
- * @property {string[]} [tags] - Tags relevant to ticket
133
- * @property {Object} [_custom_json] - Custom json relevant to the ticket
134
- * @property {boolean} [is_feedback_pending] - Denotes if feedback submission is
135
- * pending for the ticket
136
- * @property {Object} [integration] - Integration type and its details of the ticket
137
- * @property {string} _id - Unique identifier for the ticket
138
- * @property {string} [updated_at] - Time when the ticket was last updated
139
- * @property {string} [created_at] - Time when the ticket was created
149
+ * @property {Object} [created_by] - User details of ticket creator.
150
+ * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned.
151
+ * @property {string[]} [tags] - Tags relevant to ticket.
152
+ * @property {Object} [_custom_json] - Custom json relevant to the ticket.
153
+ * @property {boolean} [is_feedback_pending] - If feedback submission is pending
154
+ * for the ticket.
155
+ * @property {Object} [integration] - Integration type and its details of the ticket.
156
+ * @property {string} _id - Unique identifier for the ticket.
157
+ * @property {string} [updated_at] - Time when the ticket was last updated.
158
+ * @property {string} [created_at] - Time when the ticket was created.
140
159
  */
141
160
  /** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
142
161
  /** @typedef {"rating" | "log" | "comment" | "thread"} HistoryTypeEnum */
@@ -155,13 +174,13 @@ export = LeadApplicationModel;
155
174
  declare class LeadApplicationModel {
156
175
  }
157
176
  declare namespace LeadApplicationModel {
158
- export { TicketHistoryPayload, CustomFormSubmissionPayload, SubmitCustomFormResponse, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, Status, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, TicketHistory, Ticket, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
177
+ export { TicketHistoryPayload, CustomFormSubmissionPayload, SubmitCustomFormResponse, FormFieldResponse, FormFieldResponseValues, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, Status, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, TicketHistory, Ticket, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
159
178
  }
160
179
  /** @returns {TicketHistoryPayload} */
161
180
  declare function TicketHistoryPayload(): TicketHistoryPayload;
162
181
  type TicketHistoryPayload = {
163
182
  /**
164
- * - Details of history event
183
+ * - Details of history event.
165
184
  */
166
185
  value: any;
167
186
  type: HistoryTypeEnum;
@@ -170,11 +189,11 @@ type TicketHistoryPayload = {
170
189
  declare function CustomFormSubmissionPayload(): CustomFormSubmissionPayload;
171
190
  type CustomFormSubmissionPayload = {
172
191
  /**
173
- * - Form response
192
+ * - Custom form response.
174
193
  */
175
194
  response: any[];
176
195
  /**
177
- * - List of all attachments related to the form
196
+ * - List of all attachments related to the form.
178
197
  */
179
198
  attachments?: TicketAsset[];
180
199
  };
@@ -182,20 +201,57 @@ type CustomFormSubmissionPayload = {
182
201
  declare function SubmitCustomFormResponse(): SubmitCustomFormResponse;
183
202
  type SubmitCustomFormResponse = {
184
203
  /**
185
- * - Success message for form submission
204
+ * - Success message for form submission.
186
205
  */
187
206
  message: string;
188
207
  ticket?: Ticket;
208
+ response?: FormFieldResponse;
209
+ };
210
+ /** @returns {FormFieldResponse} */
211
+ declare function FormFieldResponse(): FormFieldResponse;
212
+ type FormFieldResponse = {
213
+ /**
214
+ * - Unique identifier for a custom form response.
215
+ */
216
+ _id?: string;
217
+ /**
218
+ * - Version of the form.
219
+ */
220
+ __v?: number;
221
+ /**
222
+ * - Unique identifier for a Sales channel.
223
+ */
224
+ application_id?: string;
225
+ /**
226
+ * - A short, human-readable, URL-friendly unique
227
+ * identifier for a custom form.
228
+ */
229
+ form_slug?: string;
230
+ created_on?: CreatedOn;
231
+ /**
232
+ * - Data related to
233
+ * acknowledgement on submission of custom form.
234
+ */
235
+ response?: FormFieldResponseValues[];
236
+ };
237
+ /** @returns {FormFieldResponseValues} */
238
+ declare function FormFieldResponseValues(): FormFieldResponseValues;
239
+ type FormFieldResponseValues = {
240
+ /**
241
+ * - Keyname of field against which the input was
242
+ * filled in custom form.
243
+ */
244
+ key?: string;
189
245
  };
190
246
  /** @returns {TicketContext} */
191
247
  declare function TicketContext(): TicketContext;
192
248
  type TicketContext = {
193
249
  /**
194
- * - Application ID related to the ticket
250
+ * - Unique identifier for a Sales channel.
195
251
  */
196
252
  application_id?: string;
197
253
  /**
198
- * - Company ID related to the ticket
254
+ * - Company ID related to the ticket.
199
255
  */
200
256
  company_id: string;
201
257
  };
@@ -203,7 +259,7 @@ type TicketContext = {
203
259
  declare function CreatedOn(): CreatedOn;
204
260
  type CreatedOn = {
205
261
  /**
206
- * - Useragent details
262
+ * - Useragent details.
207
263
  */
208
264
  user_agent: string;
209
265
  };
@@ -211,11 +267,11 @@ type CreatedOn = {
211
267
  declare function TicketAsset(): TicketAsset;
212
268
  type TicketAsset = {
213
269
  /**
214
- * - Display text for asset
270
+ * - Display text for asset.
215
271
  */
216
272
  display?: string;
217
273
  /**
218
- * - To be used for details
274
+ * - To be used for details.
219
275
  */
220
276
  value: string;
221
277
  type: TicketAssetTypeEnum;
@@ -224,15 +280,16 @@ type TicketAsset = {
224
280
  declare function TicketContent(): TicketContent;
225
281
  type TicketContent = {
226
282
  /**
227
- * - Title for ticket
283
+ * - Title for ticket.
228
284
  */
229
285
  title: string;
230
286
  /**
231
- * - Long description of issue
287
+ * - Long description of issue.
232
288
  */
233
289
  description?: string;
234
290
  /**
235
- * - List of all attachments related to the ticket
291
+ * - List of all attachments related to
292
+ * the ticket.
236
293
  */
237
294
  attachments?: TicketAsset[];
238
295
  };
@@ -240,23 +297,26 @@ type TicketContent = {
240
297
  declare function AddTicketPayload(): AddTicketPayload;
241
298
  type AddTicketPayload = {
242
299
  /**
243
- * - Creator of the ticket
300
+ * - Creator of the ticket.
244
301
  */
245
302
  created_by?: any;
246
303
  /**
247
- * - Status of the ticket
304
+ * - Status of the ticket.
248
305
  */
249
306
  status?: string;
250
307
  priority?: PriorityEnum;
251
308
  /**
252
- * - Category of the ticket
309
+ * - Category of the ticket.
253
310
  */
254
311
  category: string;
255
312
  content: TicketContent;
256
313
  /**
257
- * - Optional custom data that needs to be sent
314
+ * - Optional custom data that needs to be sent.
258
315
  */
259
316
  _custom_json?: any;
317
+ /**
318
+ * - List of emails to be informed for ticket updates.
319
+ */
260
320
  subscribers?: string[];
261
321
  };
262
322
  /** @returns {Priority} */
@@ -264,11 +324,11 @@ declare function Priority(): Priority;
264
324
  type Priority = {
265
325
  key: PriorityEnum;
266
326
  /**
267
- * - Display text for priority
327
+ * - Display text for priority.
268
328
  */
269
329
  display: string;
270
330
  /**
271
- * - Color for priority
331
+ * - Color for priority.
272
332
  */
273
333
  color: string;
274
334
  };
@@ -276,15 +336,15 @@ type Priority = {
276
336
  declare function Status(): Status;
277
337
  type Status = {
278
338
  /**
279
- * - Key for status
339
+ * - Key for status.
280
340
  */
281
341
  key: string;
282
342
  /**
283
- * - Display text for status
343
+ * - Display text for status.
284
344
  */
285
345
  display: string;
286
346
  /**
287
- * - Color for status
347
+ * - Color for status.
288
348
  */
289
349
  color: string;
290
350
  };
@@ -292,15 +352,15 @@ type Status = {
292
352
  declare function SubmitButton(): SubmitButton;
293
353
  type SubmitButton = {
294
354
  /**
295
- * - Title for submit button
355
+ * - Title for submit button.
296
356
  */
297
357
  title: string;
298
358
  /**
299
- * - Title color submit button
359
+ * - Title color submit button.
300
360
  */
301
361
  title_color: string;
302
362
  /**
303
- * - Color for submit button
363
+ * - Color for submit button.
304
364
  */
305
365
  background_color: string;
306
366
  };
@@ -308,19 +368,19 @@ type SubmitButton = {
308
368
  declare function PollForAssignment(): PollForAssignment;
309
369
  type PollForAssignment = {
310
370
  /**
311
- * - Duration for polling of staff
371
+ * - Duration for polling of staff.
312
372
  */
313
373
  duration: number;
314
374
  /**
315
- * - Message for polling
375
+ * - Message for polling.
316
376
  */
317
377
  message: string;
318
378
  /**
319
- * - Message for successful polling
379
+ * - Message for successful polling.
320
380
  */
321
381
  success_message: string;
322
382
  /**
323
- * - Message if polling failed
383
+ * - Message if polling failed.
324
384
  */
325
385
  failure_message: string;
326
386
  };
@@ -328,50 +388,51 @@ type PollForAssignment = {
328
388
  declare function CustomForm(): CustomForm;
329
389
  type CustomForm = {
330
390
  /**
331
- * - Application ID for form
391
+ * - Application ID - Identifier for a Sales channel.
332
392
  */
333
393
  application_id: string;
334
394
  /**
335
- * - Slug for the form, which is to be used for accessing the form
395
+ * - Slug for the form, which is to be used for
396
+ * accessing the form.
336
397
  */
337
398
  slug: string;
338
399
  /**
339
- * - Form header image that will be shown to the user
400
+ * - Form header image that will be shown to the user.
340
401
  */
341
402
  header_image?: string;
342
403
  /**
343
- * - Form title that will be shown to the user
404
+ * - Form title that will be shown to the user.
344
405
  */
345
406
  title: string;
346
407
  /**
347
- * - Form description that will be shown to the user
408
+ * - Form description that will be shown to the user.
348
409
  */
349
410
  description?: string;
350
411
  priority: Priority;
351
412
  /**
352
- * - Denotes if login is required to make a
353
- * form response submission
413
+ * - If login is required to make a form
414
+ * response submission.
354
415
  */
355
416
  login_required: boolean;
356
417
  /**
357
- * - Denotes if new response submission for
358
- * the form should be notified to the assignees
418
+ * - If new response submission for the form
419
+ * should be notified to the assignees.
359
420
  */
360
421
  should_notify: boolean;
361
422
  /**
362
423
  * - Message that is to be shown on
363
- * succesfull form response submission
424
+ * successful form response submission.
364
425
  */
365
426
  success_message?: string;
366
427
  submit_button?: SubmitButton;
367
428
  /**
368
- * - List of all the form fields
429
+ * - List of all the form fields.
369
430
  */
370
431
  inputs: any[];
371
432
  created_on?: CreatedOn;
372
433
  poll_for_assignment?: PollForAssignment;
373
434
  /**
374
- * - Unique identifier for the form
435
+ * - Unique identifier for the form.
375
436
  */
376
437
  _id: string;
377
438
  };
@@ -379,15 +440,15 @@ type CustomForm = {
379
440
  declare function FeedbackForm(): FeedbackForm;
380
441
  type FeedbackForm = {
381
442
  /**
382
- * - Input details for the feed back form
443
+ * - Input details for the feedback form.
383
444
  */
384
445
  inputs?: any;
385
446
  /**
386
- * - Title for the feed back form
447
+ * - Title for the feedback form.
387
448
  */
388
449
  title?: string;
389
450
  /**
390
- * - Gives details of category releted data
451
+ * - Timestamp details of feedback form.
391
452
  */
392
453
  timestamps?: any;
393
454
  };
@@ -395,16 +456,16 @@ type FeedbackForm = {
395
456
  declare function TicketCategory(): TicketCategory;
396
457
  type TicketCategory = {
397
458
  /**
398
- * - Category display value identifier
459
+ * - Category display value identifier.
399
460
  */
400
461
  display: string;
401
462
  /**
402
- * - Category key value identifier
463
+ * - Category key value identifier.
403
464
  */
404
465
  key: string;
405
466
  sub_categories?: TicketCategory;
406
467
  /**
407
- * - Group id of category releted data
468
+ * - Group id of category related data.
408
469
  */
409
470
  group_id?: number;
410
471
  feedback_form?: FeedbackForm;
@@ -413,32 +474,32 @@ type TicketCategory = {
413
474
  declare function TicketHistory(): TicketHistory;
414
475
  type TicketHistory = {
415
476
  /**
416
- * - Type of the history event
477
+ * - Type of the history event.
417
478
  */
418
479
  type: string;
419
480
  /**
420
- * - Data of the history event
481
+ * - Data of the history event.
421
482
  */
422
483
  value: any;
423
484
  /**
424
- * - Readable ticket number
485
+ * - Readable ticket number.
425
486
  */
426
487
  ticket_id: string;
427
488
  created_on?: CreatedOn;
428
489
  /**
429
- * - User who created the history event
490
+ * - User who created the history event.
430
491
  */
431
492
  created_by?: any;
432
493
  /**
433
- * - Unique identifier of the history event
494
+ * - Unique identifier of the history event.
434
495
  */
435
496
  _id: string;
436
497
  /**
437
- * - Time of last update of the history event
498
+ * - Time of last update of the history event.
438
499
  */
439
500
  updated_at?: string;
440
501
  /**
441
- * - Time of creation of the history event
502
+ * - Time of creation of the history event.
442
503
  */
443
504
  created_at?: string;
444
505
  };
@@ -448,54 +509,54 @@ type Ticket = {
448
509
  context?: TicketContext;
449
510
  created_on?: CreatedOn;
450
511
  /**
451
- * - Details of company and application
452
- * realated to the ticket
512
+ * - Details of company and application related
513
+ * to the ticket.
453
514
  */
454
515
  response_id?: string;
455
516
  content?: TicketContent;
456
517
  category: TicketCategory;
457
518
  /**
458
- * - Sub-category assigned to the ticket
519
+ * - Sub-category assigned to the ticket.
459
520
  */
460
521
  sub_category?: string;
461
522
  source: TicketSourceEnum;
462
523
  status: Status;
463
524
  priority: Priority;
464
525
  /**
465
- * - User details of ticket creator
526
+ * - User details of ticket creator.
466
527
  */
467
528
  created_by?: any;
468
529
  /**
469
- * - Details of support staff to whom ticket is assigned
530
+ * - Details of support staff to whom ticket is assigned.
470
531
  */
471
532
  assigned_to?: any;
472
533
  /**
473
- * - Tags relevant to ticket
534
+ * - Tags relevant to ticket.
474
535
  */
475
536
  tags?: string[];
476
537
  /**
477
- * - Custom json relevant to the ticket
538
+ * - Custom json relevant to the ticket.
478
539
  */
479
540
  _custom_json?: any;
480
541
  /**
481
- * - Denotes if feedback submission is
482
- * pending for the ticket
542
+ * - If feedback submission is pending
543
+ * for the ticket.
483
544
  */
484
545
  is_feedback_pending?: boolean;
485
546
  /**
486
- * - Integration type and its details of the ticket
547
+ * - Integration type and its details of the ticket.
487
548
  */
488
549
  integration?: any;
489
550
  /**
490
- * - Unique identifier for the ticket
551
+ * - Unique identifier for the ticket.
491
552
  */
492
553
  _id: string;
493
554
  /**
494
- * - Time when the ticket was last updated
555
+ * - Time when the ticket was last updated.
495
556
  */
496
557
  updated_at?: string;
497
558
  /**
498
- * - Time when the ticket was created
559
+ * - Time when the ticket was created.
499
560
  */
500
561
  created_at?: string;
501
562
  };