@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
  56. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
  57. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  58. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  59. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  60. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  61. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  62. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  67. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  68. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  69. package/sdk/partner/PartnerClient.d.ts +6 -0
  70. package/sdk/partner/PartnerClient.js +9 -0
  71. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  73. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  74. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  75. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  76. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  77. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  78. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  79. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  80. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  81. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  87. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  89. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  97. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  122. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  123. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  124. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  125. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  126. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  127. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
  128. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
  129. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
  130. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  131. package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
  133. package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
  134. package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
  135. package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
  136. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  137. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  138. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  139. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  142. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  143. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
  145. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
  146. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  147. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  148. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  149. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  150. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  151. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  157. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  163. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  165. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  167. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  168. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  169. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  170. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  171. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  172. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  173. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  174. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  175. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  176. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/PlatformApplicationClient.js +4 -4
  178. package/sdk/platform/PlatformClient.d.ts +4 -2
  179. package/sdk/platform/PlatformClient.js +8 -4
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  190. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  191. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  192. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  193. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  194. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  195. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  196. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  197. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  198. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  199. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  200. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  201. package/sdk/platform/User/UserPlatformModel.js +256 -5
  202. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  203. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  204. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  205. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  206. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  207. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  208. package/sdk/platform/index.d.ts +1 -1
  209. package/sdk/platform/index.js +2 -2
  210. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  211. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  212. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  213. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  214. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  215. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  216. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  217. package/sdk/public/Content/ContentPublicClient.js +114 -0
  218. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  219. package/sdk/public/Content/ContentPublicModel.js +60 -0
  220. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  221. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  222. package/sdk/public/PublicClient.d.ts +4 -0
  223. package/sdk/public/PublicClient.js +8 -0
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  225. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  227. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  230. package/sdk/public/index.d.ts +2 -0
  231. package/sdk/public/index.js +4 -0
@@ -93,6 +93,12 @@ const FinancePlatformModel = require("./FinancePlatformModel");
93
93
  * @property {string} [affiliateId] - Affiliate id.
94
94
  */
95
95
 
96
+ /**
97
+ * @typedef InvoiceActivityLogsParam
98
+ * @property {string} invoiceNumber - Invoice Number for which the data will be
99
+ * returned. Invoice_number is required.
100
+ */
101
+
96
102
  /**
97
103
  * @typedef InvoiceListingParam
98
104
  * @property {FinancePlatformModel.InvoiceListingRequest} body
@@ -103,6 +109,12 @@ const FinancePlatformModel = require("./FinancePlatformModel");
103
109
  * @property {FinancePlatformModel.InvoicePdfRequest} body
104
110
  */
105
111
 
112
+ /**
113
+ * @typedef InvoicePaymentDetailsParam
114
+ * @property {string} invoiceNumber - Invoice Number for which the data will be
115
+ * returned.Invoice_Number is required.
116
+ */
117
+
106
118
  /**
107
119
  * @typedef InvoiceTypeParam
108
120
  * @property {FinancePlatformModel.InvoiceTypeRequest} body
@@ -123,6 +135,11 @@ const FinancePlatformModel = require("./FinancePlatformModel");
123
135
  * @property {FinancePlatformModel.PaymentProcessRequest} body
124
136
  */
125
137
 
138
+ /**
139
+ * @typedef UnlockCreditNoteParam
140
+ * @property {FinancePlatformModel.UnlockCreditNoteRequest} body
141
+ */
142
+
126
143
  class FinancePlatformValidator {
127
144
  /** @returns {ChannelDisplayNameParam} */
128
145
  static channelDisplayName() {
@@ -251,6 +268,13 @@ class FinancePlatformValidator {
251
268
  }).required();
252
269
  }
253
270
 
271
+ /** @returns {InvoiceActivityLogsParam} */
272
+ static invoiceActivityLogs() {
273
+ return Joi.object({
274
+ invoiceNumber: Joi.string().allow("").required(),
275
+ }).required();
276
+ }
277
+
254
278
  /** @returns {InvoiceListingParam} */
