@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15
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 +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -14,7 +14,7 @@ export = FileStoragePlatformValidator;
|
|
|
14
14
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
15
15
|
* the file being uploaded, decides where exactly the file will be stored
|
|
16
16
|
* inside the storage bucket.
|
|
17
|
-
* @property {FileStoragePlatformModel.
|
|
17
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
18
18
|
*/
|
|
19
19
|
/**
|
|
20
20
|
* @typedef CopyFilesParam
|
|
@@ -23,7 +23,7 @@ export = FileStoragePlatformValidator;
|
|
|
23
23
|
*/
|
|
24
24
|
/**
|
|
25
25
|
* @typedef GetSignUrlsParam
|
|
26
|
-
* @property {FileStoragePlatformModel.
|
|
26
|
+
* @property {FileStoragePlatformModel.SignUrl} body
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
29
|
* @typedef ProxyParam
|
|
@@ -35,7 +35,7 @@ export = FileStoragePlatformValidator;
|
|
|
35
35
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
36
36
|
* the file being uploaded, decides where exactly the file will be stored
|
|
37
37
|
* inside the storage bucket.
|
|
38
|
-
* @property {FileStoragePlatformModel.
|
|
38
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
39
39
|
*/
|
|
40
40
|
declare class FileStoragePlatformValidator {
|
|
41
41
|
/** @returns {BrowseParam} */
|
|
@@ -79,14 +79,14 @@ type CompleteUploadParam = {
|
|
|
79
79
|
* inside the storage bucket.
|
|
80
80
|
*/
|
|
81
81
|
namespace: string;
|
|
82
|
-
body: FileStoragePlatformModel.
|
|
82
|
+
body: FileStoragePlatformModel.FileUpload;
|
|
83
83
|
};
|
|
84
84
|
type CopyFilesParam = {
|
|
85
85
|
sync?: boolean;
|
|
86
86
|
body: FileStoragePlatformModel.CopyFiles;
|
|
87
87
|
};
|
|
88
88
|
type GetSignUrlsParam = {
|
|
89
|
-
body: FileStoragePlatformModel.
|
|
89
|
+
body: FileStoragePlatformModel.SignUrl;
|
|
90
90
|
};
|
|
91
91
|
type ProxyParam = {
|
|
92
92
|
/**
|
|
@@ -102,6 +102,6 @@ type StartUploadParam = {
|
|
|
102
102
|
* inside the storage bucket.
|
|
103
103
|
*/
|
|
104
104
|
namespace: string;
|
|
105
|
-
body: FileStoragePlatformModel.
|
|
105
|
+
body: FileStoragePlatformModel.FileUploadStart;
|
|
106
106
|
};
|
|
107
107
|
import FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
@@ -18,7 +18,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
18
18
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
19
19
|
* the file being uploaded, decides where exactly the file will be stored
|
|
20
20
|
* inside the storage bucket.
|
|
21
|
-
* @property {FileStoragePlatformModel.
|
|
21
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @typedef GetSignUrlsParam
|
|
32
|
-
* @property {FileStoragePlatformModel.
|
|
32
|
+
* @property {FileStoragePlatformModel.SignUrl} body
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -43,7 +43,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
43
43
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
44
44
|
* the file being uploaded, decides where exactly the file will be stored
|
|
45
45
|
* inside the storage bucket.
|
|
46
|
-
* @property {FileStoragePlatformModel.
|
|
46
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
class FileStoragePlatformValidator {
|
|
@@ -60,7 +60,7 @@ class FileStoragePlatformValidator {
|
|
|
60
60
|
static completeUpload() {
|
|
61
61
|
return Joi.object({
|
|
62
62
|
namespace: Joi.string().allow("").required(),
|
|
63
|
-
body: FileStoragePlatformModel.
|
|
63
|
+
body: FileStoragePlatformModel.FileUpload().required(),
|
|
64
64
|
}).required();
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -75,7 +75,7 @@ class FileStoragePlatformValidator {
|
|
|
75
75
|
/** @returns {GetSignUrlsParam} */
|
|
76
76
|
static getSignUrls() {
|
|
77
77
|
return Joi.object({
|
|
78
|
-
body: FileStoragePlatformModel.
|
|
78
|
+
body: FileStoragePlatformModel.SignUrl().required(),
|
|
79
79
|
}).required();
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -90,7 +90,7 @@ class FileStoragePlatformValidator {
|
|
|
90
90
|
static startUpload() {
|
|
91
91
|
return Joi.object({
|
|
92
92
|
namespace: Joi.string().allow("").required(),
|
|
93
|
-
body: FileStoragePlatformModel.
|
|
93
|
+
body: FileStoragePlatformModel.FileUploadStart().required(),
|
|
94
94
|
}).required();
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -10,7 +10,7 @@ declare class Lead {
|
|
|
10
10
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
11
11
|
* @name createCustomForm
|
|
12
12
|
* @summary: Create custom form
|
|
13
|
-
* @description: Create a new custom form for application users to fill - Check out [method documentation](https://
|
|
13
|
+
* @description: Create a new custom form for application users to fill - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createCustomForm/).
|
|
14
14
|
*/
|
|
15
15
|
createCustomForm({ body, requestHeaders }?: LeadPlatformApplicationValidator.CreateCustomFormParam, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomForm>;
|
|
16
16
|
/**
|
|
@@ -20,7 +20,7 @@ declare class Lead {
|
|
|
20
20
|
* @returns {Promise<LeadPlatformModel.TicketHistory>} - Success response
|
|
21
21
|
* @name createNewHistory
|
|
22
22
|
* @summary: Create ticket history interaction
|
|
23
|
-
* @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://
|
|
23
|
+
* @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createNewHistory/).
|
|
24
24
|
*/
|
|
25
25
|
createNewHistory({ id, body, requestHeaders }?: LeadPlatformApplicationValidator.CreateNewHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistory>;
|
|
26
26
|
/**
|
|
@@ -30,7 +30,7 @@ declare class Lead {
|
|
|
30
30
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
31
31
|
* @name deleteCustomForm
|
|
32
32
|
* @summary: Delete a custom form
|
|
33
|
-
* @description: Delete a custom form using it's slug - Check out [method documentation](https://
|
|
33
|
+
* @description: Delete a custom form using it's slug - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/deleteCustomForm/).
|
|
34
34
|
*/
|
|
35
35
|
deleteCustomForm({ slug, requestHeaders }?: LeadPlatformApplicationValidator.DeleteCustomFormParam, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomForm>;
|
|
36
36
|
/**
|
|
@@ -40,7 +40,7 @@ declare class Lead {
|
|
|
40
40
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
41
41
|
* @name editCustomForm
|
|
42
42
|
* @summary: Update custom form
|
|
43
|
-
* @description: Modify the content and associated settings of a custom form. - Check out [method documentation](https://
|
|
43
|
+
* @description: Modify the content and associated settings of a custom form. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/editCustomForm/).
|
|
44
44
|
*/
|
|
45
45
|
editCustomForm({ slug, body, requestHeaders }?: LeadPlatformApplicationValidator.EditCustomFormParam, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomForm>;
|
|
46
46
|
/**
|
|
@@ -50,7 +50,7 @@ declare class Lead {
|
|
|
50
50
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
51
51
|
* @name editNewTicket
|
|
52
52
|
* @summary: Update Ticket Details
|
|
53
|
-
* @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://
|
|
53
|
+
* @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/editNewTicket/).
|
|
54
54
|
*/
|
|
55
55
|
editNewTicket({ id, body, requestHeaders }?: LeadPlatformApplicationValidator.EditNewTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
|
|
56
56
|
/**
|
|
@@ -60,7 +60,7 @@ declare class Lead {
|
|
|
60
60
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
61
61
|
* @name getCustomForm
|
|
62
62
|
* @summary: Get custom form
|
|
63
|
-
* @description: Get information about a custom form which includes corresponding field details and any validation regex required against that field or not - Check out [method documentation](https://
|
|
63
|
+
* @description: Get information about a custom form which includes corresponding field details and any validation regex required against that field or not - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getCustomForm/).
|
|
64
64
|
*/
|
|
65
65
|
getCustomForm({ slug, requestHeaders }?: LeadPlatformApplicationValidator.GetCustomFormParam, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomForm>;
|
|
66
66
|
/**
|
|
@@ -70,7 +70,7 @@ declare class Lead {
|
|
|
70
70
|
* @returns {Promise<LeadPlatformModel.CustomFormList>} - Success response
|
|
71
71
|
* @name getCustomForms
|
|
72
72
|
* @summary: Get custom forms
|
|
73
|
-
* @description: List all available custom forms - Check out [method documentation](https://
|
|
73
|
+
* @description: List all available custom forms - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getCustomForms/).
|
|
74
74
|
*/
|
|
75
75
|
getCustomForms({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.CustomFormList>;
|
|
76
76
|
/**
|
|
@@ -80,7 +80,7 @@ declare class Lead {
|
|
|
80
80
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
81
81
|
* @name getNewTicket
|
|
82
82
|
* @summary: Get Ticket Details
|
|
83
|
-
* @description: Get ticket details of a application level ticket with ticket ID - Check out [method documentation](https://
|
|
83
|
+
* @description: Get ticket details of a application level ticket with ticket ID - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getNewTicket/).
|
|
84
84
|
*/
|
|
85
85
|
getNewTicket({ id, requestHeaders }?: LeadPlatformApplicationValidator.GetNewTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
|
|
86
86
|
/**
|
|
@@ -90,7 +90,7 @@ declare class Lead {
|
|
|
90
90
|
* @returns {Promise<LeadPlatformModel.TicketHistoryList>} - Success response
|
|
91
91
|
* @name getNewTicketHistory
|
|
92
92
|
* @summary: Get ticket history interaction
|
|
93
|
-
* @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://
|
|
93
|
+
* @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getNewTicketHistory/).
|
|
94
94
|
*/
|
|
95
95
|
getNewTicketHistory({ id, requestHeaders }?: LeadPlatformApplicationValidator.GetNewTicketHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistoryList>;
|
|
96
96
|
/**
|
|
@@ -100,7 +100,7 @@ declare class Lead {
|
|
|
100
100
|
* @returns {Promise<LeadPlatformModel.TicketList>} - Success response
|
|
101
101
|
* @name getNewTickets
|
|
102
102
|
* @summary: List sales channel tickets
|
|
103
|
-
* @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://
|
|
103
|
+
* @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getNewTickets/).
|
|
104
104
|
*/
|
|
105
105
|
getNewTickets({ items, filters, q, status, priority, category, requestHeaders }?: LeadPlatformApplicationValidator.GetNewTicketsParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketList>;
|
|
106
106
|
}
|
|
@@ -22,7 +22,7 @@ class Lead {
|
|
|
22
22
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
23
23
|
* @name createCustomForm
|
|
24
24
|
* @summary: Create custom form
|
|
25
|
-
* @description: Create a new custom form for application users to fill - Check out [method documentation](https://
|
|
25
|
+
* @description: Create a new custom form for application users to fill - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createCustomForm/).
|
|
26
26
|
*/
|
|
27
27
|
async createCustomForm(
|
|
28
28
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -101,7 +101,7 @@ class Lead {
|
|
|
101
101
|
* @returns {Promise<LeadPlatformModel.TicketHistory>} - Success response
|
|
102
102
|
* @name createNewHistory
|
|
103
103
|
* @summary: Create ticket history interaction
|
|
104
|
-
* @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://
|
|
104
|
+
* @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createNewHistory/).
|
|
105
105
|
*/
|
|
106
106
|
async createNewHistory(
|
|
107
107
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -182,7 +182,7 @@ class Lead {
|
|
|
182
182
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
183
183
|
* @name deleteCustomForm
|
|
184
184
|
* @summary: Delete a custom form
|
|
185
|
-
* @description: Delete a custom form using it's slug - Check out [method documentation](https://
|
|
185
|
+
* @description: Delete a custom form using it's slug - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/deleteCustomForm/).
|
|
186
186
|
*/
|
|
187
187
|
async deleteCustomForm(
|
|
188
188
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -261,7 +261,7 @@ class Lead {
|
|
|
261
261
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
262
262
|
* @name editCustomForm
|
|
263
263
|
* @summary: Update custom form
|
|
264
|
-
* @description: Modify the content and associated settings of a custom form. - Check out [method documentation](https://
|
|
264
|
+
* @description: Modify the content and associated settings of a custom form. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/editCustomForm/).
|
|
265
265
|
*/
|
|
266
266
|
async editCustomForm(
|
|
267
267
|
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -342,7 +342,7 @@ class Lead {
|
|
|
342
342
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
343
343
|
* @name editNewTicket
|
|
344
344
|
* @summary: Update Ticket Details
|
|
345
|
-
* @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://
|
|
345
|
+
* @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/editNewTicket/).
|
|
346
346
|
*/
|
|
347
347
|
async editNewTicket(
|
|
348
348
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -421,7 +421,7 @@ class Lead {
|
|
|
421
421
|
* @returns {Promise<LeadPlatformModel.CustomForm>} - Success response
|
|
422
422
|
* @name getCustomForm
|
|
423
423
|
* @summary: Get custom form
|
|
424
|
-
* @description: Get information about a custom form which includes corresponding field details and any validation regex required against that field or not - Check out [method documentation](https://
|
|
424
|
+
* @description: Get information about a custom form which includes corresponding field details and any validation regex required against that field or not - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getCustomForm/).
|
|
425
425
|
*/
|
|
426
426
|
async getCustomForm(
|
|
427
427
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -498,7 +498,7 @@ class Lead {
|
|
|
498
498
|
* @returns {Promise<LeadPlatformModel.CustomFormList>} - Success response
|
|
499
499
|
* @name getCustomForms
|
|
500
500
|
* @summary: Get custom forms
|
|
501
|
-
* @description: List all available custom forms - Check out [method documentation](https://
|
|
501
|
+
* @description: List all available custom forms - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getCustomForms/).
|
|
502
502
|
*/
|
|
503
503
|
async getCustomForms(
|
|
504
504
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -573,7 +573,7 @@ class Lead {
|
|
|
573
573
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
574
574
|
* @name getNewTicket
|
|
575
575
|
* @summary: Get Ticket Details
|
|
576
|
-
* @description: Get ticket details of a application level ticket with ticket ID - Check out [method documentation](https://
|
|
576
|
+
* @description: Get ticket details of a application level ticket with ticket ID - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getNewTicket/).
|
|
577
577
|
*/
|
|
578
578
|
async getNewTicket(
|
|
579
579
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -650,7 +650,7 @@ class Lead {
|
|
|
650
650
|
* @returns {Promise<LeadPlatformModel.TicketHistoryList>} - Success response
|
|
651
651
|
* @name getNewTicketHistory
|
|
652
652
|
* @summary: Get ticket history interaction
|
|
653
|
-
* @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://
|
|
653
|
+
* @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getNewTicketHistory/).
|
|
654
654
|
*/
|
|
655
655
|
async getNewTicketHistory(
|
|
656
656
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -729,7 +729,7 @@ class Lead {
|
|
|
729
729
|
* @returns {Promise<LeadPlatformModel.TicketList>} - Success response
|
|
730
730
|
* @name getNewTickets
|
|
731
731
|
* @summary: List sales channel tickets
|
|
732
|
-
* @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://
|
|
732
|
+
* @description: Gets the list of Application level Tickets and/or ticket filters - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getNewTickets/).
|
|
733
733
|
*/
|
|
734
734
|
async getNewTickets(
|
|
735
735
|
{ items, filters, q, status, priority, category, requestHeaders } = {
|
|
@@ -9,7 +9,7 @@ declare class Lead {
|
|
|
9
9
|
* @returns {Promise<LeadPlatformModel.TicketHistory>} - Success response
|
|
10
10
|
* @name createPlatformTicketHistory
|
|
11
11
|
* @summary: Create ticket history
|
|
12
|
-
* @description: Create futher interactions on a company level ticket such as changing it's status, priority or replying to a ticket via a thread. - Check out [method documentation](https://
|
|
12
|
+
* @description: Create futher interactions on a company level ticket such as changing it's status, priority or replying to a ticket via a thread. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createPlatformTicketHistory/).
|
|
13
13
|
*/
|
|
14
14
|
createPlatformTicketHistory({ id, body, requestHeaders }?: LeadPlatformValidator.CreatePlatformTicketHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistory>;
|
|
15
15
|
/**
|
|
@@ -19,7 +19,7 @@ declare class Lead {
|
|
|
19
19
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
20
20
|
* @name createTicket
|
|
21
21
|
* @summary: Create ticket
|
|
22
|
-
* @description: Create a new ticket at application level - Check out [method documentation](https://
|
|
22
|
+
* @description: Create a new ticket at application level - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createTicket/).
|
|
23
23
|
*/
|
|
24
24
|
createTicket({ body, requestHeaders }?: LeadPlatformValidator.CreateTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
|
|
25
25
|
/**
|
|
@@ -29,7 +29,7 @@ declare class Lead {
|
|
|
29
29
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
30
30
|
* @name editPlatformTicket
|
|
31
31
|
* @summary: Update a ticket
|
|
32
|
-
* @description: Modify the content and settings of a specific company level ticket. - Check out [method documentation](https://
|
|
32
|
+
* @description: Modify the content and settings of a specific company level ticket. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/editPlatformTicket/).
|
|
33
33
|
*/
|
|
34
34
|
editPlatformTicket({ id, body, requestHeaders }?: LeadPlatformValidator.EditPlatformTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
|
|
35
35
|
/**
|
|
@@ -39,19 +39,19 @@ declare class Lead {
|
|
|
39
39
|
* @returns {Promise<LeadPlatformModel.TicketFeedbackList>} - Success response
|
|
40
40
|
* @name getFeedbacks
|
|
41
41
|
* @summary: List feedbacks
|
|
42
|
-
* @description: Get feedback information related to a ticket. - Check out [method documentation](https://
|
|
42
|
+
* @description: Get feedback information related to a ticket. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getFeedbacks/).
|
|
43
43
|
*/
|
|
44
44
|
getFeedbacks({ id, requestHeaders }?: LeadPlatformValidator.GetFeedbacksParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketFeedbackList>;
|
|
45
45
|
/**
|
|
46
46
|
* @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object
|
|
47
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
48
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<LeadPlatformModel.
|
|
49
|
+
* @returns {Promise<LeadPlatformModel.GeneralConfigDetails>} - Success response
|
|
50
50
|
* @name getGeneralConfig
|
|
51
51
|
* @summary: Get general configuration
|
|
52
|
-
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://
|
|
52
|
+
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getGeneralConfig/).
|
|
53
53
|
*/
|
|
54
|
-
getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.
|
|
54
|
+
getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.GeneralConfigDetails>;
|
|
55
55
|
/**
|
|
56
56
|
* @param {LeadPlatformValidator.GetPlatformTicketParam} arg - Arg object
|
|
57
57
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -59,7 +59,7 @@ declare class Lead {
|
|
|
59
59
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
60
60
|
* @name getPlatformTicket
|
|
61
61
|
* @summary: Get a ticket
|
|
62
|
-
* @description: Get detailed information about a specific ticket which is raised at company level - Check out [method documentation](https://
|
|
62
|
+
* @description: Get detailed information about a specific ticket which is raised at company level - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getPlatformTicket/).
|
|
63
63
|
*/
|
|
64
64
|
getPlatformTicket({ id, requestHeaders }?: LeadPlatformValidator.GetPlatformTicketParam, { responseHeaders }?: object): Promise<LeadPlatformModel.Ticket>;
|
|
65
65
|
/**
|
|
@@ -69,7 +69,7 @@ declare class Lead {
|
|
|
69
69
|
* @returns {Promise<LeadPlatformModel.TicketHistoryList>} - Success response
|
|
70
70
|
* @name getPlatformTicketHistory
|
|
71
71
|
* @summary: Get ticket history
|
|
72
|
-
* @description: List history records for a company level ticket. - Check out [method documentation](https://
|
|
72
|
+
* @description: List history records for a company level ticket. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getPlatformTicketHistory/).
|
|
73
73
|
*/
|
|
74
74
|
getPlatformTicketHistory({ id, requestHeaders }?: LeadPlatformValidator.GetPlatformTicketHistoryParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketHistoryList>;
|
|
75
75
|
/**
|
|
@@ -79,7 +79,7 @@ declare class Lead {
|
|
|
79
79
|
* @returns {Promise<LeadPlatformModel.TicketList>} - Success response
|
|
80
80
|
* @name getPlatformTickets
|
|
81
81
|
* @summary: List tickets
|
|
82
|
-
* @description: List all tickets created within the platform at company level - Check out [method documentation](https://
|
|
82
|
+
* @description: List all tickets created within the platform at company level - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getPlatformTickets/).
|
|
83
83
|
*/
|
|
84
84
|
getPlatformTickets({ items, filters, q, status, priority, category, pageNo, pageSize, requestHeaders, }?: LeadPlatformValidator.GetPlatformTicketsParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketList>;
|
|
85
85
|
/**
|
|
@@ -89,7 +89,7 @@ declare class Lead {
|
|
|
89
89
|
* @returns {Promise<LeadPlatformModel.TicketFeedback>} - Success response
|
|
90
90
|
* @name submitFeedback
|
|
91
91
|
* @summary: Submit feedback
|
|
92
|
-
* @description: Provide feedback on a ticket and it's resolution. - Check out [method documentation](https://
|
|
92
|
+
* @description: Provide feedback on a ticket and it's resolution. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/submitFeedback/).
|
|
93
93
|
*/
|
|
94
94
|
submitFeedback({ id, body, requestHeaders }?: LeadPlatformValidator.SubmitFeedbackParam, { responseHeaders }?: object): Promise<LeadPlatformModel.TicketFeedback>;
|
|
95
95
|
}
|
|
@@ -21,7 +21,7 @@ class Lead {
|
|
|
21
21
|
* @returns {Promise<LeadPlatformModel.TicketHistory>} - Success response
|
|
22
22
|
* @name createPlatformTicketHistory
|
|
23
23
|
* @summary: Create ticket history
|
|
24
|
-
* @description: Create futher interactions on a company level ticket such as changing it's status, priority or replying to a ticket via a thread. - Check out [method documentation](https://
|
|
24
|
+
* @description: Create futher interactions on a company level ticket such as changing it's status, priority or replying to a ticket via a thread. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createPlatformTicketHistory/).
|
|
25
25
|
*/
|
|
26
26
|
async createPlatformTicketHistory(
|
|
27
27
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -104,7 +104,7 @@ class Lead {
|
|
|
104
104
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
105
105
|
* @name createTicket
|
|
106
106
|
* @summary: Create ticket
|
|
107
|
-
* @description: Create a new ticket at application level - Check out [method documentation](https://
|
|
107
|
+
* @description: Create a new ticket at application level - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/createTicket/).
|
|
108
108
|
*/
|
|
109
109
|
async createTicket(
|
|
110
110
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -181,7 +181,7 @@ class Lead {
|
|
|
181
181
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
182
182
|
* @name editPlatformTicket
|
|
183
183
|
* @summary: Update a ticket
|
|
184
|
-
* @description: Modify the content and settings of a specific company level ticket. - Check out [method documentation](https://
|
|
184
|
+
* @description: Modify the content and settings of a specific company level ticket. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/editPlatformTicket/).
|
|
185
185
|
*/
|
|
186
186
|
async editPlatformTicket(
|
|
187
187
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -262,7 +262,7 @@ class Lead {
|
|
|
262
262
|
* @returns {Promise<LeadPlatformModel.TicketFeedbackList>} - Success response
|
|
263
263
|
* @name getFeedbacks
|
|
264
264
|
* @summary: List feedbacks
|
|
265
|
-
* @description: Get feedback information related to a ticket. - Check out [method documentation](https://
|
|
265
|
+
* @description: Get feedback information related to a ticket. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getFeedbacks/).
|
|
266
266
|
*/
|
|
267
267
|
async getFeedbacks(
|
|
268
268
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -336,10 +336,10 @@ class Lead {
|
|
|
336
336
|
* @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object
|
|
337
337
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
338
338
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
339
|
-
* @returns {Promise<LeadPlatformModel.
|
|
339
|
+
* @returns {Promise<LeadPlatformModel.GeneralConfigDetails>} - Success response
|
|
340
340
|
* @name getGeneralConfig
|
|
341
341
|
* @summary: Get general configuration
|
|
342
|
-
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://
|
|
342
|
+
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getGeneralConfig/).
|
|
343
343
|
*/
|
|
344
344
|
async getGeneralConfig(
|
|
345
345
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -388,7 +388,7 @@ class Lead {
|
|
|
388
388
|
|
|
389
389
|
const {
|
|
390
390
|
error: res_error,
|
|
391
|
-
} = LeadPlatformModel.
|
|
391
|
+
} = LeadPlatformModel.GeneralConfigDetails().validate(responseData, {
|
|
392
392
|
abortEarly: false,
|
|
393
393
|
allowUnknown: true,
|
|
394
394
|
});
|
|
@@ -414,7 +414,7 @@ class Lead {
|
|
|
414
414
|
* @returns {Promise<LeadPlatformModel.Ticket>} - Success response
|
|
415
415
|
* @name getPlatformTicket
|
|
416
416
|
* @summary: Get a ticket
|
|
417
|
-
* @description: Get detailed information about a specific ticket which is raised at company level - Check out [method documentation](https://
|
|
417
|
+
* @description: Get detailed information about a specific ticket which is raised at company level - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getPlatformTicket/).
|
|
418
418
|
*/
|
|
419
419
|
async getPlatformTicket(
|
|
420
420
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -493,7 +493,7 @@ class Lead {
|
|
|
493
493
|
* @returns {Promise<LeadPlatformModel.TicketHistoryList>} - Success response
|
|
494
494
|
* @name getPlatformTicketHistory
|
|
495
495
|
* @summary: Get ticket history
|
|
496
|
-
* @description: List history records for a company level ticket. - Check out [method documentation](https://
|
|
496
|
+
* @description: List history records for a company level ticket. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getPlatformTicketHistory/).
|
|
497
497
|
*/
|
|
498
498
|
async getPlatformTicketHistory(
|
|
499
499
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -572,7 +572,7 @@ class Lead {
|
|
|
572
572
|
* @returns {Promise<LeadPlatformModel.TicketList>} - Success response
|
|
573
573
|
* @name getPlatformTickets
|
|
574
574
|
* @summary: List tickets
|
|
575
|
-
* @description: List all tickets created within the platform at company level - Check out [method documentation](https://
|
|
575
|
+
* @description: List all tickets created within the platform at company level - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/getPlatformTickets/).
|
|
576
576
|
*/
|
|
577
577
|
async getPlatformTickets(
|
|
578
578
|
{
|
|
@@ -683,7 +683,7 @@ class Lead {
|
|
|
683
683
|
* @returns {Promise<LeadPlatformModel.TicketFeedback>} - Success response
|
|
684
684
|
* @name submitFeedback
|
|
685
685
|
* @summary: Submit feedback
|
|
686
|
-
* @description: Provide feedback on a ticket and it's resolution. - Check out [method documentation](https://
|
|
686
|
+
* @description: Provide feedback on a ticket and it's resolution. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/lead/submitFeedback/).
|
|
687
687
|
*/
|
|
688
688
|
async submitFeedback(
|
|
689
689
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export = LeadPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef GeneralConfigDetails
|
|
4
4
|
* @property {string} [_id]
|
|
5
5
|
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
6
6
|
* @property {boolean} [show_communication_info]
|
|
@@ -40,13 +40,14 @@ export = LeadPlatformModel;
|
|
|
40
40
|
*/
|
|
41
41
|
/**
|
|
42
42
|
* @typedef Page
|
|
43
|
-
* @property {number} [item_total] - The total number of items
|
|
43
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
44
44
|
* @property {string} [next_id] - The identifier for the next page.
|
|
45
45
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
46
46
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
47
47
|
* @property {number} [current] - The current page number.
|
|
48
|
-
* @property {string} type - The type of the page,
|
|
48
|
+
* @property {string} type - The type of the page, can be 'cursor' or 'number'.
|
|
49
49
|
* @property {number} [size] - The number of items per page.
|
|
50
|
+
* @property {number} [page_size] - The number of items per page.
|
|
50
51
|
*/
|
|
51
52
|
/**
|
|
52
53
|
* @typedef TicketHistoryList
|
|
@@ -288,11 +289,11 @@ export = LeadPlatformModel;
|
|
|
288
289
|
declare class LeadPlatformModel {
|
|
289
290
|
}
|
|
290
291
|
declare namespace LeadPlatformModel {
|
|
291
|
-
export {
|
|
292
|
+
export { GeneralConfigDetails, SupportCommunicationSchema, SupportSchema, GeneralConfigIntegrationSchema, TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, Filter, TicketHistoryPayload, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, SLA, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
|
|
292
293
|
}
|
|
293
|
-
/** @returns {
|
|
294
|
-
declare function
|
|
295
|
-
type
|
|
294
|
+
/** @returns {GeneralConfigDetails} */
|
|
295
|
+
declare function GeneralConfigDetails(): GeneralConfigDetails;
|
|
296
|
+
type GeneralConfigDetails = {
|
|
296
297
|
_id?: string;
|
|
297
298
|
support_communication?: SupportCommunicationSchema[];
|
|
298
299
|
show_communication_info?: boolean;
|
|
@@ -341,7 +342,7 @@ type TicketList = {
|
|
|
341
342
|
declare function Page(): Page;
|
|
342
343
|
type Page = {
|
|
343
344
|
/**
|
|
344
|
-
* - The total number of items
|
|
345
|
+
* - The total number of all items across all pages.
|
|
345
346
|
*/
|
|
346
347
|
item_total?: number;
|
|
347
348
|
/**
|
|
@@ -361,13 +362,17 @@ type Page = {
|
|
|
361
362
|
*/
|
|
362
363
|
current?: number;
|
|
363
364
|
/**
|
|
364
|
-
* - The type of the page,
|
|
365
|
+
* - The type of the page, can be 'cursor' or 'number'.
|
|
365
366
|
*/
|
|
366
367
|
type: string;
|
|
367
368
|
/**
|
|
368
369
|
* - The number of items per page.
|
|
369
370
|
*/
|
|
370
371
|
size?: number;
|
|
372
|
+
/**
|
|
373
|
+
* - The number of items per page.
|
|
374
|
+
*/
|
|
375
|
+
page_size?: number;
|
|
371
376
|
};
|
|
372
377
|
/** @returns {TicketHistoryList} */
|
|
373
378
|
declare function TicketHistoryList(): TicketHistoryList;
|