@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +118 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -30
- package/sdk/application/Content/ContentApplicationClient.js +161 -56
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +56 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- 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 -21
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
- 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 +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
- package/sdk/platform/Cart/CartPlatformModel.js +1992 -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 +6512 -1770
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
- 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 +204 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -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 +1372 -400
- package/sdk/platform/Content/ContentPlatformModel.js +631 -394
- 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 +95 -39
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
- 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 +7607 -1267
- package/sdk/platform/Order/OrderPlatformModel.js +3929 -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 +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- 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 +6 -5
- 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 +810 -6
- 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/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -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/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
|
@@ -14,7 +14,7 @@ export = FileStoragePlatformValidator;
|
|
|
14
14
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
15
15
|
* the file being uploaded, decides where exactly the file will be stored
|
|
16
16
|
* inside the storage bucket.
|
|
17
|
-
* @property {FileStoragePlatformModel.
|
|
17
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
18
18
|
*/
|
|
19
19
|
/**
|
|
20
20
|
* @typedef CopyFilesParam
|
|
@@ -23,7 +23,7 @@ export = FileStoragePlatformValidator;
|
|
|
23
23
|
*/
|
|
24
24
|
/**
|
|
25
25
|
* @typedef GetSignUrlsParam
|
|
26
|
-
* @property {FileStoragePlatformModel.
|
|
26
|
+
* @property {FileStoragePlatformModel.SignUrl} body
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
29
|
* @typedef ProxyParam
|
|
@@ -35,7 +35,7 @@ export = FileStoragePlatformValidator;
|
|
|
35
35
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
36
36
|
* the file being uploaded, decides where exactly the file will be stored
|
|
37
37
|
* inside the storage bucket.
|
|
38
|
-
* @property {FileStoragePlatformModel.
|
|
38
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
39
39
|
*/
|
|
40
40
|
declare class FileStoragePlatformValidator {
|
|
41
41
|
/** @returns {BrowseParam} */
|
|
@@ -79,14 +79,14 @@ type CompleteUploadParam = {
|
|
|
79
79
|
* inside the storage bucket.
|
|
80
80
|
*/
|
|
81
81
|
namespace: string;
|
|
82
|
-
body: FileStoragePlatformModel.
|
|
82
|
+
body: FileStoragePlatformModel.FileUpload;
|
|
83
83
|
};
|
|
84
84
|
type CopyFilesParam = {
|
|
85
85
|
sync?: boolean;
|
|
86
86
|
body: FileStoragePlatformModel.CopyFiles;
|
|
87
87
|
};
|
|
88
88
|
type GetSignUrlsParam = {
|
|
89
|
-
body: FileStoragePlatformModel.
|
|
89
|
+
body: FileStoragePlatformModel.SignUrl;
|
|
90
90
|
};
|
|
91
91
|
type ProxyParam = {
|
|
92
92
|
/**
|
|
@@ -102,6 +102,6 @@ type StartUploadParam = {
|
|
|
102
102
|
* inside the storage bucket.
|
|
103
103
|
*/
|
|
104
104
|
namespace: string;
|
|
105
|
-
body: FileStoragePlatformModel.
|
|
105
|
+
body: FileStoragePlatformModel.FileUploadStart;
|
|
106
106
|
};
|
|
107
107
|
import FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
@@ -18,7 +18,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
18
18
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
19
19
|
* the file being uploaded, decides where exactly the file will be stored
|
|
20
20
|
* inside the storage bucket.
|
|
21
|
-
* @property {FileStoragePlatformModel.
|
|
21
|
+
* @property {FileStoragePlatformModel.FileUpload} body
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @typedef GetSignUrlsParam
|
|
32
|
-
* @property {FileStoragePlatformModel.
|
|
32
|
+
* @property {FileStoragePlatformModel.SignUrl} body
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -43,7 +43,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
43
43
|
* files(products, orders, logistics etc), Required for validating the data of
|
|
44
44
|
* the file being uploaded, decides where exactly the file will be stored
|
|
45
45
|
* inside the storage bucket.
|
|
46
|
-
* @property {FileStoragePlatformModel.
|
|
46
|
+
* @property {FileStoragePlatformModel.FileUploadStart} body
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
class FileStoragePlatformValidator {
|
|
@@ -60,7 +60,7 @@ class FileStoragePlatformValidator {
|
|
|
60
60
|
static completeUpload() {
|
|
61
61
|
return Joi.object({
|
|
62
62
|
namespace: Joi.string().allow("").required(),
|
|
63
|
-
body: FileStoragePlatformModel.
|
|
63
|
+
body: FileStoragePlatformModel.FileUpload().required(),
|
|
64
64
|
}).required();
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -75,7 +75,7 @@ class FileStoragePlatformValidator {
|
|
|
75
75
|
/** @returns {GetSignUrlsParam} */
|
|
76
76
|
static getSignUrls() {
|
|
77
77
|
return Joi.object({
|
|
78
|
-
body: FileStoragePlatformModel.
|
|
78
|
+
body: FileStoragePlatformModel.SignUrl().required(),
|
|
79
79
|
}).required();
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -90,7 +90,7 @@ class FileStoragePlatformValidator {
|
|
|
90
90
|
static startUpload() {
|
|
91
91
|
return Joi.object({
|
|
92
92
|
namespace: Joi.string().allow("").required(),
|
|
93
|
-
body: FileStoragePlatformModel.
|
|
93
|
+
body: FileStoragePlatformModel.FileUploadStart().required(),
|
|
94
94
|
}).required();
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -46,12 +46,12 @@ declare class Lead {
|
|
|
46
46
|
* @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object
|
|
47
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
48
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<LeadPlatformModel.
|
|
49
|
+
* @returns {Promise<LeadPlatformModel.GeneralConfigDetails>} - Success response
|
|
50
50
|
* @name getGeneralConfig
|
|
51
51
|
* @summary: Get general configuration
|
|
52
52
|
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/).
|
|
53
53
|
*/
|
|
54
|
-
getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.
|
|
54
|
+
getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LeadPlatformModel.GeneralConfigDetails>;
|
|
55
55
|
/**
|
|
56
56
|
* @param {LeadPlatformValidator.GetPlatformTicketParam} arg - Arg object
|
|
57
57
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -336,7 +336,7 @@ class Lead {
|
|
|
336
336
|
* @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object
|
|
337
337
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
338
338
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
339
|
-
* @returns {Promise<LeadPlatformModel.
|
|
339
|
+
* @returns {Promise<LeadPlatformModel.GeneralConfigDetails>} - Success response
|
|
340
340
|
* @name getGeneralConfig
|
|
341
341
|
* @summary: Get general configuration
|
|
342
342
|
* @description: Get general configuration settings related to support system for company tickets - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/).
|
|
@@ -388,7 +388,7 @@ class Lead {
|
|
|
388
388
|
|
|
389
389
|
const {
|
|
390
390
|
error: res_error,
|
|
391
|
-
} = LeadPlatformModel.
|
|
391
|
+
} = LeadPlatformModel.GeneralConfigDetails().validate(responseData, {
|
|
392
392
|
abortEarly: false,
|
|
393
393
|
allowUnknown: true,
|
|
394
394
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export = LeadPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef GeneralConfigDetails
|
|
4
4
|
* @property {string} [_id]
|
|
5
5
|
* @property {SupportCommunicationSchema[]} [support_communication]
|
|
6
6
|
* @property {boolean} [show_communication_info]
|
|
@@ -288,11 +288,11 @@ export = LeadPlatformModel;
|
|
|
288
288
|
declare class LeadPlatformModel {
|
|
289
289
|
}
|
|
290
290
|
declare namespace LeadPlatformModel {
|
|
291
|
-
export {
|
|
291
|
+
export { GeneralConfigDetails, SupportCommunicationSchema, SupportSchema, GeneralConfigIntegrationSchema, TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, Filter, TicketHistoryPayload, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, SLA, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum };
|
|
292
292
|
}
|
|
293
|
-
/** @returns {
|
|
294
|
-
declare function
|
|
295
|
-
type
|
|
293
|
+
/** @returns {GeneralConfigDetails} */
|
|
294
|
+
declare function GeneralConfigDetails(): GeneralConfigDetails;
|
|
295
|
+
type GeneralConfigDetails = {
|
|
296
296
|
_id?: string;
|
|
297
297
|
support_communication?: SupportCommunicationSchema[];
|
|
298
298
|
show_communication_info?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef GeneralConfigDetails
|
|
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 {GeneralConfigDetails} */
|
|
329
|
+
static GeneralConfigDetails() {
|
|
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.any().required(),
|
|
477
|
+
value: Joi.object().pattern(/\S/, 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.any(),
|
|
518
|
+
created_by: Joi.object().pattern(/\S/, 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.any(),
|
|
523
|
+
_custom_json: Joi.object().pattern(/\S/, 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.any(),
|
|
562
|
+
form_response: Joi.object().pattern(/\S/, 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.any(),
|
|
608
|
+
inputs: Joi.object().pattern(/\S/, Joi.any()),
|
|
609
609
|
title: Joi.string().allow(""),
|
|
610
|
-
timestamps: Joi.any(),
|
|
610
|
+
timestamps: Joi.object().pattern(/\S/, 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.any(),
|
|
644
|
+
user: Joi.object().pattern(/\S/, 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.any().required(),
|
|
654
|
+
value: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
655
655
|
ticket_id: Joi.string().allow("").required(),
|
|
656
656
|
created_on: LeadPlatformModel.CreatedOn(),
|
|
657
|
-
created_by: Joi.any(),
|
|
657
|
+
created_by: Joi.object().pattern(/\S/, 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.any(),
|
|
678
|
-
assigned_to: Joi.any(),
|
|
677
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
678
|
+
assigned_to: Joi.object().pattern(/\S/, Joi.any()),
|
|
679
679
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
680
|
-
_custom_json: Joi.any(),
|
|
680
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
681
681
|
is_feedback_pending: Joi.boolean(),
|
|
682
|
-
integration: Joi.any(),
|
|
682
|
+
integration: Joi.object().pattern(/\S/, Joi.any()),
|
|
683
683
|
_id: Joi.string().allow("").required(),
|
|
684
684
|
updated_at: Joi.string().allow(""),
|
|
685
685
|
created_at: Joi.string().allow(""),
|
|
@@ -9,26 +9,37 @@ declare class Order {
|
|
|
9
9
|
*
|
|
10
10
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
11
11
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
12
|
-
* @returns {Promise<OrderPlatformModel.
|
|
12
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
|
|
13
13
|
* - Success response
|
|
14
14
|
*
|
|
15
15
|
* @name getApplicationShipments
|
|
16
16
|
* @summary: List sales channel shipments
|
|
17
17
|
* @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/).
|
|
18
18
|
*/
|
|
19
|
-
getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.
|
|
19
|
+
getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
|
|
20
20
|
/**
|
|
21
21
|
* @param {OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam} arg
|
|
22
22
|
* - Arg object
|
|
23
23
|
*
|
|
24
24
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
25
25
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
26
|
-
* @returns {Promise<OrderPlatformModel.
|
|
26
|
+
* @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
|
|
27
|
+
* Success response
|
|
27
28
|
* @name getPlatformShipmentReasons
|
|
28
29
|
* @summary: List shipment cancellation reasons
|
|
29
30
|
* @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/).
|
|
30
31
|
*/
|
|
31
|
-
getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.
|
|
32
|
+
getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>;
|
|
33
|
+
/**
|
|
34
|
+
* @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
|
|
35
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
37
|
+
* @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
|
|
38
|
+
* @name getRules
|
|
39
|
+
* @summary: List of RMA rules based on the given input conditions.
|
|
40
|
+
* @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/).
|
|
41
|
+
*/
|
|
42
|
+
getRules({ body, requestHeaders }?: OrderPlatformApplicationValidator.GetRulesParam, { responseHeaders }?: object): Promise<OrderPlatformModel.RuleListResponseSchema>;
|
|
32
43
|
/**
|
|
33
44
|
* @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg
|
|
34
45
|
* - Arg object
|
|
@@ -37,8 +48,8 @@ declare class Order {
|
|
|
37
48
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
38
49
|
* @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
|
|
39
50
|
* @name getShipmentBagReasons
|
|
40
|
-
* @summary:
|
|
41
|
-
* @description:
|
|
51
|
+
* @summary: Retrieve Reasons for Cancellation and Return journey
|
|
52
|
+
* @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
|
|
42
53
|
*/
|
|
43
54
|
getShipmentBagReasons({ shipmentId, lineNumber, requestHeaders }?: OrderPlatformApplicationValidator.GetShipmentBagReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentBagReasons>;
|
|
44
55
|
/**
|
|
@@ -21,7 +21,7 @@ class Order {
|
|
|
21
21
|
*
|
|
22
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
23
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<OrderPlatformModel.
|
|
24
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
|
|
25
25
|
* - Success response
|
|
26
26
|
*
|
|
27
27
|
* @name getApplicationShipments
|
|
@@ -139,7 +139,7 @@ class Order {
|
|
|
139
139
|
|
|
140
140
|
const {
|
|
141
141
|
error: res_error,
|
|
142
|
-
} = OrderPlatformModel.
|
|
142
|
+
} = OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema().validate(
|
|
143
143
|
responseData,
|
|
144
144
|
{ abortEarly: false, allowUnknown: true }
|
|
145
145
|
);
|
|
@@ -164,7 +164,8 @@ class Order {
|
|
|
164
164
|
*
|
|
165
165
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
166
166
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
167
|
-
* @returns {Promise<OrderPlatformModel.
|
|
167
|
+
* @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
|
|
168
|
+
* Success response
|
|
168
169
|
* @name getPlatformShipmentReasons
|
|
169
170
|
* @summary: List shipment cancellation reasons
|
|
170
171
|
* @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/).
|
|
@@ -220,7 +221,84 @@ class Order {
|
|
|
220
221
|
|
|
221
222
|
const {
|
|
222
223
|
error: res_error,
|
|
223
|
-
} = OrderPlatformModel.
|
|
224
|
+
} = OrderPlatformModel.ShipmentReasonsResponseSchema().validate(
|
|
225
|
+
responseData,
|
|
226
|
+
{ abortEarly: false, allowUnknown: true }
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
if (res_error) {
|
|
230
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
231
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
232
|
+
} else {
|
|
233
|
+
Logger({
|
|
234
|
+
level: "WARN",
|
|
235
|
+
message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return response;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
|
|
245
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
246
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
247
|
+
* @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
|
|
248
|
+
* @name getRules
|
|
249
|
+
* @summary: List of RMA rules based on the given input conditions.
|
|
250
|
+
* @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/).
|
|
251
|
+
*/
|
|
252
|
+
async getRules(
|
|
253
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
254
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
255
|
+
) {
|
|
256
|
+
const { error } = OrderPlatformApplicationValidator.getRules().validate(
|
|
257
|
+
{
|
|
258
|
+
body,
|
|
259
|
+
},
|
|
260
|
+
{ abortEarly: false, allowUnknown: true }
|
|
261
|
+
);
|
|
262
|
+
if (error) {
|
|
263
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// Showing warrnings if extra unknown parameters are found
|
|
267
|
+
const {
|
|
268
|
+
error: warrning,
|
|
269
|
+
} = OrderPlatformApplicationValidator.getRules().validate(
|
|
270
|
+
{
|
|
271
|
+
body,
|
|
272
|
+
},
|
|
273
|
+
{ abortEarly: false, allowUnknown: false }
|
|
274
|
+
);
|
|
275
|
+
if (warrning) {
|
|
276
|
+
Logger({
|
|
277
|
+
level: "WARN",
|
|
278
|
+
message: `Parameter Validation warrnings for platform > Order > getRules \n ${warrning}`,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
const query_params = {};
|
|
283
|
+
|
|
284
|
+
const response = await PlatformAPIClient.execute(
|
|
285
|
+
this.config,
|
|
286
|
+
"post",
|
|
287
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule_list`,
|
|
288
|
+
query_params,
|
|
289
|
+
body,
|
|
290
|
+
requestHeaders,
|
|
291
|
+
{ responseHeaders }
|
|
292
|
+
);
|
|
293
|
+
|
|
294
|
+
let responseData = response;
|
|
295
|
+
if (responseHeaders) {
|
|
296
|
+
responseData = response[0];
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
const {
|
|
300
|
+
error: res_error,
|
|
301
|
+
} = OrderPlatformModel.RuleListResponseSchema().validate(responseData, {
|
|
224
302
|
abortEarly: false,
|
|
225
303
|
allowUnknown: true,
|
|
226
304
|
});
|
|
@@ -231,7 +309,7 @@ class Order {
|
|
|
231
309
|
} else {
|
|
232
310
|
Logger({
|
|
233
311
|
level: "WARN",
|
|
234
|
-
message: `Response Validation Warnings for platform > Order >
|
|
312
|
+
message: `Response Validation Warnings for platform > Order > getRules \n ${res_error}`,
|
|
235
313
|
});
|
|
236
314
|
}
|
|
237
315
|
}
|
|
@@ -247,8 +325,8 @@ class Order {
|
|
|
247
325
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
248
326
|
* @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
|
|
249
327
|
* @name getShipmentBagReasons
|
|
250
|
-
* @summary:
|
|
251
|
-
* @description:
|
|
328
|
+
* @summary: Retrieve Reasons for Cancellation and Return journey
|
|
329
|
+
* @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
|
|
252
330
|
*/
|
|
253
331
|
async getShipmentBagReasons(
|
|
254
332
|
{ shipmentId, lineNumber, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1,83 +1,154 @@
|
|
|
1
1
|
export = OrderPlatformApplicationValidator;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef GetApplicationShipmentsParam
|
|
4
|
-
* @property {string} [lane]
|
|
5
|
-
*
|
|
6
|
-
* @property {string} [
|
|
7
|
-
*
|
|
8
|
-
* @property {string} [
|
|
9
|
-
*
|
|
10
|
-
* @property {string} [
|
|
11
|
-
* @property {string} [
|
|
12
|
-
* @property {string} [
|
|
13
|
-
*
|
|
14
|
-
* @property {
|
|
15
|
-
*
|
|
16
|
-
* @property {string} [
|
|
17
|
-
* @property {
|
|
18
|
-
* @property {
|
|
4
|
+
* @property {string} [lane] - Optional parameter to specify the lane for
|
|
5
|
+
* filtering results.
|
|
6
|
+
* @property {string} [searchType] - Search_type refers to the field that will
|
|
7
|
+
* be used as the target for the search operation
|
|
8
|
+
* @property {string} [searchId] - Identifier used for the search operation
|
|
9
|
+
* based on the selected search type.
|
|
10
|
+
* @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
|
|
11
|
+
* @property {string} [toDate] - Date time in UTC timezone as per ISO format.
|
|
12
|
+
* @property {string} [dpIds] - Comma-separated list of delivery partner IDs to
|
|
13
|
+
* filter results.
|
|
14
|
+
* @property {string} [orderingCompanyId] - ID of the company placing the order,
|
|
15
|
+
* used for filtering results.
|
|
16
|
+
* @property {string} [stores] - Comma-separated list of store IDs to filter results.
|
|
17
|
+
* @property {string} [salesChannel] - The sales channel to filter results.
|
|
18
|
+
* @property {string} [requestByExt] - Identifier for external requests.
|
|
19
|
+
* @property {number} [pageNo] - The page number for pagination of results.
|
|
20
|
+
* @property {number} [pageSize] - The number of results to return per page for
|
|
21
|
+
* pagination.
|
|
22
|
+
* @property {string} [customerId] - ID of the customer to filter results
|
|
23
|
+
* related to specific customer.
|
|
24
|
+
* @property {boolean} [isPrioritySort] - Flag to determine if results should be
|
|
25
|
+
* sorted by priority. Defaults to true.
|
|
26
|
+
* @property {boolean} [excludeLockedShipments] - Flag to exclude shipments that
|
|
27
|
+
* are currently locked from the results.
|
|
19
28
|
*/
|
|
20
29
|
/**
|
|
21
30
|
* @typedef GetPlatformShipmentReasonsParam
|
|
22
31
|
* @property {string} action
|
|
23
32
|
*/
|
|
33
|
+
/**
|
|
34
|
+
* @typedef GetRulesParam
|
|
35
|
+
* @property {OrderPlatformModel.RuleListRequestSchema} body
|
|
36
|
+
*/
|
|
24
37
|
/**
|
|
25
38
|
* @typedef GetShipmentBagReasonsParam
|
|
26
|
-
* @property {string} shipmentId -
|
|
27
|
-
*
|
|
28
|
-
* @property {number} lineNumber - Line number of bag.
|
|
39
|
+
* @property {string} shipmentId - The unique identifier for the shipment
|
|
40
|
+
* @property {number} lineNumber - A unique identifier of the bag's line number.
|
|
29
41
|
*/
|
|
30
42
|
/**
|
|
31
43
|
* @typedef TrackShipmentPlatformParam
|
|
32
|
-
* @property {string} shipmentId -
|
|
44
|
+
* @property {string} shipmentId - The unique identifier for the shipment
|
|
33
45
|
*/
|
|
34
46
|
declare class OrderPlatformApplicationValidator {
|
|
35
47
|
/** @returns {GetApplicationShipmentsParam} */
|
|
36
48
|
static getApplicationShipments(): GetApplicationShipmentsParam;
|
|
37
49
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
38
50
|
static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
|
|
51
|
+
/** @returns {GetRulesParam} */
|
|
52
|
+
static getRules(): GetRulesParam;
|
|
39
53
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
40
54
|
static getShipmentBagReasons(): GetShipmentBagReasonsParam;
|
|
41
55
|
/** @returns {TrackShipmentPlatformParam} */
|
|
42
56
|
static trackShipmentPlatform(): TrackShipmentPlatformParam;
|
|
43
57
|
}
|
|
44
58
|
declare namespace OrderPlatformApplicationValidator {
|
|
45
|
-
export { GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
59
|
+
export { GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
46
60
|
}
|
|
47
61
|
type GetApplicationShipmentsParam = {
|
|
62
|
+
/**
|
|
63
|
+
* - Optional parameter to specify the lane for
|
|
64
|
+
* filtering results.
|
|
65
|
+
*/
|
|
48
66
|
lane?: string;
|
|
67
|
+
/**
|
|
68
|
+
* - Search_type refers to the field that will
|
|
69
|
+
* be used as the target for the search operation
|
|
70
|
+
*/
|
|
49
71
|
searchType?: string;
|
|
72
|
+
/**
|
|
73
|
+
* - Identifier used for the search operation
|
|
74
|
+
* based on the selected search type.
|
|
75
|
+
*/
|
|
50
76
|
searchId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* - Date time in UTC timezone as per ISO format.
|
|
79
|
+
*/
|
|
51
80
|
fromDate?: string;
|
|
81
|
+
/**
|
|
82
|
+
* - Date time in UTC timezone as per ISO format.
|
|
83
|
+
*/
|
|
52
84
|
toDate?: string;
|
|
85
|
+
/**
|
|
86
|
+
* - Comma-separated list of delivery partner IDs to
|
|
87
|
+
* filter results.
|
|
88
|
+
*/
|
|
53
89
|
dpIds?: string;
|
|
90
|
+
/**
|
|
91
|
+
* - ID of the company placing the order,
|
|
92
|
+
* used for filtering results.
|
|
93
|
+
*/
|
|
54
94
|
orderingCompanyId?: string;
|
|
95
|
+
/**
|
|
96
|
+
* - Comma-separated list of store IDs to filter results.
|
|
97
|
+
*/
|
|
55
98
|
stores?: string;
|
|
99
|
+
/**
|
|
100
|
+
* - The sales channel to filter results.
|
|
101
|
+
*/
|
|
56
102
|
salesChannel?: string;
|
|
103
|
+
/**
|
|
104
|
+
* - Identifier for external requests.
|
|
105
|
+
*/
|
|
57
106
|
requestByExt?: string;
|
|
107
|
+
/**
|
|
108
|
+
* - The page number for pagination of results.
|
|
109
|
+
*/
|
|
58
110
|
pageNo?: number;
|
|
111
|
+
/**
|
|
112
|
+
* - The number of results to return per page for
|
|
113
|
+
* pagination.
|
|
114
|
+
*/
|
|
59
115
|
pageSize?: number;
|
|
116
|
+
/**
|
|
117
|
+
* - ID of the customer to filter results
|
|
118
|
+
* related to specific customer.
|
|
119
|
+
*/
|
|
60
120
|
customerId?: string;
|
|
121
|
+
/**
|
|
122
|
+
* - Flag to determine if results should be
|
|
123
|
+
* sorted by priority. Defaults to true.
|
|
124
|
+
*/
|
|
61
125
|
isPrioritySort?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* - Flag to exclude shipments that
|
|
128
|
+
* are currently locked from the results.
|
|
129
|
+
*/
|
|
62
130
|
excludeLockedShipments?: boolean;
|
|
63
131
|
};
|
|
64
132
|
type GetPlatformShipmentReasonsParam = {
|
|
65
133
|
action: string;
|
|
66
134
|
};
|
|
135
|
+
type GetRulesParam = {
|
|
136
|
+
body: OrderPlatformModel.RuleListRequestSchema;
|
|
137
|
+
};
|
|
67
138
|
type GetShipmentBagReasonsParam = {
|
|
68
139
|
/**
|
|
69
|
-
* -
|
|
70
|
-
* items and may get divided into one or more shipment, each having its own ID.
|
|
140
|
+
* - The unique identifier for the shipment
|
|
71
141
|
*/
|
|
72
142
|
shipmentId: string;
|
|
73
143
|
/**
|
|
74
|
-
* -
|
|
144
|
+
* - A unique identifier of the bag's line number.
|
|
75
145
|
*/
|
|
76
146
|
lineNumber: number;
|
|
77
147
|
};
|
|
78
148
|
type TrackShipmentPlatformParam = {
|
|
79
149
|
/**
|
|
80
|
-
* -
|
|
150
|
+
* - The unique identifier for the shipment
|
|
81
151
|
*/
|
|
82
152
|
shipmentId: string;
|
|
83
153
|
};
|
|
154
|
+
import OrderPlatformModel = require("./OrderPlatformModel");
|