255
279
  static invoiceListing() {
256
280
  return Joi.object({
@@ -265,6 +289,13 @@ class FinancePlatformValidator {
265
289
  }).required();
266
290
  }
267
291
 
292
+ /** @returns {InvoicePaymentDetailsParam} */
293
+ static invoicePaymentDetails() {
294
+ return Joi.object({
295
+ invoiceNumber: Joi.string().allow("").required(),
296
+ }).required();
297
+ }
298
+
268
299
  /** @returns {InvoiceTypeParam} */
269
300
  static invoiceType() {
270
301
  return Joi.object({
@@ -292,6 +323,13 @@ class FinancePlatformValidator {
292
323
  body: FinancePlatformModel.PaymentProcessRequest().required(),
293
324
  }).required();
294
325
  }
326
+
327
+ /** @returns {UnlockCreditNoteParam} */
328
+ static unlockCreditNote() {
329
+ return Joi.object({
330
+ body: FinancePlatformModel.UnlockCreditNoteRequest().required(),
331
+ }).required();
332
+ }
295
333
  }
296
334
 
297
335
  module.exports = FinancePlatformValidator;
@@ -24,15 +24,25 @@ declare class Lead {
24
24
  */
25
25
  createCustomForm({ body, requestHeaders }?: LeadPlatformApplicationValidator.CreateCustomFormParam, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomForm>;
26
26
  /**
27
- * @param {LeadPlatformApplicationValidator.CreateHistoryParam} arg - Arg object
27
+ * @param {LeadPlatformApplicationValidator.CreateNewHistoryParam} arg - Arg object
28
28
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
29
29
  * @param {import("../PlatformAPIClient").Options} - Options
30
30
  * @returns {Promise<LeadPlatformModel.TicketHistory>} - Success response
31
- * @name createHistory
31
+ * @name createNewHistory
32
32
  * @summary: Create history for specific application level ticket
33
- * @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/createHistory/).
33
+ * @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/createNewHistory/).
34
34
  */
35
- createHistory({ id, body, requestHeaders }?: LeadPlatformApplicationValidator.CreateHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistory>;
35
+ createNewHistory({ id, body, requestHeaders }?: LeadPlatformApplicationValidator.CreateNewHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistory>;
36
+ /**
37
+ * @param {LeadPlatformApplicationValidator.DeleteCustomFormParam} arg - Arg object
38
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
39
+ * @param {import("../PlatformAPIClient").Options} - Options
40
+ * @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
41
+ * @name deleteCustomForm
42
+ * @summary: Delete a custom form
43
+ * @description: Delete a custom form using it's slug - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/deleteCustomForm/).
44
+ */
45
+ deleteCustomForm({ slug, requestHeaders }?: LeadPlatformApplicationValidator.DeleteCustomFormParam, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomForm>;
36
46
  /**
37
47
  * @param {LeadPlatformApplicationValidator.EditCustomFormParam} arg - Arg object
38
48
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -44,15 +54,15 @@ declare class Lead {
44
54
  */
45
55
  editCustomForm({ slug, body, requestHeaders }?: LeadPlatformApplicationValidator.EditCustomFormParam, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomForm>;
46
56
  /**
47
- * @param {LeadPlatformApplicationValidator.EditTicketParam} arg - Arg object
57
+ * @param {LeadPlatformApplicationValidator.EditNewTicketParam} arg - Arg object
48
58
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
49
59
  * @param {import("../PlatformAPIClient").Options} - Options
50
60
  * @returns {Promise<LeadPlatformModel.Ticket>} - Success response
51
- * @name editTicket
61
+ * @name editNewTicket
52
62
  * @summary: Edits ticket details of a application level ticket
53
- * @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/editTicket/).
63
+ * @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/editNewTicket/).
54
64
  */
55
- editTicket({ id, body, requestHeaders }?: LeadPlatformApplicationValidator.EditTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
65
+ editNewTicket({ id, body, requestHeaders }?: LeadPlatformApplicationValidator.EditNewTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
56
66
  /**
57
67
  * @param {LeadPlatformApplicationValidator.GetCustomFormParam} arg - Arg object
58
68
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -74,50 +84,50 @@ declare class Lead {
74
84
  */
75
85
  getCustomForms({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomFormList>;
76
86
  /**
77
- * @param {LeadPlatformApplicationValidator.GetTicketParam} arg - Arg object
87
+ * @param {LeadPlatformApplicationValidator.GetNewTicketParam} arg - Arg object
78
88
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
79
89
  * @param {import("../PlatformAPIClient").Options} - Options
80
90
  * @returns {Promise<LeadPlatformModel.Ticket>} - Success response
81
- * @name getTicket
91
+ * @name getNewTicket
82
92
  * @summary: Retreives ticket details of a application level ticket
83
- * @description: Retreives ticket details of a application level ticket with ticket ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTicket/).
93
+ * @description: Retreives ticket details of a application level ticket with ticket ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTicket/).
84
94
  */
85
- getTicket({ id, requestHeaders }?: LeadPlatformApplicationValidator.GetTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
95
+ getNewTicket({ id, requestHeaders }?: LeadPlatformApplicationValidator.GetNewTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
86
96
  /**
87
- * @param {LeadPlatformApplicationValidator.GetTicketHistoryParam} arg - Arg object
97
+ * @param {LeadPlatformApplicationValidator.GetNewTicketHistoryParam} arg - Arg object
88
98
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
89
99
  * @param {import("../PlatformAPIClient").Options} - Options
90
100
  * @returns {Promise<LeadPlatformModel.TicketHistoryList>} - Success response
91
- * @name getTicketHistory
101
+ * @name getNewTicketHistory
92
102
  * @summary: Gets history list for specific application level ticket
93
- * @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTicketHistory/).
103
+ * @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTicketHistory/).
94
104
  */
95
- getTicketHistory({ id, requestHeaders }?: LeadPlatformApplicationValidator.GetTicketHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistoryList>;
105
+ getNewTicketHistory({ id, requestHeaders }?: LeadPlatformApplicationValidator.GetNewTicketHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistoryList>;
96
106
  /**
97
- * @param {LeadPlatformApplicationValidator.GetTicketsParam} arg - Arg object
107
+ * @param {LeadPlatformApplicationValidator.GetNewTicketsParam} arg - Arg object
98
108
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
99
109
  * @param {import("../PlatformAPIClient").Options} - Options
100
110
  * @returns {Promise<LeadPlatformModel.TicketList>} - Success response
101
- * @name getTickets
111
+ * @name getNewTickets
102
112
  * @summary: Gets the list of Application level Tickets and/or ticket filters depending on query params
103
- * @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTickets/).
113
+ * @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTickets/).
104
114
  */
105
- getTickets({ items, filters, q, status, priority, category, requestHeaders }?: LeadPlatformApplicationValidator.GetTicketsParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketList>;
115
+ getNewTickets({ items, filters, q, status, priority, category, requestHeaders }?: LeadPlatformApplicationValidator.GetNewTicketsParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketList>;
106
116
  /**
107
- * @param {LeadPlatformApplicationValidator.GetTokenForVideoRoomParam} arg
117
+ * @param {LeadPlatformApplicationValidator.GetNewTokenForVideoRoomParam} arg
108
118
  * - Arg object
109
119
  *
110
120
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
121
  * @param {import("../PlatformAPIClient").Options} - Options
112
122
  * @returns {Promise<LeadPlatformModel.GetTokenForVideoRoomResponse>} -
113
123
  * Success response
114
- * @name getTokenForVideoRoom
124
+ * @name getNewTokenForVideoRoom
115
125
  * @summary: Get Token to join a specific Video Room using it's unqiue name
116
- * @description: Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTokenForVideoRoom/).
126
+ * @description: Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTokenForVideoRoom/).
117
127
  */
118
- getTokenForVideoRoom({ uniqueName, requestHeaders }?: LeadPlatformApplicationValidator.GetTokenForVideoRoomParam, { responseHeaders }?: object): Promise<LeadPlatformModel.GetTokenForVideoRoomResponse>;
128
+ getNewTokenForVideoRoom({ uniqueName, requestHeaders }?: LeadPlatformApplicationValidator.GetNewTokenForVideoRoomParam, { responseHeaders }?: object): Promise<LeadPlatformModel.GetTokenForVideoRoomResponse>;
119
129
  /**
120
- * @param {LeadPlatformApplicationValidator.GetVideoParticipantsParam} arg
130
+ * @param {LeadPlatformApplicationValidator.GetNewVideoParticipantsParam} arg
121
131
  * - Arg object
122
132
  *
123
133
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -125,11 +135,11 @@ declare class Lead {
125
135
  * @returns {Promise<LeadPlatformModel.GetParticipantsInsideVideoRoomResponse>}
126
136
  * - Success response
127
137
  *
128
- * @name getVideoParticipants
138
+ * @name getNewVideoParticipants
129
139
  * @summary: Get participants of a specific Video Room using it's unique name
130
- * @description: Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getVideoParticipants/).
140
+ * @description: Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewVideoParticipants/).
131
141
  */
132
- getVideoParticipants({ uniqueName, requestHeaders }?: LeadPlatformApplicationValidator.GetVideoParticipantsParam, { responseHeaders }?: object): Promise<LeadPlatformModel.GetParticipantsInsideVideoRoomResponse>;
142
+ getNewVideoParticipants({ uniqueName, requestHeaders }?: LeadPlatformApplicationValidator.GetNewVideoParticipantsParam, { responseHeaders }?: object): Promise<LeadPlatformModel.GetParticipantsInsideVideoRoomResponse>;
133
143
  /**
134
144
  * @param {LeadPlatformApplicationValidator.OpenVideoRoomParam} arg - Arg object
135
145
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -171,19 +171,21 @@ class Lead {
171
171
  }
172
172
 
173
173
  /**
174
- * @param {LeadPlatformApplicationValidator.CreateHistoryParam} arg - Arg object
174
+ * @param {LeadPlatformApplicationValidator.CreateNewHistoryParam} arg - Arg object
175
175
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
176
176
  * @param {import("../PlatformAPIClient").Options} - Options
177
177
  * @returns {Promise<LeadPlatformModel.TicketHistory>} - Success response
178
- * @name createHistory
178
+ * @name createNewHistory
179
179
  * @summary: Create history for specific application level ticket
180
- * @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/createHistory/).
180
+ * @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/createNewHistory/).
181
181
  */
182
- async createHistory(
182
+ async createNewHistory(
183
183
  { id, body, requestHeaders } = { requestHeaders: {} },
184
184
  { responseHeaders } = { responseHeaders: false }
185
185
  ) {
186
- const { error } = LeadPlatformApplicationValidator.createHistory().validate(
186
+ const {
187
+ error,
188
+ } = LeadPlatformApplicationValidator.createNewHistory().validate(
187
189
  {
188
190
  id,
189
191
  body,
@@ -197,7 +199,7 @@ class Lead {
197
199
  // Showing warrnings if extra unknown parameters are found
198
200
  const {
199
201
  error: warrning,
200
- } = LeadPlatformApplicationValidator.createHistory().validate(
202
+ } = LeadPlatformApplicationValidator.createNewHistory().validate(
201
203
  {
202
204
  id,
203
205
  body,
@@ -207,7 +209,7 @@ class Lead {
207
209
  if (warrning) {
208
210
  Logger({
209
211
  level: "WARN",
210
- message: `Parameter Validation warrnings for platform > Lead > createHistory \n ${warrning}`,
212
+ message: `Parameter Validation warrnings for platform > Lead > createNewHistory \n ${warrning}`,
211
213
  });
212
214
  }
213
215
 
@@ -241,7 +243,86 @@ class Lead {
241
243
  } else {
242
244
  Logger({
243
245
  level: "WARN",
244
- message: `Response Validation Warnings for platform > Lead > createHistory \n ${res_error}`,
246
+ message: `Response Validation Warnings for platform > Lead > createNewHistory \n ${res_error}`,
247
+ });
248
+ }
249
+ }
250
+
251
+ return response;
252
+ }
253
+
254
+ /**
255
+ * @param {LeadPlatformApplicationValidator.DeleteCustomFormParam} arg - Arg object
256
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
257
+ * @param {import("../PlatformAPIClient").Options} - Options
258
+ * @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
259
+ * @name deleteCustomForm
260
+ * @summary: Delete a custom form
261
+ * @description: Delete a custom form using it's slug - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/deleteCustomForm/).
262
+ */
263
+ async deleteCustomForm(
264
+ { slug, requestHeaders } = { requestHeaders: {} },
265
+ { responseHeaders } = { responseHeaders: false }
266
+ ) {
267
+ const {
268
+ error,
269
+ } = LeadPlatformApplicationValidator.deleteCustomForm().validate(
270
+ {
271
+ slug,
272
+ },
273
+ { abortEarly: false, allowUnknown: true }
274
+ );
275
+ if (error) {
276
+ return Promise.reject(new FDKClientValidationError(error));
277
+ }
278
+
279
+ // Showing warrnings if extra unknown parameters are found
280
+ const {
281
+ error: warrning,
282
+ } = LeadPlatformApplicationValidator.deleteCustomForm().validate(
283
+ {
284
+ slug,
285
+ },
286
+ { abortEarly: false, allowUnknown: false }
287
+ );
288
+ if (warrning) {
289
+ Logger({
290
+ level: "WARN",
291
+ message: `Parameter Validation warrnings for platform > Lead > deleteCustomForm \n ${warrning}`,
292
+ });
293
+ }
294
+
295
+ const query_params = {};
296
+
297
+ const response = await PlatformAPIClient.execute(
298
+ this.config,
299
+ "delete",
300
+ `/service/platform/lead/v1.0/company/${this.config.companyId}/application/${this.applicationId}/form/${slug}`,
301
+ query_params,
302
+ undefined,
303
+ requestHeaders,
304
+ { responseHeaders }
305
+ );
306
+
307
+ let responseData = response;
308
+ if (responseHeaders) {
309
+ responseData = response[0];
310
+ }
311
+
312
+ const {
313
+ error: res_error,
314
+ } = LeadPlatformModel.CustomForm().validate(responseData, {
315
+ abortEarly: false,
316
+ allowUnknown: true,
317
+ });
318
+
319
+ if (res_error) {
320
+ if (this.config.options.strictResponseCheck === true) {
321
+ return Promise.reject(new FDKResponseValidationError(res_error));
322
+ } else {
323
+ Logger({
324
+ level: "WARN",
325
+ message: `Response Validation Warnings for platform > Lead > deleteCustomForm \n ${res_error}`,
245
326
  });
246
327
  }
247
328
  }
@@ -331,19 +412,19 @@ class Lead {
331
412
  }
332
413
 
333
414
  /**
334
- * @param {LeadPlatformApplicationValidator.EditTicketParam} arg - Arg object
415
+ * @param {LeadPlatformApplicationValidator.EditNewTicketParam} arg - Arg object
335
416
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
336
417
  * @param {import("../PlatformAPIClient").Options} - Options
337
418
  * @returns {Promise<LeadPlatformModel.Ticket>} - Success response
338
- * @name editTicket
419
+ * @name editNewTicket
339
420
  * @summary: Edits ticket details of a application level ticket
340
- * @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/editTicket/).
421
+ * @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/editNewTicket/).
341
422
  */
342
- async editTicket(
423
+ async editNewTicket(
343
424
  { id, body, requestHeaders } = { requestHeaders: {} },
344
425
  { responseHeaders } = { responseHeaders: false }
345
426
  ) {
346
- const { error } = LeadPlatformApplicationValidator.editTicket().validate(
427
+ const { error } = LeadPlatformApplicationValidator.editNewTicket().validate(
347
428
  {
348
429
  id,
349
430
  body,
@@ -357,7 +438,7 @@ class Lead {
357
438
  // Showing warrnings if extra unknown parameters are found
358
439
  const {
359
440
  error: warrning,
360
- } = LeadPlatformApplicationValidator.editTicket().validate(
441
+ } = LeadPlatformApplicationValidator.editNewTicket().validate(
361
442
  {
362
443
  id,
363
444
  body,
@@ -367,7 +448,7 @@ class Lead {
367
448
  if (warrning) {
368
449
  Logger({
369
450
  level: "WARN",
370
- message: `Parameter Validation warrnings for platform > Lead > editTicket \n ${warrning}`,
451
+ message: `Parameter Validation warrnings for platform > Lead > editNewTicket \n ${warrning}`,
371
452
  });
372
453
  }
373
454
 
@@ -401,7 +482,7 @@ class Lead {
401
482
  } else {
402
483
  Logger({
403
484
  level: "WARN",
404
- message: `Response Validation Warnings for platform > Lead > editTicket \n ${res_error}`,
485
+ message: `Response Validation Warnings for platform > Lead > editNewTicket \n ${res_error}`,
405
486
  });
406
487
  }
407
488
  }
@@ -562,19 +643,19 @@ class Lead {
562
643
  }
563
644
 
564
645
  /**
565
- * @param {LeadPlatformApplicationValidator.GetTicketParam} arg - Arg object
646
+ * @param {LeadPlatformApplicationValidator.GetNewTicketParam} arg - Arg object
566
647
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
567
648
  * @param {import("../PlatformAPIClient").Options} - Options
568
649
  * @returns {Promise<LeadPlatformModel.Ticket>} - Success response
569
- * @name getTicket
650
+ * @name getNewTicket
570
651
  * @summary: Retreives ticket details of a application level ticket
571
- * @description: Retreives ticket details of a application level ticket with ticket ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTicket/).
652
+ * @description: Retreives ticket details of a application level ticket with ticket ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTicket/).
572
653
  */
573
- async getTicket(
654
+ async getNewTicket(
574
655
  { id, requestHeaders } = { requestHeaders: {} },
575
656
  { responseHeaders } = { responseHeaders: false }
576
657
  ) {
577
- const { error } = LeadPlatformApplicationValidator.getTicket().validate(
658
+ const { error } = LeadPlatformApplicationValidator.getNewTicket().validate(
578
659
  {
579
660
  id,
580
661
  },
@@ -587,7 +668,7 @@ class Lead {
587
668
  // Showing warrnings if extra unknown parameters are found
588
669
  const {
589
670
  error: warrning,
590
- } = LeadPlatformApplicationValidator.getTicket().validate(
671
+ } = LeadPlatformApplicationValidator.getNewTicket().validate(
591
672
  {
592
673
  id,
593
674
  },
@@ -596,7 +677,7 @@ class Lead {
596
677
  if (warrning) {
597
678
  Logger({
598
679
  level: "WARN",
599
- message: `Parameter Validation warrnings for platform > Lead > getTicket \n ${warrning}`,
680
+ message: `Parameter Validation warrnings for platform > Lead > getNewTicket \n ${warrning}`,
600
681
  });
601
682
  }
602
683
 
@@ -630,7 +711,7 @@ class Lead {
630
711
  } else {
631
712
  Logger({
632
713
  level: "WARN",
633
- message: `Response Validation Warnings for platform > Lead > getTicket \n ${res_error}`,
714
+ message: `Response Validation Warnings for platform > Lead > getNewTicket \n ${res_error}`,
634
715
  });
635
716
  }
636
717
  }
@@ -639,21 +720,21 @@ class Lead {
639
720
  }
640
721
 
641
722
  /**
642
- * @param {LeadPlatformApplicationValidator.GetTicketHistoryParam} arg - Arg object
723
+ * @param {LeadPlatformApplicationValidator.GetNewTicketHistoryParam} arg - Arg object
643
724
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
644
725
  * @param {import("../PlatformAPIClient").Options} - Options
645
726
  * @returns {Promise<LeadPlatformModel.TicketHistoryList>} - Success response
646
- * @name getTicketHistory
727
+ * @name getNewTicketHistory
647
728
  * @summary: Gets history list for specific application level ticket
648
- * @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTicketHistory/).
729
+ * @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTicketHistory/).
649
730
  */
650
- async getTicketHistory(
731
+ async getNewTicketHistory(
651
732
  { id, requestHeaders } = { requestHeaders: {} },
652
733
  { responseHeaders } = { responseHeaders: false }
653
734
  ) {
654
735
  const {
655
736
  error,
656
- } = LeadPlatformApplicationValidator.getTicketHistory().validate(
737
+ } = LeadPlatformApplicationValidator.getNewTicketHistory().validate(
657
738
  {
658
739
  id,
659
740
  },
@@ -666,7 +747,7 @@ class Lead {
666
747
  // Showing warrnings if extra unknown parameters are found
667
748
  const {
668
749
  error: warrning,
669
- } = LeadPlatformApplicationValidator.getTicketHistory().validate(
750
+ } = LeadPlatformApplicationValidator.getNewTicketHistory().validate(
670
751
  {
671
752
  id,
672
753
  },
@@ -675,7 +756,7 @@ class Lead {
675
756
  if (warrning) {
676
757
  Logger({
677
758
  level: "WARN",
678
- message: `Parameter Validation warrnings for platform > Lead > getTicketHistory \n ${warrning}`,
759
+ message: `Parameter Validation warrnings for platform > Lead > getNewTicketHistory \n ${warrning}`,
679
760
  });
680
761
  }
681
762
 
@@ -709,7 +790,7 @@ class Lead {
709
790
  } else {
710
791
  Logger({
711
792
  level: "WARN",
712
- message: `Response Validation Warnings for platform > Lead > getTicketHistory \n ${res_error}`,
793
+ message: `Response Validation Warnings for platform > Lead > getNewTicketHistory \n ${res_error}`,
713
794
  });
714
795
  }
715
796
  }
@@ -718,21 +799,21 @@ class Lead {
718
799
  }
719
800
 
720
801
  /**
721
- * @param {LeadPlatformApplicationValidator.GetTicketsParam} arg - Arg object
802
+ * @param {LeadPlatformApplicationValidator.GetNewTicketsParam} arg - Arg object
722
803
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
723
804
  * @param {import("../PlatformAPIClient").Options} - Options
724
805
  * @returns {Promise<LeadPlatformModel.TicketList>} - Success response
725
- * @name getTickets
806
+ * @name getNewTickets
726
807
  * @summary: Gets the list of Application level Tickets and/or ticket filters depending on query params
727
- * @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTickets/).
808
+ * @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTickets/).
728
809
  */
729
- async getTickets(
810
+ async getNewTickets(
730
811
  { items, filters, q, status, priority, category, requestHeaders } = {
731
812
  requestHeaders: {},
732
813
  },
733
814
  { responseHeaders } = { responseHeaders: false }
734
815
  ) {
735
- const { error } = LeadPlatformApplicationValidator.getTickets().validate(
816
+ const { error } = LeadPlatformApplicationValidator.getNewTickets().validate(
736
817
  {
737
818
  items,
738
819
  filters,
@@ -750,7 +831,7 @@ class Lead {
750
831
  // Showing warrnings if extra unknown parameters are found
751
832
  const {
752
833
  error: warrning,
753
- } = LeadPlatformApplicationValidator.getTickets().validate(
834
+ } = LeadPlatformApplicationValidator.getNewTickets().validate(
754
835
  {
755
836
  items,
756
837
  filters,
@@ -764,7 +845,7 @@ class Lead {
764
845
  if (warrning) {
765
846
  Logger({
766
847
  level: "WARN",
767
- message: `Parameter Validation warrnings for platform > Lead > getTickets \n ${warrning}`,
848
+ message: `Parameter Validation warrnings for platform > Lead > getNewTickets \n ${warrning}`,
768
849
  });
769
850
  }
770
851
 
@@ -804,7 +885,7 @@ class Lead {
804
885
  } else {
805
886
  Logger({
806
887
  level: "WARN",
807
- message: `Response Validation Warnings for platform > Lead > getTickets \n ${res_error}`,
888
+ message: `Response Validation Warnings for platform > Lead > getNewTickets \n ${res_error}`,
808
889
  });
809
890
  }
810
891
  }
@@ -813,24 +894,24 @@ class Lead {
813
894
  }
814
895
 
815
896
  /**
816
- * @param {LeadPlatformApplicationValidator.GetTokenForVideoRoomParam} arg
897
+ * @param {LeadPlatformApplicationValidator.GetNewTokenForVideoRoomParam} arg
817
898
  * - Arg object
818
899
  *
819
900
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
820
901
  * @param {import("../PlatformAPIClient").Options} - Options
821
902
  * @returns {Promise<LeadPlatformModel.GetTokenForVideoRoomResponse>} -
822
903
  * Success response
823
- * @name getTokenForVideoRoom
904
+ * @name getNewTokenForVideoRoom
824
905
  * @summary: Get Token to join a specific Video Room using it's unqiue name
825
- * @description: Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getTokenForVideoRoom/).
906
+ * @description: Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewTokenForVideoRoom/).
826
907
  */
827
- async getTokenForVideoRoom(
908
+ async getNewTokenForVideoRoom(
828
909
  { uniqueName, requestHeaders } = { requestHeaders: {} },
829
910
  { responseHeaders } = { responseHeaders: false }
830
911
  ) {
831
912
  const {
832
913
  error,
833
- } = LeadPlatformApplicationValidator.getTokenForVideoRoom().validate(
914
+ } = LeadPlatformApplicationValidator.getNewTokenForVideoRoom().validate(
834
915
  {
835
916
  uniqueName,
836
917
  },
@@ -843,7 +924,7 @@ class Lead {
843
924
  // Showing warrnings if extra unknown parameters are found
844
925
  const {
845
926
  error: warrning,
846
- } = LeadPlatformApplicationValidator.getTokenForVideoRoom().validate(
927
+ } = LeadPlatformApplicationValidator.getNewTokenForVideoRoom().validate(
847
928
  {
848
929
  uniqueName,
849
930
  },
@@ -852,7 +933,7 @@ class Lead {
852
933
  if (warrning) {
853
934
  Logger({
854
935
  level: "WARN",
855
- message: `Parameter Validation warrnings for platform > Lead > getTokenForVideoRoom \n ${warrning}`,
936
+ message: `Parameter Validation warrnings for platform > Lead > getNewTokenForVideoRoom \n ${warrning}`,
856
937
  });
857
938
  }
858
939
 
@@ -886,7 +967,7 @@ class Lead {
886
967
  } else {
887
968
  Logger({
888
969
  level: "WARN",
889
- message: `Response Validation Warnings for platform > Lead > getTokenForVideoRoom \n ${res_error}`,
970
+ message: `Response Validation Warnings for platform > Lead > getNewTokenForVideoRoom \n ${res_error}`,
890
971
  });
891
972
  }
892
973
  }
@@ -895,7 +976,7 @@ class Lead {
895
976
  }
896
977
 
897
978
  /**
898
- * @param {LeadPlatformApplicationValidator.GetVideoParticipantsParam} arg
979
+ * @param {LeadPlatformApplicationValidator.GetNewVideoParticipantsParam} arg
899
980
  * - Arg object
900
981
  *
901
982
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -903,17 +984,17 @@ class Lead {
903
984
  * @returns {Promise<LeadPlatformModel.GetParticipantsInsideVideoRoomResponse>}
904
985
  * - Success response
905
986
  *
906
- * @name getVideoParticipants
987
+ * @name getNewVideoParticipants
907
988
  * @summary: Get participants of a specific Video Room using it's unique name
908
- * @description: Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getVideoParticipants/).
989
+ * @description: Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getNewVideoParticipants/).
909
990
  */
910
- async getVideoParticipants(
991
+ async getNewVideoParticipants(
911
992
  { uniqueName, requestHeaders } = { requestHeaders: {} },
912
993
  { responseHeaders } = { responseHeaders: false }
913
994
  ) {
914
995
  const {
915
996
  error,
916
- } = LeadPlatformApplicationValidator.getVideoParticipants().validate(
997
+ } = LeadPlatformApplicationValidator.getNewVideoParticipants().validate(
917
998
  {
918
999
  uniqueName,
919
1000
  },
@@ -926,7 +1007,7 @@ class Lead {
926
1007
  // Showing warrnings if extra unknown parameters are found
927
1008
  const {
928
1009
  error: warrning,
929
- } = LeadPlatformApplicationValidator.getVideoParticipants().validate(
1010
+ } = LeadPlatformApplicationValidator.getNewVideoParticipants().validate(
930
1011
  {
931
1012
  uniqueName,
932
1013
  },
@@ -935,7 +1016,7 @@ class Lead {
935
1016
  if (warrning) {
936
1017
  Logger({
937
1018
  level: "WARN",
938
- message: `Parameter Validation warrnings for platform > Lead > getVideoParticipants \n ${warrning}`,
1019
+ message: `Parameter Validation warrnings for platform > Lead > getNewVideoParticipants \n ${warrning}`,
939
1020
  });
940
1021
  }
941
1022
 
@@ -969,7 +1050,7 @@ class Lead {
969
1050
  } else {
970
1051
  Logger({
971
1052
  level: "WARN",
972
- message: `Response Validation Warnings for platform > Lead > getVideoParticipants \n ${res_error}`,
1053
+ message: `Response Validation Warnings for platform > Lead > getNewVideoParticipants \n ${res_error}`,
973
1054
  });
974
1055
  }
975
1056
  }