@gofynd/fdk-client-javascript 1.4.7 → 1.4.8-beta.3
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 +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
- package/sdk/application/Content/ContentApplicationModel.js +6 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +4 -0
- package/sdk/application/Order/OrderApplicationModel.js +4 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +47 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +56 -4
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
- package/sdk/platform/Cart/CartPlatformModel.js +164 -24
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
- package/sdk/platform/Content/ContentPlatformModel.js +8 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +369 -129
- package/sdk/platform/Finance/FinancePlatformModel.js +404 -110
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformModel.d.ts +126 -15
- package/sdk/platform/Order/OrderPlatformModel.js +55 -14
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +20 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +26 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +0 -2
- package/sdk/platform/User/UserPlatformModel.js +0 -2
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +94 -146
- package/sdk/platform/Webhook/WebhookPlatformModel.js +100 -151
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @typedef GeneralConfigResponse
|
|
5
|
+
* @property {string} [_id]
|
|
6
|
+
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
7
|
+
* @property {boolean} [show_communication_info]
|
|
8
|
+
* @property {boolean} [show_support_dris]
|
|
9
|
+
* @property {string} [type]
|
|
10
|
+
* @property {GeneralConfigIntegrationSchema} [integration]
|
|
11
|
+
* @property {boolean} [allow_ticket_creation]
|
|
12
|
+
* @property {boolean} [show_listing]
|
|
13
|
+
* @property {string[]} [available_integration]
|
|
14
|
+
* @property {boolean} [enable_dris]
|
|
15
|
+
* @property {SupportSchema} [support_email]
|
|
16
|
+
* @property {SupportSchema} [support_phone]
|
|
17
|
+
* @property {SupportSchema} [support_faq]
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef SupportCommunicationSchema
|
|
22
|
+
* @property {string} [type]
|
|
23
|
+
* @property {string} [title]
|
|
24
|
+
* @property {string} [description]
|
|
25
|
+
* @property {boolean} [enabled]
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef SupportSchema
|
|
30
|
+
* @property {string} [value]
|
|
31
|
+
* @property {string} [description]
|
|
32
|
+
* @property {boolean} [enabled]
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef GeneralConfigIntegrationSchema
|
|
37
|
+
* @property {string} [type]
|
|
38
|
+
*/
|
|
39
|
+
|
|
3
40
|
/**
|
|
4
41
|
* @typedef TicketList
|
|
5
42
|
* @property {Ticket[]} [items] - List of tickets
|
|
@@ -77,28 +114,6 @@ const Joi = require("joi");
|
|
|
77
114
|
* @property {string} agent_id - Agent's unique ID
|
|
78
115
|
*/
|
|
79
116
|
|
|
80
|
-
/**
|
|
81
|
-
* @typedef CreateVideoRoomResponse
|
|
82
|
-
* @property {string} unique_name - Video Room's unique name
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @typedef CloseVideoRoomResponse
|
|
87
|
-
* @property {boolean} success - Denotes if operation was successfully
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @typedef CreateVideoRoomPayload
|
|
92
|
-
* @property {string} unique_name - Ticket id
|
|
93
|
-
* @property {NotifyUser[]} [notify] - List of people to be notified
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @typedef NotifyUser
|
|
98
|
-
* @property {string} country_code - Country code
|
|
99
|
-
* @property {string} phone_number - Phone number
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
117
|
/**
|
|
103
118
|
* @typedef Filter
|
|
104
119
|
* @property {Priority[]} priorities - List of possible priorities for tickets
|
|
@@ -113,45 +128,6 @@ const Joi = require("joi");
|
|
|
113
128
|
* @property {HistoryTypeEnum} type
|
|
114
129
|
*/
|
|
115
130
|
|
|
116
|
-
/**
|
|
117
|
-
* @typedef GetTokenForVideoRoomResponse
|
|
118
|
-
* @property {string} access_token - Access token to be used for video room
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @typedef GetParticipantsInsideVideoRoomResponse
|
|
123
|
-
* @property {Participant[]} participants - List of participants of the video room
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @typedef Participant
|
|
128
|
-
* @property {UserSchema} [user]
|
|
129
|
-
* @property {string} [identity] - Unique identifier of participant
|
|
130
|
-
* @property {string} [status] - Status of participant
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @typedef UserSchema
|
|
135
|
-
* @property {string} [application_id]
|
|
136
|
-
* @property {string} [user_id]
|
|
137
|
-
* @property {string} [first_name]
|
|
138
|
-
* @property {Object} [meta]
|
|
139
|
-
* @property {string} [last_name]
|
|
140
|
-
* @property {PhoneNumber[]} [phone_numbers]
|
|
141
|
-
* @property {Email[]} [emails]
|
|
142
|
-
* @property {string} [gender]
|
|
143
|
-
* @property {string} [dob]
|
|
144
|
-
* @property {boolean} [active]
|
|
145
|
-
* @property {string} [profile_pic_url]
|
|
146
|
-
* @property {string} [username]
|
|
147
|
-
* @property {string} [account_type]
|
|
148
|
-
* @property {string} [_id]
|
|
149
|
-
* @property {string} [created_at]
|
|
150
|
-
* @property {string} [updated_at]
|
|
151
|
-
* @property {string} [external_id]
|
|
152
|
-
* @property {string} [rr_id]
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
131
|
/**
|
|
156
132
|
* @typedef TicketContext
|
|
157
133
|
* @property {string} [application_id] - Application ID related to the ticket
|
|
@@ -194,6 +170,11 @@ const Joi = require("joi");
|
|
|
194
170
|
* @property {string} color - Color for priority
|
|
195
171
|
*/
|
|
196
172
|
|
|
173
|
+
/**
|
|
174
|
+
* @typedef SLA
|
|
175
|
+
* @property {string} resolution_time
|
|
176
|
+
*/
|
|
177
|
+
|
|
197
178
|
/**
|
|
198
179
|
* @typedef Status
|
|
199
180
|
* @property {string} key - Key for status
|
|
@@ -307,6 +288,7 @@ const Joi = require("joi");
|
|
|
307
288
|
* @property {TicketSourceEnum} source
|
|
308
289
|
* @property {Status} status
|
|
309
290
|
* @property {Priority} priority
|
|
291
|
+
* @property {SLA} [sla]
|
|
310
292
|
* @property {Object} [created_by] - User details of ticket creator
|
|
311
293
|
* @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
|
|
312
294
|
* @property {string[]} [tags] - Tags relevant to ticket
|
|
@@ -324,23 +306,6 @@ const Joi = require("joi");
|
|
|
324
306
|
* @property {string} [message]
|
|
325
307
|
*/
|
|
326
308
|
|
|
327
|
-
/**
|
|
328
|
-
* @typedef PhoneNumber
|
|
329
|
-
* @property {string} [phone] - Phone number
|
|
330
|
-
* @property {number} [country_code] - Country code
|
|
331
|
-
* @property {boolean} [active] - Is the phone number active
|
|
332
|
-
* @property {boolean} [primary] - Is it a primary phone number
|
|
333
|
-
* @property {boolean} [verified] - Is the phone number verified
|
|
334
|
-
*/
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* @typedef Email
|
|
338
|
-
* @property {string} [email] - Email address
|
|
339
|
-
* @property {boolean} [active] - Is the email active
|
|
340
|
-
* @property {boolean} [primary] - Is it a primary email
|
|
341
|
-
* @property {boolean} [verified] - Is the email verified
|
|
342
|
-
*/
|
|
343
|
-
|
|
344
309
|
/** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
|
|
345
310
|
|
|
346
311
|
/** @typedef {"rating" | "log" | "comment" | "thread"} HistoryTypeEnum */
|
|
@@ -360,6 +325,53 @@ const Joi = require("joi");
|
|
|
360
325
|
/** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
|
|
361
326
|
|
|
362
327
|
class LeadPlatformModel {
|
|
328
|
+
/** @returns {GeneralConfigResponse} */
|
|
329
|
+
static GeneralConfigResponse() {
|
|
330
|
+
return Joi.object({
|
|
331
|
+
_id: Joi.string().allow(""),
|
|
332
|
+
support_communication: Joi.array().items(
|
|
333
|
+
LeadPlatformModel.SupportCommunicationSchema()
|
|
334
|
+
),
|
|
335
|
+
show_communication_info: Joi.boolean(),
|
|
336
|
+
show_support_dris: Joi.boolean(),
|
|
337
|
+
type: Joi.string().allow(""),
|
|
338
|
+
integration: LeadPlatformModel.GeneralConfigIntegrationSchema(),
|
|
339
|
+
allow_ticket_creation: Joi.boolean(),
|
|
340
|
+
show_listing: Joi.boolean(),
|
|
341
|
+
available_integration: Joi.array().items(Joi.string().allow("")),
|
|
342
|
+
enable_dris: Joi.boolean(),
|
|
343
|
+
support_email: LeadPlatformModel.SupportSchema(),
|
|
344
|
+
support_phone: LeadPlatformModel.SupportSchema(),
|
|
345
|
+
support_faq: LeadPlatformModel.SupportSchema(),
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/** @returns {SupportCommunicationSchema} */
|
|
350
|
+
static SupportCommunicationSchema() {
|
|
351
|
+
return Joi.object({
|
|
352
|
+
type: Joi.string().allow(""),
|
|
353
|
+
title: Joi.string().allow(""),
|
|
354
|
+
description: Joi.string().allow(""),
|
|
355
|
+
enabled: Joi.boolean(),
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/** @returns {SupportSchema} */
|
|
360
|
+
static SupportSchema() {
|
|
361
|
+
return Joi.object({
|
|
362
|
+
value: Joi.string().allow(""),
|
|
363
|
+
description: Joi.string().allow(""),
|
|
364
|
+
enabled: Joi.boolean(),
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** @returns {GeneralConfigIntegrationSchema} */
|
|
369
|
+
static GeneralConfigIntegrationSchema() {
|
|
370
|
+
return Joi.object({
|
|
371
|
+
type: Joi.string().allow(""),
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
|
|
363
375
|
/** @returns {TicketList} */
|
|
364
376
|
static TicketList() {
|
|
365
377
|
return Joi.object({
|
|
@@ -449,36 +461,6 @@ class LeadPlatformModel {
|
|
|
449
461
|
});
|
|
450
462
|
}
|
|
451
463
|
|
|
452
|
-
/** @returns {CreateVideoRoomResponse} */
|
|
453
|
-
static CreateVideoRoomResponse() {
|
|
454
|
-
return Joi.object({
|
|
455
|
-
unique_name: Joi.string().allow("").required(),
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/** @returns {CloseVideoRoomResponse} */
|
|
460
|
-
static CloseVideoRoomResponse() {
|
|
461
|
-
return Joi.object({
|
|
462
|
-
success: Joi.boolean().required(),
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
/** @returns {CreateVideoRoomPayload} */
|
|
467
|
-
static CreateVideoRoomPayload() {
|
|
468
|
-
return Joi.object({
|
|
469
|
-
unique_name: Joi.string().allow("").required(),
|
|
470
|
-
notify: Joi.array().items(LeadPlatformModel.NotifyUser()),
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/** @returns {NotifyUser} */
|
|
475
|
-
static NotifyUser() {
|
|
476
|
-
return Joi.object({
|
|
477
|
-
country_code: Joi.string().allow("").required(),
|
|
478
|
-
phone_number: Joi.string().allow("").required(),
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
|
|
482
464
|
/** @returns {Filter} */
|
|
483
465
|
static Filter() {
|
|
484
466
|
return Joi.object({
|
|
@@ -497,55 +479,6 @@ class LeadPlatformModel {
|
|
|
497
479
|
});
|
|
498
480
|
}
|
|
499
481
|
|
|
500
|
-
/** @returns {GetTokenForVideoRoomResponse} */
|
|
501
|
-
static GetTokenForVideoRoomResponse() {
|
|
502
|
-
return Joi.object({
|
|
503
|
-
access_token: Joi.string().allow("").required(),
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/** @returns {GetParticipantsInsideVideoRoomResponse} */
|
|
508
|
-
static GetParticipantsInsideVideoRoomResponse() {
|
|
509
|
-
return Joi.object({
|
|
510
|
-
participants: Joi.array()
|
|
511
|
-
.items(LeadPlatformModel.Participant())
|
|
512
|
-
.required(),
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
/** @returns {Participant} */
|
|
517
|
-
static Participant() {
|
|
518
|
-
return Joi.object({
|
|
519
|
-
user: LeadPlatformModel.UserSchema(),
|
|
520
|
-
identity: Joi.string().allow(""),
|
|
521
|
-
status: Joi.string().allow(""),
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
/** @returns {UserSchema} */
|
|
526
|
-
static UserSchema() {
|
|
527
|
-
return Joi.object({
|
|
528
|
-
application_id: Joi.string().allow(""),
|
|
529
|
-
user_id: Joi.string().allow(""),
|
|
530
|
-
first_name: Joi.string().allow(""),
|
|
531
|
-
meta: Joi.any(),
|
|
532
|
-
last_name: Joi.string().allow(""),
|
|
533
|
-
phone_numbers: Joi.array().items(LeadPlatformModel.PhoneNumber()),
|
|
534
|
-
emails: Joi.array().items(LeadPlatformModel.Email()),
|
|
535
|
-
gender: Joi.string().allow(""),
|
|
536
|
-
dob: Joi.string().allow(""),
|
|
537
|
-
active: Joi.boolean(),
|
|
538
|
-
profile_pic_url: Joi.string().allow(""),
|
|
539
|
-
username: Joi.string().allow(""),
|
|
540
|
-
account_type: Joi.string().allow(""),
|
|
541
|
-
_id: Joi.string().allow(""),
|
|
542
|
-
created_at: Joi.string().allow(""),
|
|
543
|
-
updated_at: Joi.string().allow(""),
|
|
544
|
-
external_id: Joi.string().allow(""),
|
|
545
|
-
rr_id: Joi.string().allow(""),
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
|
|
549
482
|
/** @returns {TicketContext} */
|
|
550
483
|
static TicketContext() {
|
|
551
484
|
return Joi.object({
|
|
@@ -600,6 +533,13 @@ class LeadPlatformModel {
|
|
|
600
533
|
});
|
|
601
534
|
}
|
|
602
535
|
|
|
536
|
+
/** @returns {SLA} */
|
|
537
|
+
static SLA() {
|
|
538
|
+
return Joi.object({
|
|
539
|
+
resolution_time: Joi.string().allow("").required(),
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
|
|
603
543
|
/** @returns {Status} */
|
|
604
544
|
static Status() {
|
|
605
545
|
return Joi.object({
|
|
@@ -733,6 +673,7 @@ class LeadPlatformModel {
|
|
|
733
673
|
source: LeadPlatformModel.TicketSourceEnum().required(),
|
|
734
674
|
status: LeadPlatformModel.Status().required(),
|
|
735
675
|
priority: LeadPlatformModel.Priority().required(),
|
|
676
|
+
sla: LeadPlatformModel.SLA(),
|
|
736
677
|
created_by: Joi.any(),
|
|
737
678
|
assigned_to: Joi.any(),
|
|
738
679
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
@@ -752,27 +693,6 @@ class LeadPlatformModel {
|
|
|
752
693
|
});
|
|
753
694
|
}
|
|
754
695
|
|
|
755
|
-
/** @returns {PhoneNumber} */
|
|
756
|
-
static PhoneNumber() {
|
|
757
|
-
return Joi.object({
|
|
758
|
-
phone: Joi.string().allow(""),
|
|
759
|
-
country_code: Joi.number(),
|
|
760
|
-
active: Joi.boolean(),
|
|
761
|
-
primary: Joi.boolean(),
|
|
762
|
-
verified: Joi.boolean(),
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/** @returns {Email} */
|
|
767
|
-
static Email() {
|
|
768
|
-
return Joi.object({
|
|
769
|
-
email: Joi.string().allow(""),
|
|
770
|
-
active: Joi.boolean(),
|
|
771
|
-
primary: Joi.boolean(),
|
|
772
|
-
verified: Joi.boolean(),
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
|
|
776
696
|
/**
|
|
777
697
|
* Enum: PriorityEnum Used By: Lead
|
|
778
698
|
*
|
|
@@ -40,14 +40,6 @@ export = LeadPlatformValidator;
|
|
|
40
40
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
41
41
|
* Default is 12.
|
|
42
42
|
*/
|
|
43
|
-
/**
|
|
44
|
-
* @typedef GetPlatformVideoParticipantsParam
|
|
45
|
-
* @property {string} uniqueName - Unique name of Video Room
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* @typedef GetTokenForPlatformVideoRoomParam
|
|
49
|
-
* @property {string} uniqueName - Unique name of video room
|
|
50
|
-
*/
|
|
51
43
|
/**
|
|
52
44
|
* @typedef SubmitFeedbackParam
|
|
53
45
|
* @property {string} id - Ticket ID for which feedback is to be submitted
|
|
@@ -70,15 +62,11 @@ declare class LeadPlatformValidator {
|
|
|
70
62
|
static getPlatformTicketHistory(): GetPlatformTicketHistoryParam;
|
|
71
63
|
/** @returns {GetPlatformTicketsParam} */
|
|
72
64
|
static getPlatformTickets(): GetPlatformTicketsParam;
|
|
73
|
-
/** @returns {GetPlatformVideoParticipantsParam} */
|
|
74
|
-
static getPlatformVideoParticipants(): GetPlatformVideoParticipantsParam;
|
|
75
|
-
/** @returns {GetTokenForPlatformVideoRoomParam} */
|
|
76
|
-
static getTokenForPlatformVideoRoom(): GetTokenForPlatformVideoRoomParam;
|
|
77
65
|
/** @returns {SubmitFeedbackParam} */
|
|
78
66
|
static submitFeedback(): SubmitFeedbackParam;
|
|
79
67
|
}
|
|
80
68
|
declare namespace LeadPlatformValidator {
|
|
81
|
-
export { CreatePlatformTicketHistoryParam, CreateTicketParam, EditPlatformTicketParam, GetFeedbacksParam, GetGeneralConfigParam, GetPlatformTicketParam, GetPlatformTicketHistoryParam, GetPlatformTicketsParam,
|
|
69
|
+
export { CreatePlatformTicketHistoryParam, CreateTicketParam, EditPlatformTicketParam, GetFeedbacksParam, GetGeneralConfigParam, GetPlatformTicketParam, GetPlatformTicketHistoryParam, GetPlatformTicketsParam, SubmitFeedbackParam };
|
|
82
70
|
}
|
|
83
71
|
type CreatePlatformTicketHistoryParam = {
|
|
84
72
|
/**
|
|
@@ -152,18 +140,6 @@ type GetPlatformTicketsParam = {
|
|
|
152
140
|
*/
|
|
153
141
|
pageSize?: number;
|
|
154
142
|
};
|
|
155
|
-
type GetPlatformVideoParticipantsParam = {
|
|
156
|
-
/**
|
|
157
|
-
* - Unique name of Video Room
|
|
158
|
-
*/
|
|
159
|
-
uniqueName: string;
|
|
160
|
-
};
|
|
161
|
-
type GetTokenForPlatformVideoRoomParam = {
|
|
162
|
-
/**
|
|
163
|
-
* - Unique name of video room
|
|
164
|
-
*/
|
|
165
|
-
uniqueName: string;
|
|
166
|
-
};
|
|
167
143
|
type SubmitFeedbackParam = {
|
|
168
144
|
/**
|
|
169
145
|
* - Ticket ID for which feedback is to be submitted
|
|
@@ -51,16 +51,6 @@ const LeadPlatformModel = require("./LeadPlatformModel");
|
|
|
51
51
|
* Default is 12.
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
|
-
/**
|
|
55
|
-
* @typedef GetPlatformVideoParticipantsParam
|
|
56
|
-
* @property {string} uniqueName - Unique name of Video Room
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @typedef GetTokenForPlatformVideoRoomParam
|
|
61
|
-
* @property {string} uniqueName - Unique name of video room
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
54
|
/**
|
|
65
55
|
* @typedef SubmitFeedbackParam
|
|
66
56
|
* @property {string} id - Ticket ID for which feedback is to be submitted
|
|
@@ -131,20 +121,6 @@ class LeadPlatformValidator {
|
|
|
131
121
|
}).required();
|
|
132
122
|
}
|
|
133
123
|
|
|
134
|
-
/** @returns {GetPlatformVideoParticipantsParam} */
|
|
135
|
-
static getPlatformVideoParticipants() {
|
|
136
|
-
return Joi.object({
|
|
137
|
-
uniqueName: Joi.string().allow("").required(),
|
|
138
|
-
}).required();
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** @returns {GetTokenForPlatformVideoRoomParam} */
|
|
142
|
-
static getTokenForPlatformVideoRoom() {
|
|
143
|
-
return Joi.object({
|
|
144
|
-
uniqueName: Joi.string().allow("").required(),
|
|
145
|
-
}).required();
|
|
146
|
-
}
|
|
147
|
-
|
|
148
124
|
/** @returns {SubmitFeedbackParam} */
|
|
149
125
|
static submitFeedback() {
|
|
150
126
|
return Joi.object({
|