@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -17,7 +17,7 @@ declare class FileStorage {
|
|
|
17
17
|
* @summary: Finalizes upload process.
|
|
18
18
|
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
19
19
|
*/
|
|
20
|
-
completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<FileUploadComplete>;
|
|
20
|
+
completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<FileUploadComplete>;
|
|
21
21
|
/**
|
|
22
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
23
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -35,7 +35,7 @@ declare class FileStorage {
|
|
|
35
35
|
* @summary: Initiates file upload
|
|
36
36
|
* @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
37
37
|
*/
|
|
38
|
-
startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<FileUpload>;
|
|
38
|
+
startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<FileUpload>;
|
|
39
39
|
/**
|
|
40
40
|
* @param data
|
|
41
41
|
* @param {string} file_name
|
|
@@ -6,6 +6,7 @@ const {
|
|
|
6
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
const { fdkAxios } = require("../../common/AxiosHelper.js");
|
|
11
12
|
|
|
@@ -47,18 +48,12 @@ class FileStorage {
|
|
|
47
48
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
48
49
|
{ responseHeaders } = { responseHeaders: false }
|
|
49
50
|
) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
path: ["namespace"],
|
|
51
|
+
const errors = validateRequiredParams(arguments[0], ["namespace"]);
|
|
52
|
+
if (errors.length > 0) {
|
|
53
|
+
const error = new FDKClientValidationError({
|
|
54
|
+
message: "Missing required field",
|
|
55
|
+
details: errors,
|
|
56
56
|
});
|
|
57
|
-
}
|
|
58
|
-
if (invalidInput.length) {
|
|
59
|
-
const error = new Error();
|
|
60
|
-
error.message = "Missing required field";
|
|
61
|
-
error.details = invalidInput;
|
|
62
57
|
return Promise.reject(new FDKClientValidationError(error));
|
|
63
58
|
}
|
|
64
59
|
|
|
@@ -99,14 +94,6 @@ class FileStorage {
|
|
|
99
94
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
100
95
|
{ responseHeaders } = { responseHeaders: false }
|
|
101
96
|
) {
|
|
102
|
-
let invalidInput = [];
|
|
103
|
-
if (invalidInput.length) {
|
|
104
|
-
const error = new Error();
|
|
105
|
-
error.message = "Missing required field";
|
|
106
|
-
error.details = invalidInput;
|
|
107
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
97
|
const query_params = {};
|
|
111
98
|
|
|
112
99
|
const xHeaders = {};
|
|
@@ -144,18 +131,12 @@ class FileStorage {
|
|
|
144
131
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
145
132
|
{ responseHeaders } = { responseHeaders: false }
|
|
146
133
|
) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
path: ["namespace"],
|
|
134
|
+
const errors = validateRequiredParams(arguments[0], ["namespace"]);
|
|
135
|
+
if (errors.length > 0) {
|
|
136
|
+
const error = new FDKClientValidationError({
|
|
137
|
+
message: "Missing required field",
|
|
138
|
+
details: errors,
|
|
153
139
|
});
|
|
154
|
-
}
|
|
155
|
-
if (invalidInput.length) {
|
|
156
|
-
const error = new Error();
|
|
157
|
-
error.message = "Missing required field";
|
|
158
|
-
error.details = invalidInput;
|
|
159
140
|
return Promise.reject(new FDKClientValidationError(error));
|
|
160
141
|
}
|
|
161
142
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export = Finance;
|
|
2
|
+
declare class Finance {
|
|
3
|
+
constructor(_conf: any);
|
|
4
|
+
_conf: any;
|
|
5
|
+
_relativeUrls: {
|
|
6
|
+
customerCreditBalance: string;
|
|
7
|
+
lockUnlockCreditNote: string;
|
|
8
|
+
};
|
|
9
|
+
_urls: {};
|
|
10
|
+
updateUrls(urls: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
13
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
14
|
+
* @returns {Promise<CustomerCreditBalanceResponseSchema>} - Success response
|
|
15
|
+
* @name customerCreditBalance
|
|
16
|
+
* @summary: This API will provide customer's credit balance against phone number or email and seller*affiliate id
|
|
17
|
+
* @description: This API will provide customer's credit balance against phone number or email and seller*affiliate id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/customerCreditBalance/).
|
|
18
|
+
*/
|
|
19
|
+
customerCreditBalance({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerCreditBalanceResponseSchema>;
|
|
20
|
+
/**
|
|
21
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
22
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
23
|
+
* @returns {Promise<LockUnlockResponseSchema>} - Success response
|
|
24
|
+
* @name lockUnlockCreditNote
|
|
25
|
+
* @summary: Lock or Unlock requested credit note.
|
|
26
|
+
* @description: Used to lock or unlock requested credit note. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/lockUnlockCreditNote/).
|
|
27
|
+
*/
|
|
28
|
+
lockUnlockCreditNote({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<LockUnlockResponseSchema>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
6
|
+
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
7
|
+
const constructUrl = require("../constructUrl");
|
|
8
|
+
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
10
|
+
|
|
11
|
+
class Finance {
|
|
12
|
+
constructor(_conf) {
|
|
13
|
+
this._conf = _conf;
|
|
14
|
+
this._relativeUrls = {
|
|
15
|
+
customerCreditBalance:
|
|
16
|
+
"/service/application/finance/v1.0/customer-credit-balance",
|
|
17
|
+
lockUnlockCreditNote:
|
|
18
|
+
"/service/application/finance/v1.0/lock-unlock-credit-note",
|
|
19
|
+
};
|
|
20
|
+
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
21
|
+
(urls, [method, relativeUrl]) => {
|
|
22
|
+
urls[method] = `${_conf.domain}${relativeUrl}`;
|
|
23
|
+
return urls;
|
|
24
|
+
},
|
|
25
|
+
{}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
updateUrls(urls) {
|
|
30
|
+
this._urls = {
|
|
31
|
+
...this._urls,
|
|
32
|
+
...urls,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
38
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
39
|
+
* @returns {Promise<CustomerCreditBalanceResponseSchema>} - Success response
|
|
40
|
+
* @name customerCreditBalance
|
|
41
|
+
* @summary: This API will provide customer's credit balance against phone number or email and seller*affiliate id
|
|
42
|
+
* @description: This API will provide customer's credit balance against phone number or email and seller*affiliate id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/customerCreditBalance/).
|
|
43
|
+
*/
|
|
44
|
+
async customerCreditBalance(
|
|
45
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
46
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
47
|
+
) {
|
|
48
|
+
const query_params = {};
|
|
49
|
+
|
|
50
|
+
const xHeaders = {};
|
|
51
|
+
|
|
52
|
+
const response = await ApplicationAPIClient.execute(
|
|
53
|
+
this._conf,
|
|
54
|
+
"post",
|
|
55
|
+
constructUrl({
|
|
56
|
+
url: this._urls["customerCreditBalance"],
|
|
57
|
+
params: {},
|
|
58
|
+
}),
|
|
59
|
+
query_params,
|
|
60
|
+
body,
|
|
61
|
+
{ ...xHeaders, ...requestHeaders },
|
|
62
|
+
{ responseHeaders }
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
let responseData = response;
|
|
66
|
+
if (responseHeaders) {
|
|
67
|
+
responseData = response[0];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return response;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
75
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
76
|
+
* @returns {Promise<LockUnlockResponseSchema>} - Success response
|
|
77
|
+
* @name lockUnlockCreditNote
|
|
78
|
+
* @summary: Lock or Unlock requested credit note.
|
|
79
|
+
* @description: Used to lock or unlock requested credit note. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/lockUnlockCreditNote/).
|
|
80
|
+
*/
|
|
81
|
+
async lockUnlockCreditNote(
|
|
82
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
83
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
84
|
+
) {
|
|
85
|
+
const query_params = {};
|
|
86
|
+
|
|
87
|
+
const xHeaders = {};
|
|
88
|
+
|
|
89
|
+
const response = await ApplicationAPIClient.execute(
|
|
90
|
+
this._conf,
|
|
91
|
+
"post",
|
|
92
|
+
constructUrl({
|
|
93
|
+
url: this._urls["lockUnlockCreditNote"],
|
|
94
|
+
params: {},
|
|
95
|
+
}),
|
|
96
|
+
query_params,
|
|
97
|
+
body,
|
|
98
|
+
{ ...xHeaders, ...requestHeaders },
|
|
99
|
+
{ responseHeaders }
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
let responseData = response;
|
|
103
|
+
if (responseHeaders) {
|
|
104
|
+
responseData = response[0];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return response;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
module.exports = Finance;
|
|
@@ -16,10 +16,10 @@ declare class Lead {
|
|
|
16
16
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
17
17
|
* @returns {Promise<TicketHistory>} - Success response
|
|
18
18
|
* @name createHistory
|
|
19
|
-
* @summary:
|
|
19
|
+
* @summary: Log ticket history
|
|
20
20
|
* @description: Create a history entry for a specific support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/createHistory/).
|
|
21
21
|
*/
|
|
22
|
-
createHistory({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TicketHistory>;
|
|
22
|
+
createHistory({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<TicketHistory>;
|
|
23
23
|
/**
|
|
24
24
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
25
25
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -37,7 +37,7 @@ declare class Lead {
|
|
|
37
37
|
* @summary: Get custom form
|
|
38
38
|
* @description: Get a customizable form template for data collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getCustomForm/).
|
|
39
39
|
*/
|
|
40
|
-
getCustomForm({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomForm>;
|
|
40
|
+
getCustomForm({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomForm>;
|
|
41
41
|
/**
|
|
42
42
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
43
43
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -46,14 +46,14 @@ declare class Lead {
|
|
|
46
46
|
* @summary: Get a support ticket
|
|
47
47
|
* @description: Get details of a specific customer support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getTicket/).
|
|
48
48
|
*/
|
|
49
|
-
getTicket({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Ticket>;
|
|
49
|
+
getTicket({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<Ticket>;
|
|
50
50
|
/**
|
|
51
51
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
52
52
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
53
|
-
* @returns {Promise<
|
|
53
|
+
* @returns {Promise<SubmitCustomFormDetails>} - Success response
|
|
54
54
|
* @name submitCustomForm
|
|
55
55
|
* @summary: Submits form data
|
|
56
56
|
* @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/).
|
|
57
57
|
*/
|
|
58
|
-
submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
58
|
+
submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SubmitCustomFormDetails>;
|
|
59
59
|
}
|
|
@@ -6,13 +6,14 @@ const {
|
|
|
6
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
class Lead {
|
|
11
12
|
constructor(_conf) {
|
|
12
13
|
this._conf = _conf;
|
|
13
14
|
this._relativeUrls = {
|
|
14
15
|
createHistory: "/service/application/lead/v1.0/ticket/{id}/history",
|
|
15
|
-
createTicket: "/service/application/lead/v1.0/ticket",
|
|
16
|
+
createTicket: "/service/application/lead/v1.0/ticket/",
|
|
16
17
|
getCustomForm: "/service/application/lead/v1.0/form/{slug}",
|
|
17
18
|
getTicket: "/service/application/lead/v1.0/ticket/{id}",
|
|
18
19
|
submitCustomForm: "/service/application/lead/v1.0/form/{slug}/submit",
|
|
@@ -38,25 +39,19 @@ class Lead {
|
|
|
38
39
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
39
40
|
* @returns {Promise<TicketHistory>} - Success response
|
|
40
41
|
* @name createHistory
|
|
41
|
-
* @summary:
|
|
42
|
+
* @summary: Log ticket history
|
|
42
43
|
* @description: Create a history entry for a specific support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/createHistory/).
|
|
43
44
|
*/
|
|
44
45
|
async createHistory(
|
|
45
46
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
46
47
|
{ responseHeaders } = { responseHeaders: false }
|
|
47
48
|
) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
path: ["id"],
|
|
49
|
+
const errors = validateRequiredParams(arguments[0], ["id"]);
|
|
50
|
+
if (errors.length > 0) {
|
|
51
|
+
const error = new FDKClientValidationError({
|
|
52
|
+
message: "Missing required field",
|
|
53
|
+
details: errors,
|
|
54
54
|
});
|
|
55
|
-
}
|
|
56
|
-
if (invalidInput.length) {
|
|
57
|
-
const error = new Error();
|
|
58
|
-
error.message = "Missing required field";
|
|
59
|
-
error.details = invalidInput;
|
|
60
55
|
return Promise.reject(new FDKClientValidationError(error));
|
|
61
56
|
}
|
|
62
57
|
|
|
@@ -97,14 +92,6 @@ class Lead {
|
|
|
97
92
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
98
93
|
{ responseHeaders } = { responseHeaders: false }
|
|
99
94
|
) {
|
|
100
|
-
let invalidInput = [];
|
|
101
|
-
if (invalidInput.length) {
|
|
102
|
-
const error = new Error();
|
|
103
|
-
error.message = "Missing required field";
|
|
104
|
-
error.details = invalidInput;
|
|
105
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
95
|
const query_params = {};
|
|
109
96
|
|
|
110
97
|
const xHeaders = {};
|
|
@@ -142,18 +129,12 @@ class Lead {
|
|
|
142
129
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
143
130
|
{ responseHeaders } = { responseHeaders: false }
|
|
144
131
|
) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
path: ["slug"],
|
|
132
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
133
|
+
if (errors.length > 0) {
|
|
134
|
+
const error = new FDKClientValidationError({
|
|
135
|
+
message: "Missing required field",
|
|
136
|
+
details: errors,
|
|
151
137
|
});
|
|
152
|
-
}
|
|
153
|
-
if (invalidInput.length) {
|
|
154
|
-
const error = new Error();
|
|
155
|
-
error.message = "Missing required field";
|
|
156
|
-
error.details = invalidInput;
|
|
157
138
|
return Promise.reject(new FDKClientValidationError(error));
|
|
158
139
|
}
|
|
159
140
|
|
|
@@ -194,18 +175,12 @@ class Lead {
|
|
|
194
175
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
195
176
|
{ responseHeaders } = { responseHeaders: false }
|
|
196
177
|
) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
path: ["id"],
|
|
178
|
+
const errors = validateRequiredParams(arguments[0], ["id"]);
|
|
179
|
+
if (errors.length > 0) {
|
|
180
|
+
const error = new FDKClientValidationError({
|
|
181
|
+
message: "Missing required field",
|
|
182
|
+
details: errors,
|
|
203
183
|
});
|
|
204
|
-
}
|
|
205
|
-
if (invalidInput.length) {
|
|
206
|
-
const error = new Error();
|
|
207
|
-
error.message = "Missing required field";
|
|
208
|
-
error.details = invalidInput;
|
|
209
184
|
return Promise.reject(new FDKClientValidationError(error));
|
|
210
185
|
}
|
|
211
186
|
|
|
@@ -237,7 +212,7 @@ class Lead {
|
|
|
237
212
|
/**
|
|
238
213
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
239
214
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
240
|
-
* @returns {Promise<
|
|
215
|
+
* @returns {Promise<SubmitCustomFormDetails>} - Success response
|
|
241
216
|
* @name submitCustomForm
|
|
242
217
|
* @summary: Submits form data
|
|
243
218
|
* @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/).
|
|
@@ -246,18 +221,12 @@ class Lead {
|
|
|
246
221
|
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
247
222
|
{ responseHeaders } = { responseHeaders: false }
|
|
248
223
|
) {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
path: ["slug"],
|
|
224
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
225
|
+
if (errors.length > 0) {
|
|
226
|
+
const error = new FDKClientValidationError({
|
|
227
|
+
message: "Missing required field",
|
|
228
|
+
details: errors,
|
|
255
229
|
});
|
|
256
|
-
}
|
|
257
|
-
if (invalidInput.length) {
|
|
258
|
-
const error = new Error();
|
|
259
|
-
error.message = "Missing required field";
|
|
260
|
-
error.details = invalidInput;
|
|
261
230
|
return Promise.reject(new FDKClientValidationError(error));
|
|
262
231
|
}
|
|
263
232
|
|
|
@@ -3,17 +3,14 @@ declare class Logistic {
|
|
|
3
3
|
constructor(_conf: any);
|
|
4
4
|
_conf: any;
|
|
5
5
|
_relativeUrls: {
|
|
6
|
-
createShipments: string;
|
|
7
6
|
getAllCountries: string;
|
|
8
7
|
getCountries: string;
|
|
9
8
|
getCountry: string;
|
|
9
|
+
getCourierPartners: string;
|
|
10
10
|
getDeliveryPromise: string;
|
|
11
|
-
getGeoAreas: string;
|
|
12
11
|
getLocalities: string;
|
|
13
|
-
getLocalitiesByPrefix: string;
|
|
14
12
|
getLocality: string;
|
|
15
13
|
getPincodeCity: string;
|
|
16
|
-
getZones: string;
|
|
17
14
|
validateAddress: string;
|
|
18
15
|
};
|
|
19
16
|
_urls: {};
|
|
@@ -21,50 +18,21 @@ declare class Logistic {
|
|
|
21
18
|
/**
|
|
22
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
20
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<
|
|
25
|
-
* @name createShipments
|
|
26
|
-
* @summary: Create and return shipments.
|
|
27
|
-
* @description: Create and return shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/createShipments/).
|
|
28
|
-
*/
|
|
29
|
-
createShipments({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GenerateShipmentsAndCourierPartnerResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
32
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
33
|
-
* @returns {Promise<CountryListResponse>} - Success response
|
|
21
|
+
* @returns {Promise<CountryResult>} - Success response
|
|
34
22
|
* @name getAllCountries
|
|
35
23
|
* @summary: Get deliverable countries
|
|
36
24
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
37
25
|
*/
|
|
38
|
-
getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
26
|
+
getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryResult>;
|
|
39
27
|
/**
|
|
40
28
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
41
29
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
42
30
|
* @returns {Promise<GetCountries>} - Success response
|
|
43
31
|
* @name getCountries
|
|
44
|
-
* @summary: Get
|
|
45
|
-
* @description:
|
|
32
|
+
* @summary: Get countries
|
|
33
|
+
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
46
34
|
*/
|
|
47
|
-
getCountries({
|
|
48
|
-
/**
|
|
49
|
-
* @param {Object} arg - Arg object.
|
|
50
|
-
* @param {boolean} [arg.onboard] - Only fetch countries which allowed for
|
|
51
|
-
* onboard on Platform.
|
|
52
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
53
|
-
* page. Default value is 12
|
|
54
|
-
* @param {string} [arg.q] - The search string to search in the list of
|
|
55
|
-
* countries by name.
|
|
56
|
-
* @param {string} [arg.hierarchy] - The search filter to filter countries
|
|
57
|
-
* based on their available hierarchy.
|
|
58
|
-
* @returns {Paginator<GetCountries>}
|
|
59
|
-
* @summary: Get all countries and associated data.
|
|
60
|
-
* @description: Retrieve a list of countries for logistical purposes.
|
|
61
|
-
*/
|
|
62
|
-
getCountriesPaginator({ onboard, pageSize, q, hierarchy }?: {
|
|
63
|
-
onboard?: boolean;
|
|
64
|
-
pageSize?: number;
|
|
65
|
-
q?: string;
|
|
66
|
-
hierarchy?: string;
|
|
67
|
-
}): Paginator<GetCountries>;
|
|
35
|
+
getCountries({ onboarding, pageNo, pageSize, q, hierarchy, phoneCode, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountries>;
|
|
68
36
|
/**
|
|
69
37
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
70
38
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -73,116 +41,59 @@ declare class Logistic {
|
|
|
73
41
|
* @summary: Get country details
|
|
74
42
|
* @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
|
|
75
43
|
*/
|
|
76
|
-
getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountry>;
|
|
44
|
+
getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetCountry>;
|
|
77
45
|
/**
|
|
78
46
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
79
47
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
80
|
-
* @returns {Promise<
|
|
81
|
-
* @name
|
|
82
|
-
* @summary:
|
|
83
|
-
* @description: Get
|
|
48
|
+
* @returns {Promise<ShipmentCourierPartnerResult>} - Success response
|
|
49
|
+
* @name getCourierPartners
|
|
50
|
+
* @summary: Serviceable Courier Partners
|
|
51
|
+
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
84
52
|
*/
|
|
85
|
-
|
|
53
|
+
getCourierPartners({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentCourierPartnerResult>;
|
|
86
54
|
/**
|
|
87
55
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
88
56
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
89
|
-
* @returns {Promise<
|
|
90
|
-
* @name
|
|
91
|
-
* @summary: Get
|
|
92
|
-
* @description:
|
|
57
|
+
* @returns {Promise<GetPromiseDetails>} - Success response
|
|
58
|
+
* @name getDeliveryPromise
|
|
59
|
+
* @summary: Get delivery promise
|
|
60
|
+
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
93
61
|
*/
|
|
94
|
-
|
|
62
|
+
getDeliveryPromise({ xLocationDetail, xApplicationData, pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetPromiseDetails>;
|
|
95
63
|
/**
|
|
96
64
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
97
65
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
98
|
-
* @returns {Promise<
|
|
66
|
+
* @returns {Promise<GetLocalitiesApp>} - Success response
|
|
99
67
|
* @name getLocalities
|
|
100
68
|
* @summary: Get Localities
|
|
101
|
-
* @description: Get
|
|
69
|
+
* @description: Get Localities data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
|
|
102
70
|
*/
|
|
103
|
-
getLocalities({ localityType, country, state, city, pageNo, pageSize, q,
|
|
104
|
-
/**
|
|
105
|
-
* @param {Object} arg - Arg object.
|
|
106
|
-
* @param {string} arg.localityType - Unique geographical division.
|
|
107
|
-
* @param {string} [arg.country] - Country name.
|
|
108
|
-
* @param {string} [arg.state] - State or the province.
|
|
109
|
-
* @param {string} [arg.city] - City.
|
|
110
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
111
|
-
* page. Default value is 12.
|
|
112
|
-
* @param {string} [arg.q] - This parameter is used to filter or search the records.
|
|
113
|
-
* @param {string} [arg.name] - Search for localities. Either provide a full
|
|
114
|
-
* name or a search term.
|
|
115
|
-
* @returns {Paginator<GetLocalities>}
|
|
116
|
-
* @summary: Get Localities
|
|
117
|
-
* @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state.
|
|
118
|
-
*/
|
|
119
|
-
getLocalitiesPaginator({ localityType, country, state, city, pageSize, q, name, }?: {
|
|
120
|
-
localityType: string;
|
|
121
|
-
country?: string;
|
|
122
|
-
state?: string;
|
|
123
|
-
city?: string;
|
|
124
|
-
pageSize?: number;
|
|
125
|
-
q?: string;
|
|
126
|
-
name?: string;
|
|
127
|
-
}): Paginator<GetLocalities>;
|
|
71
|
+
getLocalities({ localityType, country, state, city, pageNo, pageSize, q, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalitiesApp>;
|
|
128
72
|
/**
|
|
129
73
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
130
74
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
131
|
-
* @returns {Promise<
|
|
132
|
-
* @name getLocalitiesByPrefix
|
|
133
|
-
* @summary: Get Localities by Name Prefix
|
|
134
|
-
* @description: Get localities that start with a specified prefix. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalitiesByPrefix/).
|
|
135
|
-
*/
|
|
136
|
-
getLocalitiesByPrefix({ companyId, pageNo, pageSize, q, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocalities>;
|
|
137
|
-
/**
|
|
138
|
-
* @param {Object} arg - Arg object.
|
|
139
|
-
* @param {number} arg.companyId - The unique identifier of the company.
|
|
140
|
-
* @param {number} [arg.pageSize] - Number of items per page.
|
|
141
|
-
* @param {string} [arg.q] - Localities starting with the specified prefix.
|
|
142
|
-
* @returns {Paginator<GetLocalities>}
|
|
143
|
-
* @summary: Get Localities by Name Prefix
|
|
144
|
-
* @description: Get localities that start with a specified prefix.
|
|
145
|
-
*/
|
|
146
|
-
getLocalitiesByPrefixPaginator({ companyId, pageSize, q }?: {
|
|
147
|
-
companyId: number;
|
|
148
|
-
pageSize?: number;
|
|
149
|
-
q?: string;
|
|
150
|
-
}): Paginator<GetLocalities>;
|
|
151
|
-
/**
|
|
152
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
153
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
154
|
-
* @returns {Promise<GetLocality>} - Success response
|
|
75
|
+
* @returns {Promise<GetLocalityApp>} - Success response
|
|
155
76
|
* @name getLocality
|
|
156
|
-
* @summary: Get
|
|
77
|
+
* @summary: Get Locality API
|
|
157
78
|
* @description: Get detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
|
|
158
79
|
*/
|
|
159
|
-
getLocality({ localityType, localityValue, country, state, city, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
80
|
+
getLocality({ localityType, localityValue, country, state, city, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalityApp>;
|
|
160
81
|
/**
|
|
161
82
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
162
83
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
163
|
-
* @returns {Promise<
|
|
84
|
+
* @returns {Promise<PincodeDetailsResult>} - Success response
|
|
164
85
|
* @name getPincodeCity
|
|
165
|
-
* @summary: Get
|
|
86
|
+
* @summary: Get pincode details
|
|
166
87
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
167
88
|
*/
|
|
168
|
-
getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
169
|
-
/**
|
|
170
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
171
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
172
|
-
* @returns {Promise<ListViewResponseV2>} - Success response
|
|
173
|
-
* @name getZones
|
|
174
|
-
* @summary: Shows zones defined at the application level
|
|
175
|
-
* @description: Displays the list of zones defined at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getZones/).
|
|
176
|
-
*/
|
|
177
|
-
getZones({ companyId, applicationId, stage, type, pageSize, pageNo, isActive, q, countryIsoCode, pincode, state, city, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ListViewResponseV2>;
|
|
89
|
+
getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<PincodeDetailsResult>;
|
|
178
90
|
/**
|
|
179
91
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
180
92
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
181
|
-
* @returns {Promise<
|
|
93
|
+
* @returns {Promise<ValidateAddressDetails>} - Success response
|
|
182
94
|
* @name validateAddress
|
|
183
95
|
* @summary: Validate address
|
|
184
96
|
* @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
|
|
185
97
|
*/
|
|
186
|
-
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
98
|
+
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ValidateAddressDetails>;
|
|
187
99
|
}
|
|
188
|
-
import Paginator = require("../../common/Paginator");
|