@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +304 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +22 -1
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +297 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +74 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +195 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +418 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -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 +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- 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 +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- 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 +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -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 +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -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 +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -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 +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- 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 +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- 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 +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- 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 +21 -6
- 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 +20 -791
- 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.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef GeneralConfigResponse
|
|
5
5
|
* @property {string} [_id]
|
|
6
6
|
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
7
7
|
* @property {boolean} [show_communication_info]
|
|
@@ -325,8 +325,8 @@ const Joi = require("joi");
|
|
|
325
325
|
/** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
|
|
326
326
|
|
|
327
327
|
class LeadPlatformModel {
|
|
328
|
-
/** @returns {
|
|
329
|
-
static
|
|
328
|
+
/** @returns {GeneralConfigResponse} */
|
|
329
|
+
static GeneralConfigResponse() {
|
|
330
330
|
return Joi.object({
|
|
331
331
|
_id: Joi.string().allow(""),
|
|
332
332
|
support_communication: Joi.array().items(
|
|
@@ -474,7 +474,7 @@ class LeadPlatformModel {
|
|
|
474
474
|
/** @returns {TicketHistoryPayload} */
|
|
475
475
|
static TicketHistoryPayload() {
|
|
476
476
|
return Joi.object({
|
|
477
|
-
value: Joi.
|
|
477
|
+
value: Joi.any().required(),
|
|
478
478
|
type: LeadPlatformModel.HistoryTypeEnum().required(),
|
|
479
479
|
});
|
|
480
480
|
}
|
|
@@ -515,12 +515,12 @@ class LeadPlatformModel {
|
|
|
515
515
|
/** @returns {AddTicketPayload} */
|
|
516
516
|
static AddTicketPayload() {
|
|
517
517
|
return Joi.object({
|
|
518
|
-
created_by: Joi.
|
|
518
|
+
created_by: Joi.any(),
|
|
519
519
|
status: Joi.string().allow(""),
|
|
520
520
|
priority: LeadPlatformModel.PriorityEnum(),
|
|
521
521
|
category: Joi.string().allow("").required(),
|
|
522
522
|
content: LeadPlatformModel.TicketContent().required(),
|
|
523
|
-
_custom_json: Joi.
|
|
523
|
+
_custom_json: Joi.any(),
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
|
|
@@ -559,7 +559,7 @@ class LeadPlatformModel {
|
|
|
559
559
|
/** @returns {TicketFeedbackPayload} */
|
|
560
560
|
static TicketFeedbackPayload() {
|
|
561
561
|
return Joi.object({
|
|
562
|
-
form_response: Joi.
|
|
562
|
+
form_response: Joi.any(),
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
565
|
|
|
@@ -605,9 +605,9 @@ class LeadPlatformModel {
|
|
|
605
605
|
/** @returns {FeedbackForm} */
|
|
606
606
|
static FeedbackForm() {
|
|
607
607
|
return Joi.object({
|
|
608
|
-
inputs: Joi.
|
|
608
|
+
inputs: Joi.any(),
|
|
609
609
|
title: Joi.string().allow(""),
|
|
610
|
-
timestamps: Joi.
|
|
610
|
+
timestamps: Joi.any(),
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
|
|
@@ -641,7 +641,7 @@ class LeadPlatformModel {
|
|
|
641
641
|
.items(LeadPlatformModel.FeedbackResponseItem())
|
|
642
642
|
.required(),
|
|
643
643
|
category: Joi.string().allow(""),
|
|
644
|
-
user: Joi.
|
|
644
|
+
user: Joi.any(),
|
|
645
645
|
updated_at: Joi.string().allow(""),
|
|
646
646
|
created_at: Joi.string().allow(""),
|
|
647
647
|
});
|
|
@@ -651,10 +651,10 @@ class LeadPlatformModel {
|
|
|
651
651
|
static TicketHistory() {
|
|
652
652
|
return Joi.object({
|
|
653
653
|
type: Joi.string().allow("").required(),
|
|
654
|
-
value: Joi.
|
|
654
|
+
value: Joi.any().required(),
|
|
655
655
|
ticket_id: Joi.string().allow("").required(),
|
|
656
656
|
created_on: LeadPlatformModel.CreatedOn(),
|
|
657
|
-
created_by: Joi.
|
|
657
|
+
created_by: Joi.any(),
|
|
658
658
|
_id: Joi.string().allow("").required(),
|
|
659
659
|
updated_at: Joi.string().allow(""),
|
|
660
660
|
created_at: Joi.string().allow(""),
|
|
@@ -674,12 +674,12 @@ class LeadPlatformModel {
|
|
|
674
674
|
status: LeadPlatformModel.Status().required(),
|
|
675
675
|
priority: LeadPlatformModel.Priority().required(),
|
|
676
676
|
sla: LeadPlatformModel.SLA(),
|
|
677
|
-
created_by: Joi.
|
|
678
|
-
assigned_to: Joi.
|
|
677
|
+
created_by: Joi.any(),
|
|
678
|
+
assigned_to: Joi.any(),
|
|
679
679
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
680
|
-
_custom_json: Joi.
|
|
680
|
+
_custom_json: Joi.any(),
|
|
681
681
|
is_feedback_pending: Joi.boolean(),
|
|
682
|
-
integration: Joi.
|
|
682
|
+
integration: Joi.any(),
|
|
683
683
|
_id: Joi.string().allow("").required(),
|
|
684
684
|
updated_at: Joi.string().allow(""),
|
|
685
685
|
created_at: Joi.string().allow(""),
|
|
@@ -19,37 +19,26 @@ declare class Order {
|
|
|
19
19
|
*
|
|
20
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
-
* @returns {Promise<OrderPlatformModel.
|
|
22
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
|
|
23
23
|
* - Success response
|
|
24
24
|
*
|
|
25
25
|
* @name getApplicationShipments
|
|
26
26
|
* @summary: List sales channel shipments
|
|
27
27
|
* @description: Get shipments of a particular sales channel based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
|
|
28
28
|
*/
|
|
29
|
-
getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.
|
|
29
|
+
getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* @param {OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam} arg
|
|
32
32
|
* - Arg object
|
|
33
33
|
*
|
|
34
34
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
35
35
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
36
|
-
* @returns {Promise<OrderPlatformModel.
|
|
37
|
-
* Success response
|
|
36
|
+
* @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
|
|
38
37
|
* @name getPlatformShipmentReasons
|
|
39
38
|
* @summary: List shipment cancellation reasons
|
|
40
39
|
* @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
|
|
41
40
|
*/
|
|
42
|
-
getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.
|
|
43
|
-
/**
|
|
44
|
-
* @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
|
|
45
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
46
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
47
|
-
* @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
|
|
48
|
-
* @name getRules
|
|
49
|
-
* @summary: List of RMA rules based on the given input conditions.
|
|
50
|
-
* @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
|
|
51
|
-
*/
|
|
52
|
-
getRules({ body, requestHeaders }?: OrderPlatformApplicationValidator.GetRulesParam, { responseHeaders }?: object): Promise<OrderPlatformModel.RuleListResponseSchema>;
|
|
41
|
+
getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponse>;
|
|
53
42
|
/**
|
|
54
43
|
* @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg
|
|
55
44
|
* - Arg object
|
|
@@ -58,8 +47,8 @@ declare class Order {
|
|
|
58
47
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
59
48
|
* @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
|
|
60
49
|
* @name getShipmentBagReasons
|
|
61
|
-
* @summary:
|
|
62
|
-
* @description:
|
|
50
|
+
* @summary: List bag cancellation reasons
|
|
51
|
+
* @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
|
|
63
52
|
*/
|
|
64
53
|
getShipmentBagReasons({ shipmentId, lineNumber, requestHeaders }?: OrderPlatformApplicationValidator.GetShipmentBagReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentBagReasons>;
|
|
65
54
|
/**
|
|
@@ -113,7 +113,7 @@ class Order {
|
|
|
113
113
|
*
|
|
114
114
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
115
115
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
116
|
-
* @returns {Promise<OrderPlatformModel.
|
|
116
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
|
|
117
117
|
* - Success response
|
|
118
118
|
*
|
|
119
119
|
* @name getApplicationShipments
|
|
@@ -231,7 +231,7 @@ class Order {
|
|
|
231
231
|
|
|
232
232
|
const {
|
|
233
233
|
error: res_error,
|
|
234
|
-
} = OrderPlatformModel.
|
|
234
|
+
} = OrderPlatformModel.ShipmentInternalPlatformViewResponse().validate(
|
|
235
235
|
responseData,
|
|
236
236
|
{ abortEarly: false, allowUnknown: true }
|
|
237
237
|
);
|
|
@@ -256,8 +256,7 @@ class Order {
|
|
|
256
256
|
*
|
|
257
257
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
258
258
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
259
|
-
* @returns {Promise<OrderPlatformModel.
|
|
260
|
-
* Success response
|
|
259
|
+
* @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
|
|
261
260
|
* @name getPlatformShipmentReasons
|
|
262
261
|
* @summary: List shipment cancellation reasons
|
|
263
262
|
* @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
|
|
@@ -313,84 +312,7 @@ class Order {
|
|
|
313
312
|
|
|
314
313
|
const {
|
|
315
314
|
error: res_error,
|
|
316
|
-
} = OrderPlatformModel.
|
|
317
|
-
responseData,
|
|
318
|
-
{ abortEarly: false, allowUnknown: true }
|
|
319
|
-
);
|
|
320
|
-
|
|
321
|
-
if (res_error) {
|
|
322
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
323
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
324
|
-
} else {
|
|
325
|
-
Logger({
|
|
326
|
-
level: "WARN",
|
|
327
|
-
message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
return response;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
|
|
337
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
338
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
339
|
-
* @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
|
|
340
|
-
* @name getRules
|
|
341
|
-
* @summary: List of RMA rules based on the given input conditions.
|
|
342
|
-
* @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
|
|
343
|
-
*/
|
|
344
|
-
async getRules(
|
|
345
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
346
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
347
|
-
) {
|
|
348
|
-
const { error } = OrderPlatformApplicationValidator.getRules().validate(
|
|
349
|
-
{
|
|
350
|
-
body,
|
|
351
|
-
},
|
|
352
|
-
{ abortEarly: false, allowUnknown: true }
|
|
353
|
-
);
|
|
354
|
-
if (error) {
|
|
355
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
// Showing warrnings if extra unknown parameters are found
|
|
359
|
-
const {
|
|
360
|
-
error: warrning,
|
|
361
|
-
} = OrderPlatformApplicationValidator.getRules().validate(
|
|
362
|
-
{
|
|
363
|
-
body,
|
|
364
|
-
},
|
|
365
|
-
{ abortEarly: false, allowUnknown: false }
|
|
366
|
-
);
|
|
367
|
-
if (warrning) {
|
|
368
|
-
Logger({
|
|
369
|
-
level: "WARN",
|
|
370
|
-
message: `Parameter Validation warrnings for platform > Order > getRules \n ${warrning}`,
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
const query_params = {};
|
|
375
|
-
|
|
376
|
-
const response = await PlatformAPIClient.execute(
|
|
377
|
-
this.config,
|
|
378
|
-
"post",
|
|
379
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule_list`,
|
|
380
|
-
query_params,
|
|
381
|
-
body,
|
|
382
|
-
requestHeaders,
|
|
383
|
-
{ responseHeaders }
|
|
384
|
-
);
|
|
385
|
-
|
|
386
|
-
let responseData = response;
|
|
387
|
-
if (responseHeaders) {
|
|
388
|
-
responseData = response[0];
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
const {
|
|
392
|
-
error: res_error,
|
|
393
|
-
} = OrderPlatformModel.RuleListResponseSchema().validate(responseData, {
|
|
315
|
+
} = OrderPlatformModel.ShipmentReasonsResponse().validate(responseData, {
|
|
394
316
|
abortEarly: false,
|
|
395
317
|
allowUnknown: true,
|
|
396
318
|
});
|
|
@@ -401,7 +323,7 @@ class Order {
|
|
|
401
323
|
} else {
|
|
402
324
|
Logger({
|
|
403
325
|
level: "WARN",
|
|
404
|
-
message: `Response Validation Warnings for platform > Order >
|
|
326
|
+
message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
|
|
405
327
|
});
|
|
406
328
|
}
|
|
407
329
|
}
|
|
@@ -417,8 +339,8 @@ class Order {
|
|
|
417
339
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
418
340
|
* @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
|
|
419
341
|
* @name getShipmentBagReasons
|
|
420
|
-
* @summary:
|
|
421
|
-
* @description:
|
|
342
|
+
* @summary: List bag cancellation reasons
|
|
343
|
+
* @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
|
|
422
344
|
*/
|
|
423
345
|
async getShipmentBagReasons(
|
|
424
346
|
{ shipmentId, lineNumber, requestHeaders } = { requestHeaders: {} },
|
|
@@ -8,47 +8,35 @@ export = OrderPlatformApplicationValidator;
|
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* @typedef GetApplicationShipmentsParam
|
|
11
|
-
* @property {string} [lane]
|
|
12
|
-
*
|
|
13
|
-
* @property {string} [
|
|
14
|
-
*
|
|
15
|
-
* @property {string} [
|
|
16
|
-
*
|
|
17
|
-
* @property {string} [
|
|
18
|
-
* @property {string} [
|
|
19
|
-
* @property {string} [
|
|
20
|
-
*
|
|
21
|
-
* @property {
|
|
22
|
-
*
|
|
23
|
-
* @property {string} [
|
|
24
|
-
* @property {
|
|
25
|
-
* @property {
|
|
26
|
-
* @property {number} [pageNo] - The page number for pagination of results.
|
|
27
|
-
* @property {number} [pageSize] - The number of results to return per page for
|
|
28
|
-
* pagination.
|
|
29
|
-
* @property {string} [customerId] - ID of the customer to filter results
|
|
30
|
-
* related to specific customer.
|
|
31
|
-
* @property {boolean} [isPrioritySort] - Flag to determine if results should be
|
|
32
|
-
* sorted by priority. Defaults to true.
|
|
33
|
-
* @property {boolean} [excludeLockedShipments] - Flag to exclude shipments that
|
|
34
|
-
* are currently locked from the results.
|
|
11
|
+
* @property {string} [lane]
|
|
12
|
+
* @property {string} [searchType]
|
|
13
|
+
* @property {string} [searchId]
|
|
14
|
+
* @property {string} [fromDate]
|
|
15
|
+
* @property {string} [toDate]
|
|
16
|
+
* @property {string} [dpIds]
|
|
17
|
+
* @property {string} [orderingCompanyId]
|
|
18
|
+
* @property {string} [stores]
|
|
19
|
+
* @property {string} [salesChannel]
|
|
20
|
+
* @property {string} [requestByExt]
|
|
21
|
+
* @property {number} [pageNo]
|
|
22
|
+
* @property {number} [pageSize]
|
|
23
|
+
* @property {string} [customerId]
|
|
24
|
+
* @property {boolean} [isPrioritySort]
|
|
25
|
+
* @property {boolean} [excludeLockedShipments]
|
|
35
26
|
*/
|
|
36
27
|
/**
|
|
37
28
|
* @typedef GetPlatformShipmentReasonsParam
|
|
38
29
|
* @property {string} action
|
|
39
30
|
*/
|
|
40
|
-
/**
|
|
41
|
-
* @typedef GetRulesParam
|
|
42
|
-
* @property {OrderPlatformModel.RuleListRequestSchema} body
|
|
43
|
-
*/
|
|
44
31
|
/**
|
|
45
32
|
* @typedef GetShipmentBagReasonsParam
|
|
46
|
-
* @property {string} shipmentId -
|
|
47
|
-
*
|
|
33
|
+
* @property {string} shipmentId - ID of the bag. An order may contain multiple
|
|
34
|
+
* items and may get divided into one or more shipment, each having its own ID.
|
|
35
|
+
* @property {number} lineNumber - Line number of bag.
|
|
48
36
|
*/
|
|
49
37
|
/**
|
|
50
38
|
* @typedef TrackShipmentPlatformParam
|
|
51
|
-
* @property {string} shipmentId -
|
|
39
|
+
* @property {string} shipmentId - Shipment Id
|
|
52
40
|
*/
|
|
53
41
|
declare class OrderPlatformApplicationValidator {
|
|
54
42
|
/** @returns {FailedOrderLogsParam} */
|
|
@@ -57,15 +45,13 @@ declare class OrderPlatformApplicationValidator {
|
|
|
57
45
|
static getApplicationShipments(): GetApplicationShipmentsParam;
|
|
58
46
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
59
47
|
static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
|
|
60
|
-
/** @returns {GetRulesParam} */
|
|
61
|
-
static getRules(): GetRulesParam;
|
|
62
48
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
63
49
|
static getShipmentBagReasons(): GetShipmentBagReasonsParam;
|
|
64
50
|
/** @returns {TrackShipmentPlatformParam} */
|
|
65
51
|
static trackShipmentPlatform(): TrackShipmentPlatformParam;
|
|
66
52
|
}
|
|
67
53
|
declare namespace OrderPlatformApplicationValidator {
|
|
68
|
-
export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam,
|
|
54
|
+
export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
69
55
|
}
|
|
70
56
|
type FailedOrderLogsParam = {
|
|
71
57
|
/**
|
|
@@ -86,96 +72,39 @@ type FailedOrderLogsParam = {
|
|
|
86
72
|
searchValue?: string;
|
|
87
73
|
};
|
|
88
74
|
type GetApplicationShipmentsParam = {
|
|
89
|
-
/**
|
|
90
|
-
* - Optional parameter to specify the lane for
|
|
91
|
-
* filtering results.
|
|
92
|
-
*/
|
|
93
75
|
lane?: string;
|
|
94
|
-
/**
|
|
95
|
-
* - Search_type refers to the field that will
|
|
96
|
-
* be used as the target for the search operation
|
|
97
|
-
*/
|
|
98
76
|
searchType?: string;
|
|
99
|
-
/**
|
|
100
|
-
* - Identifier used for the search operation
|
|
101
|
-
* based on the selected search type.
|
|
102
|
-
*/
|
|
103
77
|
searchId?: string;
|
|
104
|
-
/**
|
|
105
|
-
* - Date time in UTC timezone as per ISO format.
|
|
106
|
-
*/
|
|
107
78
|
fromDate?: string;
|
|
108
|
-
/**
|
|
109
|
-
* - Date time in UTC timezone as per ISO format.
|
|
110
|
-
*/
|
|
111
79
|
toDate?: string;
|
|
112
|
-
/**
|
|
113
|
-
* - Comma-separated list of delivery partner IDs to
|
|
114
|
-
* filter results.
|
|
115
|
-
*/
|
|
116
80
|
dpIds?: string;
|
|
117
|
-
/**
|
|
118
|
-
* - ID of the company placing the order,
|
|
119
|
-
* used for filtering results.
|
|
120
|
-
*/
|
|
121
81
|
orderingCompanyId?: string;
|
|
122
|
-
/**
|
|
123
|
-
* - Comma-separated list of store IDs to filter results.
|
|
124
|
-
*/
|
|
125
82
|
stores?: string;
|
|
126
|
-
/**
|
|
127
|
-
* - The sales channel to filter results.
|
|
128
|
-
*/
|
|
129
83
|
salesChannel?: string;
|
|
130
|
-
/**
|
|
131
|
-
* - Identifier for external requests.
|
|
132
|
-
*/
|
|
133
84
|
requestByExt?: string;
|
|
134
|
-
/**
|
|
135
|
-
* - The page number for pagination of results.
|
|
136
|
-
*/
|
|
137
85
|
pageNo?: number;
|
|
138
|
-
/**
|
|
139
|
-
* - The number of results to return per page for
|
|
140
|
-
* pagination.
|
|
141
|
-
*/
|
|
142
86
|
pageSize?: number;
|
|
143
|
-
/**
|
|
144
|
-
* - ID of the customer to filter results
|
|
145
|
-
* related to specific customer.
|
|
146
|
-
*/
|
|
147
87
|
customerId?: string;
|
|
148
|
-
/**
|
|
149
|
-
* - Flag to determine if results should be
|
|
150
|
-
* sorted by priority. Defaults to true.
|
|
151
|
-
*/
|
|
152
88
|
isPrioritySort?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* - Flag to exclude shipments that
|
|
155
|
-
* are currently locked from the results.
|
|
156
|
-
*/
|
|
157
89
|
excludeLockedShipments?: boolean;
|
|
158
90
|
};
|
|
159
91
|
type GetPlatformShipmentReasonsParam = {
|
|
160
92
|
action: string;
|
|
161
93
|
};
|
|
162
|
-
type GetRulesParam = {
|
|
163
|
-
body: OrderPlatformModel.RuleListRequestSchema;
|
|
164
|
-
};
|
|
165
94
|
type GetShipmentBagReasonsParam = {
|
|
166
95
|
/**
|
|
167
|
-
* -
|
|
96
|
+
* - ID of the bag. An order may contain multiple
|
|
97
|
+
* items and may get divided into one or more shipment, each having its own ID.
|
|
168
98
|
*/
|
|
169
99
|
shipmentId: string;
|
|
170
100
|
/**
|
|
171
|
-
* -
|
|
101
|
+
* - Line number of bag.
|
|
172
102
|
*/
|
|
173
103
|
lineNumber: number;
|
|
174
104
|
};
|
|
175
105
|
type TrackShipmentPlatformParam = {
|
|
176
106
|
/**
|
|
177
|
-
* -
|
|
107
|
+
* - Shipment Id
|
|
178
108
|
*/
|
|
179
109
|
shipmentId: string;
|
|
180
110
|
};
|
|
181
|
-
import OrderPlatformModel = require("./OrderPlatformModel");
|
|
@@ -12,30 +12,21 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @typedef GetApplicationShipmentsParam
|
|
15
|
-
* @property {string} [lane]
|
|
16
|
-
*
|
|
17
|
-
* @property {string} [
|
|
18
|
-
*
|
|
19
|
-
* @property {string} [
|
|
20
|
-
*
|
|
21
|
-
* @property {string} [
|
|
22
|
-
* @property {string} [
|
|
23
|
-
* @property {string} [
|
|
24
|
-
*
|
|
25
|
-
* @property {
|
|
26
|
-
*
|
|
27
|
-
* @property {string} [
|
|
28
|
-
* @property {
|
|
29
|
-
* @property {
|
|
30
|
-
* @property {number} [pageNo] - The page number for pagination of results.
|
|
31
|
-
* @property {number} [pageSize] - The number of results to return per page for
|
|
32
|
-
* pagination.
|
|
33
|
-
* @property {string} [customerId] - ID of the customer to filter results
|
|
34
|
-
* related to specific customer.
|
|
35
|
-
* @property {boolean} [isPrioritySort] - Flag to determine if results should be
|
|
36
|
-
* sorted by priority. Defaults to true.
|
|
37
|
-
* @property {boolean} [excludeLockedShipments] - Flag to exclude shipments that
|
|
38
|
-
* are currently locked from the results.
|
|
15
|
+
* @property {string} [lane]
|
|
16
|
+
* @property {string} [searchType]
|
|
17
|
+
* @property {string} [searchId]
|
|
18
|
+
* @property {string} [fromDate]
|
|
19
|
+
* @property {string} [toDate]
|
|
20
|
+
* @property {string} [dpIds]
|
|
21
|
+
* @property {string} [orderingCompanyId]
|
|
22
|
+
* @property {string} [stores]
|
|
23
|
+
* @property {string} [salesChannel]
|
|
24
|
+
* @property {string} [requestByExt]
|
|
25
|
+
* @property {number} [pageNo]
|
|
26
|
+
* @property {number} [pageSize]
|
|
27
|
+
* @property {string} [customerId]
|
|
28
|
+
* @property {boolean} [isPrioritySort]
|
|
29
|
+
* @property {boolean} [excludeLockedShipments]
|
|
39
30
|
*/
|
|
40
31
|
|
|
41
32
|
/**
|
|
@@ -43,20 +34,16 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
43
34
|
* @property {string} action
|
|
44
35
|
*/
|
|
45
36
|
|
|
46
|
-
/**
|
|
47
|
-
* @typedef GetRulesParam
|
|
48
|
-
* @property {OrderPlatformModel.RuleListRequestSchema} body
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
37
|
/**
|
|
52
38
|
* @typedef GetShipmentBagReasonsParam
|
|
53
|
-
* @property {string} shipmentId -
|
|
54
|
-
*
|
|
39
|
+
* @property {string} shipmentId - ID of the bag. An order may contain multiple
|
|
40
|
+
* items and may get divided into one or more shipment, each having its own ID.
|
|
41
|
+
* @property {number} lineNumber - Line number of bag.
|
|
55
42
|
*/
|
|
56
43
|
|
|
57
44
|
/**
|
|
58
45
|
* @typedef TrackShipmentPlatformParam
|
|
59
|
-
* @property {string} shipmentId -
|
|
46
|
+
* @property {string} shipmentId - Shipment Id
|
|
60
47
|
*/
|
|
61
48
|
|
|
62
49
|
class OrderPlatformApplicationValidator {
|
|
@@ -98,13 +85,6 @@ class OrderPlatformApplicationValidator {
|
|
|
98
85
|
}).required();
|
|
99
86
|
}
|
|
100
87
|
|
|
101
|
-
/** @returns {GetRulesParam} */
|
|
102
|
-
static getRules() {
|
|
103
|
-
return Joi.object({
|
|
104
|
-
body: OrderPlatformModel.RuleListRequestSchema().required(),
|
|
105
|
-
}).required();
|
|
106
|
-
}
|
|
107
|
-
|
|
108
88
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
109
89
|
static getShipmentBagReasons() {
|
|
110
90
|
return Joi.object({
|