@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -171,19 +171,21 @@ class Lead {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* @param {LeadPlatformApplicationValidator.
|
|
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
|
|
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/
|
|
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
|
|
182
|
+
async createNewHistory(
|
|
183
183
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
184
184
|
{ responseHeaders } = { responseHeaders: false }
|
|
185
185
|
) {
|
|
186
|
-
const {
|
|
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.
|
|
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 >
|
|
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 >
|
|
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.
|
|
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
|
|
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/
|
|
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
|
|
423
|
+
async editNewTicket(
|
|
343
424
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
344
425
|
{ responseHeaders } = { responseHeaders: false }
|
|
345
426
|
) {
|
|
346
|
-
const { error } = LeadPlatformApplicationValidator.
|
|
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.
|
|
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 >
|
|
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 >
|
|
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.
|
|
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
|
|
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/
|
|
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
|
|
654
|
+
async getNewTicket(
|
|
574
655
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
575
656
|
{ responseHeaders } = { responseHeaders: false }
|
|
576
657
|
) {
|
|
577
|
-
const { error } = LeadPlatformApplicationValidator.
|
|
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.
|
|
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 >
|
|
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 >
|
|
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.
|
|
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
|
|
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/
|
|
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
|
|
731
|
+
async getNewTicketHistory(
|
|
651
732
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
652
733
|
{ responseHeaders } = { responseHeaders: false }
|
|
653
734
|
) {
|
|
654
735
|
const {
|
|
655
736
|
error,
|
|
656
|
-
} = LeadPlatformApplicationValidator.
|
|
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.
|
|
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 >
|
|
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 >
|
|
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.
|
|
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
|
|
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/
|
|
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
|
|
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.
|
|
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.
|
|
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 >
|
|
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 >
|
|
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.
|
|
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
|
|
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/
|
|
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
|
|
908
|
+
async getNewTokenForVideoRoom(
|
|
828
909
|
{ uniqueName, requestHeaders } = { requestHeaders: {} },
|
|
829
910
|
{ responseHeaders } = { responseHeaders: false }
|
|
830
911
|
) {
|
|
831
912
|
const {
|
|
832
913
|
error,
|
|
833
|
-
} = LeadPlatformApplicationValidator.
|
|
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.
|
|
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 >
|
|
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 >
|
|
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.
|
|
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
|
|
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/
|
|
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
|
|
991
|
+
async getNewVideoParticipants(
|
|
911
992
|
{ uniqueName, requestHeaders } = { requestHeaders: {} },
|
|
912
993
|
{ responseHeaders } = { responseHeaders: false }
|
|
913
994
|
) {
|
|
914
995
|
const {
|
|
915
996
|
error,
|
|
916
|
-
} = LeadPlatformApplicationValidator.
|
|
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.
|
|
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 >
|
|
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 >
|
|
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
|
|
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
|
|
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
|
|
35
|
+
* @typedef GetNewTicketParam
|
|
32
36
|
* @property {string} id - Tiket ID of the ticket to be fetched
|
|
33
37
|
*/
|
|
34
38
|
/**
|
|
35
|
-
* @typedef
|
|
39
|
+
* @typedef GetNewTicketHistoryParam
|
|
36
40
|
* @property {string} id - Ticket ID for which history is to be fetched
|
|
37
41
|
*/
|
|
38
42
|
/**
|
|
39
|
-
* @typedef
|
|
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
|
|
53
|
+
* @typedef GetNewTokenForVideoRoomParam
|
|
50
54
|
* @property {string} uniqueName - Unique name of video room
|
|
51
55
|
*/
|
|
52
56
|
/**
|
|
53
|
-
* @typedef
|
|
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 {
|
|
66
|
-
static
|
|
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 {
|
|
70
|
-
static
|
|
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 {
|
|
76
|
-
static
|
|
77
|
-
/** @returns {
|
|
78
|
-
static
|
|
79
|
-
/** @returns {
|
|
80
|
-
static
|
|
81
|
-
/** @returns {
|
|
82
|
-
static
|
|
83
|
-
/** @returns {
|
|
84
|
-
static
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
178
|
+
type GetNewTokenForVideoRoomParam = {
|
|
167
179
|
/**
|
|
168
180
|
* - Unique name of video room
|
|
169
181
|
*/
|
|
170
182
|
uniqueName: string;
|
|
171
183
|
};
|
|
172
|
-
type
|
|
184
|
+
type GetNewVideoParticipantsParam = {
|
|
173
185
|
/**
|
|
174
186
|
* - Unique name of Video Room
|
|
175
187
|
*/
|