@gofynd/fdk-client-javascript 1.1.6 → 1.3.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 +52 -3
- package/index.js +0 -3
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +12 -3
- package/sdk/application/ApplicationClient.d.ts +36 -6
- package/sdk/application/ApplicationClient.js +30 -43
- package/sdk/application/ApplicationConfig.d.ts +92 -12
- package/sdk/application/ApplicationConfig.js +48 -14
- package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
- package/sdk/application/Cart/CartApplicationClient.js +711 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
- package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
- package/sdk/application/Common/CommonApplicationClient.js +52 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
- package/sdk/application/Common/CommonApplicationModel.js +192 -40
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
- package/sdk/application/Content/ContentApplicationClient.js +489 -278
- package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
- package/sdk/application/Content/ContentApplicationModel.js +737 -396
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
- package/sdk/application/Lead/LeadApplicationClient.js +188 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
- package/sdk/application/Lead/LeadApplicationModel.js +330 -244
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
- package/sdk/application/Order/OrderApplicationClient.js +329 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
- package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
- package/sdk/application/Share/ShareApplicationClient.js +185 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
- package/sdk/application/Share/ShareApplicationModel.js +131 -31
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +260 -305
- package/sdk/application/User/UserApplicationClient.js +910 -522
- package/sdk/application/User/UserApplicationModel.d.ts +992 -101
- package/sdk/application/User/UserApplicationModel.js +699 -248
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +7 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +16 -1
- package/sdk/partner/PartnerAPIClient.js +12 -2
- package/sdk/partner/PartnerClient.d.ts +22 -3
- package/sdk/partner/PartnerClient.js +20 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
- package/sdk/platform/Common/CommonPlatformClient.js +50 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
- package/sdk/platform/Common/CommonPlatformModel.js +214 -40
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
- package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
- package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
- package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
- package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +31 -12581
- package/sdk/platform/PlatformClient.js +30 -15089
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
- package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +167 -19
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
- package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
- package/sdk/platform/User/UserPlatformModel.js +467 -424
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
- package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +21 -3
- package/sdk/public/PublicClient.js +20 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -3
- package/sdk/application/ApplicationModels.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
|
@@ -1,130 +1,493 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef AddTicketPayload
|
|
5
|
+
* @property {Object} [_custom_json] - Optional custom data that needs to be sent
|
|
6
|
+
* @property {string} category - Category of the ticket
|
|
7
|
+
* @property {TicketContent} content
|
|
8
|
+
* @property {Object} [created_by] - Creator of the ticket
|
|
9
|
+
* @property {PriorityEnum} [priority]
|
|
10
|
+
* @property {string} [status] - Status of the ticket
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @typedef AgentChangePayload
|
|
15
|
+
* @property {string} agent_id - Agent's unique ID
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @typedef CloseVideoRoomResponse
|
|
20
|
+
* @property {boolean} success - Denotes if operation was successfully
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @typedef CreateCustomFormPayload
|
|
25
|
+
* @property {string} [description] - Description of the form
|
|
26
|
+
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
27
|
+
* @property {Object[]} inputs - List of all the form components
|
|
28
|
+
* @property {PollForAssignment} [poll_for_assignment]
|
|
29
|
+
* @property {PriorityEnum} priority
|
|
30
|
+
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
31
|
+
* when a response is received
|
|
32
|
+
* @property {string} slug - Slug for the form
|
|
33
|
+
* @property {string} [success_message] - Success message that will be shown on submission
|
|
34
|
+
* @property {string} title - Title for the form
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @typedef CreatedOn
|
|
39
|
+
* @property {string} user_agent - Useragent details
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @typedef CreateVideoRoomPayload
|
|
44
|
+
* @property {NotifyUser[]} [notify] - List of people to be notified
|
|
45
|
+
* @property {string} unique_name - Ticket id
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @typedef CreateVideoRoomResponse
|
|
50
|
+
* @property {string} unique_name - Video Room's unique name
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @typedef CustomForm
|
|
55
|
+
* @property {string} _id - Unique identifier for the form
|
|
56
|
+
* @property {string} application_id - Application ID for form
|
|
57
|
+
* @property {CreatedOn} [created_on]
|
|
58
|
+
* @property {string} [description] - Form description that will be shown to the user
|
|
59
|
+
* @property {string} [header_image] - Form header image that will be shown to the user
|
|
60
|
+
* @property {Object[]} inputs - List of all the form fields
|
|
61
|
+
* @property {boolean} login_required - Denotes if login is required to make a
|
|
62
|
+
* form response submission
|
|
63
|
+
* @property {PollForAssignment} [poll_for_assignment]
|
|
64
|
+
* @property {Priority} priority
|
|
65
|
+
* @property {boolean} should_notify - Denotes if new response submission for
|
|
66
|
+
* the form should be notified to the assignees
|
|
67
|
+
* @property {string} slug - Slug for the form, which is to be used for accessing the form
|
|
68
|
+
* @property {SubmitButton} [submit_button]
|
|
69
|
+
* @property {string} [success_message] - Message that is to be shown on
|
|
70
|
+
* succesfull form response submission
|
|
71
|
+
* @property {string} title - Form title that will be shown to the user
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef CustomFormList
|
|
76
|
+
* @property {CustomForm[]} [items] - List of forms
|
|
77
|
+
* @property {Page} [page]
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @typedef Debug
|
|
82
|
+
* @property {string} [platform] - Platform of user
|
|
83
|
+
* @property {string} [source] - Source of user
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @typedef EditCustomFormPayload
|
|
88
|
+
* @property {string} [description] - Description of the form
|
|
89
|
+
* @property {string} [header_image] - Header image that is to be shown for the form
|
|
90
|
+
* @property {Object[]} inputs - List of all the form components
|
|
91
|
+
* @property {boolean} [login_required] - Denotes if login is required to make a
|
|
92
|
+
* form response submission
|
|
93
|
+
* @property {PollForAssignment} [poll_for_assignment]
|
|
94
|
+
* @property {PriorityEnum} priority
|
|
95
|
+
* @property {boolean} [should_notify] - Indicates if staff should be notified
|
|
96
|
+
* when a response is received
|
|
97
|
+
* @property {string} [success_message] - Success message that will be shown on submission
|
|
98
|
+
* @property {string} title - Title for the form
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @typedef EditTicketPayload
|
|
103
|
+
* @property {AgentChangePayload} [assigned_to]
|
|
104
|
+
* @property {string} [category] - Category assigned to the ticket
|
|
105
|
+
* @property {TicketContent} [content]
|
|
106
|
+
* @property {PriorityEnum} [priority]
|
|
107
|
+
* @property {string} [source] - Denotes if the ticket was created at company or
|
|
108
|
+
* application level
|
|
109
|
+
* @property {string} [status] - Denotes in what state is the ticket
|
|
110
|
+
* @property {string} [sub_category] - Sub-category assigned to the ticket
|
|
111
|
+
* @property {string[]} [tags] - Tags relevant to ticket
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @typedef Email
|
|
116
|
+
* @property {boolean} [active] - Denotes if the email is active
|
|
117
|
+
* @property {string} [email] - Email Address
|
|
118
|
+
* @property {boolean} [primary] - Denotes it's the primary email for the account
|
|
119
|
+
* @property {boolean} [verified] - Denotes it's a verified email
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @typedef FeedbackForm
|
|
124
|
+
* @property {Object} [inputs] - Input details for the feed back form
|
|
125
|
+
* @property {Object} [timestamps] - Gives details of category releted data
|
|
126
|
+
* @property {string} [title] - Title for the feed back form
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @typedef FeedbackResponseItem
|
|
131
|
+
* @property {string} display - Question/Title of the form field
|
|
132
|
+
* @property {string} key - Key of the form field
|
|
133
|
+
* @property {string} value - User response value for the form field
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @typedef Filter
|
|
138
|
+
* @property {Object[]} assignees - List of support staff availble for tickets assignment
|
|
139
|
+
* @property {TicketCategory[]} [categories] - List of possible categories for tickets
|
|
140
|
+
* @property {Priority[]} priorities - List of possible priorities for tickets
|
|
141
|
+
* @property {Status[]} statuses - List of possible statuses for tickets
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @typedef GetParticipantsInsideVideoRoomResponse
|
|
146
|
+
* @property {Participant[]} participants - List of participants of the video room
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @typedef GetTokenForVideoRoomResponse
|
|
151
|
+
* @property {string} access_token - Access token to be used for video room
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @typedef NotifyUser
|
|
156
|
+
* @property {string} country_code - Country code
|
|
157
|
+
* @property {string} phone_number - Phone number
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @typedef Page
|
|
162
|
+
* @property {number} [current]
|
|
163
|
+
* @property {boolean} [has_next]
|
|
164
|
+
* @property {boolean} [has_previous]
|
|
165
|
+
* @property {number} [item_total]
|
|
166
|
+
* @property {string} [next_id]
|
|
167
|
+
* @property {number} [size]
|
|
168
|
+
* @property {string} type
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @typedef Participant
|
|
173
|
+
* @property {string} [identity] - Unique identifier of participant
|
|
174
|
+
* @property {string} [status] - Status of participant
|
|
175
|
+
* @property {UserSchema} [user]
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @typedef PhoneNumber
|
|
180
|
+
* @property {boolean} [active] - Denotes if the phone number is active
|
|
181
|
+
* @property {number} [country_code] - Country code
|
|
182
|
+
* @property {string} [phone] - Phone number
|
|
183
|
+
* @property {boolean} [primary] - Denotes it's the primary phone number for the account
|
|
184
|
+
* @property {boolean} [verified] - Denotes it's a verified phone number
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @typedef PollForAssignment
|
|
189
|
+
* @property {number} duration - Duration for polling of staff
|
|
190
|
+
* @property {string} failure_message - Message if polling failed
|
|
191
|
+
* @property {string} message - Message for polling
|
|
192
|
+
* @property {string} success_message - Message for successful polling
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @typedef Priority
|
|
197
|
+
* @property {string} color - Color for priority
|
|
198
|
+
* @property {string} display - Display text for priority
|
|
199
|
+
* @property {PriorityEnum} key
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @typedef Status
|
|
204
|
+
* @property {string} color - Color for status
|
|
205
|
+
* @property {string} display - Display text for status
|
|
206
|
+
* @property {string} key - Key for status
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @typedef SubmitButton
|
|
211
|
+
* @property {string} background_color - Color for submit button
|
|
212
|
+
* @property {string} title - Title for submit button
|
|
213
|
+
* @property {string} title_color - Title color submit button
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @typedef Ticket
|
|
218
|
+
* @property {Object} [_custom_json] - Custom json relevant to the ticket
|
|
219
|
+
* @property {string} _id - Unique identifier for the ticket
|
|
220
|
+
* @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
|
|
221
|
+
* @property {TicketCategory} category
|
|
222
|
+
* @property {TicketContent} [content]
|
|
223
|
+
* @property {TicketContext} [context]
|
|
224
|
+
* @property {string} [created_at] - Time when the ticket was created
|
|
225
|
+
* @property {Object} [created_by] - User details of ticket creator
|
|
226
|
+
* @property {CreatedOn} [created_on]
|
|
227
|
+
* @property {Object} [integration] - Integration type and its details of the ticket
|
|
228
|
+
* @property {boolean} [is_feedback_pending] - Denotes if feedback submission is
|
|
229
|
+
* pending for the ticket
|
|
230
|
+
* @property {Priority} priority
|
|
231
|
+
* @property {string} [response_id] - Details of company and application
|
|
232
|
+
* realated to the ticket
|
|
233
|
+
* @property {TicketSourceEnum} source
|
|
234
|
+
* @property {Status} status
|
|
235
|
+
* @property {string} [sub_category] - Sub-category assigned to the ticket
|
|
236
|
+
* @property {string[]} [tags] - Tags relevant to ticket
|
|
237
|
+
* @property {string} [updated_at] - Time when the ticket was last updated
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @typedef TicketAsset
|
|
242
|
+
* @property {string} [display] - Display text for asset
|
|
243
|
+
* @property {TicketAssetTypeEnum} type
|
|
244
|
+
* @property {string} value - To be used for details
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @typedef TicketCategory
|
|
249
|
+
* @property {string} display - Category display value identifier
|
|
250
|
+
* @property {FeedbackForm} [feedback_form]
|
|
251
|
+
* @property {number} [group_id] - Group id of category releted data
|
|
252
|
+
* @property {string} key - Category key value identifier
|
|
253
|
+
* @property {TicketCategory} [sub_categories]
|
|
254
|
+
*/
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @typedef TicketContent
|
|
258
|
+
* @property {TicketAsset[]} [attachments] - List of all attachments related to the ticket
|
|
259
|
+
* @property {string} [description] - Long description of issue
|
|
260
|
+
* @property {string} title - Title for ticket
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @typedef TicketContext
|
|
265
|
+
* @property {string} [application_id] - Application ID related to the ticket
|
|
266
|
+
* @property {string} company_id - Company ID related to the ticket
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @typedef TicketFeedback
|
|
271
|
+
* @property {string} _id - Unique identifier for the feedback
|
|
272
|
+
* @property {string} [category] - Category of the ticket
|
|
273
|
+
* @property {string} company_id - Company id for which ticket was raised
|
|
274
|
+
* @property {string} [created_at] - Time when the feedback was created
|
|
275
|
+
* @property {FeedbackResponseItem[]} response
|
|
276
|
+
* @property {string} ticket_id - Readable ticket number
|
|
277
|
+
* @property {string} [updated_at] - Time when the feedback was last updated
|
|
278
|
+
* @property {Object} [user] - User who submitted the feedback
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @typedef TicketFeedbackList
|
|
283
|
+
* @property {TicketFeedback[]} [items] - List of all ticket feedback for the ticket
|
|
284
|
+
*/
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @typedef TicketFeedbackPayload
|
|
288
|
+
* @property {Object} [form_response] - Key-value pairs of all the form fields
|
|
289
|
+
* and their response
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @typedef TicketHistory
|
|
294
|
+
* @property {string} _id - Unique identifier of the history event
|
|
295
|
+
* @property {string} [created_at] - Time of creation of the history event
|
|
296
|
+
* @property {Object} [created_by] - User who created the history event
|
|
297
|
+
* @property {CreatedOn} [created_on]
|
|
298
|
+
* @property {string} ticket_id - Readable ticket number
|
|
299
|
+
* @property {string} type - Type of the history event
|
|
300
|
+
* @property {string} [updated_at] - Time of last update of the history event
|
|
301
|
+
* @property {Object} value - Data of the history event
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* @typedef TicketHistoryList
|
|
306
|
+
* @property {TicketHistory[]} [items] - List of ticket history
|
|
307
|
+
* @property {Page} [page]
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @typedef TicketHistoryPayload
|
|
312
|
+
* @property {HistoryTypeEnum} type
|
|
313
|
+
* @property {Object} value - Details of history event
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @typedef TicketList
|
|
318
|
+
* @property {Filter} [filters]
|
|
319
|
+
* @property {Ticket[]} [items] - List of tickets
|
|
320
|
+
* @property {Page} [page]
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @typedef UserSchema
|
|
325
|
+
* @property {string} [_id]
|
|
326
|
+
* @property {string} [account_type]
|
|
327
|
+
* @property {boolean} [active]
|
|
328
|
+
* @property {string} [application_id]
|
|
329
|
+
* @property {string} [created_at]
|
|
330
|
+
* @property {string} [dob]
|
|
331
|
+
* @property {Email[]} [emails]
|
|
332
|
+
* @property {string} [first_name]
|
|
333
|
+
* @property {string} [gender]
|
|
334
|
+
* @property {string} [last_name]
|
|
335
|
+
* @property {Object} [meta]
|
|
336
|
+
* @property {PhoneNumber[]} [phone_numbers]
|
|
337
|
+
* @property {string} [profile_pic_url]
|
|
338
|
+
* @property {string} [updated_at]
|
|
339
|
+
* @property {string} [user_id]
|
|
340
|
+
* @property {string} [username]
|
|
341
|
+
*/
|
|
342
|
+
|
|
343
|
+
/** @typedef {"rating" | "log" | "comment"} HistoryTypeEnum */
|
|
344
|
+
|
|
345
|
+
/** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @typedef {| "image"
|
|
349
|
+
* | "video"
|
|
350
|
+
* | "file"
|
|
351
|
+
* | "youtube"
|
|
352
|
+
* | "product"
|
|
353
|
+
* | "collection"
|
|
354
|
+
* | "brand"
|
|
355
|
+
* | "shipment"
|
|
356
|
+
* | "order"} TicketAssetTypeEnum
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
/** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
|
|
360
|
+
|
|
361
|
+
class LeadPlatformModel {
|
|
362
|
+
/** @returns {AddTicketPayload} */
|
|
4
363
|
static AddTicketPayload() {
|
|
5
364
|
return Joi.object({
|
|
6
365
|
_custom_json: Joi.any(),
|
|
7
366
|
category: Joi.string().allow("").required(),
|
|
8
|
-
content:
|
|
367
|
+
content: LeadPlatformModel.TicketContent().required(),
|
|
9
368
|
created_by: Joi.any(),
|
|
10
|
-
priority:
|
|
369
|
+
priority: LeadPlatformModel.PriorityEnum(),
|
|
11
370
|
status: Joi.string().allow(""),
|
|
12
371
|
});
|
|
13
372
|
}
|
|
373
|
+
|
|
374
|
+
/** @returns {AgentChangePayload} */
|
|
14
375
|
static AgentChangePayload() {
|
|
15
376
|
return Joi.object({
|
|
16
377
|
agent_id: Joi.string().allow("").required(),
|
|
17
378
|
});
|
|
18
379
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
list: LeadModel.TicketCategory(),
|
|
22
|
-
});
|
|
23
|
-
}
|
|
380
|
+
|
|
381
|
+
/** @returns {CloseVideoRoomResponse} */
|
|
24
382
|
static CloseVideoRoomResponse() {
|
|
25
383
|
return Joi.object({
|
|
26
384
|
success: Joi.boolean().required(),
|
|
27
385
|
});
|
|
28
386
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
description: Joi.string().allow(""),
|
|
32
|
-
enabled: Joi.boolean(),
|
|
33
|
-
title: Joi.string().allow(""),
|
|
34
|
-
type: Joi.string().allow(""),
|
|
35
|
-
value: Joi.string().allow(""),
|
|
36
|
-
});
|
|
37
|
-
}
|
|
387
|
+
|
|
388
|
+
/** @returns {CreateCustomFormPayload} */
|
|
38
389
|
static CreateCustomFormPayload() {
|
|
39
390
|
return Joi.object({
|
|
40
391
|
description: Joi.string().allow(""),
|
|
41
392
|
header_image: Joi.string().allow(""),
|
|
42
393
|
inputs: Joi.array().items(Joi.any()).required(),
|
|
43
|
-
poll_for_assignment:
|
|
44
|
-
priority:
|
|
394
|
+
poll_for_assignment: LeadPlatformModel.PollForAssignment(),
|
|
395
|
+
priority: LeadPlatformModel.PriorityEnum().required(),
|
|
45
396
|
should_notify: Joi.boolean(),
|
|
46
397
|
slug: Joi.string().allow("").required(),
|
|
47
398
|
success_message: Joi.string().allow(""),
|
|
48
399
|
title: Joi.string().allow("").required(),
|
|
49
400
|
});
|
|
50
401
|
}
|
|
402
|
+
|
|
403
|
+
/** @returns {CreatedOn} */
|
|
51
404
|
static CreatedOn() {
|
|
52
405
|
return Joi.object({
|
|
53
406
|
user_agent: Joi.string().allow("").required(),
|
|
54
407
|
});
|
|
55
408
|
}
|
|
409
|
+
|
|
410
|
+
/** @returns {CreateVideoRoomPayload} */
|
|
56
411
|
static CreateVideoRoomPayload() {
|
|
57
412
|
return Joi.object({
|
|
58
|
-
notify: Joi.array().items(
|
|
413
|
+
notify: Joi.array().items(LeadPlatformModel.NotifyUser()),
|
|
59
414
|
unique_name: Joi.string().allow("").required(),
|
|
60
415
|
});
|
|
61
416
|
}
|
|
417
|
+
|
|
418
|
+
/** @returns {CreateVideoRoomResponse} */
|
|
62
419
|
static CreateVideoRoomResponse() {
|
|
63
420
|
return Joi.object({
|
|
64
421
|
unique_name: Joi.string().allow("").required(),
|
|
65
422
|
});
|
|
66
423
|
}
|
|
424
|
+
|
|
425
|
+
/** @returns {CustomForm} */
|
|
67
426
|
static CustomForm() {
|
|
68
427
|
return Joi.object({
|
|
69
428
|
_id: Joi.string().allow("").required(),
|
|
70
429
|
application_id: Joi.string().allow("").required(),
|
|
71
|
-
created_on:
|
|
430
|
+
created_on: LeadPlatformModel.CreatedOn(),
|
|
72
431
|
description: Joi.string().allow(""),
|
|
73
432
|
header_image: Joi.string().allow(""),
|
|
74
433
|
inputs: Joi.array().items(Joi.any()).required(),
|
|
75
434
|
login_required: Joi.boolean().required(),
|
|
76
|
-
poll_for_assignment:
|
|
77
|
-
priority:
|
|
435
|
+
poll_for_assignment: LeadPlatformModel.PollForAssignment(),
|
|
436
|
+
priority: LeadPlatformModel.Priority().required(),
|
|
78
437
|
should_notify: Joi.boolean().required(),
|
|
79
438
|
slug: Joi.string().allow("").required(),
|
|
80
|
-
submit_button:
|
|
439
|
+
submit_button: LeadPlatformModel.SubmitButton(),
|
|
81
440
|
success_message: Joi.string().allow(""),
|
|
82
441
|
title: Joi.string().allow("").required(),
|
|
83
442
|
});
|
|
84
443
|
}
|
|
444
|
+
|
|
445
|
+
/** @returns {CustomFormList} */
|
|
85
446
|
static CustomFormList() {
|
|
86
447
|
return Joi.object({
|
|
87
|
-
items: Joi.array().items(
|
|
88
|
-
page:
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
static CustomFormSubmissionPayload() {
|
|
92
|
-
return Joi.object({
|
|
93
|
-
attachments: Joi.array().items(LeadModel.TicketAsset()),
|
|
94
|
-
response: Joi.array().items(Joi.any()).required(),
|
|
448
|
+
items: Joi.array().items(LeadPlatformModel.CustomForm()),
|
|
449
|
+
page: LeadPlatformModel.Page(),
|
|
95
450
|
});
|
|
96
451
|
}
|
|
452
|
+
|
|
453
|
+
/** @returns {Debug} */
|
|
97
454
|
static Debug() {
|
|
98
455
|
return Joi.object({
|
|
99
456
|
platform: Joi.string().allow(""),
|
|
100
457
|
source: Joi.string().allow(""),
|
|
101
458
|
});
|
|
102
459
|
}
|
|
460
|
+
|
|
461
|
+
/** @returns {EditCustomFormPayload} */
|
|
103
462
|
static EditCustomFormPayload() {
|
|
104
463
|
return Joi.object({
|
|
105
464
|
description: Joi.string().allow(""),
|
|
106
465
|
header_image: Joi.string().allow(""),
|
|
107
466
|
inputs: Joi.array().items(Joi.any()).required(),
|
|
108
467
|
login_required: Joi.boolean(),
|
|
109
|
-
poll_for_assignment:
|
|
110
|
-
priority:
|
|
468
|
+
poll_for_assignment: LeadPlatformModel.PollForAssignment(),
|
|
469
|
+
priority: LeadPlatformModel.PriorityEnum().required(),
|
|
111
470
|
should_notify: Joi.boolean(),
|
|
112
471
|
success_message: Joi.string().allow(""),
|
|
113
472
|
title: Joi.string().allow("").required(),
|
|
114
473
|
});
|
|
115
474
|
}
|
|
475
|
+
|
|
476
|
+
/** @returns {EditTicketPayload} */
|
|
116
477
|
static EditTicketPayload() {
|
|
117
478
|
return Joi.object({
|
|
118
|
-
assigned_to:
|
|
479
|
+
assigned_to: LeadPlatformModel.AgentChangePayload(),
|
|
119
480
|
category: Joi.string().allow(""),
|
|
120
|
-
content:
|
|
121
|
-
priority:
|
|
481
|
+
content: LeadPlatformModel.TicketContent(),
|
|
482
|
+
priority: LeadPlatformModel.PriorityEnum(),
|
|
122
483
|
source: Joi.string().allow(""),
|
|
123
484
|
status: Joi.string().allow(""),
|
|
124
485
|
sub_category: Joi.string().allow(""),
|
|
125
486
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
126
487
|
});
|
|
127
488
|
}
|
|
489
|
+
|
|
490
|
+
/** @returns {Email} */
|
|
128
491
|
static Email() {
|
|
129
492
|
return Joi.object({
|
|
130
493
|
active: Joi.boolean(),
|
|
@@ -133,6 +496,8 @@ class LeadModel {
|
|
|
133
496
|
verified: Joi.boolean(),
|
|
134
497
|
});
|
|
135
498
|
}
|
|
499
|
+
|
|
500
|
+
/** @returns {FeedbackForm} */
|
|
136
501
|
static FeedbackForm() {
|
|
137
502
|
return Joi.object({
|
|
138
503
|
inputs: Joi.any(),
|
|
@@ -140,6 +505,8 @@ class LeadModel {
|
|
|
140
505
|
title: Joi.string().allow(""),
|
|
141
506
|
});
|
|
142
507
|
}
|
|
508
|
+
|
|
509
|
+
/** @returns {FeedbackResponseItem} */
|
|
143
510
|
static FeedbackResponseItem() {
|
|
144
511
|
return Joi.object({
|
|
145
512
|
display: Joi.string().allow("").required(),
|
|
@@ -147,45 +514,42 @@ class LeadModel {
|
|
|
147
514
|
value: Joi.string().allow("").required(),
|
|
148
515
|
});
|
|
149
516
|
}
|
|
517
|
+
|
|
518
|
+
/** @returns {Filter} */
|
|
150
519
|
static Filter() {
|
|
151
520
|
return Joi.object({
|
|
152
521
|
assignees: Joi.array().items(Joi.any()).required(),
|
|
153
|
-
categories: Joi.array().items(
|
|
154
|
-
priorities: Joi.array().items(
|
|
155
|
-
statuses: Joi.array().items(
|
|
522
|
+
categories: Joi.array().items(LeadPlatformModel.TicketCategory()),
|
|
523
|
+
priorities: Joi.array().items(LeadPlatformModel.Priority()).required(),
|
|
524
|
+
statuses: Joi.array().items(LeadPlatformModel.Status()).required(),
|
|
156
525
|
});
|
|
157
526
|
}
|
|
527
|
+
|
|
528
|
+
/** @returns {GetParticipantsInsideVideoRoomResponse} */
|
|
158
529
|
static GetParticipantsInsideVideoRoomResponse() {
|
|
159
530
|
return Joi.object({
|
|
160
|
-
participants: Joi.array()
|
|
531
|
+
participants: Joi.array()
|
|
532
|
+
.items(LeadPlatformModel.Participant())
|
|
533
|
+
.required(),
|
|
161
534
|
});
|
|
162
535
|
}
|
|
536
|
+
|
|
537
|
+
/** @returns {GetTokenForVideoRoomResponse} */
|
|
163
538
|
static GetTokenForVideoRoomResponse() {
|
|
164
539
|
return Joi.object({
|
|
165
540
|
access_token: Joi.string().allow("").required(),
|
|
166
541
|
});
|
|
167
542
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
_id: Joi.string().allow(""),
|
|
171
|
-
allow_ticket_creation: Joi.boolean().required(),
|
|
172
|
-
base_url: Joi.string().allow(""),
|
|
173
|
-
category_data: LeadModel.CategoryData(),
|
|
174
|
-
category_sync_apikey: Joi.string().allow(""),
|
|
175
|
-
config_completed: Joi.boolean(),
|
|
176
|
-
create_ticket_apikey: Joi.string().allow(""),
|
|
177
|
-
integration_type: Joi.string().allow("").required(),
|
|
178
|
-
show_listing: Joi.boolean().required(),
|
|
179
|
-
update_ticket_apikey: Joi.string().allow(""),
|
|
180
|
-
webhook_apikey: Joi.string().allow(""),
|
|
181
|
-
});
|
|
182
|
-
}
|
|
543
|
+
|
|
544
|
+
/** @returns {NotifyUser} */
|
|
183
545
|
static NotifyUser() {
|
|
184
546
|
return Joi.object({
|
|
185
547
|
country_code: Joi.string().allow("").required(),
|
|
186
548
|
phone_number: Joi.string().allow("").required(),
|
|
187
549
|
});
|
|
188
550
|
}
|
|
551
|
+
|
|
552
|
+
/** @returns {Page} */
|
|
189
553
|
static Page() {
|
|
190
554
|
return Joi.object({
|
|
191
555
|
current: Joi.number(),
|
|
@@ -197,13 +561,17 @@ class LeadModel {
|
|
|
197
561
|
type: Joi.string().allow("").required(),
|
|
198
562
|
});
|
|
199
563
|
}
|
|
564
|
+
|
|
565
|
+
/** @returns {Participant} */
|
|
200
566
|
static Participant() {
|
|
201
567
|
return Joi.object({
|
|
202
568
|
identity: Joi.string().allow(""),
|
|
203
569
|
status: Joi.string().allow(""),
|
|
204
|
-
user:
|
|
570
|
+
user: LeadPlatformModel.UserSchema(),
|
|
205
571
|
});
|
|
206
572
|
}
|
|
573
|
+
|
|
574
|
+
/** @returns {PhoneNumber} */
|
|
207
575
|
static PhoneNumber() {
|
|
208
576
|
return Joi.object({
|
|
209
577
|
active: Joi.boolean(),
|
|
@@ -213,6 +581,8 @@ class LeadModel {
|
|
|
213
581
|
verified: Joi.boolean(),
|
|
214
582
|
});
|
|
215
583
|
}
|
|
584
|
+
|
|
585
|
+
/** @returns {PollForAssignment} */
|
|
216
586
|
static PollForAssignment() {
|
|
217
587
|
return Joi.object({
|
|
218
588
|
duration: Joi.number().required(),
|
|
@@ -221,13 +591,17 @@ class LeadModel {
|
|
|
221
591
|
success_message: Joi.string().allow("").required(),
|
|
222
592
|
});
|
|
223
593
|
}
|
|
594
|
+
|
|
595
|
+
/** @returns {Priority} */
|
|
224
596
|
static Priority() {
|
|
225
597
|
return Joi.object({
|
|
226
598
|
color: Joi.string().allow("").required(),
|
|
227
599
|
display: Joi.string().allow("").required(),
|
|
228
|
-
key:
|
|
600
|
+
key: LeadPlatformModel.PriorityEnum().required(),
|
|
229
601
|
});
|
|
230
602
|
}
|
|
603
|
+
|
|
604
|
+
/** @returns {Status} */
|
|
231
605
|
static Status() {
|
|
232
606
|
return Joi.object({
|
|
233
607
|
color: Joi.string().allow("").required(),
|
|
@@ -235,6 +609,8 @@ class LeadModel {
|
|
|
235
609
|
key: Joi.string().allow("").required(),
|
|
236
610
|
});
|
|
237
611
|
}
|
|
612
|
+
|
|
613
|
+
/** @returns {SubmitButton} */
|
|
238
614
|
static SubmitButton() {
|
|
239
615
|
return Joi.object({
|
|
240
616
|
background_color: Joi.string().allow("").required(),
|
|
@@ -242,142 +618,138 @@ class LeadModel {
|
|
|
242
618
|
title_color: Joi.string().allow("").required(),
|
|
243
619
|
});
|
|
244
620
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
message: Joi.string().allow("").required(),
|
|
248
|
-
ticket: LeadModel.Ticket(),
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
static SupportGeneralConfig() {
|
|
252
|
-
return Joi.object({
|
|
253
|
-
_id: Joi.string().allow(""),
|
|
254
|
-
integration: Joi.any(),
|
|
255
|
-
show_communication_info: Joi.boolean(),
|
|
256
|
-
show_support_dris: Joi.boolean(),
|
|
257
|
-
support_communication: LeadModel.CommunicationDetails(),
|
|
258
|
-
support_email: LeadModel.CommunicationDetails(),
|
|
259
|
-
support_faq: LeadModel.CommunicationDetails(),
|
|
260
|
-
support_phone: LeadModel.CommunicationDetails(),
|
|
261
|
-
type: Joi.string().allow(""),
|
|
262
|
-
});
|
|
263
|
-
}
|
|
621
|
+
|
|
622
|
+
/** @returns {Ticket} */
|
|
264
623
|
static Ticket() {
|
|
265
624
|
return Joi.object({
|
|
266
625
|
_custom_json: Joi.any(),
|
|
267
626
|
_id: Joi.string().allow("").required(),
|
|
268
627
|
assigned_to: Joi.any(),
|
|
269
|
-
category:
|
|
270
|
-
content:
|
|
271
|
-
context:
|
|
628
|
+
category: LeadPlatformModel.TicketCategory().required(),
|
|
629
|
+
content: LeadPlatformModel.TicketContent(),
|
|
630
|
+
context: LeadPlatformModel.TicketContext(),
|
|
272
631
|
created_at: Joi.string().allow(""),
|
|
273
632
|
created_by: Joi.any(),
|
|
274
|
-
created_on:
|
|
633
|
+
created_on: LeadPlatformModel.CreatedOn(),
|
|
275
634
|
integration: Joi.any(),
|
|
276
635
|
is_feedback_pending: Joi.boolean(),
|
|
277
|
-
priority:
|
|
636
|
+
priority: LeadPlatformModel.Priority().required(),
|
|
278
637
|
response_id: Joi.string().allow(""),
|
|
279
|
-
source:
|
|
280
|
-
status:
|
|
638
|
+
source: LeadPlatformModel.TicketSourceEnum().required(),
|
|
639
|
+
status: LeadPlatformModel.Status().required(),
|
|
281
640
|
sub_category: Joi.string().allow(""),
|
|
282
641
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
283
642
|
updated_at: Joi.string().allow(""),
|
|
284
643
|
});
|
|
285
644
|
}
|
|
645
|
+
|
|
646
|
+
/** @returns {TicketAsset} */
|
|
286
647
|
static TicketAsset() {
|
|
287
648
|
return Joi.object({
|
|
288
649
|
display: Joi.string().allow(""),
|
|
289
|
-
type:
|
|
650
|
+
type: LeadPlatformModel.TicketAssetTypeEnum().required(),
|
|
290
651
|
value: Joi.string().allow("").required(),
|
|
291
652
|
});
|
|
292
653
|
}
|
|
654
|
+
|
|
655
|
+
/** @returns {TicketCategory} */
|
|
293
656
|
static TicketCategory() {
|
|
294
657
|
return Joi.object({
|
|
295
658
|
display: Joi.string().allow("").required(),
|
|
296
|
-
feedback_form:
|
|
659
|
+
feedback_form: LeadPlatformModel.FeedbackForm(),
|
|
297
660
|
group_id: Joi.number(),
|
|
298
661
|
key: Joi.string().allow("").required(),
|
|
299
662
|
sub_categories: Joi.link("#TicketCategory"),
|
|
300
663
|
}).id("TicketCategory");
|
|
301
664
|
}
|
|
665
|
+
|
|
666
|
+
/** @returns {TicketContent} */
|
|
302
667
|
static TicketContent() {
|
|
303
668
|
return Joi.object({
|
|
304
|
-
attachments: Joi.array().items(
|
|
669
|
+
attachments: Joi.array().items(LeadPlatformModel.TicketAsset()),
|
|
305
670
|
description: Joi.string().allow(""),
|
|
306
671
|
title: Joi.string().allow("").required(),
|
|
307
672
|
});
|
|
308
673
|
}
|
|
674
|
+
|
|
675
|
+
/** @returns {TicketContext} */
|
|
309
676
|
static TicketContext() {
|
|
310
677
|
return Joi.object({
|
|
311
678
|
application_id: Joi.string().allow(""),
|
|
312
679
|
company_id: Joi.string().allow("").required(),
|
|
313
680
|
});
|
|
314
681
|
}
|
|
682
|
+
|
|
683
|
+
/** @returns {TicketFeedback} */
|
|
315
684
|
static TicketFeedback() {
|
|
316
685
|
return Joi.object({
|
|
317
686
|
_id: Joi.string().allow("").required(),
|
|
318
687
|
category: Joi.string().allow(""),
|
|
319
688
|
company_id: Joi.string().allow("").required(),
|
|
320
689
|
created_at: Joi.string().allow(""),
|
|
321
|
-
response: Joi.array()
|
|
690
|
+
response: Joi.array()
|
|
691
|
+
.items(LeadPlatformModel.FeedbackResponseItem())
|
|
692
|
+
.required(),
|
|
322
693
|
ticket_id: Joi.string().allow("").required(),
|
|
323
694
|
updated_at: Joi.string().allow(""),
|
|
324
695
|
user: Joi.any(),
|
|
325
696
|
});
|
|
326
697
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
display: Joi.array().items(Joi.any()),
|
|
330
|
-
title: Joi.string().allow("").required(),
|
|
331
|
-
});
|
|
332
|
-
}
|
|
698
|
+
|
|
699
|
+
/** @returns {TicketFeedbackList} */
|
|
333
700
|
static TicketFeedbackList() {
|
|
334
701
|
return Joi.object({
|
|
335
|
-
items: Joi.array().items(
|
|
702
|
+
items: Joi.array().items(LeadPlatformModel.TicketFeedback()),
|
|
336
703
|
});
|
|
337
704
|
}
|
|
705
|
+
|
|
706
|
+
/** @returns {TicketFeedbackPayload} */
|
|
338
707
|
static TicketFeedbackPayload() {
|
|
339
708
|
return Joi.object({
|
|
340
709
|
form_response: Joi.any(),
|
|
341
710
|
});
|
|
342
711
|
}
|
|
712
|
+
|
|
713
|
+
/** @returns {TicketHistory} */
|
|
343
714
|
static TicketHistory() {
|
|
344
715
|
return Joi.object({
|
|
345
716
|
_id: Joi.string().allow("").required(),
|
|
346
717
|
created_at: Joi.string().allow(""),
|
|
347
718
|
created_by: Joi.any(),
|
|
348
|
-
created_on:
|
|
719
|
+
created_on: LeadPlatformModel.CreatedOn(),
|
|
349
720
|
ticket_id: Joi.string().allow("").required(),
|
|
350
721
|
type: Joi.string().allow("").required(),
|
|
351
722
|
updated_at: Joi.string().allow(""),
|
|
352
723
|
value: Joi.any().required(),
|
|
353
724
|
});
|
|
354
725
|
}
|
|
726
|
+
|
|
727
|
+
/** @returns {TicketHistoryList} */
|
|
355
728
|
static TicketHistoryList() {
|
|
356
729
|
return Joi.object({
|
|
357
|
-
items: Joi.array().items(
|
|
358
|
-
page:
|
|
730
|
+
items: Joi.array().items(LeadPlatformModel.TicketHistory()),
|
|
731
|
+
page: LeadPlatformModel.Page(),
|
|
359
732
|
});
|
|
360
733
|
}
|
|
734
|
+
|
|
735
|
+
/** @returns {TicketHistoryPayload} */
|
|
361
736
|
static TicketHistoryPayload() {
|
|
362
737
|
return Joi.object({
|
|
363
|
-
type:
|
|
738
|
+
type: LeadPlatformModel.HistoryTypeEnum().required(),
|
|
364
739
|
value: Joi.any().required(),
|
|
365
740
|
});
|
|
366
741
|
}
|
|
742
|
+
|
|
743
|
+
/** @returns {TicketList} */
|
|
367
744
|
static TicketList() {
|
|
368
745
|
return Joi.object({
|
|
369
|
-
filters:
|
|
370
|
-
items: Joi.array().items(
|
|
371
|
-
page:
|
|
746
|
+
filters: LeadPlatformModel.Filter(),
|
|
747
|
+
items: Joi.array().items(LeadPlatformModel.Ticket()),
|
|
748
|
+
page: LeadPlatformModel.Page(),
|
|
372
749
|
});
|
|
373
750
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
display: Joi.string().allow("").required(),
|
|
377
|
-
key: Joi.string().allow("").required(),
|
|
378
|
-
sub_categories: Joi.link("#TicketSubCategory"),
|
|
379
|
-
}).id("TicketSubCategory");
|
|
380
|
-
}
|
|
751
|
+
|
|
752
|
+
/** @returns {UserSchema} */
|
|
381
753
|
static UserSchema() {
|
|
382
754
|
return Joi.object({
|
|
383
755
|
_id: Joi.string().allow(""),
|
|
@@ -386,12 +758,12 @@ class LeadModel {
|
|
|
386
758
|
application_id: Joi.string().allow(""),
|
|
387
759
|
created_at: Joi.string().allow(""),
|
|
388
760
|
dob: Joi.string().allow(""),
|
|
389
|
-
emails: Joi.array().items(
|
|
761
|
+
emails: Joi.array().items(LeadPlatformModel.Email()),
|
|
390
762
|
first_name: Joi.string().allow(""),
|
|
391
763
|
gender: Joi.string().allow(""),
|
|
392
764
|
last_name: Joi.string().allow(""),
|
|
393
765
|
meta: Joi.any(),
|
|
394
|
-
phone_numbers: Joi.array().items(
|
|
766
|
+
phone_numbers: Joi.array().items(LeadPlatformModel.PhoneNumber()),
|
|
395
767
|
profile_pic_url: Joi.string().allow(""),
|
|
396
768
|
updated_at: Joi.string().allow(""),
|
|
397
769
|
user_id: Joi.string().allow(""),
|
|
@@ -399,10 +771,11 @@ class LeadModel {
|
|
|
399
771
|
});
|
|
400
772
|
}
|
|
401
773
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
774
|
+
/**
|
|
775
|
+
* Enum: HistoryTypeEnum Used By: Lead
|
|
776
|
+
*
|
|
777
|
+
* @returns {HistoryTypeEnum}
|
|
778
|
+
*/
|
|
406
779
|
static HistoryTypeEnum() {
|
|
407
780
|
return Joi.string().valid(
|
|
408
781
|
"rating",
|
|
@@ -413,10 +786,11 @@ class LeadModel {
|
|
|
413
786
|
);
|
|
414
787
|
}
|
|
415
788
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
789
|
+
/**
|
|
790
|
+
* Enum: PriorityEnum Used By: Lead
|
|
791
|
+
*
|
|
792
|
+
* @returns {PriorityEnum}
|
|
793
|
+
*/
|
|
420
794
|
static PriorityEnum() {
|
|
421
795
|
return Joi.string().valid(
|
|
422
796
|
"low",
|
|
@@ -429,10 +803,11 @@ class LeadModel {
|
|
|
429
803
|
);
|
|
430
804
|
}
|
|
431
805
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
806
|
+
/**
|
|
807
|
+
* Enum: TicketAssetTypeEnum Used By: Lead
|
|
808
|
+
*
|
|
809
|
+
* @returns {TicketAssetTypeEnum}
|
|
810
|
+
*/
|
|
436
811
|
static TicketAssetTypeEnum() {
|
|
437
812
|
return Joi.string().valid(
|
|
438
813
|
"image",
|
|
@@ -455,24 +830,11 @@ class LeadModel {
|
|
|
455
830
|
);
|
|
456
831
|
}
|
|
457
832
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
return Joi.string().valid(
|
|
464
|
-
"default",
|
|
465
|
-
|
|
466
|
-
"freshdesk",
|
|
467
|
-
|
|
468
|
-
"kapture"
|
|
469
|
-
);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/*
|
|
473
|
-
Enum: TicketSourceEnum
|
|
474
|
-
Used By: Lead
|
|
475
|
-
*/
|
|
833
|
+
/**
|
|
834
|
+
* Enum: TicketSourceEnum Used By: Lead
|
|
835
|
+
*
|
|
836
|
+
* @returns {TicketSourceEnum}
|
|
837
|
+
*/
|
|
476
838
|
static TicketSourceEnum() {
|
|
477
839
|
return Joi.string().valid(
|
|
478
840
|
"platform_panel",
|
|
@@ -481,4 +843,4 @@ class LeadModel {
|
|
|
481
843
|
);
|
|
482
844
|
}
|
|
483
845
|
}
|
|
484
|
-
module.exports =
|
|
846
|
+
module.exports = LeadPlatformModel;
|