@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.3.11-beta.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 (229) 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/Lead/LeadPartnerClient.d.ts +125 -0
  56. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  58. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  59. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  60. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  62. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  67. package/sdk/partner/PartnerClient.d.ts +6 -0
  68. package/sdk/partner/PartnerClient.js +9 -0
  69. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  70. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  71. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  72. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  73. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  74. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  75. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  76. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  77. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  78. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  79. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  80. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  81. package/sdk/partner/index.d.ts +3 -0
  82. package/sdk/partner/index.js +6 -0
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  85. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  86. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  87. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  88. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  89. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  90. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  91. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  92. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  93. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  94. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  95. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  100. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  101. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  102. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  103. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  104. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  105. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  106. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  110. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  111. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  112. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  113. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  118. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  119. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  120. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  121. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  122. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  123. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  124. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  125. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
  126. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
  127. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
  128. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  129. package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
  130. package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
  131. package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
  132. package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
  133. package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  145. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  147. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  150. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  151. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  152. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  153. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  154. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  155. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  156. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  158. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  160. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  161. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  162. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  163. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  164. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  165. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  166. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  167. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  168. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  169. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  170. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  171. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  172. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  173. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  174. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  175. package/sdk/platform/PlatformApplicationClient.js +4 -4
  176. package/sdk/platform/PlatformClient.d.ts +4 -2
  177. package/sdk/platform/PlatformClient.js +8 -4
  178. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  179. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  188. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  189. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  190. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  191. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  192. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  193. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  194. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  195. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  196. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  197. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  198. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  199. package/sdk/platform/User/UserPlatformModel.js +256 -5
  200. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  201. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  202. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  203. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  204. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  205. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  206. package/sdk/platform/index.d.ts +1 -1
  207. package/sdk/platform/index.js +2 -2
  208. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  209. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  210. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  211. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  212. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  213. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  214. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  215. package/sdk/public/Content/ContentPublicClient.js +114 -0
  216. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  217. package/sdk/public/Content/ContentPublicModel.js +60 -0
  218. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  219. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  220. package/sdk/public/PublicClient.d.ts +4 -0
  221. package/sdk/public/PublicClient.js +8 -0
  222. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  223. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  224. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  225. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  226. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  227. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  228. package/sdk/public/index.d.ts +2 -0
  229. package/sdk/public/index.js +4 -0
@@ -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
  }
@@ -8,17 +8,21 @@ export = LeadPlatformApplicationValidator;
8
8
  * @property {LeadPlatformModel.CreateCustomFormPayload} body
9
9
  */
10
10
  /**
11
- * @typedef CreateHistoryParam
11
+ * @typedef CreateNewHistoryParam
12
12
  * @property {string} id - Ticket ID for which history is created
13
13
  * @property {LeadPlatformModel.TicketHistoryPayload} body
14
14
  */
15
+ /**
16
+ * @typedef DeleteCustomFormParam
17
+ * @property {string} slug - Slug of form whose response is getting submitted
18
+ */
15
19
  /**
16
20
  * @typedef EditCustomFormParam
17
21
  * @property {string} slug - Slug of form whose response is getting submitted
18
22
  * @property {LeadPlatformModel.EditCustomFormPayload} body
19
23
  */
20
24
  /**
21
- * @typedef EditTicketParam
25
+ * @typedef EditNewTicketParam
22
26
  * @property {string} id - Ticket ID of ticket to be edited
23
27
  * @property {LeadPlatformModel.EditTicketPayload} body
24
28
  */
@@ -28,15 +32,15 @@ export = LeadPlatformApplicationValidator;
28
32
  */
29
33
  /** @typedef GetCustomFormsParam */
30
34
  /**
31
- * @typedef GetTicketParam
35
+ * @typedef GetNewTicketParam
32
36
  * @property {string} id - Tiket ID of the ticket to be fetched
33
37
  */
34
38
  /**
35
- * @typedef GetTicketHistoryParam
39
+ * @typedef GetNewTicketHistoryParam
36
40
  * @property {string} id - Ticket ID for which history is to be fetched
37
41
  */
38
42
  /**
39
- * @typedef GetTicketsParam
43
+ * @typedef GetNewTicketsParam
40
44
  * @property {boolean} [items] - Decides that the reponse will contain the list of tickets
41
45
  * @property {boolean} [filters] - Decides that the reponse will contain the
42
46
  * ticket filters
@@ -46,11 +50,11 @@ export = LeadPlatformApplicationValidator;
46
50
  * @property {string} [category] - Filter tickets on category
47
51
  */
48
52
  /**
49
- * @typedef GetTokenForVideoRoomParam
53
+ * @typedef GetNewTokenForVideoRoomParam
50
54
  * @property {string} uniqueName - Unique name of video room
51
55
  */
52
56
  /**
53
- * @typedef GetVideoParticipantsParam
57
+ * @typedef GetNewVideoParticipantsParam
54
58
  * @property {string} uniqueName - Unique name of Video Room
55
59
  */
56
60
  /**
@@ -62,31 +66,33 @@ declare class LeadPlatformApplicationValidator {
62
66
  static closeVideoRoom(): CloseVideoRoomParam;
63
67
  /** @returns {CreateCustomFormParam} */
64
68
  static createCustomForm(): CreateCustomFormParam;
65
- /** @returns {CreateHistoryParam} */
66
- static createHistory(): CreateHistoryParam;
69
+ /** @returns {CreateNewHistoryParam} */
70
+ static createNewHistory(): CreateNewHistoryParam;
71
+ /** @returns {DeleteCustomFormParam} */
72
+ static deleteCustomForm(): DeleteCustomFormParam;
67
73
  /** @returns {EditCustomFormParam} */
