@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
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 +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- 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 +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- 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/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/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
|
@@ -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
|
}
|
|
@@ -46,12 +46,12 @@ declare class Lead {
|
|
|
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
52
|
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://partners.fynd.com/help/docs/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 `{}`
|
|
@@ -336,7 +336,7 @@ 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
342
|
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/).
|
|
@@ -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
|
});
|
|
@@ -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]
|
|
@@ -288,11 +288,11 @@ export = LeadPlatformModel;
|
|
|
288
288
|
declare class LeadPlatformModel {
|
|
289
289
|
}
|
|
290
290
|
declare namespace LeadPlatformModel {
|
|
291
|
-
export {
|
|
291
|
+
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
292
|
}
|
|
293
|
-
/** @returns {
|
|
294
|
-
declare function
|
|
295
|
-
type
|
|
293
|
+
/** @returns {GeneralConfigDetails} */
|
|
294
|
+
declare function GeneralConfigDetails(): GeneralConfigDetails;
|
|
295
|
+
type GeneralConfigDetails = {
|
|
296
296
|
_id?: string;
|
|
297
297
|
support_communication?: SupportCommunicationSchema[];
|
|
298
298
|
show_communication_info?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef GeneralConfigDetails
|
|
5
5
|
* @property {string} [_id]
|
|
6
6
|
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
7
7
|
* @property {boolean} [show_communication_info]
|
|
@@ -325,8 +325,8 @@ const Joi = require("joi");
|
|
|
325
325
|
/** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
|
|
326
326
|
|
|
327
327
|
class LeadPlatformModel {
|
|
328
|
-
/** @returns {
|
|
329
|
-
static
|
|
328
|
+
/** @returns {GeneralConfigDetails} */
|
|
329
|
+
static GeneralConfigDetails() {
|
|
330
330
|
return Joi.object({
|
|
331
331
|
_id: Joi.string().allow(""),
|
|
332
332
|
support_communication: Joi.array().items(
|
|
@@ -474,7 +474,7 @@ class LeadPlatformModel {
|
|
|
474
474
|
/** @returns {TicketHistoryPayload} */
|
|
475
475
|
static TicketHistoryPayload() {
|
|
476
476
|
return Joi.object({
|
|
477
|
-
value: Joi.any().required(),
|
|
477
|
+
value: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
478
478
|
type: LeadPlatformModel.HistoryTypeEnum().required(),
|
|
479
479
|
});
|
|
480
480
|
}
|
|
@@ -515,12 +515,12 @@ class LeadPlatformModel {
|
|
|
515
515
|
/** @returns {AddTicketPayload} */
|
|
516
516
|
static AddTicketPayload() {
|
|
517
517
|
return Joi.object({
|
|
518
|
-
created_by: Joi.any(),
|
|
518
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
519
519
|
status: Joi.string().allow(""),
|
|
520
520
|
priority: LeadPlatformModel.PriorityEnum(),
|
|
521
521
|
category: Joi.string().allow("").required(),
|
|
522
522
|
content: LeadPlatformModel.TicketContent().required(),
|
|
523
|
-
_custom_json: Joi.any(),
|
|
523
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
|
|
@@ -559,7 +559,7 @@ class LeadPlatformModel {
|
|
|
559
559
|
/** @returns {TicketFeedbackPayload} */
|
|
560
560
|
static TicketFeedbackPayload() {
|
|
561
561
|
return Joi.object({
|
|
562
|
-
form_response: Joi.any(),
|
|
562
|
+
form_response: Joi.object().pattern(/\S/, Joi.any()),
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
565
|
|
|
@@ -605,9 +605,9 @@ class LeadPlatformModel {
|
|
|
605
605
|
/** @returns {FeedbackForm} */
|
|
606
606
|
static FeedbackForm() {
|
|
607
607
|
return Joi.object({
|
|
608
|
-
inputs: Joi.any(),
|
|
608
|
+
inputs: Joi.object().pattern(/\S/, Joi.any()),
|
|
609
609
|
title: Joi.string().allow(""),
|
|
610
|
-
timestamps: Joi.any(),
|
|
610
|
+
timestamps: Joi.object().pattern(/\S/, Joi.any()),
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
|
|
@@ -641,7 +641,7 @@ class LeadPlatformModel {
|
|
|
641
641
|
.items(LeadPlatformModel.FeedbackResponseItem())
|
|
642
642
|
.required(),
|
|
643
643
|
category: Joi.string().allow(""),
|
|
644
|
-
user: Joi.any(),
|
|
644
|
+
user: Joi.object().pattern(/\S/, Joi.any()),
|
|
645
645
|
updated_at: Joi.string().allow(""),
|
|
646
646
|
created_at: Joi.string().allow(""),
|
|
647
647
|
});
|
|
@@ -651,10 +651,10 @@ class LeadPlatformModel {
|
|
|
651
651
|
static TicketHistory() {
|
|
652
652
|
return Joi.object({
|
|
653
653
|
type: Joi.string().allow("").required(),
|
|
654
|
-
value: Joi.any().required(),
|
|
654
|
+
value: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
655
655
|
ticket_id: Joi.string().allow("").required(),
|
|
656
656
|
created_on: LeadPlatformModel.CreatedOn(),
|
|
657
|
-
created_by: Joi.any(),
|
|
657
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
658
658
|
_id: Joi.string().allow("").required(),
|
|
659
659
|
updated_at: Joi.string().allow(""),
|
|
660
660
|
created_at: Joi.string().allow(""),
|
|
@@ -674,12 +674,12 @@ class LeadPlatformModel {
|
|
|
674
674
|
status: LeadPlatformModel.Status().required(),
|
|
675
675
|
priority: LeadPlatformModel.Priority().required(),
|
|
676
676
|
sla: LeadPlatformModel.SLA(),
|
|
677
|
-
created_by: Joi.any(),
|
|
678
|
-
assigned_to: Joi.any(),
|
|
677
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
678
|
+
assigned_to: Joi.object().pattern(/\S/, Joi.any()),
|
|
679
679
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
680
|
-
_custom_json: Joi.any(),
|
|
680
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
681
681
|
is_feedback_pending: Joi.boolean(),
|
|
682
|
-
integration: Joi.any(),
|
|
682
|
+
integration: Joi.object().pattern(/\S/, Joi.any()),
|
|
683
683
|
_id: Joi.string().allow("").required(),
|
|
684
684
|
updated_at: Joi.string().allow(""),
|
|
685
685
|
created_at: Joi.string().allow(""),
|
|
@@ -19,26 +19,37 @@ declare class Order {
|
|
|
19
19
|
*
|
|
20
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
-
* @returns {Promise<OrderPlatformModel.
|
|
22
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
|
|
23
23
|
* - Success response
|
|
24
24
|
*
|
|
25
25
|
* @name getApplicationShipments
|
|
26
26
|
* @summary: List sales channel shipments
|
|
27
27
|
* @description: Get shipments of a particular sales channel based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
|
|
28
28
|
*/
|
|
29
|
-
getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.
|
|
29
|
+
getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
|
|
30
30
|
/**
|
|
31
31
|
* @param {OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam} arg
|
|
32
32
|
* - Arg object
|
|
33
33
|
*
|
|
34
34
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
35
35
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
36
|
-
* @returns {Promise<OrderPlatformModel.
|
|
36
|
+
* @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
|
|
37
|
+
* Success response
|
|
37
38
|
* @name getPlatformShipmentReasons
|
|
38
39
|
* @summary: List shipment cancellation reasons
|
|
39
40
|
* @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
|
|
40
41
|
*/
|
|
41
|
-
getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.
|
|
42
|
+
getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
|
|
45
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
46
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
47
|
+
* @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
|
|
48
|
+
* @name getRules
|
|
49
|
+
* @summary: List of RMA rules based on the given input conditions.
|
|
50
|
+
* @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
|
|
51
|
+
*/
|
|
52
|
+
getRules({ body, requestHeaders }?: OrderPlatformApplicationValidator.GetRulesParam, { responseHeaders }?: object): Promise<OrderPlatformModel.RuleListResponseSchema>;
|
|
42
53
|
/**
|
|
43
54
|
* @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg
|
|
44
55
|
* - Arg object
|
|
@@ -113,7 +113,7 @@ class Order {
|
|
|
113
113
|
*
|
|
114
114
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
115
115
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
116
|
-
* @returns {Promise<OrderPlatformModel.
|
|
116
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
|
|
117
117
|
* - Success response
|
|
118
118
|
*
|
|
119
119
|
* @name getApplicationShipments
|
|
@@ -231,7 +231,7 @@ class Order {
|
|
|
231
231
|
|
|
232
232
|
const {
|
|
233
233
|
error: res_error,
|
|
234
|
-
} = OrderPlatformModel.
|
|
234
|
+
} = OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema().validate(
|
|
235
235
|
responseData,
|
|
236
236
|
{ abortEarly: false, allowUnknown: true }
|
|
237
237
|
);
|
|
@@ -256,7 +256,8 @@ class Order {
|
|
|
256
256
|
*
|
|
257
257
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
258
258
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
259
|
-
* @returns {Promise<OrderPlatformModel.
|
|
259
|
+
* @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
|
|
260
|
+
* Success response
|
|
260
261
|
* @name getPlatformShipmentReasons
|
|
261
262
|
* @summary: List shipment cancellation reasons
|
|
262
263
|
* @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
|
|
@@ -312,7 +313,84 @@ class Order {
|
|
|
312
313
|
|
|
313
314
|
const {
|
|
314
315
|
error: res_error,
|
|
315
|
-
} = OrderPlatformModel.
|
|
316
|
+
} = OrderPlatformModel.ShipmentReasonsResponseSchema().validate(
|
|
317
|
+
responseData,
|
|
318
|
+
{ abortEarly: false, allowUnknown: true }
|
|
319
|
+
);
|
|
320
|
+
|
|
321
|
+
if (res_error) {
|
|
322
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
323
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
324
|
+
} else {
|
|
325
|
+
Logger({
|
|
326
|
+
level: "WARN",
|
|
327
|
+
message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
return response;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
|
|
337
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
338
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
339
|
+
* @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
|
|
340
|
+
* @name getRules
|
|
341
|
+
* @summary: List of RMA rules based on the given input conditions.
|
|
342
|
+
* @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
|
|
343
|
+
*/
|
|
344
|
+
async getRules(
|
|
345
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
346
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
347
|
+
) {
|
|
348
|
+
const { error } = OrderPlatformApplicationValidator.getRules().validate(
|
|
349
|
+
{
|
|
350
|
+
body,
|
|
351
|
+
},
|
|
352
|
+
{ abortEarly: false, allowUnknown: true }
|
|
353
|
+
);
|
|
354
|
+
if (error) {
|
|
355
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// Showing warrnings if extra unknown parameters are found
|
|
359
|
+
const {
|
|
360
|
+
error: warrning,
|
|
361
|
+
} = OrderPlatformApplicationValidator.getRules().validate(
|
|
362
|
+
{
|
|
363
|
+
body,
|
|
364
|
+
},
|
|
365
|
+
{ abortEarly: false, allowUnknown: false }
|
|
366
|
+
);
|
|
367
|
+
if (warrning) {
|
|
368
|
+
Logger({
|
|
369
|
+
level: "WARN",
|
|
370
|
+
message: `Parameter Validation warrnings for platform > Order > getRules \n ${warrning}`,
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
const query_params = {};
|
|
375
|
+
|
|
376
|
+
const response = await PlatformAPIClient.execute(
|
|
377
|
+
this.config,
|
|
378
|
+
"post",
|
|
379
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule_list`,
|
|
380
|
+
query_params,
|
|
381
|
+
body,
|
|
382
|
+
requestHeaders,
|
|
383
|
+
{ responseHeaders }
|
|
384
|
+
);
|
|
385
|
+
|
|
386
|
+
let responseData = response;
|
|
387
|
+
if (responseHeaders) {
|
|
388
|
+
responseData = response[0];
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
const {
|
|
392
|
+
error: res_error,
|
|
393
|
+
} = OrderPlatformModel.RuleListResponseSchema().validate(responseData, {
|
|
316
394
|
abortEarly: false,
|
|
317
395
|
allowUnknown: true,
|
|
318
396
|
});
|
|
@@ -323,7 +401,7 @@ class Order {
|
|
|
323
401
|
} else {
|
|
324
402
|
Logger({
|
|
325
403
|
level: "WARN",
|
|
326
|
-
message: `Response Validation Warnings for platform > Order >
|
|
404
|
+
message: `Response Validation Warnings for platform > Order > getRules \n ${res_error}`,
|
|
327
405
|
});
|
|
328
406
|
}
|
|
329
407
|
}
|
|
@@ -9,10 +9,11 @@ export = OrderPlatformApplicationValidator;
|
|
|
9
9
|
/**
|
|
10
10
|
* @typedef GetApplicationShipmentsParam
|
|
11
11
|
* @property {string} [lane]
|
|
12
|
-
* @property {string} [searchType]
|
|
12
|
+
* @property {string} [searchType] - Search_type refers to the field that will
|
|
13
|
+
* be used as the target for the search operation
|
|
13
14
|
* @property {string} [searchId]
|
|
14
|
-
* @property {string} [fromDate]
|
|
15
|
-
* @property {string} [toDate]
|
|
15
|
+
* @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
|
|
16
|
+
* @property {string} [toDate] - Date time in UTC timezone as per ISO format.
|
|
16
17
|
* @property {string} [dpIds]
|
|
17
18
|
* @property {string} [orderingCompanyId]
|
|
18
19
|
* @property {string} [stores]
|
|
@@ -28,6 +29,10 @@ export = OrderPlatformApplicationValidator;
|
|
|
28
29
|
* @typedef GetPlatformShipmentReasonsParam
|
|
29
30
|
* @property {string} action
|
|
30
31
|
*/
|
|
32
|
+
/**
|
|
33
|
+
* @typedef GetRulesParam
|
|
34
|
+
* @property {OrderPlatformModel.RuleListRequestSchema} body
|
|
35
|
+
*/
|
|
31
36
|
/**
|
|
32
37
|
* @typedef GetShipmentBagReasonsParam
|
|
33
38
|
* @property {string} shipmentId - ID of the bag. An order may contain multiple
|
|
@@ -45,13 +50,15 @@ declare class OrderPlatformApplicationValidator {
|
|
|
45
50
|
static getApplicationShipments(): GetApplicationShipmentsParam;
|
|
46
51
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
47
52
|
static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
|
|
53
|
+
/** @returns {GetRulesParam} */
|
|
54
|
+
static getRules(): GetRulesParam;
|
|
48
55
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
49
56
|
static getShipmentBagReasons(): GetShipmentBagReasonsParam;
|
|
50
57
|
/** @returns {TrackShipmentPlatformParam} */
|
|
51
58
|
static trackShipmentPlatform(): TrackShipmentPlatformParam;
|
|
52
59
|
}
|
|
53
60
|
declare namespace OrderPlatformApplicationValidator {
|
|
54
|
-
export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
61
|
+
export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
55
62
|
}
|
|
56
63
|
type FailedOrderLogsParam = {
|
|
57
64
|
/**
|
|
@@ -73,9 +80,19 @@ type FailedOrderLogsParam = {
|
|
|
73
80
|
};
|
|
74
81
|
type GetApplicationShipmentsParam = {
|
|
75
82
|
lane?: string;
|
|
83
|
+
/**
|
|
84
|
+
* - Search_type refers to the field that will
|
|
85
|
+
* be used as the target for the search operation
|
|
86
|
+
*/
|
|
76
87
|
searchType?: string;
|
|
77
88
|
searchId?: string;
|
|
89
|
+
/**
|
|
90
|
+
* - Date time in UTC timezone as per ISO format.
|
|
91
|
+
*/
|
|
78
92
|
fromDate?: string;
|
|
93
|
+
/**
|
|
94
|
+
* - Date time in UTC timezone as per ISO format.
|
|
95
|
+
*/
|
|
79
96
|
toDate?: string;
|
|
80
97
|
dpIds?: string;
|
|
81
98
|
orderingCompanyId?: string;
|
|
@@ -91,6 +108,9 @@ type GetApplicationShipmentsParam = {
|
|
|
91
108
|
type GetPlatformShipmentReasonsParam = {
|
|
92
109
|
action: string;
|
|
93
110
|
};
|
|
111
|
+
type GetRulesParam = {
|
|
112
|
+
body: OrderPlatformModel.RuleListRequestSchema;
|
|
113
|
+
};
|
|
94
114
|
type GetShipmentBagReasonsParam = {
|
|
95
115
|
/**
|
|
96
116
|
* - ID of the bag. An order may contain multiple
|
|
@@ -108,3 +128,4 @@ type TrackShipmentPlatformParam = {
|
|
|
108
128
|
*/
|
|
109
129
|
shipmentId: string;
|
|
110
130
|
};
|
|
131
|
+
import OrderPlatformModel = require("./OrderPlatformModel");
|
|
@@ -13,10 +13,11 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
13
13
|
/**
|
|
14
14
|
* @typedef GetApplicationShipmentsParam
|
|
15
15
|
* @property {string} [lane]
|
|
16
|
-
* @property {string} [searchType]
|
|
16
|
+
* @property {string} [searchType] - Search_type refers to the field that will
|
|
17
|
+
* be used as the target for the search operation
|
|
17
18
|
* @property {string} [searchId]
|
|
18
|
-
* @property {string} [fromDate]
|
|
19
|
-
* @property {string} [toDate]
|
|
19
|
+
* @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
|
|
20
|
+
* @property {string} [toDate] - Date time in UTC timezone as per ISO format.
|
|
20
21
|
* @property {string} [dpIds]
|
|
21
22
|
* @property {string} [orderingCompanyId]
|
|
22
23
|
* @property {string} [stores]
|
|
@@ -34,6 +35,11 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
34
35
|
* @property {string} action
|
|
35
36
|
*/
|
|
36
37
|
|
|
38
|
+
/**
|
|
39
|
+
* @typedef GetRulesParam
|
|
40
|
+
* @property {OrderPlatformModel.RuleListRequestSchema} body
|
|
41
|
+
*/
|
|
42
|
+
|
|
37
43
|
/**
|
|
38
44
|
* @typedef GetShipmentBagReasonsParam
|
|
39
45
|
* @property {string} shipmentId - ID of the bag. An order may contain multiple
|
|
@@ -85,6 +91,13 @@ class OrderPlatformApplicationValidator {
|
|
|
85
91
|
}).required();
|
|
86
92
|
}
|
|
87
93
|
|
|
94
|
+
/** @returns {GetRulesParam} */
|
|
95
|
+
static getRules() {
|
|
96
|
+
return Joi.object({
|
|
97
|
+
body: OrderPlatformModel.RuleListRequestSchema().required(),
|
|
98
|
+
}).required();
|
|
99
|
+
}
|
|
100
|
+
|
|
88
101
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
89
102
|
static getShipmentBagReasons() {
|
|
90
103
|
return Joi.object({
|