@gofynd/fdk-client-javascript 1.6.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
- package/sdk/platform/Order/OrderPlatformModel.js +20 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
- package/sdk/platform/User/UserPlatformModel.js +36 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -47,6 +47,7 @@ export = LeadPlatformModel;
|
|
|
47
47
|
* @property {number} [current] - The current page number.
|
|
48
48
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
49
49
|
* @property {number} [size] - The number of items per page.
|
|
50
|
+
* @property {number} [page_size] - The number of items per page.
|
|
50
51
|
*/
|
|
51
52
|
/**
|
|
52
53
|
* @typedef TicketHistoryList
|
|
@@ -368,6 +369,10 @@ type Page = {
|
|
|
368
369
|
* - The number of items per page.
|
|
369
370
|
*/
|
|
370
371
|
size?: number;
|
|
372
|
+
/**
|
|
373
|
+
* - The number of items per page.
|
|
374
|
+
*/
|
|
375
|
+
page_size?: number;
|
|
371
376
|
};
|
|
372
377
|
/** @returns {TicketHistoryList} */
|
|
373
378
|
declare function TicketHistoryList(): TicketHistoryList;
|
|
@@ -53,6 +53,7 @@ const Joi = require("joi");
|
|
|
53
53
|
* @property {number} [current] - The current page number.
|
|
54
54
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
55
55
|
* @property {number} [size] - The number of items per page.
|
|
56
|
+
* @property {number} [page_size] - The number of items per page.
|
|
56
57
|
*/
|
|
57
58
|
|
|
58
59
|
/**
|
|
@@ -391,6 +392,7 @@ class LeadPlatformModel {
|
|
|
391
392
|
current: Joi.number(),
|
|
392
393
|
type: Joi.string().allow("").required(),
|
|
393
394
|
size: Joi.number(),
|
|
395
|
+
page_size: Joi.number(),
|
|
394
396
|
});
|
|
395
397
|
}
|
|
396
398
|
|
|
@@ -3,16 +3,6 @@ declare class Order {
|
|
|
3
3
|
constructor(config: any, applicationId: any);
|
|
4
4
|
config: any;
|
|
5
5
|
applicationId: any;
|
|
6
|
-
/**
|
|
7
|
-
* @param {OrderPlatformApplicationValidator.FailedOrderLogsParam} arg - Arg object
|
|
8
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
9
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
|
-
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
11
|
-
* @name failedOrderLogs
|
|
12
|
-
* @summary: List failed order logs
|
|
13
|
-
* @description: Get failed order logs listing for filters based on order Id, user contact number, user email Id and sales channel Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogs/).
|
|
14
|
-
*/
|
|
15
|
-
failedOrderLogs({ pageNo, pageSize, searchType, searchValue, requestHeaders }?: OrderPlatformApplicationValidator.FailedOrderLogsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.FailedOrderLogs>;
|
|
16
6
|
/**
|
|
17
7
|
* @param {OrderPlatformApplicationValidator.GetApplicationShipmentsParam} arg
|
|
18
8
|
* - Arg object
|
|
@@ -15,98 +15,6 @@ class Order {
|
|
|
15
15
|
this.applicationId = applicationId;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* @param {OrderPlatformApplicationValidator.FailedOrderLogsParam} arg - Arg object
|
|
20
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
-
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
23
|
-
* @name failedOrderLogs
|
|
24
|
-
* @summary: List failed order logs
|
|
25
|
-
* @description: Get failed order logs listing for filters based on order Id, user contact number, user email Id and sales channel Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogs/).
|
|
26
|
-
*/
|
|
27
|
-
async failedOrderLogs(
|
|
28
|
-
{ pageNo, pageSize, searchType, searchValue, requestHeaders } = {
|
|
29
|
-
requestHeaders: {},
|
|
30
|
-
},
|
|
31
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
32
|
-
) {
|
|
33
|
-
const {
|
|
34
|
-
error,
|
|
35
|
-
} = OrderPlatformApplicationValidator.failedOrderLogs().validate(
|
|
36
|
-
{
|
|
37
|
-
pageNo,
|
|
38
|
-
pageSize,
|
|
39
|
-
searchType,
|
|
40
|
-
searchValue,
|
|
41
|
-
},
|
|
42
|
-
{ abortEarly: false, allowUnknown: true }
|
|
43
|
-
);
|
|
44
|
-
if (error) {
|
|
45
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Showing warrnings if extra unknown parameters are found
|
|
49
|
-
const {
|
|
50
|
-
error: warrning,
|
|
51
|
-
} = OrderPlatformApplicationValidator.failedOrderLogs().validate(
|
|
52
|
-
{
|
|
53
|
-
pageNo,
|
|
54
|
-
pageSize,
|
|
55
|
-
searchType,
|
|
56
|
-
searchValue,
|
|
57
|
-
},
|
|
58
|
-
{ abortEarly: false, allowUnknown: false }
|
|
59
|
-
);
|
|
60
|
-
if (warrning) {
|
|
61
|
-
Logger({
|
|
62
|
-
level: "WARN",
|
|
63
|
-
message: `Parameter Validation warrnings for platform > Order > failedOrderLogs \n ${warrning}`,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const query_params = {};
|
|
68
|
-
query_params["application_id"] = applicationId;
|
|
69
|
-
query_params["page_no"] = pageNo;
|
|
70
|
-
query_params["page_size"] = pageSize;
|
|
71
|
-
query_params["search_type"] = searchType;
|
|
72
|
-
query_params["search_value"] = searchValue;
|
|
73
|
-
|
|
74
|
-
const response = await PlatformAPIClient.execute(
|
|
75
|
-
this.config,
|
|
76
|
-
"get",
|
|
77
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/orders/failed`,
|
|
78
|
-
query_params,
|
|
79
|
-
undefined,
|
|
80
|
-
requestHeaders,
|
|
81
|
-
{ responseHeaders }
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
let responseData = response;
|
|
85
|
-
if (responseHeaders) {
|
|
86
|
-
responseData = response[0];
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const {
|
|
90
|
-
error: res_error,
|
|
91
|
-
} = OrderPlatformModel.FailedOrderLogs().validate(responseData, {
|
|
92
|
-
abortEarly: false,
|
|
93
|
-
allowUnknown: true,
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
if (res_error) {
|
|
97
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
98
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
99
|
-
} else {
|
|
100
|
-
Logger({
|
|
101
|
-
level: "WARN",
|
|
102
|
-
message: `Response Validation Warnings for platform > Order > failedOrderLogs \n ${res_error}`,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return response;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
18
|
/**
|
|
111
19
|
* @param {OrderPlatformApplicationValidator.GetApplicationShipmentsParam} arg
|
|
112
20
|
* - Arg object
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
export = OrderPlatformApplicationValidator;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef FailedOrderLogsParam
|
|
4
|
-
* @property {number} [pageNo] - Page Number
|
|
5
|
-
* @property {number} [pageSize] - Page Size
|
|
6
|
-
* @property {string} [searchType] - Search type for filter
|
|
7
|
-
* @property {string} [searchValue] - Search value for filter
|
|
8
|
-
*/
|
|
9
2
|
/**
|
|
10
3
|
* @typedef GetApplicationShipmentsParam
|
|
11
4
|
* @property {string} [lane] - Optional parameter to specify the lane for
|
|
@@ -51,8 +44,6 @@ export = OrderPlatformApplicationValidator;
|
|
|
51
44
|
* @property {string} shipmentId - The unique identifier for the shipment
|
|
52
45
|
*/
|
|
53
46
|
declare class OrderPlatformApplicationValidator {
|
|
54
|
-
/** @returns {FailedOrderLogsParam} */
|
|
55
|
-
static failedOrderLogs(): FailedOrderLogsParam;
|
|
56
47
|
/** @returns {GetApplicationShipmentsParam} */
|
|
57
48
|
static getApplicationShipments(): GetApplicationShipmentsParam;
|
|
58
49
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
@@ -65,26 +56,8 @@ declare class OrderPlatformApplicationValidator {
|
|
|
65
56
|
static trackShipmentPlatform(): TrackShipmentPlatformParam;
|
|
66
57
|
}
|
|
67
58
|
declare namespace OrderPlatformApplicationValidator {
|
|
68
|
-
export {
|
|
59
|
+
export { GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
69
60
|
}
|
|
70
|
-
type FailedOrderLogsParam = {
|
|
71
|
-
/**
|
|
72
|
-
* - Page Number
|
|
73
|
-
*/
|
|
74
|
-
pageNo?: number;
|
|
75
|
-
/**
|
|
76
|
-
* - Page Size
|
|
77
|
-
*/
|
|
78
|
-
pageSize?: number;
|
|
79
|
-
/**
|
|
80
|
-
* - Search type for filter
|
|
81
|
-
*/
|
|
82
|
-
searchType?: string;
|
|
83
|
-
/**
|
|
84
|
-
* - Search value for filter
|
|
85
|
-
*/
|
|
86
|
-
searchValue?: string;
|
|
87
|
-
};
|
|
88
61
|
type GetApplicationShipmentsParam = {
|
|
89
62
|
/**
|
|
90
63
|
* - Optional parameter to specify the lane for
|
|
@@ -2,14 +2,6 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const OrderPlatformModel = require("./OrderPlatformModel");
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @typedef FailedOrderLogsParam
|
|
7
|
-
* @property {number} [pageNo] - Page Number
|
|
8
|
-
* @property {number} [pageSize] - Page Size
|
|
9
|
-
* @property {string} [searchType] - Search type for filter
|
|
10
|
-
* @property {string} [searchValue] - Search value for filter
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
5
|
/**
|
|
14
6
|
* @typedef GetApplicationShipmentsParam
|
|
15
7
|
* @property {string} [lane] - Optional parameter to specify the lane for
|
|
@@ -60,16 +52,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
60
52
|
*/
|
|
61
53
|
|
|
62
54
|
class OrderPlatformApplicationValidator {
|
|
63
|
-
/** @returns {FailedOrderLogsParam} */
|
|
64
|
-
static failedOrderLogs() {
|
|
65
|
-
return Joi.object({
|
|
66
|
-
pageNo: Joi.number(),
|
|
67
|
-
pageSize: Joi.number(),
|
|
68
|
-
searchType: Joi.string().allow(""),
|
|
69
|
-
searchValue: Joi.string().allow(""),
|
|
70
|
-
}).required();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
55
|
/** @returns {GetApplicationShipmentsParam} */
|
|
74
56
|
static getApplicationShipments() {
|
|
75
57
|
return Joi.object({
|
|
@@ -131,6 +131,16 @@ declare class Order {
|
|
|
131
131
|
* @description: Get the exact error trace from the log Id provided in the failed order list API response - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogDetails/).
|
|
132
132
|
*/
|
|
133
133
|
failedOrderLogDetails({ logId, requestHeaders }?: OrderPlatformValidator.FailedOrderLogDetailsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.FailedOrderLogDetails>;
|
|
134
|
+
/**
|
|
135
|
+
* @param {OrderPlatformValidator.FailedOrderLogsParam} arg - Arg object
|
|
136
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
137
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
138
|
+
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
139
|
+
* @name failedOrderLogs
|
|
140
|
+
* @summary: List failed order logs
|
|
141
|
+
* @description: Get failed order logs listing for filters based on order Id, user contact number, user email Id and sales channel Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogs/).
|
|
142
|
+
*/
|
|
143
|
+
failedOrderLogs({ applicationId, pageNo, pageSize, searchType, searchValue, requestHeaders, }?: OrderPlatformValidator.FailedOrderLogsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.FailedOrderLogs>;
|
|
134
144
|
/**
|
|
135
145
|
* @param {OrderPlatformValidator.FetchRefundModeConfigParam} arg - Arg object
|
|
136
146
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -346,6 +356,86 @@ declare class Order {
|
|
|
346
356
|
* @description: Get a list of orders based on the filters provided. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getOrders/).
|
|
347
357
|
*/
|
|
348
358
|
getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders, }?: OrderPlatformValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderPlatformModel.OrderListingResponseSchema>;
|
|
359
|
+
/**
|
|
360
|
+
* @param {Object} arg - Arg object.
|
|
361
|
+
* @param {string} [arg.lane] - Lane refers to a section where orders are
|
|
362
|
+
* assigned, indicating its grouping.
|
|
363
|
+
* @param {string} [arg.searchType] - Search_type refers to the field that
|
|
364
|
+
* will be used as the target for the search operation.
|
|
365
|
+
* @param {string} [arg.bagStatus] - Bag_status refers to status of the
|
|
366
|
+
* entity. Filters orders based on the status.
|
|
367
|
+
* @param {number} [arg.timeToDispatch] - Time_to_dispatch refers to
|
|
368
|
+
* estimated SLA time.
|
|
369
|
+
* @param {string} [arg.paymentMethods] - Comma separated values of payment
|
|
370
|
+
* methods that were used to place order.
|
|
371
|
+
* @param {string} [arg.tags] - Tags refers to additional descriptive labels
|
|
372
|
+
* associated with the order
|
|
373
|
+
* @param {string} [arg.searchValue] - Search_value is matched against the
|
|
374
|
+
* field specified by the search_type
|
|
375
|
+
* @param {string} [arg.fromDate] - Date time in UTC timezone as per ISO format.
|
|
376
|
+
* @param {string} [arg.toDate] - Date time in UTC timezone as per ISO format.
|
|
377
|
+
* @param {string} [arg.startDate] - Date time in UTC timezone as per ISO format.
|
|
378
|
+
* @param {string} [arg.endDate] - Date time in UTC timezone as per ISO format.
|
|
379
|
+
* @param {string} [arg.dpIds] - Delivery Partner IDs to which shipments are assigned.
|
|
380
|
+
* @param {string} [arg.stores] - A comma-separated list of store IDs used
|
|
381
|
+
* to filter results to only those related to specific stores.
|
|
382
|
+
* @param {string} [arg.salesChannels] - A comma-separated list of sales
|
|
383
|
+
* channel IDs to filter results based on the sales channels involved.
|
|
384
|
+
* @param {number} [arg.pageSize] - Determines the number of results
|
|
385
|
+
* returned per page.
|
|
386
|
+
* @param {boolean} [arg.isPrioritySort] -
|
|
387
|
+
* @param {string} [arg.customMeta] -
|
|
388
|
+
* @param {boolean} [arg.myOrders] -
|
|
389
|
+
* @param {boolean} [arg.showCrossCompanyData] - Flag to view cross &
|
|
390
|
+
* non-cross company order
|
|
391
|
+
* @param {string} [arg.customerId] - The unique identifier for the customer
|
|
392
|
+
* associated with the query, useful for filtering results to a specific customer.
|
|
393
|
+
* @param {string} [arg.orderType] -
|
|
394
|
+
* @param {boolean} [arg.allowInactive] - Flag indicating whether inactive
|
|
395
|
+
* shipments are allowed
|
|
396
|
+
* @param {string} [arg.groupEntity] - Defines the grouping criterion for
|
|
397
|
+
* retrieving shipments or orders. It specifies whether the results should
|
|
398
|
+
* be organized based on shipment groups or order groups. For example,
|
|
399
|
+
* using 'shipments' groups results by shipment, while an invalid value
|
|
400
|
+
* like 'abcd' may not be recognized, leading to errors or default behavior.
|
|
401
|
+
* @param {boolean} [arg.enforceDateFilter] - Applies a date filter for
|
|
402
|
+
* listing orders. This is useful when fetching data for a specific date
|
|
403
|
+
* range while performing searches.
|
|
404
|
+
* @param {string} [arg.fulfillmentType] - Define the Fulfillment Type for
|
|
405
|
+
* Listing Orders, This is use when we want to get list of shipments or
|
|
406
|
+
* orders by cross store or cross company or fulfilling Store (by
|
|
407
|
+
* default), this is also depends on the login user accessType and store access
|
|
408
|
+
* @returns {Paginator<OrderPlatformModel.OrderListingResponseSchema>}
|
|
409
|
+
* @summary: List orders
|
|
410
|
+
* @description: Get a list of orders based on the filters provided.
|
|
411
|
+
*/
|
|
412
|
+
getOrdersPaginator({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, groupEntity, enforceDateFilter, fulfillmentType, }?: {
|
|
413
|
+
lane?: string;
|
|
414
|
+
searchType?: string;
|
|
415
|
+
bagStatus?: string;
|
|
416
|
+
timeToDispatch?: number;
|
|
417
|
+
paymentMethods?: string;
|
|
418
|
+
tags?: string;
|
|
419
|
+
searchValue?: string;
|
|
420
|
+
fromDate?: string;
|
|
421
|
+
toDate?: string;
|
|
422
|
+
startDate?: string;
|
|
423
|
+
endDate?: string;
|
|
424
|
+
dpIds?: string;
|
|
425
|
+
stores?: string;
|
|
426
|
+
salesChannels?: string;
|
|
427
|
+
pageSize?: number;
|
|
428
|
+
isPrioritySort?: boolean;
|
|
429
|
+
customMeta?: string;
|
|
430
|
+
myOrders?: boolean;
|
|
431
|
+
showCrossCompanyData?: boolean;
|
|
432
|
+
customerId?: string;
|
|
433
|
+
orderType?: string;
|
|
434
|
+
allowInactive?: boolean;
|
|
435
|
+
groupEntity?: string;
|
|
436
|
+
enforceDateFilter?: boolean;
|
|
437
|
+
fulfillmentType?: string;
|
|
438
|
+
}): Paginator<OrderPlatformModel.OrderListingResponseSchema>;
|
|
349
439
|
/**
|
|
350
440
|
* @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object
|
|
351
441
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -402,6 +492,127 @@ declare class Order {
|
|
|
402
492
|
* @description: Get a list of shipments based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipments/).
|
|
403
493
|
*/
|
|
404
494
|
getShipments({ lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
|
|
495
|
+
/**
|
|
496
|
+
* @param {Object} arg - Arg object.
|
|
497
|
+
* @param {string} [arg.lane] - Name of lane for which data is to be fetched
|
|
498
|
+
* @param {string} [arg.bagStatus] - Comma separated values of bag statuses.
|
|
499
|
+
* @param {string} [arg.statusAssigned] - Used to filter shipments based on
|
|
500
|
+
* status present in shipment_status_history. For more information on
|
|
501
|
+
* these statuses, refer to the Fynd Partners documentation.
|
|
502
|
+
* @param {boolean} [arg.statusOverrideLane] - Use this flag to fetch by
|
|
503
|
+
* bag_status and override lane.
|
|
504
|
+
* @param {number} [arg.timeToDispatch] - Indicates the time to dispatch.
|
|
505
|
+
* @param {string} [arg.searchType] - Specifies the key used to determine
|
|
506
|
+
* the type of search being performed.
|
|
507
|
+
* @param {string} [arg.searchValue] - The value corresponding to the search
|
|
508
|
+
* type, such as a specific shipment ID or order ID.
|
|
509
|
+
* @param {string} [arg.fromDate] - Start Date in DD-MM-YYYY format
|
|
510
|
+
* @param {string} [arg.toDate] - End Date in DD-MM-YYYY format
|
|
511
|
+
* @param {string} [arg.startDate] - The UTC start date in ISO format
|
|
512
|
+
* (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
|
|
513
|
+
* @param {string} [arg.endDate] - The UTC end date in ISO format
|
|
514
|
+
* (YYYY-MM-DDTHH:MM:SSZ) for filtering results.
|
|
515
|
+
* @param {string} [arg.statusAssignedStartDate] - Specifies the starting
|
|
516
|
+
* UTC date and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the
|
|
517
|
+
* lower boundary for filtering shipments based on the `created_at`
|
|
518
|
+
* timestamp of statuses in the shipment's status history. It allows
|
|
519
|
+
* filtering statuses that were created within a specific time range.
|
|
520
|
+
* @param {string} [arg.statusAssignedEndDate] - Specifies the ending UTC
|
|
521
|
+
* date and time (in ISO format, YYYY-MM-DDTHH:MM:SSZ) to define the upper
|
|
522
|
+
* boundary for filtering shipments based on the `created_at` timestamp of
|
|
523
|
+
* statuses in the shipment's status history.
|
|
524
|
+
* @param {string} [arg.dpIds] - A comma-separated list of delivery partner
|
|
525
|
+
* IDs to filter results by specific delivery partners.
|
|
526
|
+
* @param {string} [arg.stores] - A comma-separated list of store IDs used
|
|
527
|
+
* to filter results to only those related to specific stores.
|
|
528
|
+
* @param {string} [arg.salesChannels] - A comma-separated list of sales
|
|
529
|
+
* channel IDs to filter results based on the sales channels involved.
|
|
530
|
+
* @param {number} [arg.pageSize] - Determines the number of results
|
|
531
|
+
* returned per page.
|
|
532
|
+
* @param {boolean} [arg.fetchActiveShipment] - A boolean flag that
|
|
533
|
+
* indicates whether to include only active shipments in the results.
|
|
534
|
+
* @param {boolean} [arg.allowInactive] - A flag indicating whether to allow
|
|
535
|
+
* the inclusion of inactive shipments in the results.
|
|
536
|
+
* @param {boolean} [arg.excludeLockedShipments] - A flag to specify whether
|
|
537
|
+
* to exclude shipments that are locked from the results.
|
|
538
|
+
* @param {string} [arg.paymentMethods] - A comma-separated list of payment methods.
|
|
539
|
+
* @param {string} [arg.channelShipmentId] - The shipment ID used in the
|
|
540
|
+
* application, which can be used to reference specific shipments.
|
|
541
|
+
* @param {string} [arg.channelOrderId] - The order ID used in the application.
|
|
542
|
+
* @param {string} [arg.customMeta] - Custom metadata associated with the
|
|
543
|
+
* query, allowing for additional filtering or information to be passed.
|
|
544
|
+
* @param {string} [arg.orderingChannel] - The channel through which the
|
|
545
|
+
* order was placed.
|
|
546
|
+
* @param {string} [arg.companyAffiliateTag] - A tag used to identify the
|
|
547
|
+
* company's affiliation for filtering or reporting purposes.
|
|
548
|
+
* @param {boolean} [arg.myOrders] - A boolean flag indicating whether the
|
|
549
|
+
* query should return only the user's orders.
|
|
550
|
+
* @param {string} [arg.platformUserId] - The unique identifier of the user
|
|
551
|
+
* on the platform, useful for filtering orders related to a specific user.
|
|
552
|
+
* @param {string} [arg.sortType] - Determines the sorting order of the
|
|
553
|
+
* results based on specific criteria.
|
|
554
|
+
* @param {boolean} [arg.showCrossCompanyData] - A flag indicating whether
|
|
555
|
+
* to include data from both cross-company and non-cross-company orders in
|
|
556
|
+
* the results.
|
|
557
|
+
* @param {string} [arg.tags] - A comma-separated list of tags associated
|
|
558
|
+
* with the orders to filter results based on specific characteristics.
|
|
559
|
+
* @param {string} [arg.customerId] - The unique identifier for the customer
|
|
560
|
+
* associated with the query, useful for filtering results to a specific customer.
|
|
561
|
+
* @param {string} [arg.orderType] - The type of order being queried.
|
|
562
|
+
* @param {string} [arg.groupEntity] - Defines the grouping criterion for
|
|
563
|
+
* retrieving shipments or orders. It specifies whether the results should
|
|
564
|
+
* be organized based on shipment groups or order groups. For example,
|
|
565
|
+
* using 'shipments' groups results by shipment, while an invalid value
|
|
566
|
+
* like 'abcd' may not be recognized, leading to errors or default behavior.
|
|
567
|
+
* @param {boolean} [arg.enforceDateFilter] - Applies a date filter for
|
|
568
|
+
* listing shipments. This is useful when fetching data for a specific
|
|
569
|
+
* date range while performing searches.
|
|
570
|
+
* @param {string} [arg.fulfillmentType] - Define the Fulfillment Type for
|
|
571
|
+
* Listing Orders, This is use when we want to get list of shipments or
|
|
572
|
+
* orders by cross store or cross company or fulfilling Store (by
|
|
573
|
+
* default), this is also depends on the login user accessType and store access
|
|
574
|
+
* @returns {Paginator<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
|
|
575
|
+
* @summary: List shipments
|
|
576
|
+
* @description: Get a list of shipments based on the filters provided
|
|
577
|
+
*/
|
|
578
|
+
getShipmentsPaginator({ lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, }?: {
|
|
579
|
+
lane?: string;
|
|
580
|
+
bagStatus?: string;
|
|
581
|
+
statusAssigned?: string;
|
|
582
|
+
statusOverrideLane?: boolean;
|
|
583
|
+
timeToDispatch?: number;
|
|
584
|
+
searchType?: string;
|
|
585
|
+
searchValue?: string;
|
|
586
|
+
fromDate?: string;
|
|
587
|
+
toDate?: string;
|
|
588
|
+
startDate?: string;
|
|
589
|
+
endDate?: string;
|
|
590
|
+
statusAssignedStartDate?: string;
|
|
591
|
+
statusAssignedEndDate?: string;
|
|
592
|
+
dpIds?: string;
|
|
593
|
+
stores?: string;
|
|
594
|
+
salesChannels?: string;
|
|
595
|
+
pageSize?: number;
|
|
596
|
+
fetchActiveShipment?: boolean;
|
|
597
|
+
allowInactive?: boolean;
|
|
598
|
+
excludeLockedShipments?: boolean;
|
|
599
|
+
paymentMethods?: string;
|
|
600
|
+
channelShipmentId?: string;
|
|
601
|
+
channelOrderId?: string;
|
|
602
|
+
customMeta?: string;
|
|
603
|
+
orderingChannel?: string;
|
|
604
|
+
companyAffiliateTag?: string;
|
|
605
|
+
myOrders?: boolean;
|
|
606
|
+
platformUserId?: string;
|
|
607
|
+
sortType?: string;
|
|
608
|
+
showCrossCompanyData?: boolean;
|
|
609
|
+
tags?: string;
|
|
610
|
+
customerId?: string;
|
|
611
|
+
orderType?: string;
|
|
612
|
+
groupEntity?: string;
|
|
613
|
+
enforceDateFilter?: boolean;
|
|
614
|
+
fulfillmentType?: string;
|
|
615
|
+
}): Paginator<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
|
|
405
616
|
/**
|
|
406
617
|
* @param {OrderPlatformValidator.GetStateManagerConfigParam} arg - Arg object
|
|
407
618
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -622,3 +833,4 @@ declare class Order {
|
|
|
622
833
|
}
|
|
623
834
|
import OrderPlatformValidator = require("./OrderPlatformValidator");
|
|
624
835
|
import OrderPlatformModel = require("./OrderPlatformModel");
|
|
836
|
+
import Paginator = require("../../common/Paginator");
|