@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- 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 +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -14,13 +14,15 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @typedef BulkListingParam
|
|
17
|
-
* @property {number} pageSize -
|
|
18
|
-
* @property {number} pageNo -
|
|
19
|
-
* @property {string} startDate -
|
|
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
|
/**
|
|
@@ -33,11 +35,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
33
35
|
* @property {OrderPlatformModel.OrderStatus} body
|
|
34
36
|
*/
|
|
35
37
|
|
|
36
|
-
/**
|
|
37
|
-
* @typedef CreateChannelConfigParam
|
|
38
|
-
* @property {OrderPlatformModel.CreateChannelConfigData} body
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
38
|
/**
|
|
42
39
|
* @typedef CreateOrderParam
|
|
43
40
|
* @property {OrderPlatformModel.CreateOrderAPI} body
|
|
@@ -55,7 +52,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
55
52
|
|
|
56
53
|
/**
|
|
57
54
|
* @typedef DownloadLanesReportParam
|
|
58
|
-
* @property {OrderPlatformModel.
|
|
55
|
+
* @property {OrderPlatformModel.BulkReportsDownloadRequest} body
|
|
59
56
|
*/
|
|
60
57
|
|
|
61
58
|
/**
|
|
@@ -69,8 +66,12 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
69
66
|
*/
|
|
70
67
|
|
|
71
68
|
/**
|
|
72
|
-
* @typedef
|
|
73
|
-
* @property {
|
|
69
|
+
* @typedef FailedOrderLogsParam
|
|
70
|
+
* @property {string} [applicationId] - Application ID
|
|
71
|
+
* @property {number} [pageNo] - Page Number
|
|
72
|
+
* @property {number} [pageSize] - Page Size
|
|
73
|
+
* @property {string} [searchType] - Search type for filter
|
|
74
|
+
* @property {string} [searchValue] - Search value for filter
|
|
74
75
|
*/
|
|
75
76
|
|
|
76
77
|
/**
|
|
@@ -93,21 +94,21 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
93
94
|
|
|
94
95
|
/**
|
|
95
96
|
* @typedef GenerateProcessManifestParam
|
|
96
|
-
* @property {OrderPlatformModel.
|
|
97
|
+
* @property {OrderPlatformModel.ProcessManifestRequest} body
|
|
97
98
|
*/
|
|
98
99
|
|
|
99
100
|
/**
|
|
100
101
|
* @typedef GetAllowedStateTransitionParam
|
|
101
|
-
* @property {string} orderingChannel -
|
|
102
|
-
* @property {string} status -
|
|
102
|
+
* @property {string} orderingChannel - The channel through which orders are placed.
|
|
103
|
+
* @property {string} status - The status key indicates the current status for
|
|
104
|
+
* which the API will provide a list of possible next state transitions.
|
|
103
105
|
*/
|
|
104
106
|
|
|
105
107
|
/** @typedef GetAllowedTemplatesForBulkParam */
|
|
106
108
|
|
|
107
109
|
/**
|
|
108
110
|
* @typedef GetAnnouncementsParam
|
|
109
|
-
* @property {string} [date] - Date On which the announcement is Active
|
|
110
|
-
* should in ISO Datetime format IST Time)
|
|
111
|
+
* @property {string} [date] - Date On which the announcement is Active.
|
|
111
112
|
*/
|
|
112
113
|
|
|
113
114
|
/**
|
|
@@ -136,8 +137,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
136
137
|
* @typedef GetBulkShipmentExcelFileParam
|
|
137
138
|
* @property {string} [salesChannels] - Comma separated values of sales channel ids
|
|
138
139
|
* @property {string} [dpIds] - Comma separated values of delivery partner ids
|
|
139
|
-
* @property {string} [startDate] -
|
|
140
|
-
* @property {string} [endDate] -
|
|
140
|
+
* @property {string} [startDate] - UTC start date in ISO format
|
|
141
|
+
* @property {string} [endDate] - UTC end date in ISO format
|
|
141
142
|
* @property {string} [stores] - Comma separated values of store ids
|
|
142
143
|
* @property {string} [tags] - Comma separated values of tags
|
|
143
144
|
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
@@ -148,14 +149,12 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
148
149
|
* @property {number} [pageSize]
|
|
149
150
|
*/
|
|
150
151
|
|
|
151
|
-
/** @typedef GetChannelConfigParam */
|
|
152
|
-
|
|
153
152
|
/**
|
|
154
153
|
* @typedef GetFileByStatusParam
|
|
155
|
-
* @property {string} batchId
|
|
156
|
-
* @property {string} status
|
|
157
|
-
* @property {string} fileType -
|
|
158
|
-
* @property {string} [reportType]
|
|
154
|
+
* @property {string} batchId - Batch Id to identify the bulk operation request.
|
|
155
|
+
* @property {string} status - The status of the jobs to filter the results.
|
|
156
|
+
* @property {string} fileType - The type of file to be downloaded.
|
|
157
|
+
* @property {string} [reportType] - The type of report to be downloaded.
|
|
159
158
|
*/
|
|
160
159
|
|
|
161
160
|
/**
|
|
@@ -171,46 +170,40 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
171
170
|
* @property {string} [salesChannels]
|
|
172
171
|
* @property {string} [paymentMode] - Comma separated values of payment modes
|
|
173
172
|
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
174
|
-
* @property {string} [searchType]
|
|
175
|
-
* be used as the target for the search operation
|
|
173
|
+
* @property {string} [searchType]
|
|
176
174
|
* @property {string} [searchValue]
|
|
177
175
|
* @property {string} [tags]
|
|
178
|
-
* @property {number} [timeToDispatch]
|
|
176
|
+
* @property {number} [timeToDispatch]
|
|
179
177
|
* @property {string} [paymentMethods]
|
|
180
178
|
* @property {boolean} [myOrders]
|
|
181
179
|
* @property {boolean} [showCrossCompanyData] - Flag to view cross & non-cross
|
|
182
180
|
* company order
|
|
183
|
-
* @property {string} [orderType]
|
|
184
|
-
* follow based on the application's operational needs and customer
|
|
185
|
-
* preferences. This field categorizes orders into distinct types, each
|
|
186
|
-
* associated with a unique processing flow. For example:
|
|
187
|
-
*
|
|
188
|
-
* - "HomeDelivery": The order undergoes all state transitions typical for a
|
|
189
|
-
* delivery, from processing the shipment to final delivery at the
|
|
190
|
-
* customer's address.
|
|
191
|
-
* - "PickAtStore": The order is prepared for pickup and moved to a state where it
|
|
192
|
-
* is ready to be handed over directly to the customer at the store. This
|
|
193
|
-
* type streamlines the process by bypassing traditional shipping stages
|
|
194
|
-
* and facilitating a quicker transition to the final handover stage.
|
|
181
|
+
* @property {string} [orderType]
|
|
195
182
|
*/
|
|
196
183
|
|
|
197
184
|
/**
|
|
198
185
|
* @typedef GetManifestDetailsParam
|
|
199
|
-
* @property {string} manifestId
|
|
186
|
+
* @property {string} manifestId - The unique identifier assigned to the manifest.
|
|
187
|
+
* @property {string} [dpIds] - Filter shipments with the specific Courier
|
|
188
|
+
* partner Ids which is a combination of courier partner extension and scheme Ids.
|
|
189
|
+
* @property {string} [endDate] - End date for the shipment search range in manifest.
|
|
190
|
+
* @property {string} [startDate] - Start date for the shipment search range in manifest.
|
|
191
|
+
* @property {number} [pageNo] - Page number for pagination.
|
|
192
|
+
* @property {number} [pageSize] - Number of records per page for pagination.
|
|
200
193
|
*/
|
|
201
194
|
|
|
202
195
|
/**
|
|
203
196
|
* @typedef GetManifestShipmentsParam
|
|
204
197
|
* @property {string} dpIds - Filter shipments with the specific Courier partner
|
|
205
198
|
* Ids which is a combination of courier partner extension and scheme Ids.
|
|
206
|
-
* @property {number} stores - Filter
|
|
199
|
+
* @property {number} stores - Filter results based on specific store IDs.
|
|
207
200
|
* @property {string} toDate - End date for the shipment search range.
|
|
208
201
|
* @property {string} fromDate - Start date for the shipment search range.
|
|
209
|
-
* @property {string} [dpName] - Filter
|
|
210
|
-
* @property {string} [salesChannels] -
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* @property {string} [searchValue] -
|
|
202
|
+
* @property {string} [dpName] - Filter results based on specific courier partner name.
|
|
203
|
+
* @property {string} [salesChannels] - Filter results based on comma-separated
|
|
204
|
+
* list of sales channels.
|
|
205
|
+
* @property {string} [searchType] - Filter results based on search type.
|
|
206
|
+
* @property {string} [searchValue] - Filter results based on the search value.
|
|
214
207
|
* @property {number} [pageNo] - Page number for pagination.
|
|
215
208
|
* @property {number} [pageSize] - Number of records per page for pagination.
|
|
216
209
|
*/
|
|
@@ -222,16 +215,20 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
222
215
|
|
|
223
216
|
/**
|
|
224
217
|
* @typedef GetManifestsParam
|
|
225
|
-
* @property {string} [status] -
|
|
226
|
-
* @property {string} [startDate] -
|
|
227
|
-
*
|
|
228
|
-
* @property {string} [
|
|
229
|
-
*
|
|
230
|
-
* @property {number} [storeId] -
|
|
231
|
-
*
|
|
232
|
-
* @property {string} [
|
|
233
|
-
*
|
|
234
|
-
* @property {
|
|
218
|
+
* @property {string} [status] - Filter for the status of manifests.
|
|
219
|
+
* @property {string} [startDate] - The starting date for filtering manifests in
|
|
220
|
+
* ISO format
|
|
221
|
+
* @property {string} [endDate] - The end date for filtering manifests in ISO format
|
|
222
|
+
* @property {string} [searchType] - Specifies the type of search to perform.
|
|
223
|
+
* @property {number} [storeId] - Filter to fetch manifests for a specific store
|
|
224
|
+
* by its ID.
|
|
225
|
+
* @property {string} [searchValue] - The value to search for based on the
|
|
226
|
+
* selected search type.
|
|
227
|
+
* @property {string} [dpIds] - A comma-separated list of courier partner IDs
|
|
228
|
+
* (DP IDs) to filter the manifests.
|
|
229
|
+
* @property {number} [pageNo] - The number of the page to fetch data.
|
|
230
|
+
* @property {number} [pageSize] - The number of records to return per page for
|
|
231
|
+
* pagination.
|
|
235
232
|
*/
|
|
236
233
|
|
|
237
234
|
/**
|
|
@@ -255,10 +252,10 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
255
252
|
* associated with the order
|
|
256
253
|
* @property {string} [searchValue] - Search_value is matched against the field
|
|
257
254
|
* specified by the search_type
|
|
258
|
-
* @property {string} [fromDate]
|
|
259
|
-
* @property {string} [toDate]
|
|
260
|
-
* @property {string} [startDate]
|
|
261
|
-
* @property {string} [endDate]
|
|
255
|
+
* @property {string} [fromDate]
|
|
256
|
+
* @property {string} [toDate]
|
|
257
|
+
* @property {string} [startDate]
|
|
258
|
+
* @property {string} [endDate]
|
|
262
259
|
* @property {string} [dpIds] - Delivery Partner IDs to which shipments are assigned.
|
|
263
260
|
* @property {string} [stores]
|
|
264
261
|
* @property {string} [salesChannels]
|
|
@@ -273,11 +270,9 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
273
270
|
* @property {string} [orderType]
|
|
274
271
|
* @property {boolean} [allowInactive] - Flag indicating whether inactive
|
|
275
272
|
* shipments are allowed
|
|
276
|
-
* @property {
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
* 'shipments' groups results by shipment, while an invalid value like 'abcd'
|
|
280
|
-
* may not be recognized, leading to errors or default behavior.
|
|
273
|
+
* @property {boolean} [enforceDateFilter] - Applies a date filter for listing
|
|
274
|
+
* orders. This is useful when fetching data for a specific date range while
|
|
275
|
+
* performing searches.
|
|
281
276
|
*/
|
|
282
277
|
|
|
283
278
|
/** @typedef GetRoleBasedActionsParam */
|
|
@@ -294,8 +289,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
294
289
|
|
|
295
290
|
/**
|
|
296
291
|
* @typedef GetShipmentHistoryParam
|
|
297
|
-
* @property {string} [shipmentId] -
|
|
298
|
-
* @property {number} [bagId] -
|
|
292
|
+
* @property {string} [shipmentId] - Identifier for the shipment
|
|
293
|
+
* @property {number} [bagId] - Identifier for a bag or product.
|
|
299
294
|
*/
|
|
300
295
|
|
|
301
296
|
/**
|
|
@@ -314,9 +309,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
314
309
|
* @property {string} [bagStatus] - Comma separated values of bag statuses
|
|
315
310
|
* @property {boolean} [statusOverrideLane] - Use this flag to fetch by
|
|
316
311
|
* bag_status and override lane
|
|
317
|
-
* @property {number} [timeToDispatch]
|
|
318
|
-
* @property {string} [searchType] -
|
|
319
|
-
* be used as the target for the search operation
|
|
312
|
+
* @property {number} [timeToDispatch]
|
|
313
|
+
* @property {string} [searchType] - Search type key
|
|
320
314
|
* @property {string} [searchValue] - Search type value
|
|
321
315
|
* @property {string} [fromDate] - Start Date in DD-MM-YYYY format
|
|
322
316
|
* @property {string} [toDate] - End Date in DD-MM-YYYY format
|
|
@@ -343,24 +337,10 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
343
337
|
* company order
|
|
344
338
|
* @property {string} [tags] - Comma separated values of tags
|
|
345
339
|
* @property {string} [customerId]
|
|
346
|
-
* @property {string} [orderType]
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
* - "HomeDelivery": The order undergoes all state transitions typical for a
|
|
352
|
-
* delivery, from processing the shipment to final delivery at the
|
|
353
|
-
* customer's address.
|
|
354
|
-
* - "PickAtStore": The order is prepared for pickup and moved to a state where it
|
|
355
|
-
* is ready to be handed over directly to the customer at the store. This
|
|
356
|
-
* type streamlines the process by bypassing traditional shipping stages
|
|
357
|
-
* and facilitating a quicker transition to the final handover stage.
|
|
358
|
-
*
|
|
359
|
-
* @property {string} [groupEntity] - Defines the grouping criterion for
|
|
360
|
-
* retrieving shipments or orders. It specifies whether the results should be
|
|
361
|
-
* organized based on shipment groups or order groups. For example, using
|
|
362
|
-
* 'shipments' groups results by shipment, while an invalid value like 'abcd'
|
|
363
|
-
* may not be recognized, leading to errors or default behavior.
|
|
340
|
+
* @property {string} [orderType]
|
|
341
|
+
* @property {boolean} [enforceDateFilter] - Applies a date filter for listing
|
|
342
|
+
* shipments. This is useful when fetching data for a specific date range
|
|
343
|
+
* while performing searches.
|
|
364
344
|
*/
|
|
365
345
|
|
|
366
346
|
/**
|
|
@@ -390,7 +370,8 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
390
370
|
|
|
391
371
|
/**
|
|
392
372
|
* @typedef JobDetailsParam
|
|
393
|
-
* @property {string} batchId
|
|
373
|
+
* @property {string} batchId - A unique identifier for the batch associated
|
|
374
|
+
* with this bulk action.
|
|
394
375
|
*/
|
|
395
376
|
|
|
396
377
|
/**
|
|
@@ -403,11 +384,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
403
384
|
* @property {OrderPlatformModel.PostShipmentHistory} body
|
|
404
385
|
*/
|
|
405
386
|
|
|
406
|
-
/**
|
|
407
|
-
* @typedef ProcessManifestsParam
|
|
408
|
-
* @property {OrderPlatformModel.ProcessManifest} body
|
|
409
|
-
*/
|
|
410
|
-
|
|
411
387
|
/**
|
|
412
388
|
* @typedef ReassignLocationParam
|
|
413
389
|
* @property {OrderPlatformModel.StoreReassign} body
|
|
@@ -425,16 +401,26 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
425
401
|
|
|
426
402
|
/**
|
|
427
403
|
* @typedef TrackShipmentParam
|
|
428
|
-
* @property {string} [shipmentId] -
|
|
404
|
+
* @property {string} [shipmentId] - Unique identifier of a shipment on the platform.
|
|
429
405
|
* @property {string} [awb] - AWB number
|
|
430
|
-
* @property {number} [pageNo] - Page number
|
|
431
|
-
* @property {number} [pageSize] -
|
|
406
|
+
* @property {number} [pageNo] - Page number for pagination.
|
|
407
|
+
* @property {number} [pageSize] - Number of records per page for pagination.
|
|
432
408
|
*/
|
|
433
409
|
|
|
434
410
|
/**
|
|
435
411
|
* @typedef UpdateAddressParam
|
|
436
|
-
* @property {string} shipmentId
|
|
437
|
-
* @property {
|
|
412
|
+
* @property {string} shipmentId
|
|
413
|
+
* @property {string} [name]
|
|
414
|
+
* @property {string} [address]
|
|
415
|
+
* @property {string} [addressType]
|
|
416
|
+
* @property {string} [pincode]
|
|
417
|
+
* @property {string} [phone]
|
|
418
|
+
* @property {string} [email]
|
|
419
|
+
* @property {string} [landmark]
|
|
420
|
+
* @property {string} addressCategory
|
|
421
|
+
* @property {string} [city]
|
|
422
|
+
* @property {string} [state]
|
|
423
|
+
* @property {string} [country]
|
|
438
424
|
*/
|
|
439
425
|
|
|
440
426
|
/**
|
|
@@ -442,11 +428,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
442
428
|
* @property {OrderPlatformModel.UpdatePackagingDimensionsPayload} body
|
|
443
429
|
*/
|
|
444
430
|
|
|
445
|
-
/**
|
|
446
|
-
* @typedef UpdatePaymentInfoParam
|
|
447
|
-
* @property {OrderPlatformModel.UpdateShipmentPaymentMode} body
|
|
448
|
-
*/
|
|
449
|
-
|
|
450
431
|
/**
|
|
451
432
|
* @typedef UpdateShipmentLockParam
|
|
452
433
|
* @property {OrderPlatformModel.UpdateShipmentLockPayload} body
|
|
@@ -464,8 +445,7 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
464
445
|
|
|
465
446
|
/**
|
|
466
447
|
* @typedef UploadConsentsParam
|
|
467
|
-
* @property {
|
|
468
|
-
* @property {OrderPlatformModel.UploadConsent} body
|
|
448
|
+
* @property {OrderPlatformModel.UploadManifestConsent} body
|
|
469
449
|
*/
|
|
470
450
|
|
|
471
451
|
/**
|
|
@@ -515,13 +495,6 @@ class OrderPlatformValidator {
|
|
|
515
495
|
}).required();
|
|
516
496
|
}
|
|
517
497
|
|
|
518
|
-
/** @returns {CreateChannelConfigParam} */
|
|
519
|
-
static createChannelConfig() {
|
|
520
|
-
return Joi.object({
|
|
521
|
-
body: OrderPlatformModel.CreateChannelConfigData().required(),
|
|
522
|
-
}).required();
|
|
523
|
-
}
|
|
524
|
-
|
|
525
498
|
/** @returns {CreateOrderParam} */
|
|
526
499
|
static createOrder() {
|
|
527
500
|
return Joi.object({
|
|
@@ -546,7 +519,7 @@ class OrderPlatformValidator {
|
|
|
546
519
|
/** @returns {DownloadLanesReportParam} */
|
|
547
520
|
static downloadLanesReport() {
|
|
548
521
|
return Joi.object({
|
|
549
|
-
body: OrderPlatformModel.
|
|
522
|
+
body: OrderPlatformModel.BulkReportsDownloadRequest().required(),
|
|
550
523
|
}).required();
|
|
551
524
|
}
|
|
552
525
|
|
|
@@ -564,10 +537,14 @@ class OrderPlatformValidator {
|
|
|
564
537
|
}).required();
|
|
565
538
|
}
|
|
566
539
|
|
|
567
|
-
/** @returns {
|
|
568
|
-
static
|
|
540
|
+
/** @returns {FailedOrderLogsParam} */
|
|
541
|
+
static failedOrderLogs() {
|
|
569
542
|
return Joi.object({
|
|
570
|
-
|
|
543
|
+
applicationId: Joi.string().allow(""),
|
|
544
|
+
pageNo: Joi.number(),
|
|
545
|
+
pageSize: Joi.number(),
|
|
546
|
+
searchType: Joi.string().allow(""),
|
|
547
|
+
searchValue: Joi.string().allow(""),
|
|
571
548
|
}).required();
|
|
572
549
|
}
|
|
573
550
|
|
|
@@ -598,7 +575,7 @@ class OrderPlatformValidator {
|
|
|
598
575
|
/** @returns {GenerateProcessManifestParam} */
|
|
599
576
|
static generateProcessManifest() {
|
|
600
577
|
return Joi.object({
|
|
601
|
-
body: OrderPlatformModel.
|
|
578
|
+
body: OrderPlatformModel.ProcessManifestRequest().required(),
|
|
602
579
|
}).required();
|
|
603
580
|
}
|
|
604
581
|
|
|
@@ -669,11 +646,6 @@ class OrderPlatformValidator {
|
|
|
669
646
|
}).required();
|
|
670
647
|
}
|
|
671
648
|
|
|
672
|
-
/** @returns {GetChannelConfigParam} */
|
|
673
|
-
static getChannelConfig() {
|
|
674
|
-
return Joi.object({}).required();
|
|
675
|
-
}
|
|
676
|
-
|
|
677
649
|
/** @returns {GetFileByStatusParam} */
|
|
678
650
|
static getFileByStatus() {
|
|
679
651
|
return Joi.object({
|
|
@@ -713,6 +685,11 @@ class OrderPlatformValidator {
|
|
|
713
685
|
static getManifestDetails() {
|
|
714
686
|
return Joi.object({
|
|
715
687
|
manifestId: Joi.string().allow("").required(),
|
|
688
|
+
dpIds: Joi.string().allow(""),
|
|
689
|
+
endDate: Joi.string().allow(""),
|
|
690
|
+
startDate: Joi.string().allow(""),
|
|
691
|
+
pageNo: Joi.number(),
|
|
692
|
+
pageSize: Joi.number(),
|
|
716
693
|
}).required();
|
|
717
694
|
}
|
|
718
695
|
|
|
@@ -789,7 +766,7 @@ class OrderPlatformValidator {
|
|
|
789
766
|
customerId: Joi.string().allow(""),
|
|
790
767
|
orderType: Joi.string().allow(""),
|
|
791
768
|
allowInactive: Joi.boolean(),
|
|
792
|
-
|
|
769
|
+
enforceDateFilter: Joi.boolean(),
|
|
793
770
|
}).required();
|
|
794
771
|
}
|
|
795
772
|
|
|
@@ -859,7 +836,7 @@ class OrderPlatformValidator {
|
|
|
859
836
|
tags: Joi.string().allow(""),
|
|
860
837
|
customerId: Joi.string().allow(""),
|
|
861
838
|
orderType: Joi.string().allow(""),
|
|
862
|
-
|
|
839
|
+
enforceDateFilter: Joi.boolean(),
|
|
863
840
|
}).required();
|
|
864
841
|
}
|
|
865
842
|
|
|
@@ -920,13 +897,6 @@ class OrderPlatformValidator {
|
|
|
920
897
|
}).required();
|
|
921
898
|
}
|
|
922
899
|
|
|
923
|
-
/** @returns {ProcessManifestsParam} */
|
|
924
|
-
static processManifests() {
|
|
925
|
-
return Joi.object({
|
|
926
|
-
body: OrderPlatformModel.ProcessManifest().required(),
|
|
927
|
-
}).required();
|
|
928
|
-
}
|
|
929
|
-
|
|
930
900
|
/** @returns {ReassignLocationParam} */
|
|
931
901
|
static reassignLocation() {
|
|
932
902
|
return Joi.object({
|
|
@@ -962,7 +932,17 @@ class OrderPlatformValidator {
|
|
|
962
932
|
static updateAddress() {
|
|
963
933
|
return Joi.object({
|
|
964
934
|
shipmentId: Joi.string().allow("").required(),
|
|
965
|
-
|
|
935
|
+
name: Joi.string().allow(""),
|
|
936
|
+
address: Joi.string().allow(""),
|
|
937
|
+
addressType: Joi.string().allow(""),
|
|
938
|
+
pincode: Joi.string().allow(""),
|
|
939
|
+
phone: Joi.string().allow(""),
|
|
940
|
+
email: Joi.string().allow(""),
|
|
941
|
+
landmark: Joi.string().allow(""),
|
|
942
|
+
addressCategory: Joi.string().allow("").required(),
|
|
943
|
+
city: Joi.string().allow(""),
|
|
944
|
+
state: Joi.string().allow(""),
|
|
945
|
+
country: Joi.string().allow(""),
|
|
966
946
|
}).required();
|
|
967
947
|
}
|
|
968
948
|
|
|
@@ -973,13 +953,6 @@ class OrderPlatformValidator {
|
|
|
973
953
|
}).required();
|
|
974
954
|
}
|
|
975
955
|
|
|
976
|
-
/** @returns {UpdatePaymentInfoParam} */
|
|
977
|
-
static updatePaymentInfo() {
|
|
978
|
-
return Joi.object({
|
|
979
|
-
body: OrderPlatformModel.UpdateShipmentPaymentMode().required(),
|
|
980
|
-
}).required();
|
|
981
|
-
}
|
|
982
|
-
|
|
983
956
|
/** @returns {UpdateShipmentLockParam} */
|
|
984
957
|
static updateShipmentLock() {
|
|
985
958
|
return Joi.object({
|
|
@@ -1004,8 +977,7 @@ class OrderPlatformValidator {
|
|
|
1004
977
|
/** @returns {UploadConsentsParam} */
|
|
1005
978
|
static uploadConsents() {
|
|
1006
979
|
return Joi.object({
|
|
1007
|
-
|
|
1008
|
-
body: OrderPlatformModel.UploadConsent().required(),
|
|
980
|
+
body: OrderPlatformModel.UploadManifestConsent().required(),
|
|
1009
981
|
}).required();
|
|
1010
982
|
}
|
|
1011
983
|
|
|
@@ -7,24 +7,22 @@ declare class Partner {
|
|
|
7
7
|
* @param {PartnerPlatformApplicationValidator.AddProxyPathParam} arg - Arg object
|
|
8
8
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
9
9
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
|
-
* @returns {Promise<PartnerPlatformModel.
|
|
11
|
-
* Success response
|
|
10
|
+
* @returns {Promise<PartnerPlatformModel.AddProxyResponse>} - Success response
|
|
12
11
|
* @name addProxyPath
|
|
13
12
|
* @summary: Create extension proxy
|
|
14
13
|
* @description: Extension proxy can be used to call extension API from storefront and make extension API integration seamless. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/addProxyPath/).
|
|
15
14
|
*/
|
|
16
|
-
addProxyPath({ extensionId, body, requestHeaders }?: PartnerPlatformApplicationValidator.AddProxyPathParam, { responseHeaders }?: object): Promise<PartnerPlatformModel.
|
|
15
|
+
addProxyPath({ extensionId, body, requestHeaders }?: PartnerPlatformApplicationValidator.AddProxyPathParam, { responseHeaders }?: object): Promise<PartnerPlatformModel.AddProxyResponse>;
|
|
17
16
|
/**
|
|
18
17
|
* @param {PartnerPlatformApplicationValidator.RemoveProxyPathParam} arg - Arg object
|
|
19
18
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
19
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<PartnerPlatformModel.
|
|
22
|
-
* Success response
|
|
20
|
+
* @returns {Promise<PartnerPlatformModel.RemoveProxyResponse>} - Success response
|
|
23
21
|
* @name removeProxyPath
|
|
24
22
|
* @summary: Remove extension proxy
|
|
25
23
|
* @description: Remove the proxy which are created earlier for the extension. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/removeProxyPath/).
|
|
26
24
|
*/
|
|
27
|
-
removeProxyPath({ extensionId, attachedPath, requestHeaders }?: PartnerPlatformApplicationValidator.RemoveProxyPathParam, { responseHeaders }?: object): Promise<PartnerPlatformModel.
|
|
25
|
+
removeProxyPath({ extensionId, attachedPath, requestHeaders }?: PartnerPlatformApplicationValidator.RemoveProxyPathParam, { responseHeaders }?: object): Promise<PartnerPlatformModel.RemoveProxyResponse>;
|
|
28
26
|
}
|
|
29
27
|
import PartnerPlatformApplicationValidator = require("./PartnerPlatformApplicationValidator");
|
|
30
28
|
import PartnerPlatformModel = require("./PartnerPlatformModel");
|
|
@@ -19,8 +19,7 @@ class Partner {
|
|
|
19
19
|
* @param {PartnerPlatformApplicationValidator.AddProxyPathParam} arg - Arg object
|
|
20
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
-
* @returns {Promise<PartnerPlatformModel.
|
|
23
|
-
* Success response
|
|
22
|
+
* @returns {Promise<PartnerPlatformModel.AddProxyResponse>} - Success response
|
|
24
23
|
* @name addProxyPath
|
|
25
24
|
* @summary: Create extension proxy
|
|
26
25
|
* @description: Extension proxy can be used to call extension API from storefront and make extension API integration seamless. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/addProxyPath/).
|
|
@@ -78,10 +77,10 @@ class Partner {
|
|
|
78
77
|
|
|
79
78
|
const {
|
|
80
79
|
error: res_error,
|
|
81
|
-
} = PartnerPlatformModel.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
);
|
|
80
|
+
} = PartnerPlatformModel.AddProxyResponse().validate(responseData, {
|
|
81
|
+
abortEarly: false,
|
|
82
|
+
allowUnknown: true,
|
|
83
|
+
});
|
|
85
84
|
|
|
86
85
|
if (res_error) {
|
|
87
86
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -101,8 +100,7 @@ class Partner {
|
|
|
101
100
|
* @param {PartnerPlatformApplicationValidator.RemoveProxyPathParam} arg - Arg object
|
|
102
101
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
103
102
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
104
|
-
* @returns {Promise<PartnerPlatformModel.
|
|
105
|
-
* Success response
|
|
103
|
+
* @returns {Promise<PartnerPlatformModel.RemoveProxyResponse>} - Success response
|
|
106
104
|
* @name removeProxyPath
|
|
107
105
|
* @summary: Remove extension proxy
|
|
108
106
|
* @description: Remove the proxy which are created earlier for the extension. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/removeProxyPath/).
|
|
@@ -160,7 +158,7 @@ class Partner {
|
|
|
160
158
|
|
|
161
159
|
const {
|
|
162
160
|
error: res_error,
|
|
163
|
-
} = PartnerPlatformModel.
|
|
161
|
+
} = PartnerPlatformModel.RemoveProxyResponse().validate(responseData, {
|
|
164
162
|
abortEarly: false,
|
|
165
163
|
allowUnknown: true,
|
|
166
164
|
});
|
|
@@ -6,7 +6,7 @@ export = PartnerPlatformModel;
|
|
|
6
6
|
* will be generated
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* @typedef
|
|
9
|
+
* @typedef AddProxyResponse
|
|
10
10
|
* @property {string} [_id]
|
|
11
11
|
* @property {string} [attached_path]
|
|
12
12
|
* @property {string} [proxy_url]
|
|
@@ -17,7 +17,7 @@ export = PartnerPlatformModel;
|
|
|
17
17
|
* @property {string} [modified_at]
|
|
18
18
|
*/
|
|
19
19
|
/**
|
|
20
|
-
* @typedef
|
|
20
|
+
* @typedef RemoveProxyResponse
|
|
21
21
|
* @property {string} [message]
|
|
22
22
|
* @property {Object} [data]
|
|
23
23
|
*/
|
|
@@ -32,7 +32,7 @@ export = PartnerPlatformModel;
|
|
|
32
32
|
declare class PartnerPlatformModel {
|
|
33
33
|
}
|
|
34
34
|
declare namespace PartnerPlatformModel {
|
|
35
|
-
export { AddProxyReq,
|
|
35
|
+
export { AddProxyReq, AddProxyResponse, RemoveProxyResponse, APIError };
|
|
36
36
|
}
|
|
37
37
|
/** @returns {AddProxyReq} */
|
|
38
38
|
declare function AddProxyReq(): AddProxyReq;
|
|
@@ -47,9 +47,9 @@ type AddProxyReq = {
|
|
|
47
47
|
*/
|
|
48
48
|
proxy_url?: string;
|
|
49
49
|
};
|
|
50
|
-
/** @returns {
|
|
51
|
-
declare function
|
|
52
|
-
type
|
|
50
|
+
/** @returns {AddProxyResponse} */
|
|
51
|
+
declare function AddProxyResponse(): AddProxyResponse;
|
|
52
|
+
type AddProxyResponse = {
|
|
53
53
|
_id?: string;
|
|
54
54
|
attached_path?: string;
|
|
55
55
|
proxy_url?: string;
|
|
@@ -59,9 +59,9 @@ type ExtensionProxyPathCreation = {
|
|
|
59
59
|
created_at?: string;
|
|
60
60
|
modified_at?: string;
|
|
61
61
|
};
|
|
62
|
-
/** @returns {
|
|
63
|
-
declare function
|
|
64
|
-
type
|
|
62
|
+
/** @returns {RemoveProxyResponse} */
|
|
63
|
+
declare function RemoveProxyResponse(): RemoveProxyResponse;
|
|
64
|
+
type RemoveProxyResponse = {
|
|
65
65
|
message?: string;
|
|
66
66
|
data?: any;
|
|
67
67
|
};
|