68
74
  static editCustomForm(): EditCustomFormParam;
69
- /** @returns {EditTicketParam} */
70
- static editTicket(): EditTicketParam;
75
+ /** @returns {EditNewTicketParam} */
76
+ static editNewTicket(): EditNewTicketParam;
71
77
  /** @returns {GetCustomFormParam} */
72
78
  static getCustomForm(): GetCustomFormParam;
73
79
  /** @returns {GetCustomFormsParam} */
74
80
  static getCustomForms(): any;
75
- /** @returns {GetTicketParam} */
76
- static getTicket(): GetTicketParam;
77
- /** @returns {GetTicketHistoryParam} */
78
- static getTicketHistory(): GetTicketHistoryParam;
79
- /** @returns {GetTicketsParam} */
80
- static getTickets(): GetTicketsParam;
81
- /** @returns {GetTokenForVideoRoomParam} */
82
- static getTokenForVideoRoom(): GetTokenForVideoRoomParam;
83
- /** @returns {GetVideoParticipantsParam} */
84
- static getVideoParticipants(): GetVideoParticipantsParam;
81
+ /** @returns {GetNewTicketParam} */
82
+ static getNewTicket(): GetNewTicketParam;
83
+ /** @returns {GetNewTicketHistoryParam} */
84
+ static getNewTicketHistory(): GetNewTicketHistoryParam;
85
+ /** @returns {GetNewTicketsParam} */
86
+ static getNewTickets(): GetNewTicketsParam;
87
+ /** @returns {GetNewTokenForVideoRoomParam} */
88
+ static getNewTokenForVideoRoom(): GetNewTokenForVideoRoomParam;
89
+ /** @returns {GetNewVideoParticipantsParam} */
90
+ static getNewVideoParticipants(): GetNewVideoParticipantsParam;
85
91
  /** @returns {OpenVideoRoomParam} */
86
92
  static openVideoRoom(): OpenVideoRoomParam;
87
93
  }
88
94
  declare namespace LeadPlatformApplicationValidator {
89
- export { CloseVideoRoomParam, CreateCustomFormParam, CreateHistoryParam, EditCustomFormParam, EditTicketParam, GetCustomFormParam, GetCustomFormsParam, GetTicketParam, GetTicketHistoryParam, GetTicketsParam, GetTokenForVideoRoomParam, GetVideoParticipantsParam, OpenVideoRoomParam };
95
+ export { CloseVideoRoomParam, CreateCustomFormParam, CreateNewHistoryParam, DeleteCustomFormParam, EditCustomFormParam, EditNewTicketParam, GetCustomFormParam, GetCustomFormsParam, GetNewTicketParam, GetNewTicketHistoryParam, GetNewTicketsParam, GetNewTokenForVideoRoomParam, GetNewVideoParticipantsParam, OpenVideoRoomParam };
90
96
  }
91
97
  type CloseVideoRoomParam = {
92
98
  /**
@@ -97,13 +103,19 @@ type CloseVideoRoomParam = {
97
103
  type CreateCustomFormParam = {
98
104
  body: LeadPlatformModel.CreateCustomFormPayload;
99
105
  };
100
- type CreateHistoryParam = {
106
+ type CreateNewHistoryParam = {
101
107
  /**
102
108
  * - Ticket ID for which history is created
103
109
  */
104
110
  id: string;
105
111
  body: LeadPlatformModel.TicketHistoryPayload;
106
112
  };
113
+ type DeleteCustomFormParam = {
114
+ /**
115
+ * - Slug of form whose response is getting submitted
116
+ */
117
+ slug: string;
118
+ };
107
119
  type EditCustomFormParam = {
108
120
  /**
109
121
  * - Slug of form whose response is getting submitted
@@ -111,7 +123,7 @@ type EditCustomFormParam = {
111
123
  slug: string;
112
124
  body: LeadPlatformModel.EditCustomFormPayload;
113
125
  };
114
- type EditTicketParam = {
126
+ type EditNewTicketParam = {
115
127
  /**
116
128
  * - Ticket ID of ticket to be edited
117
129
  */
@@ -124,19 +136,19 @@ type GetCustomFormParam = {
124
136
  */
125
137
  slug: string;
126
138
  };
127
- type GetTicketParam = {
139
+ type GetNewTicketParam = {
128
140
  /**
129
141
  * - Tiket ID of the ticket to be fetched
130
142
  */
131
143
  id: string;
132
144
  };
133
- type GetTicketHistoryParam = {
145
+ type GetNewTicketHistoryParam = {
134
146
  /**
135
147
  * - Ticket ID for which history is to be fetched
136
148
  */
137
149
  id: string;
138
150
  };
139
- type GetTicketsParam = {
151
+ type GetNewTicketsParam = {
140
152
  /**
141
153
  * - Decides that the reponse will contain the list of tickets
142
154
  */
@@ -163,13 +175,13 @@ type GetTicketsParam = {
163
175
  */
164
176
  category?: string;
165
177
  };
166
- type GetTokenForVideoRoomParam = {
178
+ type GetNewTokenForVideoRoomParam = {
167
179
  /**
168
180
  * - Unique name of video room
169
181
  */
170
182
  uniqueName: string;
171
183
  };
172
- type GetVideoParticipantsParam = {
184
+ type GetNewVideoParticipantsParam = {
173
185
  /**
174
186
  * - Unique name of Video Room
175
187
  */