@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,12 +1,595 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef ApefaceApiError
|
|
5
|
+
* @property {string} [message]
|
|
6
|
+
* @property {boolean} [success]
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @typedef AppliedFreeArticles
|
|
11
|
+
* @property {string} [article_id]
|
|
12
|
+
* @property {Object} [free_gift_item_details]
|
|
13
|
+
* @property {string} [parent_item_identifier]
|
|
14
|
+
* @property {number} [quantity]
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @typedef AppliedPromos
|
|
19
|
+
* @property {number} [amount]
|
|
20
|
+
* @property {AppliedFreeArticles[]} [applied_free_articles]
|
|
21
|
+
* @property {number} [article_quantity]
|
|
22
|
+
* @property {boolean} [mrp_promotion]
|
|
23
|
+
* @property {string} [promo_id]
|
|
24
|
+
* @property {string} [promotion_name]
|
|
25
|
+
* @property {string} [promotion_type]
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef BagReasonMeta
|
|
30
|
+
* @property {boolean} [show_text_area]
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @typedef BagReasons
|
|
35
|
+
* @property {string} [display_name]
|
|
36
|
+
* @property {number} [id]
|
|
37
|
+
* @property {BagReasonMeta} [meta]
|
|
38
|
+
* @property {string[]} [qc_type]
|
|
39
|
+
* @property {QuestionSet[]} [question_set]
|
|
40
|
+
* @property {BagReasons[]} [reasons]
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef Bags
|
|
45
|
+
* @property {AppliedPromos[]} [applied_promos]
|
|
46
|
+
* @property {boolean} [can_cancel]
|
|
47
|
+
* @property {boolean} [can_return]
|
|
48
|
+
* @property {string} [currency_code]
|
|
49
|
+
* @property {string} [currency_symbol]
|
|
50
|
+
* @property {CurrentStatus} [current_status]
|
|
51
|
+
* @property {string} [delivery_date]
|
|
52
|
+
* @property {FinancialBreakup[]} [financial_breakup]
|
|
53
|
+
* @property {number} [id]
|
|
54
|
+
* @property {Item} [item]
|
|
55
|
+
* @property {number} [line_number]
|
|
56
|
+
* @property {Object} [meta]
|
|
57
|
+
* @property {Object} [parent_promo_bags]
|
|
58
|
+
* @property {Prices} [prices]
|
|
59
|
+
* @property {number} [quantity]
|
|
60
|
+
* @property {string} [returnable_date]
|
|
61
|
+
* @property {string} [seller_identifier]
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @typedef BagsForReorder
|
|
66
|
+
* @property {BagsForReorderArticleAssignment} [article_assignment]
|
|
67
|
+
* @property {number} [item_id]
|
|
68
|
+
* @property {string} [item_size]
|
|
69
|
+
* @property {number} [quantity]
|
|
70
|
+
* @property {number} [seller_id]
|
|
71
|
+
* @property {number} [store_id]
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef BagsForReorderArticleAssignment
|
|
76
|
+
* @property {string} [level]
|
|
77
|
+
* @property {string} [strategy]
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @typedef BreakupValues
|
|
82
|
+
* @property {string} [currency_code]
|
|
83
|
+
* @property {string} [currency_symbol]
|
|
84
|
+
* @property {string} [display]
|
|
85
|
+
* @property {string} [name]
|
|
86
|
+
* @property {number} [value]
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @typedef CurrentStatus
|
|
91
|
+
* @property {string} [journey_type]
|
|
92
|
+
* @property {string} [name]
|
|
93
|
+
* @property {string} [status]
|
|
94
|
+
* @property {string} [updated_at]
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef CustomerDetailsResponse
|
|
99
|
+
* @property {string} [country]
|
|
100
|
+
* @property {string} [name]
|
|
101
|
+
* @property {string} [order_id]
|
|
102
|
+
* @property {string} [phone]
|
|
103
|
+
* @property {string} [shipment_id]
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef DataUpdates
|
|
108
|
+
* @property {EntitiesDataUpdates[]} [entities]
|
|
109
|
+
* @property {ProductsDataUpdates[]} [products]
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @typedef DeliveryAddress
|
|
114
|
+
* @property {string} [address]
|
|
115
|
+
* @property {string} [address_category]
|
|
116
|
+
* @property {string} [address_type]
|
|
117
|
+
* @property {string} [address1]
|
|
118
|
+
* @property {string} [address2]
|
|
119
|
+
* @property {string} [area]
|
|
120
|
+
* @property {string} [city]
|
|
121
|
+
* @property {string} [contact_person]
|
|
122
|
+
* @property {string} [country]
|
|
123
|
+
* @property {string} [country_iso_code]
|
|
124
|
+
* @property {string} [country_phone_code]
|
|
125
|
+
* @property {string} [created_at]
|
|
126
|
+
* @property {string} [email]
|
|
127
|
+
* @property {string} [landmark]
|
|
128
|
+
* @property {number} [latitude]
|
|
129
|
+
* @property {number} [longitude]
|
|
130
|
+
* @property {string} [name]
|
|
131
|
+
* @property {string} [phone]
|
|
132
|
+
* @property {string} [pincode]
|
|
133
|
+
* @property {string} [state]
|
|
134
|
+
* @property {string} [updated_at]
|
|
135
|
+
* @property {string} [version]
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @typedef EntitiesDataUpdates
|
|
140
|
+
* @property {Object} [data]
|
|
141
|
+
* @property {Object[]} [filters]
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @typedef EntitiesReasons
|
|
146
|
+
* @property {EntityReasonData} [data]
|
|
147
|
+
* @property {Object[]} [filters]
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @typedef EntityReasonData
|
|
152
|
+
* @property {number} [reason_id]
|
|
153
|
+
* @property {string} [reason_text]
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @typedef ErrorResponse
|
|
158
|
+
* @property {string} [code]
|
|
159
|
+
* @property {string} [exception]
|
|
160
|
+
* @property {string} [message]
|
|
161
|
+
* @property {string} [stack_trace]
|
|
162
|
+
* @property {number} [status]
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @typedef FinancialBreakup
|
|
167
|
+
* @property {boolean} [added_to_fynd_cash]
|
|
168
|
+
* @property {number} [amount_paid]
|
|
169
|
+
* @property {number} [amount_paid_roundoff]
|
|
170
|
+
* @property {number} [brand_calculated_amount]
|
|
171
|
+
* @property {number} [cashback]
|
|
172
|
+
* @property {number} [cashback_applied]
|
|
173
|
+
* @property {number} [cod_charges]
|
|
174
|
+
* @property {number} [coupon_effective_discount]
|
|
175
|
+
* @property {number} [coupon_value]
|
|
176
|
+
* @property {number} [delivery_charge]
|
|
177
|
+
* @property {number} [discount]
|
|
178
|
+
* @property {number} [fynd_credits]
|
|
179
|
+
* @property {number} [gst_fee]
|
|
180
|
+
* @property {string} [gst_tag]
|
|
181
|
+
* @property {number} [gst_tax_percentage]
|
|
182
|
+
* @property {string} [hsn_code]
|
|
183
|
+
* @property {Identifiers} [identifiers]
|
|
184
|
+
* @property {string} [item_name]
|
|
185
|
+
* @property {number} [price_effective]
|
|
186
|
+
* @property {number} [price_marked]
|
|
187
|
+
* @property {number} [promotion_effective_discount]
|
|
188
|
+
* @property {number} [refund_amount]
|
|
189
|
+
* @property {number} [refund_credit]
|
|
190
|
+
* @property {string} [size]
|
|
191
|
+
* @property {number} [total_units]
|
|
192
|
+
* @property {number} [transfer_price]
|
|
193
|
+
* @property {number} [value_of_good]
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @typedef FulfillingCompany
|
|
198
|
+
* @property {number} [id]
|
|
199
|
+
* @property {string} [name]
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @typedef FulfillingStore
|
|
204
|
+
* @property {string} [code]
|
|
205
|
+
* @property {number} [company_id]
|
|
206
|
+
* @property {string} [company_name]
|
|
207
|
+
* @property {number} [id]
|
|
208
|
+
* @property {string} [name]
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @typedef Identifiers
|
|
213
|
+
* @property {string} [ean]
|
|
214
|
+
* @property {string} [sku_code]
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @typedef Invoice
|
|
219
|
+
* @property {string} [invoice_url]
|
|
220
|
+
* @property {string} [label_url]
|
|
221
|
+
* @property {string} [updated_date]
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @typedef Item
|
|
226
|
+
* @property {ItemBrand} [brand]
|
|
227
|
+
* @property {string} [code]
|
|
228
|
+
* @property {number} [id]
|
|
229
|
+
* @property {string[]} [image]
|
|
230
|
+
* @property {string[]} [l1_categories]
|
|
231
|
+
* @property {string[]} [l2_categories]
|
|
232
|
+
* @property {string} [l3_category_name]
|
|
233
|
+
* @property {string} [name]
|
|
234
|
+
* @property {string} [seller_identifier]
|
|
235
|
+
* @property {string} [size]
|
|
236
|
+
* @property {string} [slug_key]
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @typedef ItemBrand
|
|
241
|
+
* @property {string} [logo]
|
|
242
|
+
* @property {string} [name]
|
|
243
|
+
*/
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @typedef NestedTrackingDetails
|
|
247
|
+
* @property {boolean} [is_current]
|
|
248
|
+
* @property {boolean} [is_passed]
|
|
249
|
+
* @property {string} [status]
|
|
250
|
+
* @property {string} [time]
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @typedef OrderById
|
|
255
|
+
* @property {OrderSchema} [order]
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @typedef OrderFilters
|
|
260
|
+
* @property {OrderStatuses[]} [statuses]
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @typedef OrderList
|
|
265
|
+
* @property {OrderFilters} [filters]
|
|
266
|
+
* @property {OrderSchema[]} [items]
|
|
267
|
+
* @property {OrderPage} [page]
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @typedef OrderPage
|
|
272
|
+
* @property {number} [current]
|
|
273
|
+
* @property {boolean} [has_next]
|
|
274
|
+
* @property {number} [item_total]
|
|
275
|
+
* @property {number} [size]
|
|
276
|
+
* @property {string} [type]
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @typedef OrderSchema
|
|
281
|
+
* @property {BagsForReorder[]} [bags_for_reorder]
|
|
282
|
+
* @property {BreakupValues[]} [breakup_values]
|
|
283
|
+
* @property {string} [order_created_time]
|
|
284
|
+
* @property {string} [order_id]
|
|
285
|
+
* @property {Shipments[]} [shipments]
|
|
286
|
+
* @property {number} [total_shipments_in_order]
|
|
287
|
+
* @property {UserInfo} [user_info]
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @typedef OrderStatuses
|
|
292
|
+
* @property {string} [display]
|
|
293
|
+
* @property {boolean} [is_selected]
|
|
294
|
+
* @property {number} [value]
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @typedef Prices
|
|
299
|
+
* @property {boolean} [added_to_fynd_cash]
|
|
300
|
+
* @property {number} [amount_paid]
|
|
301
|
+
* @property {number} [amount_paid_roundoff]
|
|
302
|
+
* @property {number} [brand_calculated_amount]
|
|
303
|
+
* @property {number} [cashback]
|
|
304
|
+
* @property {number} [cashback_applied]
|
|
305
|
+
* @property {number} [cod_charges]
|
|
306
|
+
* @property {number} [coupon_effective_discount]
|
|
307
|
+
* @property {number} [coupon_value]
|
|
308
|
+
* @property {string} [currency_code]
|
|
309
|
+
* @property {string} [currency_symbol]
|
|
310
|
+
* @property {number} [delivery_charge]
|
|
311
|
+
* @property {number} [discount]
|
|
312
|
+
* @property {number} [fynd_credits]
|
|
313
|
+
* @property {number} [gst_tax_percentage]
|
|
314
|
+
* @property {number} [price_effective]
|
|
315
|
+
* @property {number} [price_marked]
|
|
316
|
+
* @property {number} [promotion_effective_discount]
|
|
317
|
+
* @property {number} [refund_amount]
|
|
318
|
+
* @property {number} [refund_credit]
|
|
319
|
+
* @property {number} [transfer_price]
|
|
320
|
+
* @property {number} [value_of_good]
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @typedef Products
|
|
325
|
+
* @property {string} [identifier]
|
|
326
|
+
* @property {number} [line_number]
|
|
327
|
+
* @property {number} [quantity]
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @typedef ProductsDataUpdates
|
|
332
|
+
* @property {Object} [data]
|
|
333
|
+
* @property {ProductsDataUpdatesFilters[]} [filters]
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @typedef ProductsDataUpdatesFilters
|
|
338
|
+
* @property {string} [identifier]
|
|
339
|
+
* @property {number} [line_number]
|
|
340
|
+
*/
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @typedef ProductsReasons
|
|
344
|
+
* @property {ProductsReasonsData} [data]
|
|
345
|
+
* @property {ProductsReasonsFilters[]} [filters]
|
|
346
|
+
*/
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @typedef ProductsReasonsData
|
|
350
|
+
* @property {number} [reason_id]
|
|
351
|
+
* @property {string} [reason_text]
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @typedef ProductsReasonsFilters
|
|
356
|
+
* @property {string} [identifier]
|
|
357
|
+
* @property {number} [line_number]
|
|
358
|
+
* @property {number} [quantity]
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @typedef Promise
|
|
363
|
+
* @property {boolean} [show_promise]
|
|
364
|
+
* @property {TimeStampData} [timestamp]
|
|
365
|
+
*/
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @typedef QuestionSet
|
|
369
|
+
* @property {string} [display_name]
|
|
370
|
+
* @property {number} [id]
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @typedef ReasonsData
|
|
375
|
+
* @property {EntitiesReasons[]} [entities]
|
|
376
|
+
* @property {ProductsReasons[]} [products]
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @typedef ResponseGetInvoiceShipment
|
|
381
|
+
* @property {string} presigned_type
|
|
382
|
+
* @property {string} presigned_url
|
|
383
|
+
* @property {string} shipment_id
|
|
384
|
+
* @property {boolean} success
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @typedef SendOtpToCustomerResponse
|
|
389
|
+
* @property {string} [message]
|
|
390
|
+
* @property {string} [request_id]
|
|
391
|
+
* @property {number} [resend_timer]
|
|
392
|
+
* @property {boolean} [success]
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @typedef ShipmentApplicationStatusResponse
|
|
397
|
+
* @property {StatusesBodyResponse[]} [statuses]
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @typedef ShipmentBagReasons
|
|
402
|
+
* @property {BagReasons[]} [reasons]
|
|
403
|
+
* @property {boolean} [success]
|
|
404
|
+
*/
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @typedef ShipmentById
|
|
408
|
+
* @property {Shipments} [shipment]
|
|
409
|
+
*/
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @typedef ShipmentPayment
|
|
413
|
+
* @property {string} [display_name]
|
|
414
|
+
* @property {string} [logo]
|
|
415
|
+
* @property {string} [mode]
|
|
416
|
+
* @property {string} [mop]
|
|
417
|
+
* @property {string} [payment_mode]
|
|
418
|
+
* @property {string} [status]
|
|
419
|
+
*/
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* @typedef ShipmentReason
|
|
423
|
+
* @property {string} [feedback_type]
|
|
424
|
+
* @property {string} [flow]
|
|
425
|
+
* @property {number} [priority]
|
|
426
|
+
* @property {number} [reason_id]
|
|
427
|
+
* @property {string} [reason_text]
|
|
428
|
+
* @property {boolean} [show_text_area]
|
|
429
|
+
*/
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @typedef ShipmentReasons
|
|
433
|
+
* @property {ShipmentReason[]} [reasons]
|
|
434
|
+
*/
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @typedef Shipments
|
|
438
|
+
* @property {string} [awb_no]
|
|
439
|
+
* @property {Bags[]} [bags]
|
|
440
|
+
* @property {boolean} [beneficiary_details]
|
|
441
|
+
* @property {BreakupValues[]} [breakup_values]
|
|
442
|
+
* @property {Object} [can_break]
|
|
443
|
+
* @property {boolean} [can_cancel]
|
|
444
|
+
* @property {boolean} [can_return]
|
|
445
|
+
* @property {string} [comment]
|
|
446
|
+
* @property {Object[]} [custom_meta]
|
|
447
|
+
* @property {DeliveryAddress} [delivery_address]
|
|
448
|
+
* @property {string} [delivery_date]
|
|
449
|
+
* @property {string} [dp_name]
|
|
450
|
+
* @property {FulfillingCompany} [fulfilling_company]
|
|
451
|
+
* @property {FulfillingStore} [fulfilling_store]
|
|
452
|
+
* @property {Invoice} [invoice]
|
|
453
|
+
* @property {string} [need_help_url]
|
|
454
|
+
* @property {string} [order_id]
|
|
455
|
+
* @property {string} [order_type]
|
|
456
|
+
* @property {ShipmentPayment} [payment]
|
|
457
|
+
* @property {Prices} [prices]
|
|
458
|
+
* @property {Promise} [promise]
|
|
459
|
+
* @property {Object} [refund_details]
|
|
460
|
+
* @property {Object} [return_meta]
|
|
461
|
+
* @property {string} [returnable_date]
|
|
462
|
+
* @property {string} [shipment_created_at]
|
|
463
|
+
* @property {string} [shipment_id]
|
|
464
|
+
* @property {ShipmentStatus} [shipment_status]
|
|
465
|
+
* @property {boolean} [show_download_invoice]
|
|
466
|
+
* @property {boolean} [show_track_link]
|
|
467
|
+
* @property {Object} [size_info]
|
|
468
|
+
* @property {number} [total_bags]
|
|
469
|
+
* @property {ShipmentTotalDetails} [total_details]
|
|
470
|
+
* @property {string} [track_url]
|
|
471
|
+
* @property {TrackingDetails[]} [tracking_details]
|
|
472
|
+
* @property {string} [traking_no]
|
|
473
|
+
* @property {ShipmentUserInfo} [user_info]
|
|
474
|
+
*/
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* @typedef ShipmentsRequest
|
|
478
|
+
* @property {DataUpdates} [data_updates]
|
|
479
|
+
* @property {string} identifier
|
|
480
|
+
* @property {Products[]} [products]
|
|
481
|
+
* @property {ReasonsData} [reasons]
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @typedef ShipmentStatus
|
|
486
|
+
* @property {string} [hex_code]
|
|
487
|
+
* @property {string} [title]
|
|
488
|
+
* @property {string} [value]
|
|
489
|
+
*/
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @typedef ShipmentTotalDetails
|
|
493
|
+
* @property {number} [pieces]
|
|
494
|
+
* @property {number} [sizes]
|
|
495
|
+
* @property {number} [total_price]
|
|
496
|
+
*/
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* @typedef ShipmentTrack
|
|
500
|
+
* @property {Track[]} [results]
|
|
501
|
+
*/
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* @typedef ShipmentUserInfo
|
|
505
|
+
* @property {string} [email]
|
|
506
|
+
* @property {string} [first_name]
|
|
507
|
+
* @property {string} [gender]
|
|
508
|
+
* @property {string} [last_name]
|
|
509
|
+
* @property {string} [mobile]
|
|
510
|
+
* @property {string} [name]
|
|
511
|
+
*/
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @typedef StatuesRequest
|
|
515
|
+
* @property {string} [exclude_bags_next_state]
|
|
516
|
+
* @property {ShipmentsRequest[]} [shipments]
|
|
517
|
+
* @property {string} [status]
|
|
518
|
+
*/
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* @typedef StatusesBodyResponse
|
|
522
|
+
* @property {Object[]} [shipments]
|
|
523
|
+
*/
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @typedef TimeStampData
|
|
527
|
+
* @property {string} [max]
|
|
528
|
+
* @property {string} [min]
|
|
529
|
+
*/
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @typedef Track
|
|
533
|
+
* @property {string} [account_name]
|
|
534
|
+
* @property {string} [awb]
|
|
535
|
+
* @property {string} [last_location_recieved_at]
|
|
536
|
+
* @property {string} [reason]
|
|
537
|
+
* @property {string} [shipment_type]
|
|
538
|
+
* @property {string} [status]
|
|
539
|
+
* @property {string} [updated_at]
|
|
540
|
+
* @property {string} [updated_time]
|
|
541
|
+
*/
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* @typedef TrackingDetails
|
|
545
|
+
* @property {boolean} [is_current]
|
|
546
|
+
* @property {boolean} [is_passed]
|
|
547
|
+
* @property {string} [status]
|
|
548
|
+
* @property {string} [time]
|
|
549
|
+
* @property {NestedTrackingDetails[]} [tracking_details]
|
|
550
|
+
* @property {string} [value]
|
|
551
|
+
*/
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @typedef UpdateShipmentStatusRequest
|
|
555
|
+
* @property {boolean} [force_transition]
|
|
556
|
+
* @property {boolean} [lock_after_transition]
|
|
557
|
+
* @property {StatuesRequest[]} [statuses]
|
|
558
|
+
* @property {boolean} [task]
|
|
559
|
+
* @property {boolean} [unlock_before_transition]
|
|
560
|
+
*/
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* @typedef UserInfo
|
|
564
|
+
* @property {string} [email]
|
|
565
|
+
* @property {string} [first_name]
|
|
566
|
+
* @property {string} [gender]
|
|
567
|
+
* @property {string} [last_name]
|
|
568
|
+
* @property {string} [mobile]
|
|
569
|
+
* @property {string} [name]
|
|
570
|
+
*/
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* @typedef VerifyOtp
|
|
574
|
+
* @property {string} [otp_code]
|
|
575
|
+
* @property {string} [request_id]
|
|
576
|
+
*/
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @typedef VerifyOtpResponse
|
|
580
|
+
* @property {boolean} [success]
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
class OrderApplicationModel {
|
|
584
|
+
/** @returns {ApefaceApiError} */
|
|
4
585
|
static ApefaceApiError() {
|
|
5
586
|
return Joi.object({
|
|
6
587
|
message: Joi.string().allow(""),
|
|
7
588
|
success: Joi.boolean(),
|
|
8
589
|
});
|
|
9
590
|
}
|
|
591
|
+
|
|
592
|
+
/** @returns {AppliedFreeArticles} */
|
|
10
593
|
static AppliedFreeArticles() {
|
|
11
594
|
return Joi.object({
|
|
12
595
|
article_id: Joi.string().allow(""),
|
|
@@ -15,11 +598,13 @@ class OrderModel {
|
|
|
15
598
|
quantity: Joi.number(),
|
|
16
599
|
});
|
|
17
600
|
}
|
|
601
|
+
|
|
602
|
+
/** @returns {AppliedPromos} */
|
|
18
603
|
static AppliedPromos() {
|
|
19
604
|
return Joi.object({
|
|
20
605
|
amount: Joi.number(),
|
|
21
606
|
applied_free_articles: Joi.array().items(
|
|
22
|
-
|
|
607
|
+
OrderApplicationModel.AppliedFreeArticles()
|
|
23
608
|
),
|
|
24
609
|
article_quantity: Joi.number(),
|
|
25
610
|
mrp_promotion: Joi.boolean(),
|
|
@@ -28,45 +613,55 @@ class OrderModel {
|
|
|
28
613
|
promotion_type: Joi.string().allow(""),
|
|
29
614
|
});
|
|
30
615
|
}
|
|
616
|
+
|
|
617
|
+
/** @returns {BagReasonMeta} */
|
|
31
618
|
static BagReasonMeta() {
|
|
32
619
|
return Joi.object({
|
|
33
620
|
show_text_area: Joi.boolean(),
|
|
34
621
|
});
|
|
35
622
|
}
|
|
623
|
+
|
|
624
|
+
/** @returns {BagReasons} */
|
|
36
625
|
static BagReasons() {
|
|
37
626
|
return Joi.object({
|
|
38
627
|
display_name: Joi.string().allow(""),
|
|
39
628
|
id: Joi.number(),
|
|
40
|
-
meta:
|
|
629
|
+
meta: OrderApplicationModel.BagReasonMeta(),
|
|
41
630
|
qc_type: Joi.array().items(Joi.string().allow("")),
|
|
42
|
-
question_set: Joi.array().items(
|
|
631
|
+
question_set: Joi.array().items(OrderApplicationModel.QuestionSet()),
|
|
43
632
|
reasons: Joi.array().items(Joi.link("#BagReasons")),
|
|
44
633
|
}).id("BagReasons");
|
|
45
634
|
}
|
|
635
|
+
|
|
636
|
+
/** @returns {Bags} */
|
|
46
637
|
static Bags() {
|
|
47
638
|
return Joi.object({
|
|
48
|
-
applied_promos: Joi.array().items(
|
|
639
|
+
applied_promos: Joi.array().items(OrderApplicationModel.AppliedPromos()),
|
|
49
640
|
can_cancel: Joi.boolean(),
|
|
50
641
|
can_return: Joi.boolean(),
|
|
51
642
|
currency_code: Joi.string().allow(""),
|
|
52
643
|
currency_symbol: Joi.string().allow(""),
|
|
53
|
-
current_status:
|
|
644
|
+
current_status: OrderApplicationModel.CurrentStatus(),
|
|
54
645
|
delivery_date: Joi.string().allow("").allow(null),
|
|
55
|
-
financial_breakup: Joi.array().items(
|
|
646
|
+
financial_breakup: Joi.array().items(
|
|
647
|
+
OrderApplicationModel.FinancialBreakup()
|
|
648
|
+
),
|
|
56
649
|
id: Joi.number(),
|
|
57
|
-
item:
|
|
650
|
+
item: OrderApplicationModel.Item(),
|
|
58
651
|
line_number: Joi.number(),
|
|
59
652
|
meta: Joi.any(),
|
|
60
653
|
parent_promo_bags: Joi.any(),
|
|
61
|
-
prices:
|
|
654
|
+
prices: OrderApplicationModel.Prices(),
|
|
62
655
|
quantity: Joi.number(),
|
|
63
656
|
returnable_date: Joi.string().allow("").allow(null),
|
|
64
657
|
seller_identifier: Joi.string().allow(""),
|
|
65
658
|
});
|
|
66
659
|
}
|
|
660
|
+
|
|
661
|
+
/** @returns {BagsForReorder} */
|
|
67
662
|
static BagsForReorder() {
|
|
68
663
|
return Joi.object({
|
|
69
|
-
article_assignment:
|
|
664
|
+
article_assignment: OrderApplicationModel.BagsForReorderArticleAssignment(),
|
|
70
665
|
item_id: Joi.number(),
|
|
71
666
|
item_size: Joi.string().allow(""),
|
|
72
667
|
quantity: Joi.number(),
|
|
@@ -74,12 +669,16 @@ class OrderModel {
|
|
|
74
669
|
store_id: Joi.number(),
|
|
75
670
|
});
|
|
76
671
|
}
|
|
672
|
+
|
|
673
|
+
/** @returns {BagsForReorderArticleAssignment} */
|
|
77
674
|
static BagsForReorderArticleAssignment() {
|
|
78
675
|
return Joi.object({
|
|
79
676
|
level: Joi.string().allow(""),
|
|
80
677
|
strategy: Joi.string().allow(""),
|
|
81
678
|
});
|
|
82
679
|
}
|
|
680
|
+
|
|
681
|
+
/** @returns {BreakupValues} */
|
|
83
682
|
static BreakupValues() {
|
|
84
683
|
return Joi.object({
|
|
85
684
|
currency_code: Joi.string().allow(""),
|
|
@@ -89,6 +688,8 @@ class OrderModel {
|
|
|
89
688
|
value: Joi.number(),
|
|
90
689
|
});
|
|
91
690
|
}
|
|
691
|
+
|
|
692
|
+
/** @returns {CurrentStatus} */
|
|
92
693
|
static CurrentStatus() {
|
|
93
694
|
return Joi.object({
|
|
94
695
|
journey_type: Joi.string().allow("").allow(null),
|
|
@@ -97,6 +698,8 @@ class OrderModel {
|
|
|
97
698
|
updated_at: Joi.string().allow(""),
|
|
98
699
|
});
|
|
99
700
|
}
|
|
701
|
+
|
|
702
|
+
/** @returns {CustomerDetailsResponse} */
|
|
100
703
|
static CustomerDetailsResponse() {
|
|
101
704
|
return Joi.object({
|
|
102
705
|
country: Joi.string().allow(""),
|
|
@@ -106,19 +709,23 @@ class OrderModel {
|
|
|
106
709
|
shipment_id: Joi.string().allow(""),
|
|
107
710
|
});
|
|
108
711
|
}
|
|
712
|
+
|
|
713
|
+
/** @returns {DataUpdates} */
|
|
109
714
|
static DataUpdates() {
|
|
110
715
|
return Joi.object({
|
|
111
|
-
entities: Joi.array().items(
|
|
112
|
-
products: Joi.array().items(
|
|
716
|
+
entities: Joi.array().items(OrderApplicationModel.EntitiesDataUpdates()),
|
|
717
|
+
products: Joi.array().items(OrderApplicationModel.ProductsDataUpdates()),
|
|
113
718
|
});
|
|
114
719
|
}
|
|
720
|
+
|
|
721
|
+
/** @returns {DeliveryAddress} */
|
|
115
722
|
static DeliveryAddress() {
|
|
116
723
|
return Joi.object({
|
|
117
724
|
address: Joi.string().allow(""),
|
|
118
|
-
address1: Joi.string().allow(""),
|
|
119
|
-
address2: Joi.string().allow(""),
|
|
120
725
|
address_category: Joi.string().allow(""),
|
|
121
726
|
address_type: Joi.string().allow(""),
|
|
727
|
+
address1: Joi.string().allow(""),
|
|
728
|
+
address2: Joi.string().allow(""),
|
|
122
729
|
area: Joi.string().allow(""),
|
|
123
730
|
city: Joi.string().allow(""),
|
|
124
731
|
contact_person: Joi.string().allow(""),
|
|
@@ -138,24 +745,32 @@ class OrderModel {
|
|
|
138
745
|
version: Joi.string().allow(""),
|
|
139
746
|
});
|
|
140
747
|
}
|
|
748
|
+
|
|
749
|
+
/** @returns {EntitiesDataUpdates} */
|
|
141
750
|
static EntitiesDataUpdates() {
|
|
142
751
|
return Joi.object({
|
|
143
752
|
data: Joi.any(),
|
|
144
753
|
filters: Joi.array().items(Joi.any()),
|
|
145
754
|
});
|
|
146
755
|
}
|
|
756
|
+
|
|
757
|
+
/** @returns {EntitiesReasons} */
|
|
147
758
|
static EntitiesReasons() {
|
|
148
759
|
return Joi.object({
|
|
149
|
-
data:
|
|
760
|
+
data: OrderApplicationModel.EntityReasonData(),
|
|
150
761
|
filters: Joi.array().items(Joi.any()),
|
|
151
762
|
});
|
|
152
763
|
}
|
|
764
|
+
|
|
765
|
+
/** @returns {EntityReasonData} */
|
|
153
766
|
static EntityReasonData() {
|
|
154
767
|
return Joi.object({
|
|
155
768
|
reason_id: Joi.number(),
|
|
156
769
|
reason_text: Joi.string().allow(""),
|
|
157
770
|
});
|
|
158
771
|
}
|
|
772
|
+
|
|
773
|
+
/** @returns {ErrorResponse} */
|
|
159
774
|
static ErrorResponse() {
|
|
160
775
|
return Joi.object({
|
|
161
776
|
code: Joi.string().allow("").allow(null),
|
|
@@ -165,6 +780,8 @@ class OrderModel {
|
|
|
165
780
|
status: Joi.number(),
|
|
166
781
|
});
|
|
167
782
|
}
|
|
783
|
+
|
|
784
|
+
/** @returns {FinancialBreakup} */
|
|
168
785
|
static FinancialBreakup() {
|
|
169
786
|
return Joi.object({
|
|
170
787
|
added_to_fynd_cash: Joi.boolean(),
|
|
@@ -183,7 +800,7 @@ class OrderModel {
|
|
|
183
800
|
gst_tag: Joi.string().allow(""),
|
|
184
801
|
gst_tax_percentage: Joi.number(),
|
|
185
802
|
hsn_code: Joi.string().allow(""),
|
|
186
|
-
identifiers:
|
|
803
|
+
identifiers: OrderApplicationModel.Identifiers(),
|
|
187
804
|
item_name: Joi.string().allow(""),
|
|
188
805
|
price_effective: Joi.number(),
|
|
189
806
|
price_marked: Joi.number(),
|
|
@@ -196,12 +813,16 @@ class OrderModel {
|
|
|
196
813
|
value_of_good: Joi.number(),
|
|
197
814
|
});
|
|
198
815
|
}
|
|
816
|
+
|
|
817
|
+
/** @returns {FulfillingCompany} */
|
|
199
818
|
static FulfillingCompany() {
|
|
200
819
|
return Joi.object({
|
|
201
820
|
id: Joi.number(),
|
|
202
821
|
name: Joi.string().allow(""),
|
|
203
822
|
});
|
|
204
823
|
}
|
|
824
|
+
|
|
825
|
+
/** @returns {FulfillingStore} */
|
|
205
826
|
static FulfillingStore() {
|
|
206
827
|
return Joi.object({
|
|
207
828
|
code: Joi.string().allow(""),
|
|
@@ -211,12 +832,16 @@ class OrderModel {
|
|
|
211
832
|
name: Joi.string().allow(""),
|
|
212
833
|
});
|
|
213
834
|
}
|
|
835
|
+
|
|
836
|
+
/** @returns {Identifiers} */
|
|
214
837
|
static Identifiers() {
|
|
215
838
|
return Joi.object({
|
|
216
839
|
ean: Joi.string().allow(""),
|
|
217
840
|
sku_code: Joi.string().allow(""),
|
|
218
841
|
});
|
|
219
842
|
}
|
|
843
|
+
|
|
844
|
+
/** @returns {Invoice} */
|
|
220
845
|
static Invoice() {
|
|
221
846
|
return Joi.object({
|
|
222
847
|
invoice_url: Joi.string().allow(""),
|
|
@@ -224,9 +849,11 @@ class OrderModel {
|
|
|
224
849
|
updated_date: Joi.string().allow(""),
|
|
225
850
|
});
|
|
226
851
|
}
|
|
852
|
+
|
|
853
|
+
/** @returns {Item} */
|
|
227
854
|
static Item() {
|
|
228
855
|
return Joi.object({
|
|
229
|
-
brand:
|
|
856
|
+
brand: OrderApplicationModel.ItemBrand(),
|
|
230
857
|
code: Joi.string().allow(""),
|
|
231
858
|
id: Joi.number(),
|
|
232
859
|
image: Joi.array().items(Joi.string().allow("")),
|
|
@@ -239,12 +866,16 @@ class OrderModel {
|
|
|
239
866
|
slug_key: Joi.string().allow(""),
|
|
240
867
|
});
|
|
241
868
|
}
|
|
869
|
+
|
|
870
|
+
/** @returns {ItemBrand} */
|
|
242
871
|
static ItemBrand() {
|
|
243
872
|
return Joi.object({
|
|
244
873
|
logo: Joi.string().allow(""),
|
|
245
874
|
name: Joi.string().allow(""),
|
|
246
875
|
});
|
|
247
876
|
}
|
|
877
|
+
|
|
878
|
+
/** @returns {NestedTrackingDetails} */
|
|
248
879
|
static NestedTrackingDetails() {
|
|
249
880
|
return Joi.object({
|
|
250
881
|
is_current: Joi.boolean(),
|
|
@@ -253,23 +884,31 @@ class OrderModel {
|
|
|
253
884
|
time: Joi.string().allow(""),
|
|
254
885
|
});
|
|
255
886
|
}
|
|
887
|
+
|
|
888
|
+
/** @returns {OrderById} */
|
|
256
889
|
static OrderById() {
|
|
257
890
|
return Joi.object({
|
|
258
|
-
order:
|
|
891
|
+
order: OrderApplicationModel.OrderSchema(),
|
|
259
892
|
});
|
|
260
893
|
}
|
|
894
|
+
|
|
895
|
+
/** @returns {OrderFilters} */
|
|
261
896
|
static OrderFilters() {
|
|
262
897
|
return Joi.object({
|
|
263
|
-
statuses: Joi.array().items(
|
|
898
|
+
statuses: Joi.array().items(OrderApplicationModel.OrderStatuses()),
|
|
264
899
|
});
|
|
265
900
|
}
|
|
901
|
+
|
|
902
|
+
/** @returns {OrderList} */
|
|
266
903
|
static OrderList() {
|
|
267
904
|
return Joi.object({
|
|
268
|
-
filters:
|
|
269
|
-
items: Joi.array().items(
|
|
270
|
-
page:
|
|
905
|
+
filters: OrderApplicationModel.OrderFilters(),
|
|
906
|
+
items: Joi.array().items(OrderApplicationModel.OrderSchema()),
|
|
907
|
+
page: OrderApplicationModel.OrderPage(),
|
|
271
908
|
});
|
|
272
909
|
}
|
|
910
|
+
|
|
911
|
+
/** @returns {OrderPage} */
|
|
273
912
|
static OrderPage() {
|
|
274
913
|
return Joi.object({
|
|
275
914
|
current: Joi.number(),
|
|
@@ -279,17 +918,23 @@ class OrderModel {
|
|
|
279
918
|
type: Joi.string().allow(""),
|
|
280
919
|
});
|
|
281
920
|
}
|
|
921
|
+
|
|
922
|
+
/** @returns {OrderSchema} */
|
|
282
923
|
static OrderSchema() {
|
|
283
924
|
return Joi.object({
|
|
284
|
-
bags_for_reorder: Joi.array().items(
|
|
285
|
-
|
|
925
|
+
bags_for_reorder: Joi.array().items(
|
|
926
|
+
OrderApplicationModel.BagsForReorder()
|
|
927
|
+
),
|
|
928
|
+
breakup_values: Joi.array().items(OrderApplicationModel.BreakupValues()),
|
|
286
929
|
order_created_time: Joi.string().allow(""),
|
|
287
930
|
order_id: Joi.string().allow(""),
|
|
288
|
-
shipments: Joi.array().items(
|
|
931
|
+
shipments: Joi.array().items(OrderApplicationModel.Shipments()),
|
|
289
932
|
total_shipments_in_order: Joi.number(),
|
|
290
|
-
user_info:
|
|
933
|
+
user_info: OrderApplicationModel.UserInfo(),
|
|
291
934
|
});
|
|
292
935
|
}
|
|
936
|
+
|
|
937
|
+
/** @returns {OrderStatuses} */
|
|
293
938
|
static OrderStatuses() {
|
|
294
939
|
return Joi.object({
|
|
295
940
|
display: Joi.string().allow(""),
|
|
@@ -297,6 +942,8 @@ class OrderModel {
|
|
|
297
942
|
value: Joi.number(),
|
|
298
943
|
});
|
|
299
944
|
}
|
|
945
|
+
|
|
946
|
+
/** @returns {Prices} */
|
|
300
947
|
static Prices() {
|
|
301
948
|
return Joi.object({
|
|
302
949
|
added_to_fynd_cash: Joi.boolean(),
|
|
@@ -323,6 +970,8 @@ class OrderModel {
|
|
|
323
970
|
value_of_good: Joi.number(),
|
|
324
971
|
});
|
|
325
972
|
}
|
|
973
|
+
|
|
974
|
+
/** @returns {Products} */
|
|
326
975
|
static Products() {
|
|
327
976
|
return Joi.object({
|
|
328
977
|
identifier: Joi.string().allow(""),
|
|
@@ -330,30 +979,44 @@ class OrderModel {
|
|
|
330
979
|
quantity: Joi.number(),
|
|
331
980
|
});
|
|
332
981
|
}
|
|
982
|
+
|
|
983
|
+
/** @returns {ProductsDataUpdates} */
|
|
333
984
|
static ProductsDataUpdates() {
|
|
334
985
|
return Joi.object({
|
|
335
986
|
data: Joi.any(),
|
|
336
|
-
filters: Joi.array().items(
|
|
987
|
+
filters: Joi.array().items(
|
|
988
|
+
OrderApplicationModel.ProductsDataUpdatesFilters()
|
|
989
|
+
),
|
|
337
990
|
});
|
|
338
991
|
}
|
|
992
|
+
|
|
993
|
+
/** @returns {ProductsDataUpdatesFilters} */
|
|
339
994
|
static ProductsDataUpdatesFilters() {
|
|
340
995
|
return Joi.object({
|
|
341
996
|
identifier: Joi.string().allow(""),
|
|
342
997
|
line_number: Joi.number(),
|
|
343
998
|
});
|
|
344
999
|
}
|
|
1000
|
+
|
|
1001
|
+
/** @returns {ProductsReasons} */
|
|
345
1002
|
static ProductsReasons() {
|
|
346
1003
|
return Joi.object({
|
|
347
|
-
data:
|
|
348
|
-
filters: Joi.array().items(
|
|
1004
|
+
data: OrderApplicationModel.ProductsReasonsData(),
|
|
1005
|
+
filters: Joi.array().items(
|
|
1006
|
+
OrderApplicationModel.ProductsReasonsFilters()
|
|
1007
|
+
),
|
|
349
1008
|
});
|
|
350
1009
|
}
|
|
1010
|
+
|
|
1011
|
+
/** @returns {ProductsReasonsData} */
|
|
351
1012
|
static ProductsReasonsData() {
|
|
352
1013
|
return Joi.object({
|
|
353
1014
|
reason_id: Joi.number(),
|
|
354
1015
|
reason_text: Joi.string().allow(""),
|
|
355
1016
|
});
|
|
356
1017
|
}
|
|
1018
|
+
|
|
1019
|
+
/** @returns {ProductsReasonsFilters} */
|
|
357
1020
|
static ProductsReasonsFilters() {
|
|
358
1021
|
return Joi.object({
|
|
359
1022
|
identifier: Joi.string().allow(""),
|
|
@@ -361,24 +1024,32 @@ class OrderModel {
|
|
|
361
1024
|
quantity: Joi.number(),
|
|
362
1025
|
});
|
|
363
1026
|
}
|
|
1027
|
+
|
|
1028
|
+
/** @returns {Promise} */
|
|
364
1029
|
static Promise() {
|
|
365
1030
|
return Joi.object({
|
|
366
1031
|
show_promise: Joi.boolean(),
|
|
367
|
-
timestamp:
|
|
1032
|
+
timestamp: OrderApplicationModel.TimeStampData(),
|
|
368
1033
|
});
|
|
369
1034
|
}
|
|
1035
|
+
|
|
1036
|
+
/** @returns {QuestionSet} */
|
|
370
1037
|
static QuestionSet() {
|
|
371
1038
|
return Joi.object({
|
|
372
1039
|
display_name: Joi.string().allow(""),
|
|
373
1040
|
id: Joi.number(),
|
|
374
1041
|
});
|
|
375
1042
|
}
|
|
1043
|
+
|
|
1044
|
+
/** @returns {ReasonsData} */
|
|
376
1045
|
static ReasonsData() {
|
|
377
1046
|
return Joi.object({
|
|
378
|
-
entities: Joi.array().items(
|
|
379
|
-
products: Joi.array().items(
|
|
1047
|
+
entities: Joi.array().items(OrderApplicationModel.EntitiesReasons()),
|
|
1048
|
+
products: Joi.array().items(OrderApplicationModel.ProductsReasons()),
|
|
380
1049
|
});
|
|
381
1050
|
}
|
|
1051
|
+
|
|
1052
|
+
/** @returns {ResponseGetInvoiceShipment} */
|
|
382
1053
|
static ResponseGetInvoiceShipment() {
|
|
383
1054
|
return Joi.object({
|
|
384
1055
|
presigned_type: Joi.string().allow("").required(),
|
|
@@ -387,6 +1058,8 @@ class OrderModel {
|
|
|
387
1058
|
success: Joi.boolean().required(),
|
|
388
1059
|
});
|
|
389
1060
|
}
|
|
1061
|
+
|
|
1062
|
+
/** @returns {SendOtpToCustomerResponse} */
|
|
390
1063
|
static SendOtpToCustomerResponse() {
|
|
391
1064
|
return Joi.object({
|
|
392
1065
|
message: Joi.string().allow(""),
|
|
@@ -395,22 +1068,30 @@ class OrderModel {
|
|
|
395
1068
|
success: Joi.boolean(),
|
|
396
1069
|
});
|
|
397
1070
|
}
|
|
1071
|
+
|
|
1072
|
+
/** @returns {ShipmentApplicationStatusResponse} */
|
|
398
1073
|
static ShipmentApplicationStatusResponse() {
|
|
399
1074
|
return Joi.object({
|
|
400
|
-
statuses: Joi.array().items(
|
|
1075
|
+
statuses: Joi.array().items(OrderApplicationModel.StatusesBodyResponse()),
|
|
401
1076
|
});
|
|
402
1077
|
}
|
|
1078
|
+
|
|
1079
|
+
/** @returns {ShipmentBagReasons} */
|
|
403
1080
|
static ShipmentBagReasons() {
|
|
404
1081
|
return Joi.object({
|
|
405
|
-
reasons: Joi.array().items(
|
|
1082
|
+
reasons: Joi.array().items(OrderApplicationModel.BagReasons()),
|
|
406
1083
|
success: Joi.boolean(),
|
|
407
1084
|
});
|
|
408
1085
|
}
|
|
1086
|
+
|
|
1087
|
+
/** @returns {ShipmentById} */
|
|
409
1088
|
static ShipmentById() {
|
|
410
1089
|
return Joi.object({
|
|
411
|
-
shipment:
|
|
1090
|
+
shipment: OrderApplicationModel.Shipments(),
|
|
412
1091
|
});
|
|
413
1092
|
}
|
|
1093
|
+
|
|
1094
|
+
/** @returns {ShipmentPayment} */
|
|
414
1095
|
static ShipmentPayment() {
|
|
415
1096
|
return Joi.object({
|
|
416
1097
|
display_name: Joi.string().allow(""),
|
|
@@ -421,6 +1102,8 @@ class OrderModel {
|
|
|
421
1102
|
status: Joi.string().allow(""),
|
|
422
1103
|
});
|
|
423
1104
|
}
|
|
1105
|
+
|
|
1106
|
+
/** @returns {ShipmentReason} */
|
|
424
1107
|
static ShipmentReason() {
|
|
425
1108
|
return Joi.object({
|
|
426
1109
|
feedback_type: Joi.string().allow(""),
|
|
@@ -431,59 +1114,69 @@ class OrderModel {
|
|
|
431
1114
|
show_text_area: Joi.boolean(),
|
|
432
1115
|
});
|
|
433
1116
|
}
|
|
1117
|
+
|
|
1118
|
+
/** @returns {ShipmentReasons} */
|
|
434
1119
|
static ShipmentReasons() {
|
|
435
1120
|
return Joi.object({
|
|
436
|
-
reasons: Joi.array().items(
|
|
1121
|
+
reasons: Joi.array().items(OrderApplicationModel.ShipmentReason()),
|
|
437
1122
|
});
|
|
438
1123
|
}
|
|
1124
|
+
|
|
1125
|
+
/** @returns {Shipments} */
|
|
439
1126
|
static Shipments() {
|
|
440
1127
|
return Joi.object({
|
|
441
1128
|
awb_no: Joi.string().allow(""),
|
|
442
|
-
bags: Joi.array().items(
|
|
1129
|
+
bags: Joi.array().items(OrderApplicationModel.Bags()),
|
|
443
1130
|
beneficiary_details: Joi.boolean(),
|
|
444
|
-
breakup_values: Joi.array().items(
|
|
1131
|
+
breakup_values: Joi.array().items(OrderApplicationModel.BreakupValues()),
|
|
445
1132
|
can_break: Joi.any(),
|
|
446
1133
|
can_cancel: Joi.boolean(),
|
|
447
1134
|
can_return: Joi.boolean(),
|
|
448
1135
|
comment: Joi.string().allow(""),
|
|
449
1136
|
custom_meta: Joi.array().items(Joi.any()),
|
|
450
|
-
delivery_address:
|
|
1137
|
+
delivery_address: OrderApplicationModel.DeliveryAddress(),
|
|
451
1138
|
delivery_date: Joi.string().allow("").allow(null),
|
|
452
1139
|
dp_name: Joi.string().allow(""),
|
|
453
|
-
fulfilling_company:
|
|
454
|
-
fulfilling_store:
|
|
455
|
-
invoice:
|
|
1140
|
+
fulfilling_company: OrderApplicationModel.FulfillingCompany(),
|
|
1141
|
+
fulfilling_store: OrderApplicationModel.FulfillingStore(),
|
|
1142
|
+
invoice: OrderApplicationModel.Invoice(),
|
|
456
1143
|
need_help_url: Joi.string().allow(""),
|
|
457
1144
|
order_id: Joi.string().allow(""),
|
|
458
1145
|
order_type: Joi.string().allow("").allow(null),
|
|
459
|
-
payment:
|
|
460
|
-
prices:
|
|
461
|
-
promise:
|
|
1146
|
+
payment: OrderApplicationModel.ShipmentPayment(),
|
|
1147
|
+
prices: OrderApplicationModel.Prices(),
|
|
1148
|
+
promise: OrderApplicationModel.Promise(),
|
|
462
1149
|
refund_details: Joi.any(),
|
|
463
1150
|
return_meta: Joi.any(),
|
|
464
1151
|
returnable_date: Joi.string().allow("").allow(null),
|
|
465
1152
|
shipment_created_at: Joi.string().allow(""),
|
|
466
1153
|
shipment_id: Joi.string().allow(""),
|
|
467
|
-
shipment_status:
|
|
1154
|
+
shipment_status: OrderApplicationModel.ShipmentStatus(),
|
|
468
1155
|
show_download_invoice: Joi.boolean(),
|
|
469
1156
|
show_track_link: Joi.boolean(),
|
|
470
1157
|
size_info: Joi.any(),
|
|
471
1158
|
total_bags: Joi.number(),
|
|
472
|
-
total_details:
|
|
1159
|
+
total_details: OrderApplicationModel.ShipmentTotalDetails(),
|
|
473
1160
|
track_url: Joi.string().allow(""),
|
|
474
|
-
tracking_details: Joi.array().items(
|
|
1161
|
+
tracking_details: Joi.array().items(
|
|
1162
|
+
OrderApplicationModel.TrackingDetails()
|
|
1163
|
+
),
|
|
475
1164
|
traking_no: Joi.string().allow(""),
|
|
476
|
-
user_info:
|
|
1165
|
+
user_info: OrderApplicationModel.ShipmentUserInfo(),
|
|
477
1166
|
});
|
|
478
1167
|
}
|
|
1168
|
+
|
|
1169
|
+
/** @returns {ShipmentsRequest} */
|
|
479
1170
|
static ShipmentsRequest() {
|
|
480
1171
|
return Joi.object({
|
|
481
|
-
data_updates:
|
|
1172
|
+
data_updates: OrderApplicationModel.DataUpdates(),
|
|
482
1173
|
identifier: Joi.string().allow("").required(),
|
|
483
|
-
products: Joi.array().items(
|
|
484
|
-
reasons:
|
|
1174
|
+
products: Joi.array().items(OrderApplicationModel.Products()),
|
|
1175
|
+
reasons: OrderApplicationModel.ReasonsData(),
|
|
485
1176
|
});
|
|
486
1177
|
}
|
|
1178
|
+
|
|
1179
|
+
/** @returns {ShipmentStatus} */
|
|
487
1180
|
static ShipmentStatus() {
|
|
488
1181
|
return Joi.object({
|
|
489
1182
|
hex_code: Joi.string().allow(""),
|
|
@@ -491,6 +1184,8 @@ class OrderModel {
|
|
|
491
1184
|
value: Joi.string().allow("").allow(null),
|
|
492
1185
|
});
|
|
493
1186
|
}
|
|
1187
|
+
|
|
1188
|
+
/** @returns {ShipmentTotalDetails} */
|
|
494
1189
|
static ShipmentTotalDetails() {
|
|
495
1190
|
return Joi.object({
|
|
496
1191
|
pieces: Joi.number(),
|
|
@@ -498,11 +1193,15 @@ class OrderModel {
|
|
|
498
1193
|
total_price: Joi.number(),
|
|
499
1194
|
});
|
|
500
1195
|
}
|
|
1196
|
+
|
|
1197
|
+
/** @returns {ShipmentTrack} */
|
|
501
1198
|
static ShipmentTrack() {
|
|
502
1199
|
return Joi.object({
|
|
503
|
-
results: Joi.array().items(
|
|
1200
|
+
results: Joi.array().items(OrderApplicationModel.Track()),
|
|
504
1201
|
});
|
|
505
1202
|
}
|
|
1203
|
+
|
|
1204
|
+
/** @returns {ShipmentUserInfo} */
|
|
506
1205
|
static ShipmentUserInfo() {
|
|
507
1206
|
return Joi.object({
|
|
508
1207
|
email: Joi.string().allow(""),
|
|
@@ -513,24 +1212,32 @@ class OrderModel {
|
|
|
513
1212
|
name: Joi.string().allow(""),
|
|
514
1213
|
});
|
|
515
1214
|
}
|
|
1215
|
+
|
|
1216
|
+
/** @returns {StatuesRequest} */
|
|
516
1217
|
static StatuesRequest() {
|
|
517
1218
|
return Joi.object({
|
|
518
1219
|
exclude_bags_next_state: Joi.string().allow(""),
|
|
519
|
-
shipments: Joi.array().items(
|
|
1220
|
+
shipments: Joi.array().items(OrderApplicationModel.ShipmentsRequest()),
|
|
520
1221
|
status: Joi.string().allow(""),
|
|
521
1222
|
});
|
|
522
1223
|
}
|
|
1224
|
+
|
|
1225
|
+
/** @returns {StatusesBodyResponse} */
|
|
523
1226
|
static StatusesBodyResponse() {
|
|
524
1227
|
return Joi.object({
|
|
525
1228
|
shipments: Joi.array().items(Joi.any()),
|
|
526
1229
|
});
|
|
527
1230
|
}
|
|
1231
|
+
|
|
1232
|
+
/** @returns {TimeStampData} */
|
|
528
1233
|
static TimeStampData() {
|
|
529
1234
|
return Joi.object({
|
|
530
1235
|
max: Joi.string().allow(""),
|
|
531
1236
|
min: Joi.string().allow(""),
|
|
532
1237
|
});
|
|
533
1238
|
}
|
|
1239
|
+
|
|
1240
|
+
/** @returns {Track} */
|
|
534
1241
|
static Track() {
|
|
535
1242
|
return Joi.object({
|
|
536
1243
|
account_name: Joi.string().allow(""),
|
|
@@ -543,25 +1250,33 @@ class OrderModel {
|
|
|
543
1250
|
updated_time: Joi.string().allow(""),
|
|
544
1251
|
});
|
|
545
1252
|
}
|
|
1253
|
+
|
|
1254
|
+
/** @returns {TrackingDetails} */
|
|
546
1255
|
static TrackingDetails() {
|
|
547
1256
|
return Joi.object({
|
|
548
1257
|
is_current: Joi.boolean(),
|
|
549
1258
|
is_passed: Joi.boolean(),
|
|
550
1259
|
status: Joi.string().allow(""),
|
|
551
1260
|
time: Joi.string().allow(""),
|
|
552
|
-
tracking_details: Joi.array().items(
|
|
1261
|
+
tracking_details: Joi.array().items(
|
|
1262
|
+
OrderApplicationModel.NestedTrackingDetails()
|
|
1263
|
+
),
|
|
553
1264
|
value: Joi.string().allow("").allow(null),
|
|
554
1265
|
});
|
|
555
1266
|
}
|
|
1267
|
+
|
|
1268
|
+
/** @returns {UpdateShipmentStatusRequest} */
|
|
556
1269
|
static UpdateShipmentStatusRequest() {
|
|
557
1270
|
return Joi.object({
|
|
558
1271
|
force_transition: Joi.boolean(),
|
|
559
1272
|
lock_after_transition: Joi.boolean(),
|
|
560
|
-
statuses: Joi.array().items(
|
|
1273
|
+
statuses: Joi.array().items(OrderApplicationModel.StatuesRequest()),
|
|
561
1274
|
task: Joi.boolean(),
|
|
562
1275
|
unlock_before_transition: Joi.boolean(),
|
|
563
1276
|
});
|
|
564
1277
|
}
|
|
1278
|
+
|
|
1279
|
+
/** @returns {UserInfo} */
|
|
565
1280
|
static UserInfo() {
|
|
566
1281
|
return Joi.object({
|
|
567
1282
|
email: Joi.string().allow(""),
|
|
@@ -572,16 +1287,20 @@ class OrderModel {
|
|
|
572
1287
|
name: Joi.string().allow(""),
|
|
573
1288
|
});
|
|
574
1289
|
}
|
|
1290
|
+
|
|
1291
|
+
/** @returns {VerifyOtp} */
|
|
575
1292
|
static VerifyOtp() {
|
|
576
1293
|
return Joi.object({
|
|
577
1294
|
otp_code: Joi.string().allow(""),
|
|
578
1295
|
request_id: Joi.string().allow(""),
|
|
579
1296
|
});
|
|
580
1297
|
}
|
|
1298
|
+
|
|
1299
|
+
/** @returns {VerifyOtpResponse} */
|
|
581
1300
|
static VerifyOtpResponse() {
|
|
582
1301
|
return Joi.object({
|
|
583
1302
|
success: Joi.boolean(),
|
|
584
1303
|
});
|
|
585
1304
|
}
|
|
586
1305
|
}
|
|
587
|
-
module.exports =
|
|
1306
|
+
module.exports = OrderApplicationModel;
|