@gofynd/fdk-client-javascript 1.6.4 → 3.0.0-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 +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef GeneralConfigResponse
|
|
5
5
|
* @property {string} [_id]
|
|
6
6
|
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
7
7
|
* @property {boolean} [show_communication_info]
|
|
@@ -18,16 +18,16 @@ const Joi = require("joi");
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @typedef
|
|
22
|
-
* @property {string} [
|
|
23
|
-
* @property {string} [title]
|
|
21
|
+
* @typedef SupportSchema
|
|
22
|
+
* @property {string} [value]
|
|
24
23
|
* @property {string} [description]
|
|
25
24
|
* @property {boolean} [enabled]
|
|
26
25
|
*/
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
|
-
* @typedef
|
|
30
|
-
* @property {string} [
|
|
28
|
+
* @typedef SupportCommunicationSchema
|
|
29
|
+
* @property {string} [type]
|
|
30
|
+
* @property {string} [title]
|
|
31
31
|
* @property {string} [description]
|
|
32
32
|
* @property {boolean} [enabled]
|
|
33
33
|
*/
|
|
@@ -53,6 +53,7 @@ const Joi = require("joi");
|
|
|
53
53
|
* @property {number} [current] - The current page number.
|
|
54
54
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
55
55
|
* @property {number} [size] - The number of items per page.
|
|
56
|
+
* @property {number} [total] - Total number of items.
|
|
56
57
|
*/
|
|
57
58
|
|
|
58
59
|
/**
|
|
@@ -74,7 +75,7 @@ const Joi = require("joi");
|
|
|
74
75
|
* @property {Object[]} inputs - List of all the form components
|
|
75
76
|
* @property {string} [description] - Description of the form
|
|
76
77
|
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
77
|
-
* @property {
|
|
78
|
+
* @property {string} priority
|
|
78
79
|
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
79
80
|
* when a response is received
|
|
80
81
|
* @property {string} [success_message] - Success message that will be shown on submission
|
|
@@ -86,8 +87,7 @@ const Joi = require("joi");
|
|
|
86
87
|
* @property {string} title - Title for the form
|
|
87
88
|
* @property {Object[]} inputs - List of all the form components
|
|
88
89
|
* @property {string} [description] - Description of the form
|
|
89
|
-
* @property {
|
|
90
|
-
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
90
|
+
* @property {string} priority
|
|
91
91
|
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
92
92
|
* when a response is received
|
|
93
93
|
* @property {boolean} [login_required] - Denotes if login is required to make a
|
|
@@ -114,12 +114,20 @@ const Joi = require("joi");
|
|
|
114
114
|
* @property {string} agent_id - Agent's unique ID
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
|
+
/**
|
|
118
|
+
* @typedef NotifyUser
|
|
119
|
+
* @property {string} country_code - Country code
|
|
120
|
+
* @property {string} phone_number - Phone number
|
|
121
|
+
*/
|
|
122
|
+
|
|
117
123
|
/**
|
|
118
124
|
* @typedef Filter
|
|
119
125
|
* @property {Priority[]} priorities - List of possible priorities for tickets
|
|
120
126
|
* @property {TicketCategory[]} [categories] - List of possible categories for tickets
|
|
121
127
|
* @property {Status[]} statuses - List of possible statuses for tickets
|
|
122
|
-
* @property {Object[]} assignees - List of support staff availble for tickets
|
|
128
|
+
* @property {Object[]} [assignees] - List of support staff availble for tickets
|
|
129
|
+
* assignment
|
|
130
|
+
* @property {Object} [all_categories]
|
|
123
131
|
*/
|
|
124
132
|
|
|
125
133
|
/**
|
|
@@ -137,6 +145,7 @@ const Joi = require("joi");
|
|
|
137
145
|
/**
|
|
138
146
|
* @typedef CreatedOn
|
|
139
147
|
* @property {string} user_agent - Useragent details
|
|
148
|
+
* @property {string} [platform]
|
|
140
149
|
*/
|
|
141
150
|
|
|
142
151
|
/**
|
|
@@ -153,19 +162,28 @@ const Joi = require("joi");
|
|
|
153
162
|
* @property {TicketAsset[]} [attachments] - List of all attachments related to the ticket
|
|
154
163
|
*/
|
|
155
164
|
|
|
165
|
+
/**
|
|
166
|
+
* @typedef AdditionalInfoSchema
|
|
167
|
+
* @property {string} [display_name] - Display name for additional info
|
|
168
|
+
* @property {string} [display_value] - Display value for additional info
|
|
169
|
+
* @property {number} [priority] - Priority for additional info
|
|
170
|
+
*/
|
|
171
|
+
|
|
156
172
|
/**
|
|
157
173
|
* @typedef AddTicketPayload
|
|
158
174
|
* @property {Object} [created_by] - Creator of the ticket
|
|
159
175
|
* @property {string} [status] - Status of the ticket
|
|
160
176
|
* @property {PriorityEnum} [priority]
|
|
161
177
|
* @property {string} category - Category of the ticket
|
|
178
|
+
* @property {AdditionalInfoSchema[]} [additional_info]
|
|
162
179
|
* @property {TicketContent} content
|
|
163
180
|
* @property {Object} [_custom_json] - Optional custom data that needs to be sent
|
|
181
|
+
* @property {string[]} [subscribers]
|
|
164
182
|
*/
|
|
165
183
|
|
|
166
184
|
/**
|
|
167
185
|
* @typedef Priority
|
|
168
|
-
* @property {
|
|
186
|
+
* @property {string} key - Priority value of the ticket like urgent, low, medium, high.
|
|
169
187
|
* @property {string} display - Display text for priority
|
|
170
188
|
* @property {string} color - Color for priority
|
|
171
189
|
*/
|
|
@@ -215,7 +233,6 @@ const Joi = require("joi");
|
|
|
215
233
|
* @property {string} [header_image] - Form header image that will be shown to the user
|
|
216
234
|
* @property {string} title - Form title that will be shown to the user
|
|
217
235
|
* @property {string} [description] - Form description that will be shown to the user
|
|
218
|
-
* @property {Priority} priority
|
|
219
236
|
* @property {boolean} login_required - Denotes if login is required to make a
|
|
220
237
|
* form response submission
|
|
221
238
|
* @property {boolean} should_notify - Denotes if new response submission for
|
|
@@ -226,7 +243,12 @@ const Joi = require("joi");
|
|
|
226
243
|
* @property {Object[]} inputs - List of all the form fields
|
|
227
244
|
* @property {CreatedOn} [created_on]
|
|
228
245
|
* @property {PollForAssignment} [poll_for_assignment]
|
|
246
|
+
* @property {string[]} [available_assignees]
|
|
229
247
|
* @property {string} _id - Unique identifier for the form
|
|
248
|
+
* @property {string} [created_at]
|
|
249
|
+
* @property {string} [updated_at]
|
|
250
|
+
* @property {number} [__v]
|
|
251
|
+
* @property {string} [created_by]
|
|
230
252
|
*/
|
|
231
253
|
|
|
232
254
|
/**
|
|
@@ -240,7 +262,7 @@ const Joi = require("joi");
|
|
|
240
262
|
* @typedef TicketCategory
|
|
241
263
|
* @property {string} display - Category display value identifier
|
|
242
264
|
* @property {string} key - Category key value identifier
|
|
243
|
-
* @property {TicketCategory} [sub_categories]
|
|
265
|
+
* @property {TicketCategory[]} [sub_categories]
|
|
244
266
|
* @property {number} [group_id] - Group id of category releted data
|
|
245
267
|
* @property {FeedbackForm} [feedback_form]
|
|
246
268
|
*/
|
|
@@ -249,7 +271,6 @@ const Joi = require("joi");
|
|
|
249
271
|
* @typedef FeedbackResponseItem
|
|
250
272
|
* @property {string} display - Question/Title of the form field
|
|
251
273
|
* @property {string} key - Key of the form field
|
|
252
|
-
* @property {string} value - User response value for the form field
|
|
253
274
|
*/
|
|
254
275
|
|
|
255
276
|
/**
|
|
@@ -262,6 +283,7 @@ const Joi = require("joi");
|
|
|
262
283
|
* @property {Object} [user] - User who submitted the feedback
|
|
263
284
|
* @property {string} [updated_at] - Time when the feedback was last updated
|
|
264
285
|
* @property {string} [created_at] - Time when the feedback was created
|
|
286
|
+
* @property {number} [__v]
|
|
265
287
|
*/
|
|
266
288
|
|
|
267
289
|
/**
|
|
@@ -274,6 +296,7 @@ const Joi = require("joi");
|
|
|
274
296
|
* @property {string} _id - Unique identifier of the history event
|
|
275
297
|
* @property {string} [updated_at] - Time of last update of the history event
|
|
276
298
|
* @property {string} [created_at] - Time of creation of the history event
|
|
299
|
+
* @property {number} [__v]
|
|
277
300
|
*/
|
|
278
301
|
|
|
279
302
|
/**
|
|
@@ -299,16 +322,24 @@ const Joi = require("joi");
|
|
|
299
322
|
* @property {string} _id - Unique identifier for the ticket
|
|
300
323
|
* @property {string} [updated_at] - Time when the ticket was last updated
|
|
301
324
|
* @property {string} [created_at] - Time when the ticket was created
|
|
325
|
+
* @property {string} [video_room_id]
|
|
326
|
+
* @property {string[]} [subscribers]
|
|
327
|
+
* @property {AdditionalInfoSchema[]} [additional_info]
|
|
328
|
+
* @property {number} [__v]
|
|
329
|
+
* @property {TicketAsset[]} [attachments] - List of all attachments related to the form
|
|
302
330
|
*/
|
|
303
331
|
|
|
304
332
|
/**
|
|
305
|
-
* @typedef
|
|
306
|
-
* @property {
|
|
333
|
+
* @typedef Error4XX
|
|
334
|
+
* @property {Object} [message]
|
|
335
|
+
* @property {string} [stack]
|
|
336
|
+
* @property {string} [sentry]
|
|
307
337
|
*/
|
|
308
338
|
|
|
309
|
-
/**
|
|
310
|
-
|
|
311
|
-
|
|
339
|
+
/**
|
|
340
|
+
* @typedef NotFoundError
|
|
341
|
+
* @property {string} [message]
|
|
342
|
+
*/
|
|
312
343
|
|
|
313
344
|
/**
|
|
314
345
|
* @typedef {| "image"
|
|
@@ -322,11 +353,15 @@ const Joi = require("joi");
|
|
|
322
353
|
* | "order"} TicketAssetTypeEnum
|
|
323
354
|
*/
|
|
324
355
|
|
|
325
|
-
/** @typedef {"
|
|
356
|
+
/** @typedef {"high" | "low" | "medium" | "urgent"} PriorityEnum */
|
|
357
|
+
|
|
358
|
+
/** @typedef {"rating" | "log" | "comment" | "diff" | "thread"} HistoryTypeEnum */
|
|
359
|
+
|
|
360
|
+
/** @typedef {"platform_panel" | "sales_channel" | "partner_panel"} TicketSourceEnum */
|
|
326
361
|
|
|
327
362
|
class LeadPlatformModel {
|
|
328
|
-
/** @returns {
|
|
329
|
-
static
|
|
363
|
+
/** @returns {GeneralConfigResponse} */
|
|
364
|
+
static GeneralConfigResponse() {
|
|
330
365
|
return Joi.object({
|
|
331
366
|
_id: Joi.string().allow(""),
|
|
332
367
|
support_communication: Joi.array().items(
|
|
@@ -346,20 +381,20 @@ class LeadPlatformModel {
|
|
|
346
381
|
});
|
|
347
382
|
}
|
|
348
383
|
|
|
349
|
-
/** @returns {
|
|
350
|
-
static
|
|
384
|
+
/** @returns {SupportSchema} */
|
|
385
|
+
static SupportSchema() {
|
|
351
386
|
return Joi.object({
|
|
352
|
-
|
|
353
|
-
title: Joi.string().allow(""),
|
|
387
|
+
value: Joi.string().allow(""),
|
|
354
388
|
description: Joi.string().allow(""),
|
|
355
389
|
enabled: Joi.boolean(),
|
|
356
390
|
});
|
|
357
391
|
}
|
|
358
392
|
|
|
359
|
-
/** @returns {
|
|
360
|
-
static
|
|
393
|
+
/** @returns {SupportCommunicationSchema} */
|
|
394
|
+
static SupportCommunicationSchema() {
|
|
361
395
|
return Joi.object({
|
|
362
|
-
|
|
396
|
+
type: Joi.string().allow(""),
|
|
397
|
+
title: Joi.string().allow(""),
|
|
363
398
|
description: Joi.string().allow(""),
|
|
364
399
|
enabled: Joi.boolean(),
|
|
365
400
|
});
|
|
@@ -391,6 +426,7 @@ class LeadPlatformModel {
|
|
|
391
426
|
current: Joi.number(),
|
|
392
427
|
type: Joi.string().allow("").required(),
|
|
393
428
|
size: Joi.number(),
|
|
429
|
+
total: Joi.number(),
|
|
394
430
|
});
|
|
395
431
|
}
|
|
396
432
|
|
|
@@ -418,7 +454,7 @@ class LeadPlatformModel {
|
|
|
418
454
|
inputs: Joi.array().items(Joi.any()).required(),
|
|
419
455
|
description: Joi.string().allow(""),
|
|
420
456
|
header_image: Joi.string().allow(""),
|
|
421
|
-
priority:
|
|
457
|
+
priority: Joi.string().allow("").required(),
|
|
422
458
|
should_notify: Joi.boolean(),
|
|
423
459
|
success_message: Joi.string().allow(""),
|
|
424
460
|
poll_for_assignment: LeadPlatformModel.PollForAssignment(),
|
|
@@ -431,8 +467,7 @@ class LeadPlatformModel {
|
|
|
431
467
|
title: Joi.string().allow("").required(),
|
|
432
468
|
inputs: Joi.array().items(Joi.any()).required(),
|
|
433
469
|
description: Joi.string().allow(""),
|
|
434
|
-
priority:
|
|
435
|
-
header_image: Joi.string().allow(""),
|
|
470
|
+
priority: Joi.string().allow("").required(),
|
|
436
471
|
should_notify: Joi.boolean(),
|
|
437
472
|
login_required: Joi.boolean(),
|
|
438
473
|
success_message: Joi.string().allow(""),
|
|
@@ -461,13 +496,22 @@ class LeadPlatformModel {
|
|
|
461
496
|
});
|
|
462
497
|
}
|
|
463
498
|
|
|
499
|
+
/** @returns {NotifyUser} */
|
|
500
|
+
static NotifyUser() {
|
|
501
|
+
return Joi.object({
|
|
502
|
+
country_code: Joi.string().allow("").required(),
|
|
503
|
+
phone_number: Joi.string().allow("").required(),
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
|
|
464
507
|
/** @returns {Filter} */
|
|
465
508
|
static Filter() {
|
|
466
509
|
return Joi.object({
|
|
467
510
|
priorities: Joi.array().items(LeadPlatformModel.Priority()).required(),
|
|
468
511
|
categories: Joi.array().items(LeadPlatformModel.TicketCategory()),
|
|
469
512
|
statuses: Joi.array().items(LeadPlatformModel.Status()).required(),
|
|
470
|
-
assignees: Joi.array().items(Joi.any())
|
|
513
|
+
assignees: Joi.array().items(Joi.any()),
|
|
514
|
+
all_categories: Joi.object().pattern(/\S/, Joi.any()),
|
|
471
515
|
});
|
|
472
516
|
}
|
|
473
517
|
|
|
@@ -491,6 +535,7 @@ class LeadPlatformModel {
|
|
|
491
535
|
static CreatedOn() {
|
|
492
536
|
return Joi.object({
|
|
493
537
|
user_agent: Joi.string().allow("").required(),
|
|
538
|
+
platform: Joi.string().allow(""),
|
|
494
539
|
});
|
|
495
540
|
}
|
|
496
541
|
|
|
@@ -512,22 +557,35 @@ class LeadPlatformModel {
|
|
|
512
557
|
});
|
|
513
558
|
}
|
|
514
559
|
|
|
560
|
+
/** @returns {AdditionalInfoSchema} */
|
|
561
|
+
static AdditionalInfoSchema() {
|
|
562
|
+
return Joi.object({
|
|
563
|
+
display_name: Joi.string().allow(""),
|
|
564
|
+
display_value: Joi.string().allow(""),
|
|
565
|
+
priority: Joi.number(),
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
|
|
515
569
|
/** @returns {AddTicketPayload} */
|
|
516
570
|
static AddTicketPayload() {
|
|
517
571
|
return Joi.object({
|
|
518
|
-
created_by: Joi.
|
|
572
|
+
created_by: Joi.any(),
|
|
519
573
|
status: Joi.string().allow(""),
|
|
520
574
|
priority: LeadPlatformModel.PriorityEnum(),
|
|
521
575
|
category: Joi.string().allow("").required(),
|
|
576
|
+
additional_info: Joi.array().items(
|
|
577
|
+
LeadPlatformModel.AdditionalInfoSchema()
|
|
578
|
+
),
|
|
522
579
|
content: LeadPlatformModel.TicketContent().required(),
|
|
523
|
-
_custom_json: Joi.
|
|
580
|
+
_custom_json: Joi.any(),
|
|
581
|
+
subscribers: Joi.array().items(Joi.string().allow("")),
|
|
524
582
|
});
|
|
525
583
|
}
|
|
526
584
|
|
|
527
585
|
/** @returns {Priority} */
|
|
528
586
|
static Priority() {
|
|
529
587
|
return Joi.object({
|
|
530
|
-
key:
|
|
588
|
+
key: Joi.string().allow("").required(),
|
|
531
589
|
display: Joi.string().allow("").required(),
|
|
532
590
|
color: Joi.string().allow("").required(),
|
|
533
591
|
});
|
|
@@ -559,7 +617,7 @@ class LeadPlatformModel {
|
|
|
559
617
|
/** @returns {TicketFeedbackPayload} */
|
|
560
618
|
static TicketFeedbackPayload() {
|
|
561
619
|
return Joi.object({
|
|
562
|
-
form_response: Joi.
|
|
620
|
+
form_response: Joi.any(),
|
|
563
621
|
});
|
|
564
622
|
}
|
|
565
623
|
|
|
@@ -590,7 +648,6 @@ class LeadPlatformModel {
|
|
|
590
648
|
header_image: Joi.string().allow(""),
|
|
591
649
|
title: Joi.string().allow("").required(),
|
|
592
650
|
description: Joi.string().allow(""),
|
|
593
|
-
priority: LeadPlatformModel.Priority().required(),
|
|
594
651
|
login_required: Joi.boolean().required(),
|
|
595
652
|
should_notify: Joi.boolean().required(),
|
|
596
653
|
success_message: Joi.string().allow(""),
|
|
@@ -598,16 +655,21 @@ class LeadPlatformModel {
|
|
|
598
655
|
inputs: Joi.array().items(Joi.any()).required(),
|
|
599
656
|
created_on: LeadPlatformModel.CreatedOn(),
|
|
600
657
|
poll_for_assignment: LeadPlatformModel.PollForAssignment(),
|
|
658
|
+
available_assignees: Joi.array().items(Joi.string().allow("")),
|
|
601
659
|
_id: Joi.string().allow("").required(),
|
|
660
|
+
created_at: Joi.string().allow(""),
|
|
661
|
+
updated_at: Joi.string().allow(""),
|
|
662
|
+
__v: Joi.number(),
|
|
663
|
+
created_by: Joi.string().allow(""),
|
|
602
664
|
});
|
|
603
665
|
}
|
|
604
666
|
|
|
605
667
|
/** @returns {FeedbackForm} */
|
|
606
668
|
static FeedbackForm() {
|
|
607
669
|
return Joi.object({
|
|
608
|
-
inputs: Joi.
|
|
670
|
+
inputs: Joi.any(),
|
|
609
671
|
title: Joi.string().allow(""),
|
|
610
|
-
timestamps: Joi.
|
|
672
|
+
timestamps: Joi.any(),
|
|
611
673
|
});
|
|
612
674
|
}
|
|
613
675
|
|
|
@@ -616,7 +678,7 @@ class LeadPlatformModel {
|
|
|
616
678
|
return Joi.object({
|
|
617
679
|
display: Joi.string().allow("").required(),
|
|
618
680
|
key: Joi.string().allow("").required(),
|
|
619
|
-
sub_categories: Joi.link("#TicketCategory"),
|
|
681
|
+
sub_categories: Joi.array().items(Joi.link("#TicketCategory")),
|
|
620
682
|
group_id: Joi.number(),
|
|
621
683
|
feedback_form: LeadPlatformModel.FeedbackForm(),
|
|
622
684
|
}).id("TicketCategory");
|
|
@@ -627,7 +689,6 @@ class LeadPlatformModel {
|
|
|
627
689
|
return Joi.object({
|
|
628
690
|
display: Joi.string().allow("").required(),
|
|
629
691
|
key: Joi.string().allow("").required(),
|
|
630
|
-
value: Joi.string().allow("").required(),
|
|
631
692
|
});
|
|
632
693
|
}
|
|
633
694
|
|
|
@@ -641,9 +702,10 @@ class LeadPlatformModel {
|
|
|
641
702
|
.items(LeadPlatformModel.FeedbackResponseItem())
|
|
642
703
|
.required(),
|
|
643
704
|
category: Joi.string().allow(""),
|
|
644
|
-
user: Joi.
|
|
705
|
+
user: Joi.any(),
|
|
645
706
|
updated_at: Joi.string().allow(""),
|
|
646
707
|
created_at: Joi.string().allow(""),
|
|
708
|
+
__v: Joi.number(),
|
|
647
709
|
});
|
|
648
710
|
}
|
|
649
711
|
|
|
@@ -658,6 +720,7 @@ class LeadPlatformModel {
|
|
|
658
720
|
_id: Joi.string().allow("").required(),
|
|
659
721
|
updated_at: Joi.string().allow(""),
|
|
660
722
|
created_at: Joi.string().allow(""),
|
|
723
|
+
__v: Joi.number(),
|
|
661
724
|
});
|
|
662
725
|
}
|
|
663
726
|
|
|
@@ -674,25 +737,68 @@ class LeadPlatformModel {
|
|
|
674
737
|
status: LeadPlatformModel.Status().required(),
|
|
675
738
|
priority: LeadPlatformModel.Priority().required(),
|
|
676
739
|
sla: LeadPlatformModel.SLA(),
|
|
677
|
-
created_by: Joi.
|
|
678
|
-
assigned_to: Joi.
|
|
740
|
+
created_by: Joi.any(),
|
|
741
|
+
assigned_to: Joi.any(),
|
|
679
742
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
680
|
-
_custom_json: Joi.
|
|
743
|
+
_custom_json: Joi.any(),
|
|
681
744
|
is_feedback_pending: Joi.boolean(),
|
|
682
|
-
integration: Joi.
|
|
745
|
+
integration: Joi.any(),
|
|
683
746
|
_id: Joi.string().allow("").required(),
|
|
684
747
|
updated_at: Joi.string().allow(""),
|
|
685
748
|
created_at: Joi.string().allow(""),
|
|
749
|
+
video_room_id: Joi.string().allow(""),
|
|
750
|
+
subscribers: Joi.array().items(Joi.string().allow("")),
|
|
751
|
+
additional_info: Joi.array().items(
|
|
752
|
+
LeadPlatformModel.AdditionalInfoSchema()
|
|
753
|
+
),
|
|
754
|
+
__v: Joi.number(),
|
|
755
|
+
attachments: Joi.array().items(LeadPlatformModel.TicketAsset()),
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/** @returns {Error4XX} */
|
|
760
|
+
static Error4XX() {
|
|
761
|
+
return Joi.object({
|
|
762
|
+
message: Joi.object().pattern(/\S/, Joi.any()),
|
|
763
|
+
stack: Joi.string().allow(""),
|
|
764
|
+
sentry: Joi.string().allow(""),
|
|
686
765
|
});
|
|
687
766
|
}
|
|
688
767
|
|
|
689
|
-
/** @returns {
|
|
690
|
-
static
|
|
768
|
+
/** @returns {NotFoundError} */
|
|
769
|
+
static NotFoundError() {
|
|
691
770
|
return Joi.object({
|
|
692
771
|
message: Joi.string().allow(""),
|
|
693
772
|
});
|
|
694
773
|
}
|
|
695
774
|
|
|
775
|
+
/**
|
|
776
|
+
* Enum: TicketAssetTypeEnum Used By: Lead
|
|
777
|
+
*
|
|
778
|
+
* @returns {TicketAssetTypeEnum}
|
|
779
|
+
*/
|
|
780
|
+
static TicketAssetTypeEnum() {
|
|
781
|
+
return Joi.string().valid(
|
|
782
|
+
"image",
|
|
783
|
+
|
|
784
|
+
"video",
|
|
785
|
+
|
|
786
|
+
"file",
|
|
787
|
+
|
|
788
|
+
"youtube",
|
|
789
|
+
|
|
790
|
+
"product",
|
|
791
|
+
|
|
792
|
+
"collection",
|
|
793
|
+
|
|
794
|
+
"brand",
|
|
795
|
+
|
|
796
|
+
"shipment",
|
|
797
|
+
|
|
798
|
+
"order"
|
|
799
|
+
);
|
|
800
|
+
}
|
|
801
|
+
|
|
696
802
|
/**
|
|
697
803
|
* Enum: PriorityEnum Used By: Lead
|
|
698
804
|
*
|
|
@@ -700,12 +806,12 @@ class LeadPlatformModel {
|
|
|
700
806
|
*/
|
|
701
807
|
static PriorityEnum() {
|
|
702
808
|
return Joi.string().valid(
|
|
809
|
+
"high",
|
|
810
|
+
|
|
703
811
|
"low",
|
|
704
812
|
|
|
705
813
|
"medium",
|
|
706
814
|
|
|
707
|
-
"high",
|
|
708
|
-
|
|
709
815
|
"urgent"
|
|
710
816
|
);
|
|
711
817
|
}
|
|
@@ -723,34 +829,9 @@ class LeadPlatformModel {
|
|
|
723
829
|
|
|
724
830
|
"comment",
|
|
725
831
|
|
|
726
|
-
"
|
|
727
|
-
);
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* Enum: TicketAssetTypeEnum Used By: Lead
|
|
732
|
-
*
|
|
733
|
-
* @returns {TicketAssetTypeEnum}
|
|
734
|
-
*/
|
|
735
|
-
static TicketAssetTypeEnum() {
|
|
736
|
-
return Joi.string().valid(
|
|
737
|
-
"image",
|
|
738
|
-
|
|
739
|
-
"video",
|
|
740
|
-
|
|
741
|
-
"file",
|
|
742
|
-
|
|
743
|
-
"youtube",
|
|
744
|
-
|
|
745
|
-
"product",
|
|
746
|
-
|
|
747
|
-
"collection",
|
|
832
|
+
"diff",
|
|
748
833
|
|
|
749
|
-
"
|
|
750
|
-
|
|
751
|
-
"shipment",
|
|
752
|
-
|
|
753
|
-
"order"
|
|
834
|
+
"thread"
|
|
754
835
|
);
|
|
755
836
|
}
|
|
756
837
|
|
|
@@ -763,7 +844,9 @@ class LeadPlatformModel {
|
|
|
763
844
|
return Joi.string().valid(
|
|
764
845
|
"platform_panel",
|
|
765
846
|
|
|
766
|
-
"sales_channel"
|
|
847
|
+
"sales_channel",
|
|
848
|
+
|
|
849
|
+
"partner_panel"
|
|
767
850
|
);
|
|
768
851
|
}
|
|
769
852
|
}
|
|
@@ -13,10 +13,6 @@ export = LeadPlatformValidator;
|
|
|
13
13
|
* @property {string} id - Ticket ID of ticket to be edited
|
|
14
14
|
* @property {LeadPlatformModel.EditTicketPayload} body
|
|
15
15
|
*/
|
|
16
|
-
/**
|
|
17
|
-
* @typedef GetFeedbacksParam
|
|
18
|
-
* @property {string} id - Ticket ID for which feedbacks are to be fetched
|
|
19
|
-
*/
|
|
20
16
|
/** @typedef GetGeneralConfigParam */
|
|
21
17
|
/**
|
|
22
18
|
* @typedef GetPlatformTicketParam
|
|
@@ -33,18 +29,13 @@ export = LeadPlatformValidator;
|
|
|
33
29
|
* ticket filters
|
|
34
30
|
* @property {string} [q] - Search through ticket titles and description
|
|
35
31
|
* @property {string} [status] - Filter tickets on status
|
|
36
|
-
* @property {
|
|
32
|
+
* @property {string} [priority] - Filter tickets on priority
|
|
37
33
|
* @property {string} [category] - Filter tickets on category
|
|
38
34
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
39
35
|
* set of results.
|
|
40
36
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
41
37
|
* Default is 12.
|
|
42
38
|
*/
|
|
43
|
-
/**
|
|
44
|
-
* @typedef SubmitFeedbackParam
|
|
45
|
-
* @property {string} id - Ticket ID for which feedback is to be submitted
|
|
46
|
-
* @property {LeadPlatformModel.TicketFeedbackPayload} body
|
|
47
|
-
*/
|
|
48
39
|
declare class LeadPlatformValidator {
|
|
49
40
|
/** @returns {CreatePlatformTicketHistoryParam} */
|
|
50
41
|
static createPlatformTicketHistory(): CreatePlatformTicketHistoryParam;
|
|
@@ -52,8 +43,6 @@ declare class LeadPlatformValidator {
|
|
|
52
43
|
static createTicket(): CreateTicketParam;
|
|
53
44
|
/** @returns {EditPlatformTicketParam} */
|
|
54
45
|
static editPlatformTicket(): EditPlatformTicketParam;
|
|
55
|
-
/** @returns {GetFeedbacksParam} */
|
|
56
|
-
static getFeedbacks(): GetFeedbacksParam;
|
|
57
46
|
/** @returns {GetGeneralConfigParam} */
|
|
58
47
|
static getGeneralConfig(): any;
|
|
59
48
|
/** @returns {GetPlatformTicketParam} */
|
|
@@ -62,11 +51,9 @@ declare class LeadPlatformValidator {
|
|
|
62
51
|
static getPlatformTicketHistory(): GetPlatformTicketHistoryParam;
|
|
63
52
|
/** @returns {GetPlatformTicketsParam} */
|
|
64
53
|
static getPlatformTickets(): GetPlatformTicketsParam;
|
|
65
|
-
/** @returns {SubmitFeedbackParam} */
|
|
66
|
-
static submitFeedback(): SubmitFeedbackParam;
|
|
67
54
|
}
|
|
68
55
|
declare namespace LeadPlatformValidator {
|
|
69
|
-
export { CreatePlatformTicketHistoryParam, CreateTicketParam, EditPlatformTicketParam,
|
|
56
|
+
export { CreatePlatformTicketHistoryParam, CreateTicketParam, EditPlatformTicketParam, GetGeneralConfigParam, GetPlatformTicketParam, GetPlatformTicketHistoryParam, GetPlatformTicketsParam };
|
|
70
57
|
}
|
|
71
58
|
type CreatePlatformTicketHistoryParam = {
|
|
72
59
|
/**
|
|
@@ -85,12 +72,6 @@ type EditPlatformTicketParam = {
|
|
|
85
72
|
id: string;
|
|
86
73
|
body: LeadPlatformModel.EditTicketPayload;
|
|
87
74
|
};
|
|
88
|
-
type GetFeedbacksParam = {
|
|
89
|
-
/**
|
|
90
|
-
* - Ticket ID for which feedbacks are to be fetched
|
|
91
|
-
*/
|
|
92
|
-
id: string;
|
|
93
|
-
};
|
|
94
75
|
type GetPlatformTicketParam = {
|
|
95
76
|
/**
|
|
96
77
|
* - Tiket ID of the ticket to be fetched
|
|
@@ -124,7 +105,7 @@ type GetPlatformTicketsParam = {
|
|
|
124
105
|
/**
|
|
125
106
|
* - Filter tickets on priority
|
|
126
107
|
*/
|
|
127
|
-
priority?:
|
|
108
|
+
priority?: string;
|
|
128
109
|
/**
|
|
129
110
|
* - Filter tickets on category
|
|
130
111
|
*/
|
|
@@ -140,12 +121,5 @@ type GetPlatformTicketsParam = {
|
|
|
140
121
|
*/
|
|
141
122
|
pageSize?: number;
|
|
142
123
|
};
|
|
143
|
-
type SubmitFeedbackParam = {
|
|
144
|
-
/**
|
|
145
|
-
* - Ticket ID for which feedback is to be submitted
|
|
146
|
-
*/
|
|
147
|
-
id: string;
|
|
148
|
-
body: LeadPlatformModel.TicketFeedbackPayload;
|
|
149
|
-
};
|
|
150
124
|
type GetGeneralConfigParam = any;
|
|
151
125
|
import LeadPlatformModel = require("./LeadPlatformModel");
|