@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,9 +4,9 @@ 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
|
*/
|
|
12
12
|
|
|
@@ -15,34 +15,18 @@ const Joi = require("joi");
|
|
|
15
15
|
* @property {string} agent_id - Agent's unique ID
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* @typedef CategoryData
|
|
20
|
-
* @property {TicketCategory} [list]
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
18
|
/**
|
|
24
19
|
* @typedef CloseVideoRoomResponse
|
|
25
20
|
* @property {boolean} success - Denotes if operation was successfully
|
|
26
21
|
*/
|
|
27
22
|
|
|
28
|
-
/**
|
|
29
|
-
* @typedef CommunicationDetails
|
|
30
|
-
* @property {string} [description] - Short description for the communication method
|
|
31
|
-
* @property {boolean} [enabled] - Denotes if this communication method has to be shown
|
|
32
|
-
* @property {string} [title] - Title for the communication method
|
|
33
|
-
* @property {string} [type] - Enum type for the communication method
|
|
34
|
-
* @property {string} [value] - Value for the communication method
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
23
|
/**
|
|
38
24
|
* @typedef CreateCustomFormPayload
|
|
39
25
|
* @property {string} [description] - Description of the form
|
|
40
26
|
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
41
27
|
* @property {Object[]} inputs - List of all the form components
|
|
42
|
-
* @property {PollForAssignment} [poll_for_assignment]
|
|
43
|
-
*
|
|
44
|
-
* @property {PriorityEnum} priority - Describes the priority of the tickets
|
|
45
|
-
* created by the form
|
|
28
|
+
* @property {PollForAssignment} [poll_for_assignment]
|
|
29
|
+
* @property {PriorityEnum} priority
|
|
46
30
|
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
47
31
|
* when a response is received
|
|
48
32
|
* @property {string} slug - Slug for the form
|
|
@@ -70,19 +54,18 @@ const Joi = require("joi");
|
|
|
70
54
|
* @typedef CustomForm
|
|
71
55
|
* @property {string} _id - Unique identifier for the form
|
|
72
56
|
* @property {string} application_id - Application ID for form
|
|
73
|
-
* @property {CreatedOn} [created_on]
|
|
57
|
+
* @property {CreatedOn} [created_on]
|
|
74
58
|
* @property {string} [description] - Form description that will be shown to the user
|
|
75
59
|
* @property {string} [header_image] - Form header image that will be shown to the user
|
|
76
60
|
* @property {Object[]} inputs - List of all the form fields
|
|
77
61
|
* @property {boolean} login_required - Denotes if login is required to make a
|
|
78
62
|
* form response submission
|
|
79
|
-
* @property {PollForAssignment} [poll_for_assignment]
|
|
80
|
-
*
|
|
81
|
-
* @property {Priority} priority - Sets priority of tickets created by form response
|
|
63
|
+
* @property {PollForAssignment} [poll_for_assignment]
|
|
64
|
+
* @property {Priority} priority
|
|
82
65
|
* @property {boolean} should_notify - Denotes if new response submission for
|
|
83
66
|
* the form should be notified to the assignees
|
|
84
67
|
* @property {string} slug - Slug for the form, which is to be used for accessing the form
|
|
85
|
-
* @property {SubmitButton} [submit_button]
|
|
68
|
+
* @property {SubmitButton} [submit_button]
|
|
86
69
|
* @property {string} [success_message] - Message that is to be shown on
|
|
87
70
|
* succesfull form response submission
|
|
88
71
|
* @property {string} title - Form title that will be shown to the user
|
|
@@ -91,13 +74,7 @@ const Joi = require("joi");
|
|
|
91
74
|
/**
|
|
92
75
|
* @typedef CustomFormList
|
|
93
76
|
* @property {CustomForm[]} [items] - List of forms
|
|
94
|
-
* @property {Page} [page]
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @typedef CustomFormSubmissionPayload
|
|
99
|
-
* @property {TicketAsset[]} [attachments] - List of all attachments related to the form
|
|
100
|
-
* @property {Object[]} response - Form response
|
|
77
|
+
* @property {Page} [page]
|
|
101
78
|
*/
|
|
102
79
|
|
|
103
80
|
/**
|
|
@@ -113,10 +90,8 @@ const Joi = require("joi");
|
|
|
113
90
|
* @property {Object[]} inputs - List of all the form components
|
|
114
91
|
* @property {boolean} [login_required] - Denotes if login is required to make a
|
|
115
92
|
* form response submission
|
|
116
|
-
* @property {PollForAssignment} [poll_for_assignment]
|
|
117
|
-
*
|
|
118
|
-
* @property {PriorityEnum} priority - Describes the priority of the tickets
|
|
119
|
-
* created by the form
|
|
93
|
+
* @property {PollForAssignment} [poll_for_assignment]
|
|
94
|
+
* @property {PriorityEnum} priority
|
|
120
95
|
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
121
96
|
* when a response is received
|
|
122
97
|
* @property {string} [success_message] - Success message that will be shown on submission
|
|
@@ -125,11 +100,10 @@ const Joi = require("joi");
|
|
|
125
100
|
|
|
126
101
|
/**
|
|
127
102
|
* @typedef EditTicketPayload
|
|
128
|
-
* @property {AgentChangePayload} [assigned_to]
|
|
129
|
-
* whom ticket is assigned
|
|
103
|
+
* @property {AgentChangePayload} [assigned_to]
|
|
130
104
|
* @property {string} [category] - Category assigned to the ticket
|
|
131
|
-
* @property {TicketContent} [content]
|
|
132
|
-
* @property {PriorityEnum} [priority]
|
|
105
|
+
* @property {TicketContent} [content]
|
|
106
|
+
* @property {PriorityEnum} [priority]
|
|
133
107
|
* @property {string} [source] - Denotes if the ticket was created at company or
|
|
134
108
|
* application level
|
|
135
109
|
* @property {string} [status] - Denotes in what state is the ticket
|
|
@@ -177,26 +151,6 @@ const Joi = require("joi");
|
|
|
177
151
|
* @property {string} access_token - Access token to be used for video room
|
|
178
152
|
*/
|
|
179
153
|
|
|
180
|
-
/**
|
|
181
|
-
* @typedef IntegrationConfig
|
|
182
|
-
* @property {string} [_id] - Unique id
|
|
183
|
-
* @property {boolean} allow_ticket_creation - Denotes ticket creation enable or
|
|
184
|
-
* disable on platform
|
|
185
|
-
* @property {string} [base_url] - Integration base url for validate and create ticket
|
|
186
|
-
* @property {CategoryData} [category_data] - Support category array list details
|
|
187
|
-
* @property {string} [category_sync_apikey] - Integration apikey to sync
|
|
188
|
-
* category of selected type
|
|
189
|
-
* @property {boolean} [config_completed] - Denotes the current intergration is
|
|
190
|
-
* completed or partially done
|
|
191
|
-
* @property {string} [create_ticket_apikey] - Integration apikey to validate
|
|
192
|
-
* and create ticket
|
|
193
|
-
* @property {string} integration_type - Enum string values for integration
|
|
194
|
-
* @property {boolean} show_listing - Denotes ticket listing enable or disable on platform
|
|
195
|
-
* @property {string} [update_ticket_apikey] - Integration apikey to update ticket
|
|
196
|
-
* @property {string} [webhook_apikey] - Integration webhook apikey to got
|
|
197
|
-
* callbacks from integration type dashboard like freshdesk, etc
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
154
|
/**
|
|
201
155
|
* @typedef NotifyUser
|
|
202
156
|
* @property {string} country_code - Country code
|
|
@@ -218,7 +172,7 @@ const Joi = require("joi");
|
|
|
218
172
|
* @typedef Participant
|
|
219
173
|
* @property {string} [identity] - Unique identifier of participant
|
|
220
174
|
* @property {string} [status] - Status of participant
|
|
221
|
-
* @property {UserSchema} [user]
|
|
175
|
+
* @property {UserSchema} [user]
|
|
222
176
|
*/
|
|
223
177
|
|
|
224
178
|
/**
|
|
@@ -242,7 +196,7 @@ const Joi = require("joi");
|
|
|
242
196
|
* @typedef Priority
|
|
243
197
|
* @property {string} color - Color for priority
|
|
244
198
|
* @property {string} display - Display text for priority
|
|
245
|
-
* @property {PriorityEnum} key
|
|
199
|
+
* @property {PriorityEnum} key
|
|
246
200
|
*/
|
|
247
201
|
|
|
248
202
|
/**
|
|
@@ -259,49 +213,25 @@ const Joi = require("joi");
|
|
|
259
213
|
* @property {string} title_color - Title color submit button
|
|
260
214
|
*/
|
|
261
215
|
|
|
262
|
-
/**
|
|
263
|
-
* @typedef SubmitCustomFormResponse
|
|
264
|
-
* @property {string} message - Success message for form submission
|
|
265
|
-
* @property {Ticket} [ticket] - Ticket created on form submission
|
|
266
|
-
*/
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* @typedef SupportGeneralConfig
|
|
270
|
-
* @property {string} [_id] - Unique id
|
|
271
|
-
* @property {Object} [integration] - Contains integrations basic information
|
|
272
|
-
* @property {boolean} [show_communication_info] - Denotes if support
|
|
273
|
-
* communication info should be shown
|
|
274
|
-
* @property {boolean} [show_support_dris] - Denotes if support DRIS info should be shown
|
|
275
|
-
* @property {CommunicationDetails} [support_communication] - Support
|
|
276
|
-
* communication array list details
|
|
277
|
-
* @property {CommunicationDetails} [support_email] - Support e-mail details
|
|
278
|
-
* @property {CommunicationDetails} [support_faq] - Support FAQ details
|
|
279
|
-
* @property {CommunicationDetails} [support_phone] - Support Phone number details
|
|
280
|
-
* @property {string} [type] - The enity/platform for which the config is stored
|
|
281
|
-
*/
|
|
282
|
-
|
|
283
216
|
/**
|
|
284
217
|
* @typedef Ticket
|
|
285
218
|
* @property {Object} [_custom_json] - Custom json relevant to the ticket
|
|
286
219
|
* @property {string} _id - Unique identifier for the ticket
|
|
287
220
|
* @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
|
|
288
|
-
* @property {TicketCategory} category
|
|
289
|
-
* @property {TicketContent} [content]
|
|
290
|
-
* @property {TicketContext} [context]
|
|
291
|
-
* realated to the ticket
|
|
221
|
+
* @property {TicketCategory} category
|
|
222
|
+
* @property {TicketContent} [content]
|
|
223
|
+
* @property {TicketContext} [context]
|
|
292
224
|
* @property {string} [created_at] - Time when the ticket was created
|
|
293
225
|
* @property {Object} [created_by] - User details of ticket creator
|
|
294
|
-
* @property {CreatedOn} [created_on]
|
|
295
|
-
* realated to the ticket
|
|
226
|
+
* @property {CreatedOn} [created_on]
|
|
296
227
|
* @property {Object} [integration] - Integration type and its details of the ticket
|
|
297
228
|
* @property {boolean} [is_feedback_pending] - Denotes if feedback submission is
|
|
298
229
|
* pending for the ticket
|
|
299
|
-
* @property {Priority} priority
|
|
230
|
+
* @property {Priority} priority
|
|
300
231
|
* @property {string} [response_id] - Details of company and application
|
|
301
232
|
* realated to the ticket
|
|
302
|
-
* @property {TicketSourceEnum} source
|
|
303
|
-
*
|
|
304
|
-
* @property {Status} status - Denotes in what state is the ticket
|
|
233
|
+
* @property {TicketSourceEnum} source
|
|
234
|
+
* @property {Status} status
|
|
305
235
|
* @property {string} [sub_category] - Sub-category assigned to the ticket
|
|
306
236
|
* @property {string[]} [tags] - Tags relevant to ticket
|
|
307
237
|
* @property {string} [updated_at] - Time when the ticket was last updated
|
|
@@ -310,17 +240,17 @@ const Joi = require("joi");
|
|
|
310
240
|
/**
|
|
311
241
|
* @typedef TicketAsset
|
|
312
242
|
* @property {string} [display] - Display text for asset
|
|
313
|
-
* @property {TicketAssetTypeEnum} type
|
|
243
|
+
* @property {TicketAssetTypeEnum} type
|
|
314
244
|
* @property {string} value - To be used for details
|
|
315
245
|
*/
|
|
316
246
|
|
|
317
247
|
/**
|
|
318
248
|
* @typedef TicketCategory
|
|
319
249
|
* @property {string} display - Category display value identifier
|
|
320
|
-
* @property {FeedbackForm} [feedback_form]
|
|
250
|
+
* @property {FeedbackForm} [feedback_form]
|
|
321
251
|
* @property {number} [group_id] - Group id of category releted data
|
|
322
252
|
* @property {string} key - Category key value identifier
|
|
323
|
-
* @property {TicketCategory} [sub_categories]
|
|
253
|
+
* @property {TicketCategory} [sub_categories]
|
|
324
254
|
*/
|
|
325
255
|
|
|
326
256
|
/**
|
|
@@ -348,12 +278,6 @@ const Joi = require("joi");
|
|
|
348
278
|
* @property {Object} [user] - User who submitted the feedback
|
|
349
279
|
*/
|
|
350
280
|
|
|
351
|
-
/**
|
|
352
|
-
* @typedef TicketFeedbackForm
|
|
353
|
-
* @property {Object[]} [display] - List of all the form fields
|
|
354
|
-
* @property {string} title - Feedback form title that will be shown to the user
|
|
355
|
-
*/
|
|
356
|
-
|
|
357
281
|
/**
|
|
358
282
|
* @typedef TicketFeedbackList
|
|
359
283
|
* @property {TicketFeedback[]} [items] - List of all ticket feedback for the ticket
|
|
@@ -370,7 +294,7 @@ const Joi = require("joi");
|
|
|
370
294
|
* @property {string} _id - Unique identifier of the history event
|
|
371
295
|
* @property {string} [created_at] - Time of creation of the history event
|
|
372
296
|
* @property {Object} [created_by] - User who created the history event
|
|
373
|
-
* @property {CreatedOn} [created_on]
|
|
297
|
+
* @property {CreatedOn} [created_on]
|
|
374
298
|
* @property {string} ticket_id - Readable ticket number
|
|
375
299
|
* @property {string} type - Type of the history event
|
|
376
300
|
* @property {string} [updated_at] - Time of last update of the history event
|
|
@@ -380,27 +304,20 @@ const Joi = require("joi");
|
|
|
380
304
|
/**
|
|
381
305
|
* @typedef TicketHistoryList
|
|
382
306
|
* @property {TicketHistory[]} [items] - List of ticket history
|
|
383
|
-
* @property {Page} [page]
|
|
307
|
+
* @property {Page} [page]
|
|
384
308
|
*/
|
|
385
309
|
|
|
386
310
|
/**
|
|
387
311
|
* @typedef TicketHistoryPayload
|
|
388
|
-
* @property {HistoryTypeEnum} type
|
|
312
|
+
* @property {HistoryTypeEnum} type
|
|
389
313
|
* @property {Object} value - Details of history event
|
|
390
314
|
*/
|
|
391
315
|
|
|
392
316
|
/**
|
|
393
317
|
* @typedef TicketList
|
|
394
|
-
* @property {Filter} [filters]
|
|
318
|
+
* @property {Filter} [filters]
|
|
395
319
|
* @property {Ticket[]} [items] - List of tickets
|
|
396
|
-
* @property {Page} [page]
|
|
397
|
-
*/
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* @typedef TicketSubCategory
|
|
401
|
-
* @property {string} display - Display text for sub-category
|
|
402
|
-
* @property {string} key - Key for sub-category
|
|
403
|
-
* @property {TicketSubCategory} [sub_categories]
|
|
320
|
+
* @property {Page} [page]
|
|
404
321
|
*/
|
|
405
322
|
|
|
406
323
|
/**
|
|
@@ -439,8 +356,6 @@ const Joi = require("joi");
|
|
|
439
356
|
* | "order"} TicketAssetTypeEnum
|
|
440
357
|
*/
|
|
441
358
|
|
|
442
|
-
/** @typedef {"default" | "freshdesk" | "kapture"} TicketIntegrationDetails */
|
|
443
|
-
|
|
444
359
|
/** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
|
|
445
360
|
|
|
446
361
|
class LeadPlatformModel {
|
|
@@ -463,13 +378,6 @@ class LeadPlatformModel {
|
|
|
463
378
|
});
|
|
464
379
|
}
|
|
465
380
|
|
|
466
|
-
/** @returns {CategoryData} */
|
|
467
|
-
static CategoryData() {
|
|
468
|
-
return Joi.object({
|
|
469
|
-
list: LeadPlatformModel.TicketCategory(),
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
|
|
473
381
|
/** @returns {CloseVideoRoomResponse} */
|
|
474
382
|
static CloseVideoRoomResponse() {
|
|
475
383
|
return Joi.object({
|
|
@@ -477,17 +385,6 @@ class LeadPlatformModel {
|
|
|
477
385
|
});
|
|
478
386
|
}
|
|
479
387
|
|
|
480
|
-
/** @returns {CommunicationDetails} */
|
|
481
|
-
static CommunicationDetails() {
|
|
482
|
-
return Joi.object({
|
|
483
|
-
description: Joi.string().allow(""),
|
|
484
|
-
enabled: Joi.boolean(),
|
|
485
|
-
title: Joi.string().allow(""),
|
|
486
|
-
type: Joi.string().allow(""),
|
|
487
|
-
value: Joi.string().allow(""),
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
|
|
491
388
|
/** @returns {CreateCustomFormPayload} */
|
|
492
389
|
static CreateCustomFormPayload() {
|
|
493
390
|
return Joi.object({
|
|
@@ -553,14 +450,6 @@ class LeadPlatformModel {
|
|
|
553
450
|
});
|
|
554
451
|
}
|
|
555
452
|
|
|
556
|
-
/** @returns {CustomFormSubmissionPayload} */
|
|
557
|
-
static CustomFormSubmissionPayload() {
|
|
558
|
-
return Joi.object({
|
|
559
|
-
attachments: Joi.array().items(LeadPlatformModel.TicketAsset()),
|
|
560
|
-
response: Joi.array().items(Joi.any()).required(),
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
|
|
564
453
|
/** @returns {Debug} */
|
|
565
454
|
static Debug() {
|
|
566
455
|
return Joi.object({
|
|
@@ -652,23 +541,6 @@ class LeadPlatformModel {
|
|
|
652
541
|
});
|
|
653
542
|
}
|
|
654
543
|
|
|
655
|
-
/** @returns {IntegrationConfig} */
|
|
656
|
-
static IntegrationConfig() {
|
|
657
|
-
return Joi.object({
|
|
658
|
-
_id: Joi.string().allow(""),
|
|
659
|
-
allow_ticket_creation: Joi.boolean().required(),
|
|
660
|
-
base_url: Joi.string().allow(""),
|
|
661
|
-
category_data: LeadPlatformModel.CategoryData(),
|
|
662
|
-
category_sync_apikey: Joi.string().allow(""),
|
|
663
|
-
config_completed: Joi.boolean(),
|
|
664
|
-
create_ticket_apikey: Joi.string().allow(""),
|
|
665
|
-
integration_type: Joi.string().allow("").required(),
|
|
666
|
-
show_listing: Joi.boolean().required(),
|
|
667
|
-
update_ticket_apikey: Joi.string().allow(""),
|
|
668
|
-
webhook_apikey: Joi.string().allow(""),
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
|
|
672
544
|
/** @returns {NotifyUser} */
|
|
673
545
|
static NotifyUser() {
|
|
674
546
|
return Joi.object({
|
|
@@ -747,29 +619,6 @@ class LeadPlatformModel {
|
|
|
747
619
|
});
|
|
748
620
|
}
|
|
749
621
|
|
|
750
|
-
/** @returns {SubmitCustomFormResponse} */
|
|
751
|
-
static SubmitCustomFormResponse() {
|
|
752
|
-
return Joi.object({
|
|
753
|
-
message: Joi.string().allow("").required(),
|
|
754
|
-
ticket: LeadPlatformModel.Ticket(),
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/** @returns {SupportGeneralConfig} */
|
|
759
|
-
static SupportGeneralConfig() {
|
|
760
|
-
return Joi.object({
|
|
761
|
-
_id: Joi.string().allow(""),
|
|
762
|
-
integration: Joi.any(),
|
|
763
|
-
show_communication_info: Joi.boolean(),
|
|
764
|
-
show_support_dris: Joi.boolean(),
|
|
765
|
-
support_communication: LeadPlatformModel.CommunicationDetails(),
|
|
766
|
-
support_email: LeadPlatformModel.CommunicationDetails(),
|
|
767
|
-
support_faq: LeadPlatformModel.CommunicationDetails(),
|
|
768
|
-
support_phone: LeadPlatformModel.CommunicationDetails(),
|
|
769
|
-
type: Joi.string().allow(""),
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
|
|
773
622
|
/** @returns {Ticket} */
|
|
774
623
|
static Ticket() {
|
|
775
624
|
return Joi.object({
|
|
@@ -847,14 +696,6 @@ class LeadPlatformModel {
|
|
|
847
696
|
});
|
|
848
697
|
}
|
|
849
698
|
|
|
850
|
-
/** @returns {TicketFeedbackForm} */
|
|
851
|
-
static TicketFeedbackForm() {
|
|
852
|
-
return Joi.object({
|
|
853
|
-
display: Joi.array().items(Joi.any()),
|
|
854
|
-
title: Joi.string().allow("").required(),
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
|
|
858
699
|
/** @returns {TicketFeedbackList} */
|
|
859
700
|
static TicketFeedbackList() {
|
|
860
701
|
return Joi.object({
|
|
@@ -908,15 +749,6 @@ class LeadPlatformModel {
|
|
|
908
749
|
});
|
|
909
750
|
}
|
|
910
751
|
|
|
911
|
-
/** @returns {TicketSubCategory} */
|
|
912
|
-
static TicketSubCategory() {
|
|
913
|
-
return Joi.object({
|
|
914
|
-
display: Joi.string().allow("").required(),
|
|
915
|
-
key: Joi.string().allow("").required(),
|
|
916
|
-
sub_categories: Joi.link("#TicketSubCategory"),
|
|
917
|
-
}).id("TicketSubCategory");
|
|
918
|
-
}
|
|
919
|
-
|
|
920
752
|
/** @returns {UserSchema} */
|
|
921
753
|
static UserSchema() {
|
|
922
754
|
return Joi.object({
|
|
@@ -998,21 +830,6 @@ class LeadPlatformModel {
|
|
|
998
830
|
);
|
|
999
831
|
}
|
|
1000
832
|
|
|
1001
|
-
/**
|
|
1002
|
-
* Enum: TicketIntegrationDetails Used By: Lead
|
|
1003
|
-
*
|
|
1004
|
-
* @returns {TicketIntegrationDetails}
|
|
1005
|
-
*/
|
|
1006
|
-
static TicketIntegrationDetails() {
|
|
1007
|
-
return Joi.string().valid(
|
|
1008
|
-
"default",
|
|
1009
|
-
|
|
1010
|
-
"freshdesk",
|
|
1011
|
-
|
|
1012
|
-
"kapture"
|
|
1013
|
-
);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
833
|
/**
|
|
1017
834
|
* Enum: TicketSourceEnum Used By: Lead
|
|
1018
835
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export = LeadPlatformValidator;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef CreatePlatformTicketHistoryParam
|
|
4
4
|
* @property {string} id - Ticket ID for which history is created
|
|
5
5
|
* @property {LeadPlatformModel.TicketHistoryPayload} body
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export = LeadPlatformValidator;
|
|
|
9
9
|
* @property {LeadPlatformModel.AddTicketPayload} body
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
|
-
* @typedef
|
|
12
|
+
* @typedef EditPlatformTicketParam
|
|
13
13
|
* @property {string} id - Ticket ID of ticket to be edited
|
|
14
14
|
* @property {LeadPlatformModel.EditTicketPayload} body
|
|
15
15
|
*/
|
|
@@ -19,15 +19,15 @@ export = LeadPlatformValidator;
|
|
|
19
19
|
*/
|
|
20
20
|
/** @typedef GetGeneralConfigParam */
|
|
21
21
|
/**
|
|
22
|
-
* @typedef
|
|
22
|
+
* @typedef GetPlatformTicketParam
|
|
23
23
|
* @property {string} id - Tiket ID of the ticket to be fetched
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
|
-
* @typedef
|
|
26
|
+
* @typedef GetPlatformTicketHistoryParam
|
|
27
27
|
* @property {string} id - Ticket ID for which history is to be fetched
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* @typedef
|
|
30
|
+
* @typedef GetPlatformTicketsParam
|
|
31
31
|
* @property {boolean} [items] - Decides that the reponse will contain the list of tickets
|
|
32
32
|
* @property {boolean} [filters] - Decides that the reponse will contain the
|
|
33
33
|
* ticket filters
|
|
@@ -41,12 +41,12 @@ export = LeadPlatformValidator;
|
|
|
41
41
|
* Default is 12.
|
|
42
42
|
*/
|
|
43
43
|
/**
|
|
44
|
-
* @typedef
|
|
45
|
-
* @property {string} uniqueName - Unique name of
|
|
44
|
+
* @typedef GetPlatformVideoParticipantsParam
|
|
45
|
+
* @property {string} uniqueName - Unique name of Video Room
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
|
-
* @typedef
|
|
49
|
-
* @property {string} uniqueName - Unique name of
|
|
48
|
+
* @typedef GetTokenForPlatformVideoRoomParam
|
|
49
|
+
* @property {string} uniqueName - Unique name of video room
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
52
|
* @typedef SubmitFeedbackParam
|
|
@@ -54,33 +54,33 @@ export = LeadPlatformValidator;
|
|
|
54
54
|
* @property {LeadPlatformModel.TicketFeedbackPayload} body
|
|
55
55
|
*/
|
|
56
56
|
declare class LeadPlatformValidator {
|
|
57
|
-
/** @returns {
|
|
58
|
-
static
|
|
57
|
+
/** @returns {CreatePlatformTicketHistoryParam} */
|
|
58
|
+
static createPlatformTicketHistory(): CreatePlatformTicketHistoryParam;
|
|
59
59
|
/** @returns {CreateTicketParam} */
|
|
60
60
|
static createTicket(): CreateTicketParam;
|
|
61
|
-
/** @returns {
|
|
62
|
-
static
|
|
61
|
+
/** @returns {EditPlatformTicketParam} */
|
|
62
|
+
static editPlatformTicket(): EditPlatformTicketParam;
|
|
63
63
|
/** @returns {GetFeedbacksParam} */
|
|
64
64
|
static getFeedbacks(): GetFeedbacksParam;
|
|
65
65
|
/** @returns {GetGeneralConfigParam} */
|
|
66
66
|
static getGeneralConfig(): any;
|
|
67
|
-
/** @returns {
|
|
68
|
-
static
|
|
69
|
-
/** @returns {
|
|
70
|
-
static
|
|
71
|
-
/** @returns {
|
|
72
|
-
static
|
|
73
|
-
/** @returns {
|
|
74
|
-
static
|
|
75
|
-
/** @returns {
|
|
76
|
-
static
|
|
67
|
+
/** @returns {GetPlatformTicketParam} */
|
|
68
|
+
static getPlatformTicket(): GetPlatformTicketParam;
|
|
69
|
+
/** @returns {GetPlatformTicketHistoryParam} */
|
|
70
|
+
static getPlatformTicketHistory(): GetPlatformTicketHistoryParam;
|
|
71
|
+
/** @returns {GetPlatformTicketsParam} */
|
|
72
|
+
static getPlatformTickets(): GetPlatformTicketsParam;
|
|
73
|
+
/** @returns {GetPlatformVideoParticipantsParam} */
|
|
74
|
+
static getPlatformVideoParticipants(): GetPlatformVideoParticipantsParam;
|
|
75
|
+
/** @returns {GetTokenForPlatformVideoRoomParam} */
|
|
76
|
+
static getTokenForPlatformVideoRoom(): GetTokenForPlatformVideoRoomParam;
|
|
77
77
|
/** @returns {SubmitFeedbackParam} */
|
|
78
78
|
static submitFeedback(): SubmitFeedbackParam;
|
|
79
79
|
}
|
|
80
80
|
declare namespace LeadPlatformValidator {
|
|
81
|
-
export {
|
|
81
|
+
export { CreatePlatformTicketHistoryParam, CreateTicketParam, EditPlatformTicketParam, GetFeedbacksParam, GetGeneralConfigParam, GetPlatformTicketParam, GetPlatformTicketHistoryParam, GetPlatformTicketsParam, GetPlatformVideoParticipantsParam, GetTokenForPlatformVideoRoomParam, SubmitFeedbackParam };
|
|
82
82
|
}
|
|
83
|
-
type
|
|
83
|
+
type CreatePlatformTicketHistoryParam = {
|
|
84
84
|
/**
|
|
85
85
|
* - Ticket ID for which history is created
|
|
86
86
|
*/
|
|
@@ -90,7 +90,7 @@ type CreateHistoryParam = {
|
|
|
90
90
|
type CreateTicketParam = {
|
|
91
91
|
body: LeadPlatformModel.AddTicketPayload;
|
|
92
92
|
};
|
|
93
|
-
type
|
|
93
|
+
type EditPlatformTicketParam = {
|
|
94
94
|
/**
|
|
95
95
|
* - Ticket ID of ticket to be edited
|
|
96
96
|
*/
|
|
@@ -103,19 +103,19 @@ type GetFeedbacksParam = {
|
|
|
103
103
|
*/
|
|
104
104
|
id: string;
|
|
105
105
|
};
|
|
106
|
-
type
|
|
106
|
+
type GetPlatformTicketParam = {
|
|
107
107
|
/**
|
|
108
108
|
* - Tiket ID of the ticket to be fetched
|
|
109
109
|
*/
|
|
110
110
|
id: string;
|
|
111
111
|
};
|
|
112
|
-
type
|
|
112
|
+
type GetPlatformTicketHistoryParam = {
|
|
113
113
|
/**
|
|
114
114
|
* - Ticket ID for which history is to be fetched
|
|
115
115
|
*/
|
|
116
116
|
id: string;
|
|
117
117
|
};
|
|
118
|
-
type
|
|
118
|
+
type GetPlatformTicketsParam = {
|
|
119
119
|
/**
|
|
120
120
|
* - Decides that the reponse will contain the list of tickets
|
|
121
121
|
*/
|
|
@@ -152,15 +152,15 @@ type GetTicketsParam = {
|
|
|
152
152
|
*/
|
|
153
153
|
pageSize?: number;
|
|
154
154
|
};
|
|
155
|
-
type
|
|
155
|
+
type GetPlatformVideoParticipantsParam = {
|
|
156
156
|
/**
|
|
157
|
-
* - Unique name of
|
|
157
|
+
* - Unique name of Video Room
|
|
158
158
|
*/
|
|
159
159
|
uniqueName: string;
|
|
160
160
|
};
|
|
161
|
-
type
|
|
161
|
+
type GetTokenForPlatformVideoRoomParam = {
|
|
162
162
|
/**
|
|
163
|
-
* - Unique name of
|
|
163
|
+
* - Unique name of video room
|
|
164
164
|
*/
|
|
165
165
|
uniqueName: string;
|
|
166
166
|
};
|