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