@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.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 +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
- package/sdk/application/Cart/CartApplicationClient.js +157 -530
- 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 +65 -55
- package/sdk/application/Content/ContentApplicationClient.js +211 -341
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
- 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 +32 -87
- package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
- 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 +18 -62
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
- 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 +15 -406
- package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
- package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
- package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
- package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
- 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 +236 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
- 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 +314 -422
- package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
- 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 -68
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
- 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 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
- 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 +565 -1282
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
- 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 -246
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
- 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 +2374 -877
- package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
- 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 +421 -418
- package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
- package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
- package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
- 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 +934 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -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 +1327 -3529
- package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
- 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 -513
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
- 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 -4
- package/sdk/platform/Share/SharePlatformModel.js +45 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
- 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 -2
- package/sdk/public/PublicClient.js +2 -2
- 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 -1
- package/sdk/public/index.js +1 -1
- 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
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
- package/sdk/public/Billing/BillingPublicClient.js +0 -397
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
- package/sdk/public/Billing/BillingPublicModel.js +0 -560
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
- package/sdk/public/Billing/BillingPublicValidator.js +0 -50
|
@@ -3,8 +3,8 @@ const Joi = require("joi");
|
|
|
3
3
|
const OrderPlatformModel = require("./OrderPlatformModel");
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @typedef
|
|
7
|
-
* @property {OrderPlatformModel.
|
|
6
|
+
* @typedef AddStateManagerConfigParam
|
|
7
|
+
* @property {OrderPlatformModel.TransitionConfigPayload} body
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -14,18 +14,20 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @typedef BulkListingParam
|
|
17
|
-
* @property {number} pageSize -
|
|
18
|
-
* @property {number} pageNo -
|
|
19
|
-
* @property {string}
|
|
20
|
-
*
|
|
21
|
-
* @property {string}
|
|
22
|
-
*
|
|
23
|
-
* @property {string} [
|
|
17
|
+
* @property {number} pageSize - The number of records to return per page in the response.
|
|
18
|
+
* @property {number} pageNo - The page number to fetch from the paginated results.
|
|
19
|
+
* @property {string} startDate - The start date for filtering the jobs,
|
|
20
|
+
* expressed in UTC format
|
|
21
|
+
* @property {string} endDate - The end date for filtering the jobs, expressed
|
|
22
|
+
* in UTC format
|
|
23
|
+
* @property {string} [status] - The status of the jobs to filter the results.
|
|
24
|
+
* @property {string} [bulkActionType] - Pecifies the type of job action being requested.
|
|
25
|
+
* @property {string} [searchKey] - A key or keyword used to search for specific jobs.
|
|
24
26
|
*/
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
29
|
* @typedef BulkStateTransistionParam
|
|
28
|
-
* @property {OrderPlatformModel.
|
|
30
|
+
* @property {OrderPlatformModel.BulkStateTransistionRequestSchema} body
|
|
29
31
|
*/
|
|
30
32
|
|
|
31
33
|
/**
|
|
@@ -34,12 +36,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
34
36
|
*/
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
|
-
* @typedef
|
|
38
|
-
* @property {
|
|
39
|
-
* @property {string} receiver - Receiver Number
|
|
40
|
-
* @property {string} bagId - Bag Id for the query
|
|
41
|
-
* @property {string} [callerId] - Caller Id
|
|
42
|
-
* @property {string} [method] - Provider Method to Call
|
|
39
|
+
* @typedef CreateChannelConfigParam
|
|
40
|
+
* @property {OrderPlatformModel.CreateChannelConfigData} body
|
|
43
41
|
*/
|
|
44
42
|
|
|
45
43
|
/**
|
|
@@ -48,8 +46,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
48
46
|
*/
|
|
49
47
|
|
|
50
48
|
/**
|
|
51
|
-
* @typedef
|
|
52
|
-
* @property {
|
|
49
|
+
* @typedef DispatchManifestsParam
|
|
50
|
+
* @property {OrderPlatformModel.DispatchManifest} body
|
|
53
51
|
*/
|
|
54
52
|
|
|
55
53
|
/**
|
|
@@ -59,7 +57,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
59
57
|
|
|
60
58
|
/**
|
|
61
59
|
* @typedef DownloadLanesReportParam
|
|
62
|
-
* @property {OrderPlatformModel.
|
|
60
|
+
* @property {OrderPlatformModel.BulkReportsDownloadRequestSchema} body
|
|
63
61
|
*/
|
|
64
62
|
|
|
65
63
|
/**
|
|
@@ -73,8 +71,12 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
73
71
|
*/
|
|
74
72
|
|
|
75
73
|
/**
|
|
76
|
-
* @typedef
|
|
77
|
-
* @property {
|
|
74
|
+
* @typedef FailedOrderLogsParam
|
|
75
|
+
* @property {string} [applicationId] - Application ID
|
|
76
|
+
* @property {number} [pageNo] - Page Number
|
|
77
|
+
* @property {number} [pageSize] - Page Size
|
|
78
|
+
* @property {string} [searchType] - Search type for filter
|
|
79
|
+
* @property {string} [searchValue] - Search value for filter
|
|
78
80
|
*/
|
|
79
81
|
|
|
80
82
|
/**
|
|
@@ -82,6 +84,12 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
82
84
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
83
85
|
*/
|
|
84
86
|
|
|
87
|
+
/**
|
|
88
|
+
* @typedef GenerateInvoiceIDParam
|
|
89
|
+
* @property {string} invoiceType - Mention the type of invoice id to generate
|
|
90
|
+
* @property {OrderPlatformModel.GenerateInvoiceIDRequestSchema} body
|
|
91
|
+
*/
|
|
92
|
+
|
|
85
93
|
/**
|
|
86
94
|
* @typedef GeneratePOSReceiptByOrderIdParam
|
|
87
95
|
* @property {string} orderId
|
|
@@ -89,23 +97,28 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
89
97
|
* @property {string} [documentType]
|
|
90
98
|
*/
|
|
91
99
|
|
|
100
|
+
/**
|
|
101
|
+
* @typedef GenerateProcessManifestParam
|
|
102
|
+
* @property {OrderPlatformModel.ProcessManifestRequestSchema} body
|
|
103
|
+
*/
|
|
104
|
+
|
|
92
105
|
/**
|
|
93
106
|
* @typedef GetAllowedStateTransitionParam
|
|
94
|
-
* @property {string} orderingChannel -
|
|
95
|
-
* @property {string} status -
|
|
107
|
+
* @property {string} orderingChannel - The channel through which orders are placed.
|
|
108
|
+
* @property {string} status - The status key indicates the current status for
|
|
109
|
+
* which the API will provide a list of possible next state transitions.
|
|
96
110
|
*/
|
|
97
111
|
|
|
98
112
|
/** @typedef GetAllowedTemplatesForBulkParam */
|
|
99
113
|
|
|
100
114
|
/**
|
|
101
115
|
* @typedef GetAnnouncementsParam
|
|
102
|
-
* @property {string} [date] - Date On which the announcement is Active
|
|
103
|
-
* should in ISO Datetime format IST Time)
|
|
116
|
+
* @property {string} [date] - Date On which the announcement is Active.
|
|
104
117
|
*/
|
|
105
118
|
|
|
106
119
|
/**
|
|
107
120
|
* @typedef GetBagByIdParam
|
|
108
|
-
* @property {string} [bagId] -
|
|
121
|
+
* @property {string} [bagId] - Unique identifier of a bag
|
|
109
122
|
* @property {string} [channelBagId] - Id of application bag
|
|
110
123
|
* @property {string} [channelId] - Id of application
|
|
111
124
|
*/
|
|
@@ -129,8 +142,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
129
142
|
* @typedef GetBulkShipmentExcelFileParam
|
|
130
143
|
* @property {string} [salesChannels] - Comma separated values of sales channel ids
|
|
131
144
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
132
|
-
* @property {string} [startDate] - UTC
|
|
133
|
-
* @property {string} [endDate] - UTC
|
|
145
|
+
* @property {string} [startDate] - Date time in UTC timezone as per ISO format.
|
|
146
|
+
* @property {string} [endDate] - Date time in UTC timezone as per ISO format.
|
|
134
147
|
* @property {string} [stores] - Comma separated values of store ids
|
|
135
148
|
* @property {string} [tags] - Comma separated values of tags
|
|
136
149
|
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
@@ -141,25 +154,14 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
141
154
|
* @property {number} [pageSize]
|
|
142
155
|
*/
|
|
143
156
|
|
|
144
|
-
/**
|
|
145
|
-
* @typedef GetFailedOrderLogsParam
|
|
146
|
-
* @property {number} [pageNo] - Page Number
|
|
147
|
-
* @property {number} [pageSize] - Page Size
|
|
148
|
-
* @property {string} [searchType] - Search type for filter
|
|
149
|
-
* @property {string} [searchValue] - Search value for filter
|
|
150
|
-
*/
|
|
157
|
+
/** @typedef GetChannelConfigParam */
|
|
151
158
|
|
|
152
159
|
/**
|
|
153
160
|
* @typedef GetFileByStatusParam
|
|
154
|
-
* @property {string} batchId
|
|
155
|
-
* @property {string} status
|
|
161
|
+
* @property {string} batchId - Batch Id to identify the bulk operation request.
|
|
162
|
+
* @property {string} status - The status of the jobs to filter the results.
|
|
156
163
|
* @property {string} fileType
|
|
157
|
-
* @property {string} [reportType]
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* @typedef GetGlobalFiltersParam
|
|
162
|
-
* @property {string} showIn - Name of view to get filters for
|
|
164
|
+
* @property {string} [reportType] - The type of report to be downloaded.
|
|
163
165
|
*/
|
|
164
166
|
|
|
165
167
|
/**
|
|
@@ -167,7 +169,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
167
169
|
* @property {string} [superLane] - Name of lane for which data is to be fetched
|
|
168
170
|
* @property {string} [groupEntity] - Name of group entity
|
|
169
171
|
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
170
|
-
* @property {string} [toDate]
|
|
172
|
+
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
171
173
|
* @property {string} [startDate] - UTC Start Date in ISO format
|
|
172
174
|
* @property {string} [endDate] - UTC End Date in ISO format
|
|
173
175
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
@@ -175,15 +177,54 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
175
177
|
* @property {string} [salesChannels]
|
|
176
178
|
* @property {string} [paymentMode] - Comma separated values of payment modes
|
|
177
179
|
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
178
|
-
* @property {string} [searchType]
|
|
180
|
+
* @property {string} [searchType] - Search_type refers to the field that will
|
|
181
|
+
* be used as the target for the search operation
|
|
179
182
|
* @property {string} [searchValue]
|
|
180
183
|
* @property {string} [tags]
|
|
181
|
-
* @property {number} [timeToDispatch]
|
|
184
|
+
* @property {number} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time.
|
|
182
185
|
* @property {string} [paymentMethods]
|
|
183
186
|
* @property {boolean} [myOrders]
|
|
184
187
|
* @property {boolean} [showCrossCompanyData] - Flag to view cross & non-cross
|
|
185
188
|
* company order
|
|
186
|
-
* @property {string} [orderType]
|
|
189
|
+
* @property {string} [orderType] - Defines the specific journey a shipment will
|
|
190
|
+
* follow based on the application's operational needs and customer
|
|
191
|
+
* preferences. This field categorizes orders into distinct types, each
|
|
192
|
+
* associated with a unique processing flow. For example:
|
|
193
|
+
*
|
|
194
|
+
* - "HomeDelivery": The order goes through all the steps needed for delivery,
|
|
195
|
+
* from being packed to arriving at the customer’s address.
|
|
196
|
+
* - "PickAtStore": The order is prepared for pickup at the store, skipping
|
|
197
|
+
* shipping steps to make it ready faster for the customer to collect in person.
|
|
198
|
+
* - "Digital": This order type likely refers to orders that involve digital goods
|
|
199
|
+
* or services, such as software, digital subscriptions, e-books, online
|
|
200
|
+
* courses, or any other item that can be delivered electronically.
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @typedef GetManifestDetailsParam
|
|
205
|
+
* @property {string} manifestId - The unique identifier assigned to the manifest.
|
|
206
|
+
* @property {string} [dpIds] - Filter shipments with the specific Courier
|
|
207
|
+
* partner Ids which is a combination of courier partner extension and scheme Ids.
|
|
208
|
+
* @property {string} [endDate] - End date for the shipment search range in manifest.
|
|
209
|
+
* @property {string} [startDate] - Start date for the shipment search range in manifest.
|
|
210
|
+
* @property {number} [pageNo] - Page number for pagination.
|
|
211
|
+
* @property {number} [pageSize] - Number of records per page for pagination.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @typedef GetManifestShipmentsParam
|
|
216
|
+
* @property {string} dpIds - Filter shipments with the specific Courier partner
|
|
217
|
+
* Ids which is a combination of courier partner extension and scheme Ids.
|
|
218
|
+
* @property {number} stores - Filter results based on specific store IDs.
|
|
219
|
+
* @property {string} toDate - End date for the shipment search range.
|
|
220
|
+
* @property {string} fromDate - Start date for the shipment search range.
|
|
221
|
+
* @property {string} [dpName] - Filter results based on specific courier partner name.
|
|
222
|
+
* @property {string} [salesChannels] - Filter results based on comma-separated
|
|
223
|
+
* list of sales channels.
|
|
224
|
+
* @property {string} [searchType] - Filter results based on search type.
|
|
225
|
+
* @property {string} [searchValue] - Filter results based on the search value.
|
|
226
|
+
* @property {number} [pageNo] - Page number for pagination.
|
|
227
|
+
* @property {number} [pageSize] - Number of records per page for pagination.
|
|
187
228
|
*/
|
|
188
229
|
|
|
189
230
|
/**
|
|
@@ -191,9 +232,27 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
191
232
|
* @property {string} view - Name of View
|
|
192
233
|
*/
|
|
193
234
|
|
|
235
|
+
/**
|
|
236
|
+
* @typedef GetManifestsParam
|
|
237
|
+
* @property {string} [status] - Filter for the status of manifests.
|
|
238
|
+
* @property {string} [startDate] - The starting date for filtering manifests in
|
|
239
|
+
* ISO format
|
|
240
|
+
* @property {string} [endDate] - The end date for filtering manifests in ISO format
|
|
241
|
+
* @property {string} [searchType] - Specifies the type of search to perform.
|
|
242
|
+
* @property {number} [storeId] - Filter to fetch manifests for a specific store
|
|
243
|
+
* by its ID.
|
|
244
|
+
* @property {string} [searchValue] - The value to search for based on the
|
|
245
|
+
* selected search type.
|
|
246
|
+
* @property {string} [dpIds] - A comma-separated list of courier partner IDs
|
|
247
|
+
* (DP IDs) to filter the manifests.
|
|
248
|
+
* @property {number} [pageNo] - The number of the page to fetch data.
|
|
249
|
+
* @property {number} [pageSize] - The number of records to return per page for
|
|
250
|
+
* pagination.
|
|
251
|
+
*/
|
|
252
|
+
|
|
194
253
|
/**
|
|
195
254
|
* @typedef GetOrderByIdParam
|
|
196
|
-
* @property {string} orderId
|
|
255
|
+
* @property {string} orderId
|
|
197
256
|
* @property {boolean} [myOrders]
|
|
198
257
|
* @property {boolean} [allowInactive] - Flag to allow inactive shipments
|
|
199
258
|
*/
|
|
@@ -201,99 +260,70 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
201
260
|
/**
|
|
202
261
|
* @typedef GetOrdersParam
|
|
203
262
|
* @property {string} [lane] - Lane refers to a section where orders are
|
|
204
|
-
* assigned, indicating its grouping
|
|
263
|
+
* assigned, indicating its grouping.
|
|
205
264
|
* @property {string} [searchType] - Search_type refers to the field that will
|
|
206
|
-
* be used as the target for the search operation
|
|
207
|
-
* @property {string} [bagStatus] - Bag_status refers to
|
|
208
|
-
*
|
|
209
|
-
* @property {number} [timeToDispatch] - Time_to_dispatch refers to
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* @property {string} [tags] - Tags
|
|
265
|
+
* be used as the target for the search operation.
|
|
266
|
+
* @property {string} [bagStatus] - Bag_status refers to status of the entity.
|
|
267
|
+
* Filters orders based on the status.
|
|
268
|
+
* @property {number} [timeToDispatch] - Time_to_dispatch refers to estimated SLA time.
|
|
269
|
+
* @property {string} [paymentMethods] - Comma separated values of payment
|
|
270
|
+
* methods that were used to place order.
|
|
271
|
+
* @property {string} [tags] - Tags refers to additional descriptive labels
|
|
213
272
|
* associated with the order
|
|
214
273
|
* @property {string} [searchValue] - Search_value is matched against the field
|
|
215
274
|
* specified by the search_type
|
|
216
|
-
* @property {string} [fromDate]
|
|
217
|
-
* @property {string} [toDate]
|
|
218
|
-
* @property {string} [startDate]
|
|
219
|
-
* @property {string} [endDate]
|
|
275
|
+
* @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
|
|
276
|
+
* @property {string} [toDate] - Date time in UTC timezone as per ISO format.
|
|
277
|
+
* @property {string} [startDate] - Date time in UTC timezone as per ISO format.
|
|
278
|
+
* @property {string} [endDate] - Date time in UTC timezone as per ISO format.
|
|
220
279
|
* @property {string} [dpIds] - Delivery Partner IDs to which shipments are assigned.
|
|
221
|
-
* @property {string} [stores]
|
|
222
|
-
*
|
|
223
|
-
* @property {
|
|
224
|
-
*
|
|
280
|
+
* @property {string} [stores] - A comma-separated list of store IDs used to
|
|
281
|
+
* filter results to only those related to specific stores.
|
|
282
|
+
* @property {string} [salesChannels] - A comma-separated list of sales channel
|
|
283
|
+
* IDs to filter results based on the sales channels involved.
|
|
284
|
+
* @property {number} [pageNo] - Specifies the page number for paginated results.
|
|
285
|
+
* @property {number} [pageSize] - Determines the number of results returned per page.
|
|
225
286
|
* @property {boolean} [isPrioritySort]
|
|
226
|
-
* @property {
|
|
287
|
+
* @property {string} [customMeta]
|
|
227
288
|
* @property {boolean} [myOrders]
|
|
228
289
|
* @property {boolean} [showCrossCompanyData] - Flag to view cross & non-cross
|
|
229
290
|
* company order
|
|
230
|
-
* @property {string} [customerId]
|
|
291
|
+
* @property {string} [customerId] - The unique identifier for the customer
|
|
292
|
+
* associated with the query, useful for filtering results to a specific customer.
|
|
231
293
|
* @property {string} [orderType]
|
|
232
|
-
* @property {
|
|
233
|
-
*
|
|
234
|
-
* operational statuses.
|
|
235
|
-
* @property {string} [financialStatus] - Statuses relating to finance related
|
|
236
|
-
* operations in the order processing journey. Comma separated values of
|
|
237
|
-
* financial statuses.
|
|
238
|
-
* @property {string} [logisticsStatus] - Statuses relating to delivery and
|
|
239
|
-
* pickup related operations in the order processing journey. Comma separated
|
|
240
|
-
* values of logistics statuses.
|
|
241
|
-
* @property {string} [parentViewSlug] - Parent view is used for grouping of
|
|
242
|
-
* child views. Slug of parent view.
|
|
243
|
-
* @property {string} [childViewSlug] - Child view is user configured view,
|
|
244
|
-
* which has filters added by the user on which shipments/orders are fetched.
|
|
245
|
-
* Slug of child view.
|
|
294
|
+
* @property {boolean} [allowInactive] - Flag indicating whether inactive
|
|
295
|
+
* shipments are allowed
|
|
246
296
|
* @property {string} [groupEntity] - Defines the grouping criterion for
|
|
247
297
|
* retrieving shipments or orders. It specifies whether the results should be
|
|
248
298
|
* organized based on shipment groups or order groups. For example, using
|
|
249
299
|
* 'shipments' groups results by shipment, while an invalid value like 'abcd'
|
|
250
300
|
* may not be recognized, leading to errors or default behavior.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
* @
|
|
255
|
-
*
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
/** @typedef GetRefundEnableStateListParam */
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @typedef GetRefundOptionsParam
|
|
262
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
263
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
264
|
-
* its own ID.
|
|
265
|
-
* @property {string} [bagIds] - It is the bag_id of the bags with comma separated.
|
|
266
|
-
* @property {string} [state] - It is the desired state at which refund amount
|
|
267
|
-
* needs to be calculated.
|
|
268
|
-
* @property {string} [optinAppId] - It is affiliate id of the order in case of
|
|
269
|
-
* cross selling.
|
|
270
|
-
* @property {number} [optinCompanyId] - It is company id of the order in case
|
|
271
|
-
* of cross selling.
|
|
272
|
-
* @property {string} [status] - It specifies the desired status to which the
|
|
273
|
-
* shipment should be updated. It represents the next step in the shipment's
|
|
274
|
-
* lifecycle, such as being cancelled by the customer or moved to another
|
|
275
|
-
* status in the shipping process.
|
|
276
|
-
*/
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* @typedef GetRefundStateConfigurationParam
|
|
280
|
-
* @property {string} appId
|
|
301
|
+
* @property {boolean} [enforceDateFilter] - Applies a date filter for listing
|
|
302
|
+
* orders. This is useful when fetching data for a specific date range while
|
|
303
|
+
* performing searches.
|
|
304
|
+
* @property {string} [fulfillmentType] - Define the Fulfillment Type for
|
|
305
|
+
* Listing Orders, This is use when we want to get list of shipments or orders
|
|
306
|
+
* by cross store or cross company or fulfilling Store (by default), this is
|
|
307
|
+
* also depends on the login user accessType and store access
|
|
281
308
|
*/
|
|
282
309
|
|
|
283
310
|
/** @typedef GetRoleBasedActionsParam */
|
|
284
311
|
|
|
285
312
|
/**
|
|
286
313
|
* @typedef GetShipmentByIdParam
|
|
287
|
-
* @property {string} [channelShipmentId] -
|
|
288
|
-
*
|
|
314
|
+
* @property {string} [channelShipmentId] - The shipment ID used in the
|
|
315
|
+
* application, which can be used to reference specific shipments.
|
|
316
|
+
* @property {string} [shipmentId] - The unique identifier for a shipment.
|
|
289
317
|
* @property {boolean} [fetchActiveShipment] - Flag to fetch active or
|
|
290
318
|
* deactivated shipments
|
|
319
|
+
* @property {boolean} [allowInactive] - Flag indicating whether inactive
|
|
320
|
+
* shipments are allowed
|
|
291
321
|
*/
|
|
292
322
|
|
|
293
323
|
/**
|
|
294
324
|
* @typedef GetShipmentHistoryParam
|
|
295
|
-
* @property {string} [shipmentId] -
|
|
296
|
-
* @property {number} [bagId] -
|
|
325
|
+
* @property {string} [shipmentId] - Identifier for the shipment
|
|
326
|
+
* @property {number} [bagId] - Identifier for a bag or product.
|
|
297
327
|
*/
|
|
298
328
|
|
|
299
329
|
/**
|
|
@@ -309,58 +339,87 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
309
339
|
/**
|
|
310
340
|
* @typedef GetShipmentsParam
|
|
311
341
|
* @property {string} [lane] - Name of lane for which data is to be fetched
|
|
312
|
-
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
342
|
+
* @property {string} [bagStatus] - Comma separated values of bag statuses.
|
|
343
|
+
* @property {string} [statusAssigned] - Used to filter shipments based on
|
|
344
|
+
* status present in shipment_status_history. For more information on these
|
|
345
|
+
* statuses, refer to the Fynd Partners documentation.
|
|
313
346
|
* @property {boolean} [statusOverrideLane] - Use this flag to fetch by
|
|
314
|
-
* bag_status and override lane
|
|
315
|
-
* @property {number} [timeToDispatch]
|
|
316
|
-
* @property {string} [searchType] -
|
|
317
|
-
*
|
|
347
|
+
* bag_status and override lane.
|
|
348
|
+
* @property {number} [timeToDispatch] - Indicates the time to dispatch.
|
|
349
|
+
* @property {string} [searchType] - Specifies the key used to determine the
|
|
350
|
+
* type of search being performed.
|
|
351
|
+
* @property {string} [searchValue] - The value corresponding to the search
|
|
352
|
+
* type, such as a specific shipment ID or order ID.
|
|
318
353
|
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
319
354
|
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
320
|
-
* @property {string} [startDate] - UTC
|
|
321
|
-
*
|
|
322
|
-
* @property {string} [
|
|
323
|
-
*
|
|
324
|
-
* @property {string} [
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* @property {
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
* @property {string} [
|
|
334
|
-
*
|
|
335
|
-
* @property {string} [
|
|
336
|
-
*
|
|
337
|
-
* @property {string} [
|
|
338
|
-
*
|
|
339
|
-
* @property {
|
|
340
|
-
*
|
|
341
|
-
* @property {
|
|
342
|
-
*
|
|
343
|
-
* @property {
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
* @property {string} [
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
* @property {string} [
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* @property {string} [
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
* @property {string} [
|
|
355
|
+
* @property {string} [startDate] - The UTC start date in ISO format
|
|
356
|
+
* (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
|
|
357
|
+
* @property {string} [endDate] - The UTC end date in ISO format
|
|
358
|
+
* (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
|
|
359
|
+
* @property {string} [statusAssignedStartDate] - Specifies the starting UTC
|
|
360
|
+
* date and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the lower
|
|
361
|
+
* boundary for filtering shipments based on the `created_at` timestamp of
|
|
362
|
+
* statuses in the shipment's status history. It allows filtering statuses
|
|
363
|
+
* that were created within a specific time range.
|
|
364
|
+
* @property {string} [statusAssignedEndDate] - Specifies the ending UTC date
|
|
365
|
+
* and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the upper boundary
|
|
366
|
+
* for filtering shipments based on the `created_at` timestamp of statuses in
|
|
367
|
+
* the shipment's status history.
|
|
368
|
+
* @property {string} [dpIds] - A comma-separated list of delivery partner IDs
|
|
369
|
+
* to filter results by specific delivery partners.
|
|
370
|
+
* @property {string} [stores] - A comma-separated list of store IDs used to
|
|
371
|
+
* filter results to only those related to specific stores.
|
|
372
|
+
* @property {string} [salesChannels] - A comma-separated list of sales channel
|
|
373
|
+
* IDs to filter results based on the sales channels involved.
|
|
374
|
+
* @property {number} [pageNo] - Specifies the page number for paginated results.
|
|
375
|
+
* @property {number} [pageSize] - Determines the number of results returned per page.
|
|
376
|
+
* @property {boolean} [fetchActiveShipment] - A boolean flag that indicates
|
|
377
|
+
* whether to include only active shipments in the results.
|
|
378
|
+
* @property {boolean} [allowInactive] - A flag indicating whether to allow the
|
|
379
|
+
* inclusion of inactive shipments in the results.
|
|
380
|
+
* @property {boolean} [excludeLockedShipments] - A flag to specify whether to
|
|
381
|
+
* exclude shipments that are locked from the results.
|
|
382
|
+
* @property {string} [paymentMethods] - A comma-separated list of payment methods.
|
|
383
|
+
* @property {string} [channelShipmentId] - The shipment ID used in the
|
|
384
|
+
* application, which can be used to reference specific shipments.
|
|
385
|
+
* @property {string} [channelOrderId] - The order ID used in the application.
|
|
386
|
+
* @property {string} [customMeta] - Custom metadata associated with the query,
|
|
387
|
+
* allowing for additional filtering or information to be passed.
|
|
388
|
+
* @property {string} [orderingChannel] - The channel through which the order was placed.
|
|
389
|
+
* @property {string} [companyAffiliateTag] - A tag used to identify the
|
|
390
|
+
* company's affiliation for filtering or reporting purposes.
|
|
391
|
+
* @property {boolean} [myOrders] - A boolean flag indicating whether the query
|
|
392
|
+
* should return only the user's orders.
|
|
393
|
+
* @property {string} [platformUserId] - The unique identifier of the user on
|
|
394
|
+
* the platform, useful for filtering orders related to a specific user.
|
|
395
|
+
* @property {string} [sortType] - Determines the sorting order of the results
|
|
396
|
+
* based on specific criteria.
|
|
397
|
+
* @property {boolean} [showCrossCompanyData] - A flag indicating whether to
|
|
398
|
+
* include data from both cross-company and non-cross-company orders in the results.
|
|
399
|
+
* @property {string} [tags] - A comma-separated list of tags associated with
|
|
400
|
+
* the orders to filter results based on specific characteristics.
|
|
401
|
+
* @property {string} [customerId] - The unique identifier for the customer
|
|
402
|
+
* associated with the query, useful for filtering results to a specific customer.
|
|
403
|
+
* @property {string} [orderType] - The type of order being queried.
|
|
359
404
|
* @property {string} [groupEntity] - Defines the grouping criterion for
|
|
360
405
|
* retrieving shipments or orders. It specifies whether the results should be
|
|
361
406
|
* organized based on shipment groups or order groups. For example, using
|
|
362
407
|
* 'shipments' groups results by shipment, while an invalid value like 'abcd'
|
|
363
408
|
* may not be recognized, leading to errors or default behavior.
|
|
409
|
+
* @property {boolean} [enforceDateFilter] - Applies a date filter for listing
|
|
410
|
+
* shipments. This is useful when fetching data for a specific date range
|
|
411
|
+
* while performing searches.
|
|
412
|
+
* @property {string} [fulfillmentType] - Define the Fulfillment Type for
|
|
413
|
+
* Listing Orders, This is use when we want to get list of shipments or orders
|
|
414
|
+
* by cross store or cross company or fulfilling Store (by default), this is
|
|
415
|
+
* also depends on the login user accessType and store access
|
|
416
|
+
*/
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* @typedef GetStateManagerConfigParam
|
|
420
|
+
* @property {string} [appId] - The unique identifier of the application.
|
|
421
|
+
* @property {string} [orderingChannel] - The channel through which orders are placed.
|
|
422
|
+
* @property {string} [entity] - The entity for which the configuration is applied.
|
|
364
423
|
*/
|
|
365
424
|
|
|
366
425
|
/** @typedef GetStateTransitionMapParam */
|
|
@@ -370,11 +429,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
370
429
|
* @property {string} templateName
|
|
371
430
|
*/
|
|
372
431
|
|
|
373
|
-
/**
|
|
374
|
-
* @typedef GetUserViewsParam
|
|
375
|
-
* @property {string} showIn - Name of view to get filters for.
|
|
376
|
-
*/
|
|
377
|
-
|
|
378
432
|
/**
|
|
379
433
|
* @typedef GetfiltersParam
|
|
380
434
|
* @property {string} view - Name of view
|
|
@@ -388,7 +442,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
388
442
|
|
|
389
443
|
/**
|
|
390
444
|
* @typedef JobDetailsParam
|
|
391
|
-
* @property {string} batchId
|
|
445
|
+
* @property {string} batchId - A unique identifier for the batch associated
|
|
446
|
+
* with this bulk action.
|
|
392
447
|
*/
|
|
393
448
|
|
|
394
449
|
/**
|
|
@@ -396,18 +451,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
396
451
|
* @property {OrderPlatformModel.PlatformOrderUpdate} body
|
|
397
452
|
*/
|
|
398
453
|
|
|
399
|
-
/**
|
|
400
|
-
* @typedef PostRefundConfigurationParam
|
|
401
|
-
* @property {string} appId
|
|
402
|
-
* @property {OrderPlatformModel.RefundStateConfigurationManualSchema} body
|
|
403
|
-
*/
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* @typedef PostRefundStateConfigurationParam
|
|
407
|
-
* @property {string} appId
|
|
408
|
-
* @property {OrderPlatformModel.PostRefundStateConfiguration} body
|
|
409
|
-
*/
|
|
410
|
-
|
|
411
454
|
/**
|
|
412
455
|
* @typedef PostShipmentHistoryParam
|
|
413
456
|
* @property {OrderPlatformModel.PostShipmentHistory} body
|
|
@@ -430,16 +473,16 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
430
473
|
|
|
431
474
|
/**
|
|
432
475
|
* @typedef TrackShipmentParam
|
|
433
|
-
* @property {string} [shipmentId] -
|
|
476
|
+
* @property {string} [shipmentId] - Unique identifier of a shipment on the platform.
|
|
434
477
|
* @property {string} [awb] - AWB number
|
|
435
|
-
* @property {number} [pageNo] - Page number
|
|
436
|
-
* @property {number} [pageSize] -
|
|
478
|
+
* @property {number} [pageNo] - Page number for pagination.
|
|
479
|
+
* @property {number} [pageSize] - Number of records per page for pagination.
|
|
437
480
|
*/
|
|
438
481
|
|
|
439
482
|
/**
|
|
440
|
-
* @typedef
|
|
441
|
-
* @property {string}
|
|
442
|
-
* @property {OrderPlatformModel.
|
|
483
|
+
* @typedef UpdateAddressParam
|
|
484
|
+
* @property {string} shipmentId - Unique shipment no. that is auto-generated
|
|
485
|
+
* @property {OrderPlatformModel.UpdateAddressRequestBody} body
|
|
443
486
|
*/
|
|
444
487
|
|
|
445
488
|
/**
|
|
@@ -448,8 +491,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
448
491
|
*/
|
|
449
492
|
|
|
450
493
|
/**
|
|
451
|
-
* @typedef
|
|
452
|
-
* @property {OrderPlatformModel.
|
|
494
|
+
* @typedef UpdatePaymentInfoParam
|
|
495
|
+
* @property {OrderPlatformModel.UpdateShipmentPaymentMode} body
|
|
453
496
|
*/
|
|
454
497
|
|
|
455
498
|
/**
|
|
@@ -459,7 +502,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
459
502
|
|
|
460
503
|
/**
|
|
461
504
|
* @typedef UpdateShipmentStatusParam
|
|
462
|
-
* @property {OrderPlatformModel.
|
|
505
|
+
* @property {OrderPlatformModel.UpdateShipmentStatusRequestSchema} body
|
|
463
506
|
*/
|
|
464
507
|
|
|
465
508
|
/**
|
|
@@ -468,13 +511,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
468
511
|
*/
|
|
469
512
|
|
|
470
513
|
/**
|
|
471
|
-
* @typedef
|
|
472
|
-
* @property {OrderPlatformModel.
|
|
473
|
-
*/
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* @typedef UpdateUserViewsParam
|
|
477
|
-
* @property {OrderPlatformModel.UserViewsResponse} body
|
|
514
|
+
* @typedef UploadConsentsParam
|
|
515
|
+
* @property {OrderPlatformModel.UploadManifestConsent} body
|
|
478
516
|
*/
|
|
479
517
|
|
|
480
518
|
/**
|
|
@@ -483,10 +521,10 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
483
521
|
*/
|
|
484
522
|
|
|
485
523
|
class OrderPlatformValidator {
|
|
486
|
-
/** @returns {
|
|
487
|
-
static
|
|
524
|
+
/** @returns {AddStateManagerConfigParam} */
|
|
525
|
+
static addStateManagerConfig() {
|
|
488
526
|
return Joi.object({
|
|
489
|
-
body: OrderPlatformModel.
|
|
527
|
+
body: OrderPlatformModel.TransitionConfigPayload().required(),
|
|
490
528
|
}).required();
|
|
491
529
|
}
|
|
492
530
|
|
|
@@ -502,8 +540,8 @@ class OrderPlatformValidator {
|
|
|
502
540
|
return Joi.object({
|
|
503
541
|
pageSize: Joi.number().required(),
|
|
504
542
|
pageNo: Joi.number().required(),
|
|
505
|
-
startDate: Joi.string().allow(""),
|
|
506
|
-
endDate: Joi.string().allow(""),
|
|
543
|
+
startDate: Joi.string().allow("").required(),
|
|
544
|
+
endDate: Joi.string().allow("").required(),
|
|
507
545
|
status: Joi.string().allow(""),
|
|
508
546
|
bulkActionType: Joi.string().allow(""),
|
|
509
547
|
searchKey: Joi.string().allow(""),
|
|
@@ -513,7 +551,7 @@ class OrderPlatformValidator {
|
|
|
513
551
|
/** @returns {BulkStateTransistionParam} */
|
|
514
552
|
static bulkStateTransistion() {
|
|
515
553
|
return Joi.object({
|
|
516
|
-
body: OrderPlatformModel.
|
|
554
|
+
body: OrderPlatformModel.BulkStateTransistionRequestSchema().required(),
|
|
517
555
|
}).required();
|
|
518
556
|
}
|
|
519
557
|
|
|
@@ -524,14 +562,10 @@ class OrderPlatformValidator {
|
|
|
524
562
|
}).required();
|
|
525
563
|
}
|
|
526
564
|
|
|
527
|
-
/** @returns {
|
|
528
|
-
static
|
|
565
|
+
/** @returns {CreateChannelConfigParam} */
|
|
566
|
+
static createChannelConfig() {
|
|
529
567
|
return Joi.object({
|
|
530
|
-
|
|
531
|
-
receiver: Joi.string().allow("").required(),
|
|
532
|
-
bagId: Joi.string().allow("").required(),
|
|
533
|
-
callerId: Joi.string().allow(""),
|
|
534
|
-
method: Joi.string().allow(""),
|
|
568
|
+
body: OrderPlatformModel.CreateChannelConfigData().required(),
|
|
535
569
|
}).required();
|
|
536
570
|
}
|
|
537
571
|
|
|
@@ -542,10 +576,10 @@ class OrderPlatformValidator {
|
|
|
542
576
|
}).required();
|
|
543
577
|
}
|
|
544
578
|
|
|
545
|
-
/** @returns {
|
|
546
|
-
static
|
|
579
|
+
/** @returns {DispatchManifestsParam} */
|
|
580
|
+
static dispatchManifests() {
|
|
547
581
|
return Joi.object({
|
|
548
|
-
|
|
582
|
+
body: OrderPlatformModel.DispatchManifest().required(),
|
|
549
583
|
}).required();
|
|
550
584
|
}
|
|
551
585
|
|
|
@@ -559,7 +593,7 @@ class OrderPlatformValidator {
|
|
|
559
593
|
/** @returns {DownloadLanesReportParam} */
|
|
560
594
|
static downloadLanesReport() {
|
|
561
595
|
return Joi.object({
|
|
562
|
-
body: OrderPlatformModel.
|
|
596
|
+
body: OrderPlatformModel.BulkReportsDownloadRequestSchema().required(),
|
|
563
597
|
}).required();
|
|
564
598
|
}
|
|
565
599
|
|
|
@@ -577,10 +611,14 @@ class OrderPlatformValidator {
|
|
|
577
611
|
}).required();
|
|
578
612
|
}
|
|
579
613
|
|
|
580
|
-
/** @returns {
|
|
581
|
-
static
|
|
614
|
+
/** @returns {FailedOrderLogsParam} */
|
|
615
|
+
static failedOrderLogs() {
|
|
582
616
|
return Joi.object({
|
|
583
|
-
|
|
617
|
+
applicationId: Joi.string().allow(""),
|
|
618
|
+
pageNo: Joi.number(),
|
|
619
|
+
pageSize: Joi.number(),
|
|
620
|
+
searchType: Joi.string().allow(""),
|
|
621
|
+
searchValue: Joi.string().allow(""),
|
|
584
622
|
}).required();
|
|
585
623
|
}
|
|
586
624
|
|
|
@@ -591,6 +629,14 @@ class OrderPlatformValidator {
|
|
|
591
629
|
}).required();
|
|
592
630
|
}
|
|
593
631
|
|
|
632
|
+
/** @returns {GenerateInvoiceIDParam} */
|
|
633
|
+
static generateInvoiceID() {
|
|
634
|
+
return Joi.object({
|
|
635
|
+
invoiceType: Joi.string().allow("").required(),
|
|
636
|
+
body: OrderPlatformModel.GenerateInvoiceIDRequestSchema().required(),
|
|
637
|
+
}).required();
|
|
638
|
+
}
|
|
639
|
+
|
|
594
640
|
/** @returns {GeneratePOSReceiptByOrderIdParam} */
|
|
595
641
|
static generatePOSReceiptByOrderId() {
|
|
596
642
|
return Joi.object({
|
|
@@ -600,6 +646,13 @@ class OrderPlatformValidator {
|
|
|
600
646
|
}).required();
|
|
601
647
|
}
|
|
602
648
|
|
|
649
|
+
/** @returns {GenerateProcessManifestParam} */
|
|
650
|
+
static generateProcessManifest() {
|
|
651
|
+
return Joi.object({
|
|
652
|
+
body: OrderPlatformModel.ProcessManifestRequestSchema().required(),
|
|
653
|
+
}).required();
|
|
654
|
+
}
|
|
655
|
+
|
|
603
656
|
/** @returns {GetAllowedStateTransitionParam} */
|
|
604
657
|
static getAllowedStateTransition() {
|
|
605
658
|
return Joi.object({
|
|
@@ -667,14 +720,9 @@ class OrderPlatformValidator {
|
|
|
667
720
|
}).required();
|
|
668
721
|
}
|
|
669
722
|
|
|
670
|
-
/** @returns {
|
|
671
|
-
static
|
|
672
|
-
return Joi.object({
|
|
673
|
-
pageNo: Joi.number(),
|
|
674
|
-
pageSize: Joi.number(),
|
|
675
|
-
searchType: Joi.string().allow(""),
|
|
676
|
-
searchValue: Joi.string().allow(""),
|
|
677
|
-
}).required();
|
|
723
|
+
/** @returns {GetChannelConfigParam} */
|
|
724
|
+
static getChannelConfig() {
|
|
725
|
+
return Joi.object({}).required();
|
|
678
726
|
}
|
|
679
727
|
|
|
680
728
|
/** @returns {GetFileByStatusParam} */
|
|
@@ -687,13 +735,6 @@ class OrderPlatformValidator {
|
|
|
687
735
|
}).required();
|
|
688
736
|
}
|
|
689
737
|
|
|
690
|
-
/** @returns {GetGlobalFiltersParam} */
|
|
691
|
-
static getGlobalFilters() {
|
|
692
|
-
return Joi.object({
|
|
693
|
-
showIn: Joi.string().allow("").required(),
|
|
694
|
-
}).required();
|
|
695
|
-
}
|
|
696
|
-
|
|
697
738
|
/** @returns {GetLaneConfigParam} */
|
|
698
739
|
static getLaneConfig() {
|
|
699
740
|
return Joi.object({
|
|
@@ -719,6 +760,34 @@ class OrderPlatformValidator {
|
|
|
719
760
|
}).required();
|
|
720
761
|
}
|
|
721
762
|
|
|
763
|
+
/** @returns {GetManifestDetailsParam} */
|
|
764
|
+
static getManifestDetails() {
|
|
765
|
+
return Joi.object({
|
|
766
|
+
manifestId: Joi.string().allow("").required(),
|
|
767
|
+
dpIds: Joi.string().allow(""),
|
|
768
|
+
endDate: Joi.string().allow(""),
|
|
769
|
+
startDate: Joi.string().allow(""),
|
|
770
|
+
pageNo: Joi.number(),
|
|
771
|
+
pageSize: Joi.number(),
|
|
772
|
+
}).required();
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/** @returns {GetManifestShipmentsParam} */
|
|
776
|
+
static getManifestShipments() {
|
|
777
|
+
return Joi.object({
|
|
778
|
+
dpIds: Joi.string().allow("").required(),
|
|
779
|
+
stores: Joi.number().required(),
|
|
780
|
+
toDate: Joi.string().allow("").required(),
|
|
781
|
+
fromDate: Joi.string().allow("").required(),
|
|
782
|
+
dpName: Joi.string().allow(""),
|
|
783
|
+
salesChannels: Joi.string().allow(""),
|
|
784
|
+
searchType: Joi.string().allow(""),
|
|
785
|
+
searchValue: Joi.string().allow(""),
|
|
786
|
+
pageNo: Joi.number(),
|
|
787
|
+
pageSize: Joi.number(),
|
|
788
|
+
}).required();
|
|
789
|
+
}
|
|
790
|
+
|
|
722
791
|
/** @returns {GetManifestfiltersParam} */
|
|
723
792
|
static getManifestfilters() {
|
|
724
793
|
return Joi.object({
|
|
@@ -726,6 +795,21 @@ class OrderPlatformValidator {
|
|
|
726
795
|
}).required();
|
|
727
796
|
}
|
|
728
797
|
|
|
798
|
+
/** @returns {GetManifestsParam} */
|
|
799
|
+
static getManifests() {
|
|
800
|
+
return Joi.object({
|
|
801
|
+
status: Joi.string().allow(""),
|
|
802
|
+
startDate: Joi.string().allow(""),
|
|
803
|
+
endDate: Joi.string().allow(""),
|
|
804
|
+
searchType: Joi.string().allow(""),
|
|
805
|
+
storeId: Joi.number(),
|
|
806
|
+
searchValue: Joi.string().allow(""),
|
|
807
|
+
dpIds: Joi.string().allow(""),
|
|
808
|
+
pageNo: Joi.number(),
|
|
809
|
+
pageSize: Joi.number(),
|
|
810
|
+
}).required();
|
|
811
|
+
}
|
|
812
|
+
|
|
729
813
|
/** @returns {GetOrderByIdParam} */
|
|
730
814
|
static getOrderById() {
|
|
731
815
|
return Joi.object({
|
|
@@ -755,48 +839,15 @@ class OrderPlatformValidator {
|
|
|
755
839
|
pageNo: Joi.number(),
|
|
756
840
|
pageSize: Joi.number(),
|
|
757
841
|
isPrioritySort: Joi.boolean(),
|
|
758
|
-
customMeta: Joi.
|
|
842
|
+
customMeta: Joi.string().allow(""),
|
|
759
843
|
myOrders: Joi.boolean(),
|
|
760
844
|
showCrossCompanyData: Joi.boolean(),
|
|
761
845
|
customerId: Joi.string().allow(""),
|
|
762
846
|
orderType: Joi.string().allow(""),
|
|
763
|
-
|
|
764
|
-
financialStatus: Joi.string().allow(""),
|
|
765
|
-
logisticsStatus: Joi.string().allow(""),
|
|
766
|
-
parentViewSlug: Joi.string().allow(""),
|
|
767
|
-
childViewSlug: Joi.string().allow(""),
|
|
847
|
+
allowInactive: Joi.boolean(),
|
|
768
848
|
groupEntity: Joi.string().allow(""),
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
/** @returns {GetRefundConfigurationParam} */
|
|
773
|
-
static getRefundConfiguration() {
|
|
774
|
-
return Joi.object({
|
|
775
|
-
appId: Joi.string().allow("").required(),
|
|
776
|
-
}).required();
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
/** @returns {GetRefundEnableStateListParam} */
|
|
780
|
-
static getRefundEnableStateList() {
|
|
781
|
-
return Joi.object({}).required();
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
/** @returns {GetRefundOptionsParam} */
|
|
785
|
-
static getRefundOptions() {
|
|
786
|
-
return Joi.object({
|
|
787
|
-
shipmentId: Joi.string().allow("").required(),
|
|
788
|
-
bagIds: Joi.string().allow(""),
|
|
789
|
-
state: Joi.string().allow(""),
|
|
790
|
-
optinAppId: Joi.string().allow(""),
|
|
791
|
-
optinCompanyId: Joi.number(),
|
|
792
|
-
status: Joi.string().allow(""),
|
|
793
|
-
}).required();
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
/** @returns {GetRefundStateConfigurationParam} */
|
|
797
|
-
static getRefundStateConfiguration() {
|
|
798
|
-
return Joi.object({
|
|
799
|
-
appId: Joi.string().allow("").required(),
|
|
849
|
+
enforceDateFilter: Joi.boolean(),
|
|
850
|
+
fulfillmentType: Joi.string().allow(""),
|
|
800
851
|
}).required();
|
|
801
852
|
}
|
|
802
853
|
|
|
@@ -811,6 +862,7 @@ class OrderPlatformValidator {
|
|
|
811
862
|
channelShipmentId: Joi.string().allow(""),
|
|
812
863
|
shipmentId: Joi.string().allow(""),
|
|
813
864
|
fetchActiveShipment: Joi.boolean(),
|
|
865
|
+
allowInactive: Joi.boolean(),
|
|
814
866
|
}).required();
|
|
815
867
|
}
|
|
816
868
|
|
|
@@ -836,6 +888,7 @@ class OrderPlatformValidator {
|
|
|
836
888
|
return Joi.object({
|
|
837
889
|
lane: Joi.string().allow(""),
|
|
838
890
|
bagStatus: Joi.string().allow(""),
|
|
891
|
+
statusAssigned: Joi.string().allow(""),
|
|
839
892
|
statusOverrideLane: Joi.boolean(),
|
|
840
893
|
timeToDispatch: Joi.number(),
|
|
841
894
|
searchType: Joi.string().allow(""),
|
|
@@ -844,6 +897,8 @@ class OrderPlatformValidator {
|
|
|
844
897
|
toDate: Joi.string().allow(""),
|
|
845
898
|
startDate: Joi.string().allow(""),
|
|
846
899
|
endDate: Joi.string().allow(""),
|
|
900
|
+
statusAssignedStartDate: Joi.string().allow(""),
|
|
901
|
+
statusAssignedEndDate: Joi.string().allow(""),
|
|
847
902
|
dpIds: Joi.string().allow(""),
|
|
848
903
|
stores: Joi.string().allow(""),
|
|
849
904
|
salesChannels: Joi.string().allow(""),
|
|
@@ -865,13 +920,18 @@ class OrderPlatformValidator {
|
|
|
865
920
|
tags: Joi.string().allow(""),
|
|
866
921
|
customerId: Joi.string().allow(""),
|
|
867
922
|
orderType: Joi.string().allow(""),
|
|
868
|
-
operationalStatus: Joi.string().allow(""),
|
|
869
|
-
financialStatus: Joi.string().allow(""),
|
|
870
|
-
logisticsStatus: Joi.string().allow(""),
|
|
871
|
-
parentViewSlug: Joi.string().allow(""),
|
|
872
|
-
childViewSlug: Joi.string().allow(""),
|
|
873
|
-
lockStatus: Joi.string().allow(""),
|
|
874
923
|
groupEntity: Joi.string().allow(""),
|
|
924
|
+
enforceDateFilter: Joi.boolean(),
|
|
925
|
+
fulfillmentType: Joi.string().allow(""),
|
|
926
|
+
}).required();
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/** @returns {GetStateManagerConfigParam} */
|
|
930
|
+
static getStateManagerConfig() {
|
|
931
|
+
return Joi.object({
|
|
932
|
+
appId: Joi.string().allow(""),
|
|
933
|
+
orderingChannel: Joi.string().allow(""),
|
|
934
|
+
entity: Joi.string().allow(""),
|
|
875
935
|
}).required();
|
|
876
936
|
}
|
|
877
937
|
|
|
@@ -887,13 +947,6 @@ class OrderPlatformValidator {
|
|
|
887
947
|
}).required();
|
|
888
948
|
}
|
|
889
949
|
|
|
890
|
-
/** @returns {GetUserViewsParam} */
|
|
891
|
-
static getUserViews() {
|
|
892
|
-
return Joi.object({
|
|
893
|
-
showIn: Joi.string().allow("").required(),
|
|
894
|
-
}).required();
|
|
895
|
-
}
|
|
896
|
-
|
|
897
950
|
/** @returns {GetfiltersParam} */
|
|
898
951
|
static getfilters() {
|
|
899
952
|
return Joi.object({
|
|
@@ -923,22 +976,6 @@ class OrderPlatformValidator {
|
|
|
923
976
|
}).required();
|
|
924
977
|
}
|
|
925
978
|
|
|
926
|
-
/** @returns {PostRefundConfigurationParam} */
|
|
927
|
-
static postRefundConfiguration() {
|
|
928
|
-
return Joi.object({
|
|
929
|
-
appId: Joi.string().allow("").required(),
|
|
930
|
-
body: OrderPlatformModel.RefundStateConfigurationManualSchema().required(),
|
|
931
|
-
}).required();
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
/** @returns {PostRefundStateConfigurationParam} */
|
|
935
|
-
static postRefundStateConfiguration() {
|
|
936
|
-
return Joi.object({
|
|
937
|
-
appId: Joi.string().allow("").required(),
|
|
938
|
-
body: OrderPlatformModel.PostRefundStateConfiguration().required(),
|
|
939
|
-
}).required();
|
|
940
|
-
}
|
|
941
|
-
|
|
942
979
|
/** @returns {PostShipmentHistoryParam} */
|
|
943
980
|
static postShipmentHistory() {
|
|
944
981
|
return Joi.object({
|
|
@@ -977,11 +1014,11 @@ class OrderPlatformValidator {
|
|
|
977
1014
|
}).required();
|
|
978
1015
|
}
|
|
979
1016
|
|
|
980
|
-
/** @returns {
|
|
981
|
-
static
|
|
1017
|
+
/** @returns {UpdateAddressParam} */
|
|
1018
|
+
static updateAddress() {
|
|
982
1019
|
return Joi.object({
|
|
983
|
-
|
|
984
|
-
body: OrderPlatformModel.
|
|
1020
|
+
shipmentId: Joi.string().allow("").required(),
|
|
1021
|
+
body: OrderPlatformModel.UpdateAddressRequestBody().required(),
|
|
985
1022
|
}).required();
|
|
986
1023
|
}
|
|
987
1024
|
|
|
@@ -992,10 +1029,10 @@ class OrderPlatformValidator {
|
|
|
992
1029
|
}).required();
|
|
993
1030
|
}
|
|
994
1031
|
|
|
995
|
-
/** @returns {
|
|
996
|
-
static
|
|
1032
|
+
/** @returns {UpdatePaymentInfoParam} */
|
|
1033
|
+
static updatePaymentInfo() {
|
|
997
1034
|
return Joi.object({
|
|
998
|
-
body: OrderPlatformModel.
|
|
1035
|
+
body: OrderPlatformModel.UpdateShipmentPaymentMode().required(),
|
|
999
1036
|
}).required();
|
|
1000
1037
|
}
|
|
1001
1038
|
|
|
@@ -1009,7 +1046,7 @@ class OrderPlatformValidator {
|
|
|
1009
1046
|
/** @returns {UpdateShipmentStatusParam} */
|
|
1010
1047
|
static updateShipmentStatus() {
|
|
1011
1048
|
return Joi.object({
|
|
1012
|
-
body: OrderPlatformModel.
|
|
1049
|
+
body: OrderPlatformModel.UpdateShipmentStatusRequestSchema().required(),
|
|
1013
1050
|
}).required();
|
|
1014
1051
|
}
|
|
1015
1052
|
|
|
@@ -1020,17 +1057,10 @@ class OrderPlatformValidator {
|
|
|
1020
1057
|
}).required();
|
|
1021
1058
|
}
|
|
1022
1059
|
|
|
1023
|
-
/** @returns {
|
|
1024
|
-
static
|
|
1025
|
-
return Joi.object({
|
|
1026
|
-
body: OrderPlatformModel.UserViewPosition().required(),
|
|
1027
|
-
}).required();
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
/** @returns {UpdateUserViewsParam} */
|
|
1031
|
-
static updateUserViews() {
|
|
1060
|
+
/** @returns {UploadConsentsParam} */
|
|
1061
|
+
static uploadConsents() {
|
|
1032
1062
|
return Joi.object({
|
|
1033
|
-
body: OrderPlatformModel.
|
|
1063
|
+
body: OrderPlatformModel.UploadManifestConsent().required(),
|
|
1034
1064
|
}).required();
|
|
1035
1065
|
}
|
|
1036
1066
|
|