@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1304 -4979
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +341 -602
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +284 -483
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -11,7 +11,7 @@ export = FileStorageApplicationModel;
|
|
|
11
11
|
* @property {string} url - The signed URL for uploading the file.
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
|
-
* @typedef
|
|
14
|
+
* @typedef StartResponse
|
|
15
15
|
* @property {string} file_name - The name of the file that was uploaded.
|
|
16
16
|
* @property {string} file_path - The path to the file in the storage location.
|
|
17
17
|
* @property {string} content_type - The content type of the file.
|
|
@@ -20,6 +20,7 @@ export = FileStorageApplicationModel;
|
|
|
20
20
|
* @property {string} operation - The operation to be performed on the storage service.
|
|
21
21
|
* @property {number} size - The size of the file in bytes.
|
|
22
22
|
* @property {Upload} upload
|
|
23
|
+
* @property {CDN} cdn
|
|
23
24
|
* @property {string[]} [tags] - Tags associated with the file.
|
|
24
25
|
*/
|
|
25
26
|
/**
|
|
@@ -28,7 +29,7 @@ export = FileStorageApplicationModel;
|
|
|
28
29
|
* within the storage structure where the file should be placed or is located.
|
|
29
30
|
*/
|
|
30
31
|
/**
|
|
31
|
-
* @typedef
|
|
32
|
+
* @typedef StartRequest
|
|
32
33
|
* @property {string} file_name - The name of the file to be uploaded.
|
|
33
34
|
* @property {string} content_type - The name of the file to be uploaded.
|
|
34
35
|
* @property {number} size - The size of the file in bytes.
|
|
@@ -40,7 +41,7 @@ export = FileStorageApplicationModel;
|
|
|
40
41
|
* @property {string} [username] - The username of the user who created the file.
|
|
41
42
|
*/
|
|
42
43
|
/**
|
|
43
|
-
* @typedef
|
|
44
|
+
* @typedef CompleteResponse
|
|
44
45
|
* @property {string} _id - The unique identifier of the uploaded file.
|
|
45
46
|
* @property {string} file_name - The name of the file that was uploaded.
|
|
46
47
|
* @property {string} file_path - The path to the file in the storage location.
|
|
@@ -64,18 +65,18 @@ export = FileStorageApplicationModel;
|
|
|
64
65
|
* @property {number} expiry - The expiration time for the signed URL.
|
|
65
66
|
*/
|
|
66
67
|
/**
|
|
67
|
-
* @typedef
|
|
68
|
+
* @typedef SignUrlResponse
|
|
68
69
|
* @property {Urls[]} urls - Signed URL object.
|
|
69
70
|
*/
|
|
70
71
|
/**
|
|
71
|
-
* @typedef
|
|
72
|
+
* @typedef SignUrlRequest
|
|
72
73
|
* @property {number} expiry - The expiration time for the signed URL.
|
|
73
|
-
* @property {string[]} urls - List of asset URLs to be signed.
|
|
74
|
+
* @property {string[]} urls - List of asset URLs to be signed. .
|
|
74
75
|
*/
|
|
75
76
|
declare class FileStorageApplicationModel {
|
|
76
77
|
}
|
|
77
78
|
declare namespace FileStorageApplicationModel {
|
|
78
|
-
export { CDN, Upload,
|
|
79
|
+
export { CDN, Upload, StartResponse, Params, StartRequest, CreatedBy, CompleteResponse, Urls, SignUrlResponse, SignUrlRequest };
|
|
79
80
|
}
|
|
80
81
|
/** @returns {CDN} */
|
|
81
82
|
declare function CDN(): CDN;
|
|
@@ -105,9 +106,9 @@ type Upload = {
|
|
|
105
106
|
*/
|
|
106
107
|
url: string;
|
|
107
108
|
};
|
|
108
|
-
/** @returns {
|
|
109
|
-
declare function
|
|
110
|
-
type
|
|
109
|
+
/** @returns {StartResponse} */
|
|
110
|
+
declare function StartResponse(): StartResponse;
|
|
111
|
+
type StartResponse = {
|
|
111
112
|
/**
|
|
112
113
|
* - The name of the file that was uploaded.
|
|
113
114
|
*/
|
|
@@ -137,6 +138,7 @@ type FileUpload = {
|
|
|
137
138
|
*/
|
|
138
139
|
size: number;
|
|
139
140
|
upload: Upload;
|
|
141
|
+
cdn: CDN;
|
|
140
142
|
/**
|
|
141
143
|
* - Tags associated with the file.
|
|
142
144
|
*/
|
|
@@ -151,9 +153,9 @@ type Params = {
|
|
|
151
153
|
*/
|
|
152
154
|
subpath?: string;
|
|
153
155
|
};
|
|
154
|
-
/** @returns {
|
|
155
|
-
declare function
|
|
156
|
-
type
|
|
156
|
+
/** @returns {StartRequest} */
|
|
157
|
+
declare function StartRequest(): StartRequest;
|
|
158
|
+
type StartRequest = {
|
|
157
159
|
/**
|
|
158
160
|
* - The name of the file to be uploaded.
|
|
159
161
|
*/
|
|
@@ -180,9 +182,9 @@ type CreatedBy = {
|
|
|
180
182
|
*/
|
|
181
183
|
username?: string;
|
|
182
184
|
};
|
|
183
|
-
/** @returns {
|
|
184
|
-
declare function
|
|
185
|
-
type
|
|
185
|
+
/** @returns {CompleteResponse} */
|
|
186
|
+
declare function CompleteResponse(): CompleteResponse;
|
|
187
|
+
type CompleteResponse = {
|
|
186
188
|
/**
|
|
187
189
|
* - The unique identifier of the uploaded file.
|
|
188
190
|
*/
|
|
@@ -248,23 +250,23 @@ type Urls = {
|
|
|
248
250
|
*/
|
|
249
251
|
expiry: number;
|
|
250
252
|
};
|
|
251
|
-
/** @returns {
|
|
252
|
-
declare function
|
|
253
|
-
type
|
|
253
|
+
/** @returns {SignUrlResponse} */
|
|
254
|
+
declare function SignUrlResponse(): SignUrlResponse;
|
|
255
|
+
type SignUrlResponse = {
|
|
254
256
|
/**
|
|
255
257
|
* - Signed URL object.
|
|
256
258
|
*/
|
|
257
259
|
urls: Urls[];
|
|
258
260
|
};
|
|
259
|
-
/** @returns {
|
|
260
|
-
declare function
|
|
261
|
-
type
|
|
261
|
+
/** @returns {SignUrlRequest} */
|
|
262
|
+
declare function SignUrlRequest(): SignUrlRequest;
|
|
263
|
+
type SignUrlRequest = {
|
|
262
264
|
/**
|
|
263
265
|
* - The expiration time for the signed URL.
|
|
264
266
|
*/
|
|
265
267
|
expiry: number;
|
|
266
268
|
/**
|
|
267
|
-
* - List of asset URLs to be signed.
|
|
269
|
+
* - List of asset URLs to be signed. .
|
|
268
270
|
*/
|
|
269
271
|
urls: string[];
|
|
270
272
|
};
|
|
@@ -14,7 +14,7 @@ const Joi = require("joi");
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* @typedef
|
|
17
|
+
* @typedef StartResponse
|
|
18
18
|
* @property {string} file_name - The name of the file that was uploaded.
|
|
19
19
|
* @property {string} file_path - The path to the file in the storage location.
|
|
20
20
|
* @property {string} content_type - The content type of the file.
|
|
@@ -23,6 +23,7 @@ const Joi = require("joi");
|
|
|
23
23
|
* @property {string} operation - The operation to be performed on the storage service.
|
|
24
24
|
* @property {number} size - The size of the file in bytes.
|
|
25
25
|
* @property {Upload} upload
|
|
26
|
+
* @property {CDN} cdn
|
|
26
27
|
* @property {string[]} [tags] - Tags associated with the file.
|
|
27
28
|
*/
|
|
28
29
|
|
|
@@ -33,7 +34,7 @@ const Joi = require("joi");
|
|
|
33
34
|
*/
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
|
-
* @typedef
|
|
37
|
+
* @typedef StartRequest
|
|
37
38
|
* @property {string} file_name - The name of the file to be uploaded.
|
|
38
39
|
* @property {string} content_type - The name of the file to be uploaded.
|
|
39
40
|
* @property {number} size - The size of the file in bytes.
|
|
@@ -47,7 +48,7 @@ const Joi = require("joi");
|
|
|
47
48
|
*/
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
|
-
* @typedef
|
|
51
|
+
* @typedef CompleteResponse
|
|
51
52
|
* @property {string} _id - The unique identifier of the uploaded file.
|
|
52
53
|
* @property {string} file_name - The name of the file that was uploaded.
|
|
53
54
|
* @property {string} file_path - The path to the file in the storage location.
|
|
@@ -73,14 +74,14 @@ const Joi = require("joi");
|
|
|
73
74
|
*/
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
|
-
* @typedef
|
|
77
|
+
* @typedef SignUrlResponse
|
|
77
78
|
* @property {Urls[]} urls - Signed URL object.
|
|
78
79
|
*/
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
|
-
* @typedef
|
|
82
|
+
* @typedef SignUrlRequest
|
|
82
83
|
* @property {number} expiry - The expiration time for the signed URL.
|
|
83
|
-
* @property {string[]} urls - List of asset URLs to be signed.
|
|
84
|
+
* @property {string[]} urls - List of asset URLs to be signed. .
|
|
84
85
|
*/
|
|
85
86
|
|
|
86
87
|
class FileStorageApplicationModel {
|
|
@@ -101,8 +102,8 @@ class FileStorageApplicationModel {
|
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
/** @returns {
|
|
105
|
-
static
|
|
105
|
+
/** @returns {StartResponse} */
|
|
106
|
+
static StartResponse() {
|
|
106
107
|
return Joi.object({
|
|
107
108
|
file_name: Joi.string().allow("").required(),
|
|
108
109
|
file_path: Joi.string().allow("").required(),
|
|
@@ -112,6 +113,7 @@ class FileStorageApplicationModel {
|
|
|
112
113
|
operation: Joi.string().allow("").required(),
|
|
113
114
|
size: Joi.number().required(),
|
|
114
115
|
upload: FileStorageApplicationModel.Upload().required(),
|
|
116
|
+
cdn: FileStorageApplicationModel.CDN().required(),
|
|
115
117
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
116
118
|
});
|
|
117
119
|
}
|
|
@@ -123,8 +125,8 @@ class FileStorageApplicationModel {
|
|
|
123
125
|
});
|
|
124
126
|
}
|
|
125
127
|
|
|
126
|
-
/** @returns {
|
|
127
|
-
static
|
|
128
|
+
/** @returns {StartRequest} */
|
|
129
|
+
static StartRequest() {
|
|
128
130
|
return Joi.object({
|
|
129
131
|
file_name: Joi.string().allow("").required(),
|
|
130
132
|
content_type: Joi.string().allow("").required(),
|
|
@@ -141,8 +143,8 @@ class FileStorageApplicationModel {
|
|
|
141
143
|
});
|
|
142
144
|
}
|
|
143
145
|
|
|
144
|
-
/** @returns {
|
|
145
|
-
static
|
|
146
|
+
/** @returns {CompleteResponse} */
|
|
147
|
+
static CompleteResponse() {
|
|
146
148
|
return Joi.object({
|
|
147
149
|
_id: Joi.string().allow("").required(),
|
|
148
150
|
file_name: Joi.string().allow("").required(),
|
|
@@ -170,15 +172,15 @@ class FileStorageApplicationModel {
|
|
|
170
172
|
});
|
|
171
173
|
}
|
|
172
174
|
|
|
173
|
-
/** @returns {
|
|
174
|
-
static
|
|
175
|
+
/** @returns {SignUrlResponse} */
|
|
176
|
+
static SignUrlResponse() {
|
|
175
177
|
return Joi.object({
|
|
176
178
|
urls: Joi.array().items(FileStorageApplicationModel.Urls()).required(),
|
|
177
179
|
});
|
|
178
180
|
}
|
|
179
181
|
|
|
180
|
-
/** @returns {
|
|
181
|
-
static
|
|
182
|
+
/** @returns {SignUrlRequest} */
|
|
183
|
+
static SignUrlRequest() {
|
|
182
184
|
return Joi.object({
|
|
183
185
|
expiry: Joi.number().required(),
|
|
184
186
|
urls: Joi.array().items(Joi.string().allow("")).required(),
|
|
@@ -5,11 +5,11 @@ export = FileStorageApplicationValidator;
|
|
|
5
5
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
6
6
|
* the file being uploaded, decides where exactly the file will be stored
|
|
7
7
|
* inside the storage bucket.
|
|
8
|
-
* @property {FileStorageApplicationModel.
|
|
8
|
+
* @property {FileStorageApplicationModel.StartResponse} body
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* @typedef SignUrlsParam
|
|
12
|
-
* @property {FileStorageApplicationModel.
|
|
12
|
+
* @property {FileStorageApplicationModel.SignUrlRequest} body
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
15
|
* @typedef StartUploadParam
|
|
@@ -17,7 +17,7 @@ export = FileStorageApplicationValidator;
|
|
|
17
17
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
18
18
|
* the file being uploaded, decides where exactly the file will be stored
|
|
19
19
|
* inside the storage bucket.
|
|
20
|
-
* @property {FileStorageApplicationModel.
|
|
20
|
+
* @property {FileStorageApplicationModel.StartRequest} body
|
|
21
21
|
*/
|
|
22
22
|
declare class FileStorageApplicationValidator {
|
|
23
23
|
/** @returns {CompleteUploadParam} */
|
|
@@ -38,10 +38,10 @@ type CompleteUploadParam = {
|
|
|
38
38
|
* inside the storage bucket.
|
|
39
39
|
*/
|
|
40
40
|
namespace: string;
|
|
41
|
-
body: FileStorageApplicationModel.
|
|
41
|
+
body: FileStorageApplicationModel.StartResponse;
|
|
42
42
|
};
|
|
43
43
|
type SignUrlsParam = {
|
|
44
|
-
body: FileStorageApplicationModel.
|
|
44
|
+
body: FileStorageApplicationModel.SignUrlRequest;
|
|
45
45
|
};
|
|
46
46
|
type StartUploadParam = {
|
|
47
47
|
/**
|
|
@@ -51,6 +51,6 @@ type StartUploadParam = {
|
|
|
51
51
|
* inside the storage bucket.
|
|
52
52
|
*/
|
|
53
53
|
namespace: string;
|
|
54
|
-
body: FileStorageApplicationModel.
|
|
54
|
+
body: FileStorageApplicationModel.StartRequest;
|
|
55
55
|
};
|
|
56
56
|
import FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
@@ -8,12 +8,12 @@ const FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
|
8
8
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
9
9
|
* the file being uploaded, decides where exactly the file will be stored
|
|
10
10
|
* inside the storage bucket.
|
|
11
|
-
* @property {FileStorageApplicationModel.
|
|
11
|
+
* @property {FileStorageApplicationModel.StartResponse} body
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef SignUrlsParam
|
|
16
|
-
* @property {FileStorageApplicationModel.
|
|
16
|
+
* @property {FileStorageApplicationModel.SignUrlRequest} body
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ const FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
|
22
22
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
23
23
|
* the file being uploaded, decides where exactly the file will be stored
|
|
24
24
|
* inside the storage bucket.
|
|
25
|
-
* @property {FileStorageApplicationModel.
|
|
25
|
+
* @property {FileStorageApplicationModel.StartRequest} body
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
class FileStorageApplicationValidator {
|
|
@@ -30,14 +30,14 @@ class FileStorageApplicationValidator {
|
|
|
30
30
|
static completeUpload() {
|
|
31
31
|
return Joi.object({
|
|
32
32
|
namespace: Joi.string().allow("").required(),
|
|
33
|
-
body: FileStorageApplicationModel.
|
|
33
|
+
body: FileStorageApplicationModel.StartResponse().required(),
|
|
34
34
|
}).required();
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/** @returns {SignUrlsParam} */
|
|
38
38
|
static signUrls() {
|
|
39
39
|
return Joi.object({
|
|
40
|
-
body: FileStorageApplicationModel.
|
|
40
|
+
body: FileStorageApplicationModel.SignUrlRequest().required(),
|
|
41
41
|
}).required();
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -45,7 +45,7 @@ class FileStorageApplicationValidator {
|
|
|
45
45
|
static startUpload() {
|
|
46
46
|
return Joi.object({
|
|
47
47
|
namespace: Joi.string().allow("").required(),
|
|
48
|
-
body: FileStorageApplicationModel.
|
|
48
|
+
body: FileStorageApplicationModel.StartRequest().required(),
|
|
49
49
|
}).required();
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -55,12 +55,13 @@ declare class Lead {
|
|
|
55
55
|
* @param {LeadApplicationValidator.SubmitCustomFormParam} arg - Arg object.
|
|
56
56
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
57
57
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
58
|
-
* @returns {Promise<LeadApplicationModel.
|
|
58
|
+
* @returns {Promise<LeadApplicationModel.SubmitCustomFormResponse>} -
|
|
59
|
+
* Success response
|
|
59
60
|
* @name submitCustomForm
|
|
60
61
|
* @summary: Submits form data
|
|
61
62
|
* @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
|
|
62
63
|
*/
|
|
63
|
-
submitCustomForm({ slug, body, requestHeaders }?: LeadApplicationValidator.SubmitCustomFormParam, { responseHeaders }?: object): Promise<LeadApplicationModel.
|
|
64
|
+
submitCustomForm({ slug, body, requestHeaders }?: LeadApplicationValidator.SubmitCustomFormParam, { responseHeaders }?: object): Promise<LeadApplicationModel.SubmitCustomFormResponse>;
|
|
64
65
|
}
|
|
65
66
|
import LeadApplicationValidator = require("./LeadApplicationValidator");
|
|
66
67
|
import LeadApplicationModel = require("./LeadApplicationModel");
|
|
@@ -350,7 +350,8 @@ class Lead {
|
|
|
350
350
|
* @param {LeadApplicationValidator.SubmitCustomFormParam} arg - Arg object.
|
|
351
351
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
352
352
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
353
|
-
* @returns {Promise<LeadApplicationModel.
|
|
353
|
+
* @returns {Promise<LeadApplicationModel.SubmitCustomFormResponse>} -
|
|
354
|
+
* Success response
|
|
354
355
|
* @name submitCustomForm
|
|
355
356
|
* @summary: Submits form data
|
|
356
357
|
* @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
|
|
@@ -405,7 +406,7 @@ class Lead {
|
|
|
405
406
|
|
|
406
407
|
const {
|
|
407
408
|
error: res_error,
|
|
408
|
-
} = LeadApplicationModel.
|
|
409
|
+
} = LeadApplicationModel.SubmitCustomFormResponse().validate(responseData, {
|
|
409
410
|
abortEarly: false,
|
|
410
411
|
allowUnknown: true,
|
|
411
412
|
});
|
|
@@ -10,13 +10,13 @@ export = LeadApplicationModel;
|
|
|
10
10
|
* @property {TicketAsset[]} [attachments] - List of all attachments related to the form.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @typedef
|
|
13
|
+
* @typedef SubmitCustomFormResponse
|
|
14
14
|
* @property {string} message - Success message for form submission.
|
|
15
15
|
* @property {Ticket} [ticket]
|
|
16
|
-
* @property {
|
|
16
|
+
* @property {FormFieldResponse} [response]
|
|
17
17
|
*/
|
|
18
18
|
/**
|
|
19
|
-
* @typedef
|
|
19
|
+
* @typedef FormFieldResponse
|
|
20
20
|
* @property {string} [_id] - Unique identifier for a custom form response.
|
|
21
21
|
* @property {number} [__v] - Version of the form.
|
|
22
22
|
* @property {string} [application_id] - Unique identifier for a Sales channel.
|
|
@@ -174,7 +174,7 @@ export = LeadApplicationModel;
|
|
|
174
174
|
declare class LeadApplicationModel {
|
|
175
175
|
}
|
|
176
176
|
declare namespace LeadApplicationModel {
|
|
177
|
-
export { TicketHistoryPayload, CustomFormSubmissionPayload,
|
|
177
|
+
export { TicketHistoryPayload, CustomFormSubmissionPayload, SubmitCustomFormResponse, FormFieldResponse, FormFieldResponseValues, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, Status, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, TicketHistory, Ticket, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
|
|
178
178
|
}
|
|
179
179
|
/** @returns {TicketHistoryPayload} */
|
|
180
180
|
declare function TicketHistoryPayload(): TicketHistoryPayload;
|
|
@@ -197,19 +197,19 @@ type CustomFormSubmissionPayload = {
|
|
|
197
197
|
*/
|
|
198
198
|
attachments?: TicketAsset[];
|
|
199
199
|
};
|
|
200
|
-
/** @returns {
|
|
201
|
-
declare function
|
|
202
|
-
type
|
|
200
|
+
/** @returns {SubmitCustomFormResponse} */
|
|
201
|
+
declare function SubmitCustomFormResponse(): SubmitCustomFormResponse;
|
|
202
|
+
type SubmitCustomFormResponse = {
|
|
203
203
|
/**
|
|
204
204
|
* - Success message for form submission.
|
|
205
205
|
*/
|
|
206
206
|
message: string;
|
|
207
207
|
ticket?: Ticket;
|
|
208
|
-
response?:
|
|
208
|
+
response?: FormFieldResponse;
|
|
209
209
|
};
|
|
210
|
-
/** @returns {
|
|
211
|
-
declare function
|
|
212
|
-
type
|
|
210
|
+
/** @returns {FormFieldResponse} */
|
|
211
|
+
declare function FormFieldResponse(): FormFieldResponse;
|
|
212
|
+
type FormFieldResponse = {
|
|
213
213
|
/**
|
|
214
214
|
* - Unique identifier for a custom form response.
|
|
215
215
|
*/
|
|
@@ -13,14 +13,14 @@ const Joi = require("joi");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @typedef
|
|
16
|
+
* @typedef SubmitCustomFormResponse
|
|
17
17
|
* @property {string} message - Success message for form submission.
|
|
18
18
|
* @property {Ticket} [ticket]
|
|
19
|
-
* @property {
|
|
19
|
+
* @property {FormFieldResponse} [response]
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @typedef
|
|
23
|
+
* @typedef FormFieldResponse
|
|
24
24
|
* @property {string} [_id] - Unique identifier for a custom form response.
|
|
25
25
|
* @property {number} [__v] - Version of the form.
|
|
26
26
|
* @property {string} [application_id] - Unique identifier for a Sales channel.
|
|
@@ -199,7 +199,7 @@ class LeadApplicationModel {
|
|
|
199
199
|
/** @returns {TicketHistoryPayload} */
|
|
200
200
|
static TicketHistoryPayload() {
|
|
201
201
|
return Joi.object({
|
|
202
|
-
value: Joi.
|
|
202
|
+
value: Joi.any().required(),
|
|
203
203
|
type: LeadApplicationModel.HistoryTypeEnum().required(),
|
|
204
204
|
});
|
|
205
205
|
}
|
|
@@ -212,17 +212,17 @@ class LeadApplicationModel {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
/** @returns {
|
|
216
|
-
static
|
|
215
|
+
/** @returns {SubmitCustomFormResponse} */
|
|
216
|
+
static SubmitCustomFormResponse() {
|
|
217
217
|
return Joi.object({
|
|
218
218
|
message: Joi.string().allow("").required(),
|
|
219
219
|
ticket: LeadApplicationModel.Ticket(),
|
|
220
|
-
response: LeadApplicationModel.
|
|
220
|
+
response: LeadApplicationModel.FormFieldResponse(),
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/** @returns {
|
|
225
|
-
static
|
|
224
|
+
/** @returns {FormFieldResponse} */
|
|
225
|
+
static FormFieldResponse() {
|
|
226
226
|
return Joi.object({
|
|
227
227
|
_id: Joi.string().allow(""),
|
|
228
228
|
__v: Joi.number(),
|
|
@@ -278,12 +278,12 @@ class LeadApplicationModel {
|
|
|
278
278
|
/** @returns {AddTicketPayload} */
|
|
279
279
|
static AddTicketPayload() {
|
|
280
280
|
return Joi.object({
|
|
281
|
-
created_by: Joi.
|
|
281
|
+
created_by: Joi.any(),
|
|
282
282
|
status: Joi.string().allow(""),
|
|
283
283
|
priority: LeadApplicationModel.PriorityEnum(),
|
|
284
284
|
category: Joi.string().allow("").required(),
|
|
285
285
|
content: LeadApplicationModel.TicketContent().required(),
|
|
286
|
-
_custom_json: Joi.
|
|
286
|
+
_custom_json: Joi.any(),
|
|
287
287
|
subscribers: Joi.array().items(Joi.string().allow("")),
|
|
288
288
|
});
|
|
289
289
|
}
|
|
@@ -348,9 +348,9 @@ class LeadApplicationModel {
|
|
|
348
348
|
/** @returns {FeedbackForm} */
|
|
349
349
|
static FeedbackForm() {
|
|
350
350
|
return Joi.object({
|
|
351
|
-
inputs: Joi.
|
|
351
|
+
inputs: Joi.any(),
|
|
352
352
|
title: Joi.string().allow(""),
|
|
353
|
-
timestamps: Joi.
|
|
353
|
+
timestamps: Joi.any(),
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
|
|
@@ -369,10 +369,10 @@ class LeadApplicationModel {
|
|
|
369
369
|
static TicketHistory() {
|
|
370
370
|
return Joi.object({
|
|
371
371
|
type: Joi.string().allow("").required(),
|
|
372
|
-
value: Joi.
|
|
372
|
+
value: Joi.any().required(),
|
|
373
373
|
ticket_id: Joi.string().allow("").required(),
|
|
374
374
|
created_on: LeadApplicationModel.CreatedOn(),
|
|
375
|
-
created_by: Joi.
|
|
375
|
+
created_by: Joi.any(),
|
|
376
376
|
_id: Joi.string().allow("").required(),
|
|
377
377
|
updated_at: Joi.string().allow(""),
|
|
378
378
|
created_at: Joi.string().allow(""),
|
|
@@ -391,12 +391,12 @@ class LeadApplicationModel {
|
|
|
391
391
|
source: LeadApplicationModel.TicketSourceEnum().required(),
|
|
392
392
|
status: LeadApplicationModel.Status().required(),
|
|
393
393
|
priority: LeadApplicationModel.Priority().required(),
|
|
394
|
-
created_by: Joi.
|
|
395
|
-
assigned_to: Joi.
|
|
394
|
+
created_by: Joi.any(),
|
|
395
|
+
assigned_to: Joi.any(),
|
|
396
396
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
397
|
-
_custom_json: Joi.
|
|
397
|
+
_custom_json: Joi.any(),
|
|
398
398
|
is_feedback_pending: Joi.boolean(),
|
|
399
|
-
integration: Joi.
|
|
399
|
+
integration: Joi.any(),
|
|
400
400
|
_id: Joi.string().allow("").required(),
|
|
401
401
|
updated_at: Joi.string().allow(""),
|
|
402
402
|
created_at: Joi.string().allow(""),
|