@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -4,97 +4,39 @@ const Joi = require("joi");
|
|
|
4
4
|
* @typedef AddTicketPayload
|
|
5
5
|
* @property {Object} [_custom_json] - Optional custom data that needs to be sent
|
|
6
6
|
* @property {string} category - Category of the ticket
|
|
7
|
-
* @property {TicketContent} content
|
|
7
|
+
* @property {TicketContent} content
|
|
8
8
|
* @property {Object} [created_by] - Creator of the ticket
|
|
9
|
-
* @property {PriorityEnum} [priority]
|
|
9
|
+
* @property {PriorityEnum} [priority]
|
|
10
10
|
* @property {string} [status] - Status of the ticket
|
|
11
11
|
* @property {string[]} [subscribers]
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @typedef AgentChangePayload
|
|
16
|
-
* @property {string} agent_id - Agent's unique ID
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @typedef CategoryData
|
|
21
|
-
* @property {TicketCategory} [list]
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @typedef CloseVideoRoomResponse
|
|
26
|
-
* @property {boolean} success - Denotes if operation was successfully
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @typedef CommunicationDetails
|
|
31
|
-
* @property {string} [description] - Short description for the communication method
|
|
32
|
-
* @property {boolean} [enabled] - Denotes if this communication method has to be shown
|
|
33
|
-
* @property {string} [title] - Title for the communication method
|
|
34
|
-
* @property {string} [type] - Enum type for the communication method
|
|
35
|
-
* @property {string} [value] - Value for the communication method
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @typedef CreateCustomFormPayload
|
|
40
|
-
* @property {string} [description] - Description of the form
|
|
41
|
-
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
42
|
-
* @property {Object[]} inputs - List of all the form components
|
|
43
|
-
* @property {PollForAssignment} [poll_for_assignment] - Describes how polling
|
|
44
|
-
* will be done for the tickets createds
|
|
45
|
-
* @property {PriorityEnum} priority - Describes the priority of the tickets
|
|
46
|
-
* created by the form
|
|
47
|
-
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
48
|
-
* when a response is received
|
|
49
|
-
* @property {string} slug - Slug for the form
|
|
50
|
-
* @property {string} [success_message] - Success message that will be shown on submission
|
|
51
|
-
* @property {string} title - Title for the form
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
14
|
/**
|
|
55
15
|
* @typedef CreatedOn
|
|
56
16
|
* @property {string} user_agent - Useragent details
|
|
57
17
|
*/
|
|
58
18
|
|
|
59
|
-
/**
|
|
60
|
-
* @typedef CreateVideoRoomPayload
|
|
61
|
-
* @property {NotifyUser[]} [notify] - List of people to be notified
|
|
62
|
-
* @property {string} unique_name - Ticket id
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @typedef CreateVideoRoomResponse
|
|
67
|
-
* @property {string} unique_name - Video Room's unique name
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
19
|
/**
|
|
71
20
|
* @typedef CustomForm
|
|
72
21
|
* @property {string} _id - Unique identifier for the form
|
|
73
22
|
* @property {string} application_id - Application ID for form
|
|
74
|
-
* @property {CreatedOn} [created_on]
|
|
23
|
+
* @property {CreatedOn} [created_on]
|
|
75
24
|
* @property {string} [description] - Form description that will be shown to the user
|
|
76
25
|
* @property {string} [header_image] - Form header image that will be shown to the user
|
|
77
26
|
* @property {Object[]} inputs - List of all the form fields
|
|
78
27
|
* @property {boolean} login_required - Denotes if login is required to make a
|
|
79
28
|
* form response submission
|
|
80
|
-
* @property {PollForAssignment} [poll_for_assignment]
|
|
81
|
-
*
|
|
82
|
-
* @property {Priority} priority - Sets priority of tickets created by form response
|
|
29
|
+
* @property {PollForAssignment} [poll_for_assignment]
|
|
30
|
+
* @property {Priority} priority
|
|
83
31
|
* @property {boolean} should_notify - Denotes if new response submission for
|
|
84
32
|
* the form should be notified to the assignees
|
|
85
33
|
* @property {string} slug - Slug for the form, which is to be used for accessing the form
|
|
86
|
-
* @property {SubmitButton} [submit_button]
|
|
34
|
+
* @property {SubmitButton} [submit_button]
|
|
87
35
|
* @property {string} [success_message] - Message that is to be shown on
|
|
88
36
|
* succesfull form response submission
|
|
89
37
|
* @property {string} title - Form title that will be shown to the user
|
|
90
38
|
*/
|
|
91
39
|
|
|
92
|
-
/**
|
|
93
|
-
* @typedef CustomFormList
|
|
94
|
-
* @property {CustomForm[]} [items] - List of forms
|
|
95
|
-
* @property {Page} [page] - Describes the pagination state
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
40
|
/**
|
|
99
41
|
* @typedef CustomFormSubmissionPayload
|
|
100
42
|
* @property {TicketAsset[]} [attachments] - List of all attachments related to the form
|
|
@@ -107,37 +49,6 @@ const Joi = require("joi");
|
|
|
107
49
|
* @property {string} [source] - Source of user
|
|
108
50
|
*/
|
|
109
51
|
|
|
110
|
-
/**
|
|
111
|
-
* @typedef EditCustomFormPayload
|
|
112
|
-
* @property {string} [description] - Description of the form
|
|
113
|
-
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
114
|
-
* @property {Object[]} inputs - List of all the form components
|
|
115
|
-
* @property {boolean} [login_required] - Denotes if login is required to make a
|
|
116
|
-
* form response submission
|
|
117
|
-
* @property {PollForAssignment} [poll_for_assignment] - Describes how polling
|
|
118
|
-
* will be done for the tickets createds
|
|
119
|
-
* @property {PriorityEnum} priority - Describes the priority of the tickets
|
|
120
|
-
* created by the form
|
|
121
|
-
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
122
|
-
* when a response is received
|
|
123
|
-
* @property {string} [success_message] - Success message that will be shown on submission
|
|
124
|
-
* @property {string} title - Title for the form
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @typedef EditTicketPayload
|
|
129
|
-
* @property {AgentChangePayload} [assigned_to] - Details of support staff to
|
|
130
|
-
* whom ticket is assigned
|
|
131
|
-
* @property {string} [category] - Category assigned to the ticket
|
|
132
|
-
* @property {TicketContent} [content] - Ticket conetent details
|
|
133
|
-
* @property {PriorityEnum} [priority] - Denotes the priority of ticket
|
|
134
|
-
* @property {string} [source] - Denotes if the ticket was created at company or
|
|
135
|
-
* application level
|
|
136
|
-
* @property {string} [status] - Denotes in what state is the ticket
|
|
137
|
-
* @property {string} [sub_category] - Sub-category assigned to the ticket
|
|
138
|
-
* @property {string[]} [tags] - Tags relevant to ticket
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
52
|
/**
|
|
142
53
|
* @typedef Email
|
|
143
54
|
* @property {boolean} [active] - Denotes if the email is active
|
|
@@ -153,21 +64,6 @@ const Joi = require("joi");
|
|
|
153
64
|
* @property {string} [title] - Title for the feed back form
|
|
154
65
|
*/
|
|
155
66
|
|
|
156
|
-
/**
|
|
157
|
-
* @typedef FeedbackResponseItem
|
|
158
|
-
* @property {string} display - Question/Title of the form field
|
|
159
|
-
* @property {string} key - Key of the form field
|
|
160
|
-
* @property {string} value - User response value for the form field
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* @typedef Filter
|
|
165
|
-
* @property {Object[]} assignees - List of support staff availble for tickets assignment
|
|
166
|
-
* @property {TicketCategory[]} [categories] - List of possible categories for tickets
|
|
167
|
-
* @property {Priority[]} priorities - List of possible priorities for tickets
|
|
168
|
-
* @property {Status[]} statuses - List of possible statuses for tickets
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
67
|
/**
|
|
172
68
|
* @typedef GetParticipantsInsideVideoRoomResponse
|
|
173
69
|
* @property {Participant[]} participants - List of participants of the video room
|
|
@@ -178,48 +74,11 @@ const Joi = require("joi");
|
|
|
178
74
|
* @property {string} access_token - Access token to be used for video room
|
|
179
75
|
*/
|
|
180
76
|
|
|
181
|
-
/**
|
|
182
|
-
* @typedef IntegrationConfig
|
|
183
|
-
* @property {string} [_id] - Unique id
|
|
184
|
-
* @property {boolean} allow_ticket_creation - Denotes ticket creation enable or
|
|
185
|
-
* disable on platform
|
|
186
|
-
* @property {string} [base_url] - Integration base url for validate and create ticket
|
|
187
|
-
* @property {CategoryData} [category_data] - Support category array list details
|
|
188
|
-
* @property {string} [category_sync_apikey] - Integration apikey to sync
|
|
189
|
-
* category of selected type
|
|
190
|
-
* @property {boolean} [config_completed] - Denotes the current intergration is
|
|
191
|
-
* completed or partially done
|
|
192
|
-
* @property {string} [create_ticket_apikey] - Integration apikey to validate
|
|
193
|
-
* and create ticket
|
|
194
|
-
* @property {string} integration_type - Enum string values for integration
|
|
195
|
-
* @property {boolean} show_listing - Denotes ticket listing enable or disable on platform
|
|
196
|
-
* @property {string} [update_ticket_apikey] - Integration apikey to update ticket
|
|
197
|
-
* @property {string} [webhook_apikey] - Integration webhook apikey to got
|
|
198
|
-
* callbacks from integration type dashboard like freshdesk, etc
|
|
199
|
-
*/
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @typedef NotifyUser
|
|
203
|
-
* @property {string} country_code - Country code
|
|
204
|
-
* @property {string} phone_number - Phone number
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @typedef Page
|
|
209
|
-
* @property {number} [current]
|
|
210
|
-
* @property {boolean} [has_next]
|
|
211
|
-
* @property {boolean} [has_previous]
|
|
212
|
-
* @property {number} [item_total]
|
|
213
|
-
* @property {string} [next_id]
|
|
214
|
-
* @property {number} [size]
|
|
215
|
-
* @property {string} type
|
|
216
|
-
*/
|
|
217
|
-
|
|
218
77
|
/**
|
|
219
78
|
* @typedef Participant
|
|
220
79
|
* @property {string} [identity] - Unique identifier of participant
|
|
221
80
|
* @property {string} [status] - Status of participant
|
|
222
|
-
* @property {UserSchema} [user]
|
|
81
|
+
* @property {UserSchema} [user]
|
|
223
82
|
*/
|
|
224
83
|
|
|
225
84
|
/**
|
|
@@ -243,7 +102,7 @@ const Joi = require("joi");
|
|
|
243
102
|
* @typedef Priority
|
|
244
103
|
* @property {string} color - Color for priority
|
|
245
104
|
* @property {string} display - Display text for priority
|
|
246
|
-
* @property {PriorityEnum} key
|
|
105
|
+
* @property {PriorityEnum} key
|
|
247
106
|
*/
|
|
248
107
|
|
|
249
108
|
/**
|
|
@@ -263,22 +122,7 @@ const Joi = require("joi");
|
|
|
263
122
|
/**
|
|
264
123
|
* @typedef SubmitCustomFormResponse
|
|
265
124
|
* @property {string} message - Success message for form submission
|
|
266
|
-
* @property {Ticket} [ticket]
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @typedef SupportGeneralConfig
|
|
271
|
-
* @property {string} [_id] - Unique id
|
|
272
|
-
* @property {Object} [integration] - Contains integrations basic information
|
|
273
|
-
* @property {boolean} [show_communication_info] - Denotes if support
|
|
274
|
-
* communication info should be shown
|
|
275
|
-
* @property {boolean} [show_support_dris] - Denotes if support DRIS info should be shown
|
|
276
|
-
* @property {CommunicationDetails} [support_communication] - Support
|
|
277
|
-
* communication array list details
|
|
278
|
-
* @property {CommunicationDetails} [support_email] - Support e-mail details
|
|
279
|
-
* @property {CommunicationDetails} [support_faq] - Support FAQ details
|
|
280
|
-
* @property {CommunicationDetails} [support_phone] - Support Phone number details
|
|
281
|
-
* @property {string} [type] - The enity/platform for which the config is stored
|
|
125
|
+
* @property {Ticket} [ticket]
|
|
282
126
|
*/
|
|
283
127
|
|
|
284
128
|
/**
|
|
@@ -286,23 +130,20 @@ const Joi = require("joi");
|
|
|
286
130
|
* @property {Object} [_custom_json] - Custom json relevant to the ticket
|
|
287
131
|
* @property {string} _id - Unique identifier for the ticket
|
|
288
132
|
* @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
|
|
289
|
-
* @property {TicketCategory} category
|
|
290
|
-
* @property {TicketContent} [content]
|
|
291
|
-
* @property {TicketContext} [context]
|
|
292
|
-
* realated to the ticket
|
|
133
|
+
* @property {TicketCategory} category
|
|
134
|
+
* @property {TicketContent} [content]
|
|
135
|
+
* @property {TicketContext} [context]
|
|
293
136
|
* @property {string} [created_at] - Time when the ticket was created
|
|
294
137
|
* @property {Object} [created_by] - User details of ticket creator
|
|
295
|
-
* @property {CreatedOn} [created_on]
|
|
296
|
-
* realated to the ticket
|
|
138
|
+
* @property {CreatedOn} [created_on]
|
|
297
139
|
* @property {Object} [integration] - Integration type and its details of the ticket
|
|
298
140
|
* @property {boolean} [is_feedback_pending] - Denotes if feedback submission is
|
|
299
141
|
* pending for the ticket
|
|
300
|
-
* @property {Priority} priority
|
|
142
|
+
* @property {Priority} priority
|
|
301
143
|
* @property {string} [response_id] - Details of company and application
|
|
302
144
|
* realated to the ticket
|
|
303
|
-
* @property {TicketSourceEnum} source
|
|
304
|
-
*
|
|
305
|
-
* @property {Status} status - Denotes in what state is the ticket
|
|
145
|
+
* @property {TicketSourceEnum} source
|
|
146
|
+
* @property {Status} status
|
|
306
147
|
* @property {string} [sub_category] - Sub-category assigned to the ticket
|
|
307
148
|
* @property {string[]} [tags] - Tags relevant to ticket
|
|
308
149
|
* @property {string} [updated_at] - Time when the ticket was last updated
|
|
@@ -311,17 +152,17 @@ const Joi = require("joi");
|
|
|
311
152
|
/**
|
|
312
153
|
* @typedef TicketAsset
|
|
313
154
|
* @property {string} [display] - Display text for asset
|
|
314
|
-
* @property {TicketAssetTypeEnum} type
|
|
155
|
+
* @property {TicketAssetTypeEnum} type
|
|
315
156
|
* @property {string} value - To be used for details
|
|
316
157
|
*/
|
|
317
158
|
|
|
318
159
|
/**
|
|
319
160
|
* @typedef TicketCategory
|
|
320
161
|
* @property {string} display - Category display value identifier
|
|
321
|
-
* @property {FeedbackForm} [feedback_form]
|
|
162
|
+
* @property {FeedbackForm} [feedback_form]
|
|
322
163
|
* @property {number} [group_id] - Group id of category releted data
|
|
323
164
|
* @property {string} key - Category key value identifier
|
|
324
|
-
* @property {TicketCategory} [sub_categories]
|
|
165
|
+
* @property {TicketCategory} [sub_categories]
|
|
325
166
|
*/
|
|
326
167
|
|
|
327
168
|
/**
|
|
@@ -337,73 +178,24 @@ const Joi = require("joi");
|
|
|
337
178
|
* @property {string} company_id - Company ID related to the ticket
|
|
338
179
|
*/
|
|
339
180
|
|
|
340
|
-
/**
|
|
341
|
-
* @typedef TicketFeedback
|
|
342
|
-
* @property {string} _id - Unique identifier for the feedback
|
|
343
|
-
* @property {string} [category] - Category of the ticket
|
|
344
|
-
* @property {string} company_id - Company id for which ticket was raised
|
|
345
|
-
* @property {string} [created_at] - Time when the feedback was created
|
|
346
|
-
* @property {FeedbackResponseItem[]} response
|
|
347
|
-
* @property {string} ticket_id - Readable ticket number
|
|
348
|
-
* @property {string} [updated_at] - Time when the feedback was last updated
|
|
349
|
-
* @property {Object} [user] - User who submitted the feedback
|
|
350
|
-
*/
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @typedef TicketFeedbackForm
|
|
354
|
-
* @property {Object[]} [display] - List of all the form fields
|
|
355
|
-
* @property {string} title - Feedback form title that will be shown to the user
|
|
356
|
-
*/
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* @typedef TicketFeedbackList
|
|
360
|
-
* @property {TicketFeedback[]} [items] - List of all ticket feedback for the ticket
|
|
361
|
-
*/
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* @typedef TicketFeedbackPayload
|
|
365
|
-
* @property {Object} [form_response] - Key-value pairs of all the form fields
|
|
366
|
-
* and their response
|
|
367
|
-
*/
|
|
368
|
-
|
|
369
181
|
/**
|
|
370
182
|
* @typedef TicketHistory
|
|
371
183
|
* @property {string} _id - Unique identifier of the history event
|
|
372
184
|
* @property {string} [created_at] - Time of creation of the history event
|
|
373
185
|
* @property {Object} [created_by] - User who created the history event
|
|
374
|
-
* @property {CreatedOn} [created_on]
|
|
186
|
+
* @property {CreatedOn} [created_on]
|
|
375
187
|
* @property {string} ticket_id - Readable ticket number
|
|
376
188
|
* @property {string} type - Type of the history event
|
|
377
189
|
* @property {string} [updated_at] - Time of last update of the history event
|
|
378
190
|
* @property {Object} value - Data of the history event
|
|
379
191
|
*/
|
|
380
192
|
|
|
381
|
-
/**
|
|
382
|
-
* @typedef TicketHistoryList
|
|
383
|
-
* @property {TicketHistory[]} [items] - List of ticket history
|
|
384
|
-
* @property {Page} [page] - Describes the pagination state
|
|
385
|
-
*/
|
|
386
|
-
|
|
387
193
|
/**
|
|
388
194
|
* @typedef TicketHistoryPayload
|
|
389
|
-
* @property {HistoryTypeEnum} type
|
|
195
|
+
* @property {HistoryTypeEnum} type
|
|
390
196
|
* @property {Object} value - Details of history event
|
|
391
197
|
*/
|
|
392
198
|
|
|
393
|
-
/**
|
|
394
|
-
* @typedef TicketList
|
|
395
|
-
* @property {Filter} [filters] - All the filters available for tickets
|
|
396
|
-
* @property {Ticket[]} [items] - List of tickets
|
|
397
|
-
* @property {Page} [page] - Describes the pagination state
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* @typedef TicketSubCategory
|
|
402
|
-
* @property {string} display - Display text for sub-category
|
|
403
|
-
* @property {string} key - Key for sub-category
|
|
404
|
-
* @property {TicketSubCategory} [sub_categories]
|
|
405
|
-
*/
|
|
406
|
-
|
|
407
199
|
/**
|
|
408
200
|
* @typedef UserSchema
|
|
409
201
|
* @property {string} [_id]
|
|
@@ -440,8 +232,6 @@ const Joi = require("joi");
|
|
|
440
232
|
* | "order"} TicketAssetTypeEnum
|
|
441
233
|
*/
|
|
442
234
|
|
|
443
|
-
/** @typedef {"default" | "freshdesk" | "kapture"} TicketIntegrationDetails */
|
|
444
|
-
|
|
445
235
|
/** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
|
|
446
236
|
|
|
447
237
|
class LeadApplicationModel {
|
|
@@ -458,53 +248,6 @@ class LeadApplicationModel {
|
|
|
458
248
|
});
|
|
459
249
|
}
|
|
460
250
|
|
|
461
|
-
/** @returns {AgentChangePayload} */
|
|
462
|
-
static AgentChangePayload() {
|
|
463
|
-
return Joi.object({
|
|
464
|
-
agent_id: Joi.string().allow("").required(),
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/** @returns {CategoryData} */
|
|
469
|
-
static CategoryData() {
|
|
470
|
-
return Joi.object({
|
|
471
|
-
list: LeadApplicationModel.TicketCategory(),
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/** @returns {CloseVideoRoomResponse} */
|
|
476
|
-
static CloseVideoRoomResponse() {
|
|
477
|
-
return Joi.object({
|
|
478
|
-
success: Joi.boolean().required(),
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/** @returns {CommunicationDetails} */
|
|
483
|
-
static CommunicationDetails() {
|
|
484
|
-
return Joi.object({
|
|
485
|
-
description: Joi.string().allow(""),
|
|
486
|
-
enabled: Joi.boolean(),
|
|
487
|
-
title: Joi.string().allow(""),
|
|
488
|
-
type: Joi.string().allow(""),
|
|
489
|
-
value: Joi.string().allow(""),
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/** @returns {CreateCustomFormPayload} */
|
|
494
|
-
static CreateCustomFormPayload() {
|
|
495
|
-
return Joi.object({
|
|
496
|
-
description: Joi.string().allow(""),
|
|
497
|
-
header_image: Joi.string().allow(""),
|
|
498
|
-
inputs: Joi.array().items(Joi.any()).required(),
|
|
499
|
-
poll_for_assignment: LeadApplicationModel.PollForAssignment(),
|
|
500
|
-
priority: LeadApplicationModel.PriorityEnum().required(),
|
|
501
|
-
should_notify: Joi.boolean(),
|
|
502
|
-
slug: Joi.string().allow("").required(),
|
|
503
|
-
success_message: Joi.string().allow(""),
|
|
504
|
-
title: Joi.string().allow("").required(),
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
|
|
508
251
|
/** @returns {CreatedOn} */
|
|
509
252
|
static CreatedOn() {
|
|
510
253
|
return Joi.object({
|
|
@@ -512,21 +255,6 @@ class LeadApplicationModel {
|
|
|
512
255
|
});
|
|
513
256
|
}
|
|
514
257
|
|
|
515
|
-
/** @returns {CreateVideoRoomPayload} */
|
|
516
|
-
static CreateVideoRoomPayload() {
|
|
517
|
-
return Joi.object({
|
|
518
|
-
notify: Joi.array().items(LeadApplicationModel.NotifyUser()),
|
|
519
|
-
unique_name: Joi.string().allow("").required(),
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/** @returns {CreateVideoRoomResponse} */
|
|
524
|
-
static CreateVideoRoomResponse() {
|
|
525
|
-
return Joi.object({
|
|
526
|
-
unique_name: Joi.string().allow("").required(),
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
|
|
530
258
|
/** @returns {CustomForm} */
|
|
531
259
|
static CustomForm() {
|
|
532
260
|
return Joi.object({
|
|
@@ -547,14 +275,6 @@ class LeadApplicationModel {
|
|
|
547
275
|
});
|
|
548
276
|
}
|
|
549
277
|
|
|
550
|
-
/** @returns {CustomFormList} */
|
|
551
|
-
static CustomFormList() {
|
|
552
|
-
return Joi.object({
|
|
553
|
-
items: Joi.array().items(LeadApplicationModel.CustomForm()),
|
|
554
|
-
page: LeadApplicationModel.Page(),
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
|
|
558
278
|
/** @returns {CustomFormSubmissionPayload} */
|
|
559
279
|
static CustomFormSubmissionPayload() {
|
|
560
280
|
return Joi.object({
|
|
@@ -571,35 +291,6 @@ class LeadApplicationModel {
|
|
|
571
291
|
});
|
|
572
292
|
}
|
|
573
293
|
|
|
574
|
-
/** @returns {EditCustomFormPayload} */
|
|
575
|
-
static EditCustomFormPayload() {
|
|
576
|
-
return Joi.object({
|
|
577
|
-
description: Joi.string().allow(""),
|
|
578
|
-
header_image: Joi.string().allow(""),
|
|
579
|
-
inputs: Joi.array().items(Joi.any()).required(),
|
|
580
|
-
login_required: Joi.boolean(),
|
|
581
|
-
poll_for_assignment: LeadApplicationModel.PollForAssignment(),
|
|
582
|
-
priority: LeadApplicationModel.PriorityEnum().required(),
|
|
583
|
-
should_notify: Joi.boolean(),
|
|
584
|
-
success_message: Joi.string().allow(""),
|
|
585
|
-
title: Joi.string().allow("").required(),
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/** @returns {EditTicketPayload} */
|
|
590
|
-
static EditTicketPayload() {
|
|
591
|
-
return Joi.object({
|
|
592
|
-
assigned_to: LeadApplicationModel.AgentChangePayload(),
|
|
593
|
-
category: Joi.string().allow(""),
|
|
594
|
-
content: LeadApplicationModel.TicketContent(),
|
|
595
|
-
priority: LeadApplicationModel.PriorityEnum(),
|
|
596
|
-
source: Joi.string().allow(""),
|
|
597
|
-
status: Joi.string().allow(""),
|
|
598
|
-
sub_category: Joi.string().allow(""),
|
|
599
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
|
|
603
294
|
/** @returns {Email} */
|
|
604
295
|
static Email() {
|
|
605
296
|
return Joi.object({
|
|
@@ -619,25 +310,6 @@ class LeadApplicationModel {
|
|
|
619
310
|
});
|
|
620
311
|
}
|
|
621
312
|
|
|
622
|
-
/** @returns {FeedbackResponseItem} */
|
|
623
|
-
static FeedbackResponseItem() {
|
|
624
|
-
return Joi.object({
|
|
625
|
-
display: Joi.string().allow("").required(),
|
|
626
|
-
key: Joi.string().allow("").required(),
|
|
627
|
-
value: Joi.string().allow("").required(),
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/** @returns {Filter} */
|
|
632
|
-
static Filter() {
|
|
633
|
-
return Joi.object({
|
|
634
|
-
assignees: Joi.array().items(Joi.any()).required(),
|
|
635
|
-
categories: Joi.array().items(LeadApplicationModel.TicketCategory()),
|
|
636
|
-
priorities: Joi.array().items(LeadApplicationModel.Priority()).required(),
|
|
637
|
-
statuses: Joi.array().items(LeadApplicationModel.Status()).required(),
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
|
|
641
313
|
/** @returns {GetParticipantsInsideVideoRoomResponse} */
|
|
642
314
|
static GetParticipantsInsideVideoRoomResponse() {
|
|
643
315
|
return Joi.object({
|
|
@@ -654,44 +326,6 @@ class LeadApplicationModel {
|
|
|
654
326
|
});
|
|
655
327
|
}
|
|
656
328
|
|
|
657
|
-
/** @returns {IntegrationConfig} */
|
|
658
|
-
static IntegrationConfig() {
|
|
659
|
-
return Joi.object({
|
|
660
|
-
_id: Joi.string().allow(""),
|
|
661
|
-
allow_ticket_creation: Joi.boolean().required(),
|
|
662
|
-
base_url: Joi.string().allow(""),
|
|
663
|
-
category_data: LeadApplicationModel.CategoryData(),
|
|
664
|
-
category_sync_apikey: Joi.string().allow(""),
|
|
665
|
-
config_completed: Joi.boolean(),
|
|
666
|
-
create_ticket_apikey: Joi.string().allow(""),
|
|
667
|
-
integration_type: Joi.string().allow("").required(),
|
|
668
|
-
show_listing: Joi.boolean().required(),
|
|
669
|
-
update_ticket_apikey: Joi.string().allow(""),
|
|
670
|
-
webhook_apikey: Joi.string().allow(""),
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
/** @returns {NotifyUser} */
|
|
675
|
-
static NotifyUser() {
|
|
676
|
-
return Joi.object({
|
|
677
|
-
country_code: Joi.string().allow("").required(),
|
|
678
|
-
phone_number: Joi.string().allow("").required(),
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/** @returns {Page} */
|
|
683
|
-
static Page() {
|
|
684
|
-
return Joi.object({
|
|
685
|
-
current: Joi.number(),
|
|
686
|
-
has_next: Joi.boolean(),
|
|
687
|
-
has_previous: Joi.boolean(),
|
|
688
|
-
item_total: Joi.number(),
|
|
689
|
-
next_id: Joi.string().allow(""),
|
|
690
|
-
size: Joi.number(),
|
|
691
|
-
type: Joi.string().allow("").required(),
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
|
|
695
329
|
/** @returns {Participant} */
|
|
696
330
|
static Participant() {
|
|
697
331
|
return Joi.object({
|
|
@@ -757,21 +391,6 @@ class LeadApplicationModel {
|
|
|
757
391
|
});
|
|
758
392
|
}
|
|
759
393
|
|
|
760
|
-
/** @returns {SupportGeneralConfig} */
|
|
761
|
-
static SupportGeneralConfig() {
|
|
762
|
-
return Joi.object({
|
|
763
|
-
_id: Joi.string().allow(""),
|
|
764
|
-
integration: Joi.any(),
|
|
765
|
-
show_communication_info: Joi.boolean(),
|
|
766
|
-
show_support_dris: Joi.boolean(),
|
|
767
|
-
support_communication: LeadApplicationModel.CommunicationDetails(),
|
|
768
|
-
support_email: LeadApplicationModel.CommunicationDetails(),
|
|
769
|
-
support_faq: LeadApplicationModel.CommunicationDetails(),
|
|
770
|
-
support_phone: LeadApplicationModel.CommunicationDetails(),
|
|
771
|
-
type: Joi.string().allow(""),
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
|
|
775
394
|
/** @returns {Ticket} */
|
|
776
395
|
static Ticket() {
|
|
777
396
|
return Joi.object({
|
|
@@ -833,44 +452,6 @@ class LeadApplicationModel {
|
|
|
833
452
|
});
|
|
834
453
|
}
|
|
835
454
|
|
|
836
|
-
/** @returns {TicketFeedback} */
|
|
837
|
-
static TicketFeedback() {
|
|
838
|
-
return Joi.object({
|
|
839
|
-
_id: Joi.string().allow("").required(),
|
|
840
|
-
category: Joi.string().allow(""),
|
|
841
|
-
company_id: Joi.string().allow("").required(),
|
|
842
|
-
created_at: Joi.string().allow(""),
|
|
843
|
-
response: Joi.array()
|
|
844
|
-
.items(LeadApplicationModel.FeedbackResponseItem())
|
|
845
|
-
.required(),
|
|
846
|
-
ticket_id: Joi.string().allow("").required(),
|
|
847
|
-
updated_at: Joi.string().allow(""),
|
|
848
|
-
user: Joi.any(),
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
/** @returns {TicketFeedbackForm} */
|
|
853
|
-
static TicketFeedbackForm() {
|
|
854
|
-
return Joi.object({
|
|
855
|
-
display: Joi.array().items(Joi.any()),
|
|
856
|
-
title: Joi.string().allow("").required(),
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
/** @returns {TicketFeedbackList} */
|
|
861
|
-
static TicketFeedbackList() {
|
|
862
|
-
return Joi.object({
|
|
863
|
-
items: Joi.array().items(LeadApplicationModel.TicketFeedback()),
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
/** @returns {TicketFeedbackPayload} */
|
|
868
|
-
static TicketFeedbackPayload() {
|
|
869
|
-
return Joi.object({
|
|
870
|
-
form_response: Joi.any(),
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
|
-
|
|
874
455
|
/** @returns {TicketHistory} */
|
|
875
456
|
static TicketHistory() {
|
|
876
457
|
return Joi.object({
|
|
@@ -885,14 +466,6 @@ class LeadApplicationModel {
|
|
|
885
466
|
});
|
|
886
467
|
}
|
|
887
468
|
|
|
888
|
-
/** @returns {TicketHistoryList} */
|
|
889
|
-
static TicketHistoryList() {
|
|
890
|
-
return Joi.object({
|
|
891
|
-
items: Joi.array().items(LeadApplicationModel.TicketHistory()),
|
|
892
|
-
page: LeadApplicationModel.Page(),
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
|
|
896
469
|
/** @returns {TicketHistoryPayload} */
|
|
897
470
|
static TicketHistoryPayload() {
|
|
898
471
|
return Joi.object({
|
|
@@ -901,24 +474,6 @@ class LeadApplicationModel {
|
|
|
901
474
|
});
|
|
902
475
|
}
|
|
903
476
|
|
|
904
|
-
/** @returns {TicketList} */
|
|
905
|
-
static TicketList() {
|
|
906
|
-
return Joi.object({
|
|
907
|
-
filters: LeadApplicationModel.Filter(),
|
|
908
|
-
items: Joi.array().items(LeadApplicationModel.Ticket()),
|
|
909
|
-
page: LeadApplicationModel.Page(),
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
/** @returns {TicketSubCategory} */
|
|
914
|
-
static TicketSubCategory() {
|
|
915
|
-
return Joi.object({
|
|
916
|
-
display: Joi.string().allow("").required(),
|
|
917
|
-
key: Joi.string().allow("").required(),
|
|
918
|
-
sub_categories: Joi.link("#TicketSubCategory"),
|
|
919
|
-
}).id("TicketSubCategory");
|
|
920
|
-
}
|
|
921
|
-
|
|
922
477
|
/** @returns {UserSchema} */
|
|
923
478
|
static UserSchema() {
|
|
924
479
|
return Joi.object({
|
|
@@ -1002,21 +557,6 @@ class LeadApplicationModel {
|
|
|
1002
557
|
);
|
|
1003
558
|
}
|
|
1004
559
|
|
|
1005
|
-
/**
|
|
1006
|
-
* Enum: TicketIntegrationDetails Used By: Lead
|
|
1007
|
-
*
|
|
1008
|
-
* @returns {TicketIntegrationDetails}
|
|
1009
|
-
*/
|
|
1010
|
-
static TicketIntegrationDetails() {
|
|
1011
|
-
return Joi.string().valid(
|
|
1012
|
-
"default",
|
|
1013
|
-
|
|
1014
|
-
"freshdesk",
|
|
1015
|
-
|
|
1016
|
-
"kapture"
|
|
1017
|
-
);
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
560
|
/**
|
|
1021
561
|
* Enum: TicketSourceEnum Used By: Lead
|
|
1022
562
|
*
|