@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15-beta.3
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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
- package/sdk/application/Cart/CartApplicationClient.js +111 -1200
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +2 -92
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
- package/sdk/application/Content/ContentApplicationClient.d.ts +52 -95
- package/sdk/application/Content/ContentApplicationClient.js +46 -990
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +5 -217
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +89 -493
- package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
- package/sdk/application/Order/OrderApplicationClient.js +52 -507
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +93 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +7 -309
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +44 -1820
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5046 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1979 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
- package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +795 -7
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Partner/PartnerPublicClient.js +4 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +12 -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 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- 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 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- 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 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- 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 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- 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 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- 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 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- 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
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
export = OrderApplicationValidator;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef GetCustomerDetailsByShipmentIdParam
|
|
4
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
5
|
-
* tracking your orders.
|
|
6
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
7
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
8
|
-
* its own ID.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* @typedef GetInvoiceByShipmentIdParam
|
|
12
|
-
* @property {string} shipmentId - ID of the shipment.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* @typedef GetOrderByIdParam
|
|
16
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
17
|
-
* tracking an order.
|
|
18
|
-
* @property {boolean} [allowInactive] - Flag to allow inactive shipments.
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* @typedef GetOrdersParam
|
|
22
|
-
* @property {number} [status] - A filter to retrieve orders by their current
|
|
23
|
-
* status such as 'placed', 'delivered' etc.
|
|
24
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
25
|
-
* set of results. Default value is 1.
|
|
26
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
27
|
-
* Default value is 10.
|
|
28
|
-
* @property {string} [fromDate] - The date from which the orders should be retrieved.
|
|
29
|
-
* @property {string} [toDate] - The date till which the orders should be retrieved.
|
|
30
|
-
* @property {string} [startDate] - Start date in UTC (ISO-8601 format).
|
|
31
|
-
* @property {string} [endDate] - End date in UTC (ISO-8601 format).
|
|
32
|
-
* @property {string} [customMeta] - A filter and retrieve data using special
|
|
33
|
-
* fields included for special use-cases.
|
|
34
|
-
* @property {boolean} [allowInactive] - Flag indicating whether inactive
|
|
35
|
-
* shipments are allowed.
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* @typedef GetShipmentBagReasonsParam
|
|
39
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
40
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
41
|
-
* its own ID.
|
|
42
|
-
* @property {string} bagId - ID of the bag. An shipment may contain multiple
|
|
43
|
-
* items and may get divided into one or more bags, each having its own ID.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* @typedef GetShipmentByIdParam
|
|
47
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
48
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
49
|
-
* its own ID.
|
|
50
|
-
* @property {boolean} [allowInactive] - Flag to allow inactive shipments.
|
|
51
|
-
*/
|
|
52
|
-
/**
|
|
53
|
-
* @typedef GetShipmentReasonsParam
|
|
54
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
55
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
56
|
-
* its own ID.
|
|
57
|
-
*/
|
|
58
|
-
/**
|
|
59
|
-
* @typedef SendOtpToShipmentCustomerParam
|
|
60
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
61
|
-
* tracking your orders.
|
|
62
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
63
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
64
|
-
* its own ID.
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* @typedef TrackShipmentParam
|
|
68
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
69
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
70
|
-
* its own ID.
|
|
71
|
-
*/
|
|
72
|
-
/**
|
|
73
|
-
* @typedef UpdateShipmentStatusParam
|
|
74
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
75
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
76
|
-
* its own ID.
|
|
77
|
-
* @property {OrderApplicationModel.UpdateShipmentStatusRequest} body
|
|
78
|
-
*/
|
|
79
|
-
/**
|
|
80
|
-
* @typedef VerifyOtpShipmentCustomerParam
|
|
81
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
82
|
-
* tracking your orders.
|
|
83
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
84
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
85
|
-
* its own ID.
|
|
86
|
-
* @property {OrderApplicationModel.VerifyOtp} body
|
|
87
|
-
*/
|
|
88
|
-
declare class OrderApplicationValidator {
|
|
89
|
-
/** @returns {GetCustomerDetailsByShipmentIdParam} */
|
|
90
|
-
static getCustomerDetailsByShipmentId(): GetCustomerDetailsByShipmentIdParam;
|
|
91
|
-
/** @returns {GetInvoiceByShipmentIdParam} */
|
|
92
|
-
static getInvoiceByShipmentId(): GetInvoiceByShipmentIdParam;
|
|
93
|
-
/** @returns {GetOrderByIdParam} */
|
|
94
|
-
static getOrderById(): GetOrderByIdParam;
|
|
95
|
-
/** @returns {GetOrdersParam} */
|
|
96
|
-
static getOrders(): GetOrdersParam;
|
|
97
|
-
/** @returns {GetShipmentBagReasonsParam} */
|
|
98
|
-
static getShipmentBagReasons(): GetShipmentBagReasonsParam;
|
|
99
|
-
/** @returns {GetShipmentByIdParam} */
|
|
100
|
-
static getShipmentById(): GetShipmentByIdParam;
|
|
101
|
-
/** @returns {GetShipmentReasonsParam} */
|
|
102
|
-
static getShipmentReasons(): GetShipmentReasonsParam;
|
|
103
|
-
/** @returns {SendOtpToShipmentCustomerParam} */
|
|
104
|
-
static sendOtpToShipmentCustomer(): SendOtpToShipmentCustomerParam;
|
|
105
|
-
/** @returns {TrackShipmentParam} */
|
|
106
|
-
static trackShipment(): TrackShipmentParam;
|
|
107
|
-
/** @returns {UpdateShipmentStatusParam} */
|
|
108
|
-
static updateShipmentStatus(): UpdateShipmentStatusParam;
|
|
109
|
-
/** @returns {VerifyOtpShipmentCustomerParam} */
|
|
110
|
-
static verifyOtpShipmentCustomer(): VerifyOtpShipmentCustomerParam;
|
|
111
|
-
}
|
|
112
|
-
declare namespace OrderApplicationValidator {
|
|
113
|
-
export { GetCustomerDetailsByShipmentIdParam, GetInvoiceByShipmentIdParam, GetOrderByIdParam, GetOrdersParam, GetShipmentBagReasonsParam, GetShipmentByIdParam, GetShipmentReasonsParam, SendOtpToShipmentCustomerParam, TrackShipmentParam, UpdateShipmentStatusParam, VerifyOtpShipmentCustomerParam };
|
|
114
|
-
}
|
|
115
|
-
type GetCustomerDetailsByShipmentIdParam = {
|
|
116
|
-
/**
|
|
117
|
-
* - A unique number used for identifying and
|
|
118
|
-
* tracking your orders.
|
|
119
|
-
*/
|
|
120
|
-
orderId: string;
|
|
121
|
-
/**
|
|
122
|
-
* - ID of the shipment. An order may contain
|
|
123
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
124
|
-
* its own ID.
|
|
125
|
-
*/
|
|
126
|
-
shipmentId: string;
|
|
127
|
-
};
|
|
128
|
-
type GetInvoiceByShipmentIdParam = {
|
|
129
|
-
/**
|
|
130
|
-
* - ID of the shipment.
|
|
131
|
-
*/
|
|
132
|
-
shipmentId: string;
|
|
133
|
-
};
|
|
134
|
-
type GetOrderByIdParam = {
|
|
135
|
-
/**
|
|
136
|
-
* - A unique number used for identifying and
|
|
137
|
-
* tracking an order.
|
|
138
|
-
*/
|
|
139
|
-
orderId: string;
|
|
140
|
-
/**
|
|
141
|
-
* - Flag to allow inactive shipments.
|
|
142
|
-
*/
|
|
143
|
-
allowInactive?: boolean;
|
|
144
|
-
};
|
|
145
|
-
type GetOrdersParam = {
|
|
146
|
-
/**
|
|
147
|
-
* - A filter to retrieve orders by their current
|
|
148
|
-
* status such as 'placed', 'delivered' etc.
|
|
149
|
-
*/
|
|
150
|
-
status?: number;
|
|
151
|
-
/**
|
|
152
|
-
* - The page number to navigate through the given
|
|
153
|
-
* set of results. Default value is 1.
|
|
154
|
-
*/
|
|
155
|
-
pageNo?: number;
|
|
156
|
-
/**
|
|
157
|
-
* - The number of items to retrieve in each page.
|
|
158
|
-
* Default value is 10.
|
|
159
|
-
*/
|
|
160
|
-
pageSize?: number;
|
|
161
|
-
/**
|
|
162
|
-
* - The date from which the orders should be retrieved.
|
|
163
|
-
*/
|
|
164
|
-
fromDate?: string;
|
|
165
|
-
/**
|
|
166
|
-
* - The date till which the orders should be retrieved.
|
|
167
|
-
*/
|
|
168
|
-
toDate?: string;
|
|
169
|
-
/**
|
|
170
|
-
* - Start date in UTC (ISO-8601 format).
|
|
171
|
-
*/
|
|
172
|
-
startDate?: string;
|
|
173
|
-
/**
|
|
174
|
-
* - End date in UTC (ISO-8601 format).
|
|
175
|
-
*/
|
|
176
|
-
endDate?: string;
|
|
177
|
-
/**
|
|
178
|
-
* - A filter and retrieve data using special
|
|
179
|
-
* fields included for special use-cases.
|
|
180
|
-
*/
|
|
181
|
-
customMeta?: string;
|
|
182
|
-
/**
|
|
183
|
-
* - Flag indicating whether inactive
|
|
184
|
-
* shipments are allowed.
|
|
185
|
-
*/
|
|
186
|
-
allowInactive?: boolean;
|
|
187
|
-
};
|
|
188
|
-
type GetShipmentBagReasonsParam = {
|
|
189
|
-
/**
|
|
190
|
-
* - ID of the shipment. An order may contain
|
|
191
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
192
|
-
* its own ID.
|
|
193
|
-
*/
|
|
194
|
-
shipmentId: string;
|
|
195
|
-
/**
|
|
196
|
-
* - ID of the bag. An shipment may contain multiple
|
|
197
|
-
* items and may get divided into one or more bags, each having its own ID.
|
|
198
|
-
*/
|
|
199
|
-
bagId: string;
|
|
200
|
-
};
|
|
201
|
-
type GetShipmentByIdParam = {
|
|
202
|
-
/**
|
|
203
|
-
* - ID of the shipment. An order may contain
|
|
204
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
205
|
-
* its own ID.
|
|
206
|
-
*/
|
|
207
|
-
shipmentId: string;
|
|
208
|
-
/**
|
|
209
|
-
* - Flag to allow inactive shipments.
|
|
210
|
-
*/
|
|
211
|
-
allowInactive?: boolean;
|
|
212
|
-
};
|
|
213
|
-
type GetShipmentReasonsParam = {
|
|
214
|
-
/**
|
|
215
|
-
* - ID of the shipment. An order may contain
|
|
216
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
217
|
-
* its own ID.
|
|
218
|
-
*/
|
|
219
|
-
shipmentId: string;
|
|
220
|
-
};
|
|
221
|
-
type SendOtpToShipmentCustomerParam = {
|
|
222
|
-
/**
|
|
223
|
-
* - A unique number used for identifying and
|
|
224
|
-
* tracking your orders.
|
|
225
|
-
*/
|
|
226
|
-
orderId: string;
|
|
227
|
-
/**
|
|
228
|
-
* - ID of the shipment. An order may contain
|
|
229
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
230
|
-
* its own ID.
|
|
231
|
-
*/
|
|
232
|
-
shipmentId: string;
|
|
233
|
-
};
|
|
234
|
-
type TrackShipmentParam = {
|
|
235
|
-
/**
|
|
236
|
-
* - ID of the shipment. An order may contain
|
|
237
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
238
|
-
* its own ID.
|
|
239
|
-
*/
|
|
240
|
-
shipmentId: string;
|
|
241
|
-
};
|
|
242
|
-
type UpdateShipmentStatusParam = {
|
|
243
|
-
/**
|
|
244
|
-
* - ID of the shipment. An order may contain
|
|
245
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
246
|
-
* its own ID.
|
|
247
|
-
*/
|
|
248
|
-
shipmentId: string;
|
|
249
|
-
body: OrderApplicationModel.UpdateShipmentStatusRequest;
|
|
250
|
-
};
|
|
251
|
-
type VerifyOtpShipmentCustomerParam = {
|
|
252
|
-
/**
|
|
253
|
-
* - A unique number used for identifying and
|
|
254
|
-
* tracking your orders.
|
|
255
|
-
*/
|
|
256
|
-
orderId: string;
|
|
257
|
-
/**
|
|
258
|
-
* - ID of the shipment. An order may contain
|
|
259
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
260
|
-
* its own ID.
|
|
261
|
-
*/
|
|
262
|
-
shipmentId: string;
|
|
263
|
-
body: OrderApplicationModel.VerifyOtp;
|
|
264
|
-
};
|
|
265
|
-
import OrderApplicationModel = require("./OrderApplicationModel");
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
const OrderApplicationModel = require("./OrderApplicationModel");
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef GetCustomerDetailsByShipmentIdParam
|
|
7
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
8
|
-
* tracking your orders.
|
|
9
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
10
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
11
|
-
* its own ID.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @typedef GetInvoiceByShipmentIdParam
|
|
16
|
-
* @property {string} shipmentId - ID of the shipment.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @typedef GetOrderByIdParam
|
|
21
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
22
|
-
* tracking an order.
|
|
23
|
-
* @property {boolean} [allowInactive] - Flag to allow inactive shipments.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @typedef GetOrdersParam
|
|
28
|
-
* @property {number} [status] - A filter to retrieve orders by their current
|
|
29
|
-
* status such as 'placed', 'delivered' etc.
|
|
30
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
31
|
-
* set of results. Default value is 1.
|
|
32
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
33
|
-
* Default value is 10.
|
|
34
|
-
* @property {string} [fromDate] - The date from which the orders should be retrieved.
|
|
35
|
-
* @property {string} [toDate] - The date till which the orders should be retrieved.
|
|
36
|
-
* @property {string} [startDate] - Start date in UTC (ISO-8601 format).
|
|
37
|
-
* @property {string} [endDate] - End date in UTC (ISO-8601 format).
|
|
38
|
-
* @property {string} [customMeta] - A filter and retrieve data using special
|
|
39
|
-
* fields included for special use-cases.
|
|
40
|
-
* @property {boolean} [allowInactive] - Flag indicating whether inactive
|
|
41
|
-
* shipments are allowed.
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @typedef GetShipmentBagReasonsParam
|
|
46
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
47
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
48
|
-
* its own ID.
|
|
49
|
-
* @property {string} bagId - ID of the bag. An shipment may contain multiple
|
|
50
|
-
* items and may get divided into one or more bags, each having its own ID.
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @typedef GetShipmentByIdParam
|
|
55
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
56
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
57
|
-
* its own ID.
|
|
58
|
-
* @property {boolean} [allowInactive] - Flag to allow inactive shipments.
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @typedef GetShipmentReasonsParam
|
|
63
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
64
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
65
|
-
* its own ID.
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @typedef SendOtpToShipmentCustomerParam
|
|
70
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
71
|
-
* tracking your orders.
|
|
72
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
73
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
74
|
-
* its own ID.
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @typedef TrackShipmentParam
|
|
79
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
80
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
81
|
-
* its own ID.
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @typedef UpdateShipmentStatusParam
|
|
86
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
87
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
88
|
-
* its own ID.
|
|
89
|
-
* @property {OrderApplicationModel.UpdateShipmentStatusRequest} body
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @typedef VerifyOtpShipmentCustomerParam
|
|
94
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
95
|
-
* tracking your orders.
|
|
96
|
-
* @property {string} shipmentId - ID of the shipment. An order may contain
|
|
97
|
-
* multiple items and may get divided into one or more shipment, each having
|
|
98
|
-
* its own ID.
|
|
99
|
-
* @property {OrderApplicationModel.VerifyOtp} body
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
class OrderApplicationValidator {
|
|
103
|
-
/** @returns {GetCustomerDetailsByShipmentIdParam} */
|
|
104
|
-
static getCustomerDetailsByShipmentId() {
|
|
105
|
-
return Joi.object({
|
|
106
|
-
orderId: Joi.string().allow("").required(),
|
|
107
|
-
shipmentId: Joi.string().allow("").required(),
|
|
108
|
-
}).required();
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/** @returns {GetInvoiceByShipmentIdParam} */
|
|
112
|
-
static getInvoiceByShipmentId() {
|
|
113
|
-
return Joi.object({
|
|
114
|
-
shipmentId: Joi.string().allow("").required(),
|
|
115
|
-
}).required();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** @returns {GetOrderByIdParam} */
|
|
119
|
-
static getOrderById() {
|
|
120
|
-
return Joi.object({
|
|
121
|
-
orderId: Joi.string().allow("").required(),
|
|
122
|
-
allowInactive: Joi.boolean(),
|
|
123
|
-
}).required();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** @returns {GetOrdersParam} */
|
|
127
|
-
static getOrders() {
|
|
128
|
-
return Joi.object({
|
|
129
|
-
status: Joi.number(),
|
|
130
|
-
pageNo: Joi.number(),
|
|
131
|
-
pageSize: Joi.number(),
|
|
132
|
-
fromDate: Joi.string().allow(""),
|
|
133
|
-
toDate: Joi.string().allow(""),
|
|
134
|
-
startDate: Joi.string().allow(""),
|
|
135
|
-
endDate: Joi.string().allow(""),
|
|
136
|
-
customMeta: Joi.string().allow(""),
|
|
137
|
-
allowInactive: Joi.boolean(),
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** @returns {GetShipmentBagReasonsParam} */
|
|
142
|
-
static getShipmentBagReasons() {
|
|
143
|
-
return Joi.object({
|
|
144
|
-
shipmentId: Joi.string().allow("").required(),
|
|
145
|
-
bagId: Joi.string().allow("").required(),
|
|
146
|
-
}).required();
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** @returns {GetShipmentByIdParam} */
|
|
150
|
-
static getShipmentById() {
|
|
151
|
-
return Joi.object({
|
|
152
|
-
shipmentId: Joi.string().allow("").required(),
|
|
153
|
-
allowInactive: Joi.boolean(),
|
|
154
|
-
}).required();
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/** @returns {GetShipmentReasonsParam} */
|
|
158
|
-
static getShipmentReasons() {
|
|
159
|
-
return Joi.object({
|
|
160
|
-
shipmentId: Joi.string().allow("").required(),
|
|
161
|
-
}).required();
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/** @returns {SendOtpToShipmentCustomerParam} */
|
|
165
|
-
static sendOtpToShipmentCustomer() {
|
|
166
|
-
return Joi.object({
|
|
167
|
-
orderId: Joi.string().allow("").required(),
|
|
168
|
-
shipmentId: Joi.string().allow("").required(),
|
|
169
|
-
}).required();
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/** @returns {TrackShipmentParam} */
|
|
173
|
-
static trackShipment() {
|
|
174
|
-
return Joi.object({
|
|
175
|
-
shipmentId: Joi.string().allow("").required(),
|
|
176
|
-
}).required();
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/** @returns {UpdateShipmentStatusParam} */
|
|
180
|
-
static updateShipmentStatus() {
|
|
181
|
-
return Joi.object({
|
|
182
|
-
shipmentId: Joi.string().allow("").required(),
|
|
183
|
-
body: OrderApplicationModel.UpdateShipmentStatusRequest().required(),
|
|
184
|
-
}).required();
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @returns {VerifyOtpShipmentCustomerParam} */
|
|
188
|
-
static verifyOtpShipmentCustomer() {
|
|
189
|
-
return Joi.object({
|
|
190
|
-
orderId: Joi.string().allow("").required(),
|
|
191
|
-
shipmentId: Joi.string().allow("").required(),
|
|
192
|
-
body: OrderApplicationModel.VerifyOtp().required(),
|
|
193
|
-
}).required();
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
module.exports = OrderApplicationValidator;
|