@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +3 -4
- package/sdk/application/ApplicationClient.js +0 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
- package/sdk/application/Cart/CartApplicationClient.js +60 -1185
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +90 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +187 -1293
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +5 -89
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
- package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
- package/sdk/application/Content/ContentApplicationClient.js +77 -914
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +19 -125
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +32 -202
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
- package/sdk/application/Order/OrderApplicationClient.js +86 -472
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
- package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
- package/sdk/application/User/UserApplicationClient.d.ts +85 -136
- package/sdk/application/User/UserApplicationClient.js +45 -1815
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +39 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +247 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +33 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +37 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +193 -1
- package/sdk/platform/Cart/CartPlatformModel.js +132 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -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 +10 -0
- package/sdk/platform/Order/OrderPlatformClient.js +99 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
- package/sdk/public/Content/ContentPublicClient.js +14 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -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]
|
|
@@ -39,8 +32,6 @@ export = OrderPlatformApplicationValidator;
|
|
|
39
32
|
* @property {string} shipmentId - Shipment Id
|
|
40
33
|
*/
|
|
41
34
|
declare class OrderPlatformApplicationValidator {
|
|
42
|
-
/** @returns {FailedOrderLogsParam} */
|
|
43
|
-
static failedOrderLogs(): FailedOrderLogsParam;
|
|
44
35
|
/** @returns {GetApplicationShipmentsParam} */
|
|
45
36
|
static getApplicationShipments(): GetApplicationShipmentsParam;
|
|
46
37
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
@@ -51,26 +42,8 @@ declare class OrderPlatformApplicationValidator {
|
|
|
51
42
|
static trackShipmentPlatform(): TrackShipmentPlatformParam;
|
|
52
43
|
}
|
|
53
44
|
declare namespace OrderPlatformApplicationValidator {
|
|
54
|
-
export {
|
|
45
|
+
export { GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
55
46
|
}
|
|
56
|
-
type FailedOrderLogsParam = {
|
|
57
|
-
/**
|
|
58
|
-
* - Page Number
|
|
59
|
-
*/
|
|
60
|
-
pageNo?: number;
|
|
61
|
-
/**
|
|
62
|
-
* - Page Size
|
|
63
|
-
*/
|
|
64
|
-
pageSize?: number;
|
|
65
|
-
/**
|
|
66
|
-
* - Search type for filter
|
|
67
|
-
*/
|
|
68
|
-
searchType?: string;
|
|
69
|
-
/**
|
|
70
|
-
* - Search value for filter
|
|
71
|
-
*/
|
|
72
|
-
searchValue?: string;
|
|
73
|
-
};
|
|
74
47
|
type GetApplicationShipmentsParam = {
|
|
75
48
|
lane?: string;
|
|
76
49
|
searchType?: string;
|
|
@@ -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]
|
|
@@ -47,16 +39,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
47
39
|
*/
|
|
48
40
|
|
|
49
41
|
class OrderPlatformApplicationValidator {
|
|
50
|
-
/** @returns {FailedOrderLogsParam} */
|
|
51
|
-
static failedOrderLogs() {
|
|
52
|
-
return Joi.object({
|
|
53
|
-
pageNo: Joi.number(),
|
|
54
|
-
pageSize: Joi.number(),
|
|
55
|
-
searchType: Joi.string().allow(""),
|
|
56
|
-
searchValue: Joi.string().allow(""),
|
|
57
|
-
}).required();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
42
|
/** @returns {GetApplicationShipmentsParam} */
|
|
61
43
|
static getApplicationShipments() {
|
|
62
44
|
return Joi.object({
|
|
@@ -114,6 +114,16 @@ declare class Order {
|
|
|
114
114
|
* @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/).
|
|
115
115
|
*/
|
|
116
116
|
failedOrderLogDetails({ logId, requestHeaders }?: OrderPlatformValidator.FailedOrderLogDetailsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.FailedOrderLogDetails>;
|
|
117
|
+
/**
|
|
118
|
+
* @param {OrderPlatformValidator.FailedOrderLogsParam} arg - Arg object
|
|
119
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
120
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
121
|
+
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
122
|
+
* @name failedOrderLogs
|
|
123
|
+
* @summary: List failed order logs
|
|
124
|
+
* @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/).
|
|
125
|
+
*/
|
|
126
|
+
failedOrderLogs({ applicationId, pageNo, pageSize, searchType, searchValue, requestHeaders, }?: OrderPlatformValidator.FailedOrderLogsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.FailedOrderLogs>;
|
|
117
127
|
/**
|
|
118
128
|
* @param {OrderPlatformValidator.FetchRefundModeConfigParam} arg - Arg object
|
|
119
129
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -910,6 +910,105 @@ class Order {
|
|
|
910
910
|
return response;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
+
/**
|
|
914
|
+
* @param {OrderPlatformValidator.FailedOrderLogsParam} arg - Arg object
|
|
915
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
916
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
917
|
+
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
918
|
+
* @name failedOrderLogs
|
|
919
|
+
* @summary: List failed order logs
|
|
920
|
+
* @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/).
|
|
921
|
+
*/
|
|
922
|
+
async failedOrderLogs(
|
|
923
|
+
{
|
|
924
|
+
applicationId,
|
|
925
|
+
pageNo,
|
|
926
|
+
pageSize,
|
|
927
|
+
searchType,
|
|
928
|
+
searchValue,
|
|
929
|
+
requestHeaders,
|
|
930
|
+
} = { requestHeaders: {} },
|
|
931
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
932
|
+
) {
|
|
933
|
+
const { error } = OrderPlatformValidator.failedOrderLogs().validate(
|
|
934
|
+
{
|
|
935
|
+
applicationId,
|
|
936
|
+
pageNo,
|
|
937
|
+
pageSize,
|
|
938
|
+
searchType,
|
|
939
|
+
searchValue,
|
|
940
|
+
},
|
|
941
|
+
{ abortEarly: false, allowUnknown: true }
|
|
942
|
+
);
|
|
943
|
+
if (error) {
|
|
944
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
// Showing warrnings if extra unknown parameters are found
|
|
948
|
+
const {
|
|
949
|
+
error: warrning,
|
|
950
|
+
} = OrderPlatformValidator.failedOrderLogs().validate(
|
|
951
|
+
{
|
|
952
|
+
applicationId,
|
|
953
|
+
pageNo,
|
|
954
|
+
pageSize,
|
|
955
|
+
searchType,
|
|
956
|
+
searchValue,
|
|
957
|
+
},
|
|
958
|
+
{ abortEarly: false, allowUnknown: false }
|
|
959
|
+
);
|
|
960
|
+
if (warrning) {
|
|
961
|
+
Logger({
|
|
962
|
+
level: "WARN",
|
|
963
|
+
message: `Parameter Validation warrnings for platform > Order > failedOrderLogs \n ${warrning}`,
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
const query_params = {};
|
|
968
|
+
query_params["application_id"] = applicationId;
|
|
969
|
+
query_params["page_no"] = pageNo;
|
|
970
|
+
query_params["page_size"] = pageSize;
|
|
971
|
+
query_params["search_type"] = searchType;
|
|
972
|
+
query_params["search_value"] = searchValue;
|
|
973
|
+
|
|
974
|
+
const xHeaders = {};
|
|
975
|
+
|
|
976
|
+
const response = await PlatformAPIClient.execute(
|
|
977
|
+
this.config,
|
|
978
|
+
"get",
|
|
979
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/orders/failed`,
|
|
980
|
+
query_params,
|
|
981
|
+
undefined,
|
|
982
|
+
{ ...xHeaders, ...requestHeaders },
|
|
983
|
+
{ responseHeaders }
|
|
984
|
+
);
|
|
985
|
+
|
|
986
|
+
let responseData = response;
|
|
987
|
+
if (responseHeaders) {
|
|
988
|
+
responseData = response[0];
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
const {
|
|
992
|
+
error: res_error,
|
|
993
|
+
} = OrderPlatformModel.FailedOrderLogs().validate(responseData, {
|
|
994
|
+
abortEarly: false,
|
|
995
|
+
allowUnknown: true,
|
|
996
|
+
});
|
|
997
|
+
|
|
998
|
+
if (res_error) {
|
|
999
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1000
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1001
|
+
} else {
|
|
1002
|
+
Logger({
|
|
1003
|
+
level: "WARN",
|
|
1004
|
+
message: `Response Validation Warnings for platform > Order > failedOrderLogs \n ${res_error}`,
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
return response;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
913
1012
|
/**
|
|
914
1013
|
* @param {OrderPlatformValidator.FetchRefundModeConfigParam} arg - Arg object
|
|
915
1014
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -812,6 +812,8 @@ export = OrderPlatformModel;
|
|
|
812
812
|
* or system that is making the order request.
|
|
813
813
|
* @property {string} [external_shipment_id] - External shipment identifier or
|
|
814
814
|
* marketplace's unique shipment identifier.
|
|
815
|
+
* @property {Object} [custom_json] - An object containing additional metadata,
|
|
816
|
+
* ensuring only the required fields are included as needed.
|
|
815
817
|
*/
|
|
816
818
|
/**
|
|
817
819
|
* @typedef CreateOrderErrorReponse
|
|
@@ -4930,6 +4932,11 @@ type CreateOrderAPI = {
|
|
|
4930
4932
|
* marketplace's unique shipment identifier.
|
|
4931
4933
|
*/
|
|
4932
4934
|
external_shipment_id?: string;
|
|
4935
|
+
/**
|
|
4936
|
+
* - An object containing additional metadata,
|
|
4937
|
+
* ensuring only the required fields are included as needed.
|
|
4938
|
+
*/
|
|
4939
|
+
custom_json?: any;
|
|
4933
4940
|
};
|
|
4934
4941
|
/** @returns {CreateOrderErrorReponse} */
|
|
4935
4942
|
declare function CreateOrderErrorReponse(): CreateOrderErrorReponse;
|
|
@@ -886,6 +886,8 @@ const Joi = require("joi");
|
|
|
886
886
|
* or system that is making the order request.
|
|
887
887
|
* @property {string} [external_shipment_id] - External shipment identifier or
|
|
888
888
|
* marketplace's unique shipment identifier.
|
|
889
|
+
* @property {Object} [custom_json] - An object containing additional metadata,
|
|
890
|
+
* ensuring only the required fields are included as needed.
|
|
889
891
|
*/
|
|
890
892
|
|
|
891
893
|
/**
|
|
@@ -4298,6 +4300,7 @@ class OrderPlatformModel {
|
|
|
4298
4300
|
fynd_order_id: Joi.string().allow(""),
|
|
4299
4301
|
application_id: Joi.string().allow(""),
|
|
4300
4302
|
external_shipment_id: Joi.string().allow(""),
|
|
4303
|
+
custom_json: Joi.any().allow(null),
|
|
4301
4304
|
});
|
|
4302
4305
|
}
|
|
4303
4306
|
|
|
@@ -51,6 +51,14 @@ export = OrderPlatformValidator;
|
|
|
51
51
|
* @typedef FailedOrderLogDetailsParam
|
|
52
52
|
* @property {string} logId - Log Error ID
|
|
53
53
|
*/
|
|
54
|
+
/**
|
|
55
|
+
* @typedef FailedOrderLogsParam
|
|
56
|
+
* @property {string} [applicationId] - Application ID
|
|
57
|
+
* @property {number} [pageNo] - Page Number
|
|
58
|
+
* @property {number} [pageSize] - Page Size
|
|
59
|
+
* @property {string} [searchType] - Search type for filter
|
|
60
|
+
* @property {string} [searchValue] - Search value for filter
|
|
61
|
+
*/
|
|
54
62
|
/**
|
|
55
63
|
* @typedef FetchRefundModeConfigParam
|
|
56
64
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
@@ -410,6 +418,8 @@ declare class OrderPlatformValidator {
|
|
|
410
418
|
static eInvoiceRetry(): EInvoiceRetryParam;
|
|
411
419
|
/** @returns {FailedOrderLogDetailsParam} */
|
|
412
420
|
static failedOrderLogDetails(): FailedOrderLogDetailsParam;
|
|
421
|
+
/** @returns {FailedOrderLogsParam} */
|
|
422
|
+
static failedOrderLogs(): FailedOrderLogsParam;
|
|
413
423
|
/** @returns {FetchRefundModeConfigParam} */
|
|
414
424
|
static fetchRefundModeConfig(): FetchRefundModeConfigParam;
|
|
415
425
|
/** @returns {GenerateInvoiceIDParam} */
|
|
@@ -498,7 +508,7 @@ declare class OrderPlatformValidator {
|
|
|
498
508
|
static verifyMobileOTP(): VerifyMobileOTPParam;
|
|
499
509
|
}
|
|
500
510
|
declare namespace OrderPlatformValidator {
|
|
501
|
-
export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam };
|
|
511
|
+
export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FailedOrderLogsParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam };
|
|
502
512
|
}
|
|
503
513
|
type AddStateManagerConfigParam = {
|
|
504
514
|
body: OrderPlatformModel.TransitionConfigPayload;
|
|
@@ -568,6 +578,28 @@ type FailedOrderLogDetailsParam = {
|
|
|
568
578
|
*/
|
|
569
579
|
logId: string;
|
|
570
580
|
};
|
|
581
|
+
type FailedOrderLogsParam = {
|
|
582
|
+
/**
|
|
583
|
+
* - Application ID
|
|
584
|
+
*/
|
|
585
|
+
applicationId?: string;
|
|
586
|
+
/**
|
|
587
|
+
* - Page Number
|
|
588
|
+
*/
|
|
589
|
+
pageNo?: number;
|
|
590
|
+
/**
|
|
591
|
+
* - Page Size
|
|
592
|
+
*/
|
|
593
|
+
pageSize?: number;
|
|
594
|
+
/**
|
|
595
|
+
* - Search type for filter
|
|
596
|
+
*/
|
|
597
|
+
searchType?: string;
|
|
598
|
+
/**
|
|
599
|
+
* - Search value for filter
|
|
600
|
+
*/
|
|
601
|
+
searchValue?: string;
|
|
602
|
+
};
|
|
571
603
|
type FetchRefundModeConfigParam = {
|
|
572
604
|
body: OrderPlatformModel.RefundModeConfigRequestPayload;
|
|
573
605
|
};
|
|
@@ -65,6 +65,15 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
65
65
|
* @property {string} logId - Log Error ID
|
|
66
66
|
*/
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* @typedef FailedOrderLogsParam
|
|
70
|
+
* @property {string} [applicationId] - Application ID
|
|
71
|
+
* @property {number} [pageNo] - Page Number
|
|
72
|
+
* @property {number} [pageSize] - Page Size
|
|
73
|
+
* @property {string} [searchType] - Search type for filter
|
|
74
|
+
* @property {string} [searchValue] - Search value for filter
|
|
75
|
+
*/
|
|
76
|
+
|
|
68
77
|
/**
|
|
69
78
|
* @typedef FetchRefundModeConfigParam
|
|
70
79
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
@@ -528,6 +537,17 @@ class OrderPlatformValidator {
|
|
|
528
537
|
}).required();
|
|
529
538
|
}
|
|
530
539
|
|
|
540
|
+
/** @returns {FailedOrderLogsParam} */
|
|
541
|
+
static failedOrderLogs() {
|
|
542
|
+
return Joi.object({
|
|
543
|
+
applicationId: Joi.string().allow(""),
|
|
544
|
+
pageNo: Joi.number(),
|
|
545
|
+
pageSize: Joi.number(),
|
|
546
|
+
searchType: Joi.string().allow(""),
|
|
547
|
+
searchValue: Joi.string().allow(""),
|
|
548
|
+
}).required();
|
|
549
|
+
}
|
|
550
|
+
|
|
531
551
|
/** @returns {FetchRefundModeConfigParam} */
|
|
532
552
|
static fetchRefundModeConfig() {
|
|
533
553
|
return Joi.object({
|
|
@@ -245,7 +245,7 @@ declare class Serviceability {
|
|
|
245
245
|
* @summary: Get zones
|
|
246
246
|
* @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
|
|
247
247
|
*/
|
|
248
|
-
getZones({ pageNo, pageSize, isActive,
|
|
248
|
+
getZones({ pageNo, pageSize, isActive, applicationIds, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: ServiceabilityPlatformValidator.GetZonesParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ListViewResponse>;
|
|
249
249
|
/**
|
|
250
250
|
* @param {ServiceabilityPlatformValidator.UpdateCompanyConfigurationParam} arg
|
|
251
251
|
* - Arg object
|
|
@@ -1728,7 +1728,7 @@ class Serviceability {
|
|
|
1728
1728
|
pageNo,
|
|
1729
1729
|
pageSize,
|
|
1730
1730
|
isActive,
|
|
1731
|
-
|
|
1731
|
+
applicationIds,
|
|
1732
1732
|
q,
|
|
1733
1733
|
countryIsoCode,
|
|
1734
1734
|
state,
|
|
@@ -1744,7 +1744,7 @@ class Serviceability {
|
|
|
1744
1744
|
pageNo,
|
|
1745
1745
|
pageSize,
|
|
1746
1746
|
isActive,
|
|
1747
|
-
|
|
1747
|
+
applicationIds,
|
|
1748
1748
|
q,
|
|
1749
1749
|
countryIsoCode,
|
|
1750
1750
|
state,
|
|
@@ -1766,7 +1766,7 @@ class Serviceability {
|
|
|
1766
1766
|
pageNo,
|
|
1767
1767
|
pageSize,
|
|
1768
1768
|
isActive,
|
|
1769
|
-
|
|
1769
|
+
applicationIds,
|
|
1770
1770
|
q,
|
|
1771
1771
|
countryIsoCode,
|
|
1772
1772
|
state,
|
|
@@ -1787,7 +1787,7 @@ class Serviceability {
|
|
|
1787
1787
|
query_params["page_no"] = pageNo;
|
|
1788
1788
|
query_params["page_size"] = pageSize;
|
|
1789
1789
|
query_params["is_active"] = isActive;
|
|
1790
|
-
query_params["
|
|
1790
|
+
query_params["application_ids"] = applicationIds;
|
|
1791
1791
|
query_params["q"] = q;
|
|
1792
1792
|
query_params["country_iso_code"] = countryIsoCode;
|
|
1793
1793
|
query_params["state"] = state;
|
|
@@ -133,11 +133,23 @@ export = ServiceabilityPlatformModel;
|
|
|
133
133
|
* @property {string} type
|
|
134
134
|
* @property {string[]} tags
|
|
135
135
|
*/
|
|
136
|
+
/**
|
|
137
|
+
* @typedef ZoneMappingDetailType
|
|
138
|
+
* @property {string} country - Uid for the country.
|
|
139
|
+
* @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
|
|
140
|
+
*/
|
|
136
141
|
/**
|
|
137
142
|
* @typedef ZoneMappingType
|
|
138
143
|
* @property {string} country
|
|
139
|
-
* @property {string[]}
|
|
140
|
-
|
|
144
|
+
* @property {string[]} regions
|
|
145
|
+
*/
|
|
146
|
+
/**
|
|
147
|
+
* @typedef ZoneMappingRegions
|
|
148
|
+
* @property {string} [display_name] - Name of the region that is in proper casing.
|
|
149
|
+
* @property {string[]} [parent_id]
|
|
150
|
+
* @property {string} [parent_uid] - Unique identifier for that regions parent.
|
|
151
|
+
* @property {string} [sub_type] - What type does the region belong to.
|
|
152
|
+
* @property {string} [uid] - Unique identifier for that region.
|
|
141
153
|
*/
|
|
142
154
|
/**
|
|
143
155
|
* @typedef UpdateZoneData
|
|
@@ -151,7 +163,6 @@ export = ServiceabilityPlatformModel;
|
|
|
151
163
|
* @property {number[]} store_ids
|
|
152
164
|
* @property {string} region_type
|
|
153
165
|
* @property {ZoneMappingType[]} mapping
|
|
154
|
-
* @property {string} [assignment_preference]
|
|
155
166
|
*/
|
|
156
167
|
/**
|
|
157
168
|
* @typedef ZoneUpdateRequest
|
|
@@ -175,7 +186,6 @@ export = ServiceabilityPlatformModel;
|
|
|
175
186
|
* @property {number[]} store_ids
|
|
176
187
|
* @property {string} [region_type]
|
|
177
188
|
* @property {ZoneMappingType[]} mapping
|
|
178
|
-
* @property {string} [assignment_preference]
|
|
179
189
|
* @property {number} stores_count
|
|
180
190
|
*/
|
|
181
191
|
/**
|
|
@@ -193,9 +203,7 @@ export = ServiceabilityPlatformModel;
|
|
|
193
203
|
* @property {ZoneProductTypes} product
|
|
194
204
|
* @property {number[]} store_ids
|
|
195
205
|
* @property {string} region_type
|
|
196
|
-
* @property {
|
|
197
|
-
* @property {string} [assignment_preference]
|
|
198
|
-
* @property {number} stores_count
|
|
206
|
+
* @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
|
|
199
207
|
*/
|
|
200
208
|
/**
|
|
201
209
|
* @typedef CreateZoneData
|
|
@@ -205,9 +213,9 @@ export = ServiceabilityPlatformModel;
|
|
|
205
213
|
* @property {boolean} is_active
|
|
206
214
|
* @property {GetZoneDataViewChannels[]} channels
|
|
207
215
|
* @property {number[]} store_ids
|
|
216
|
+
* @property {ZoneProductTypes} product
|
|
208
217
|
* @property {string} region_type
|
|
209
218
|
* @property {ZoneMappingType[]} mapping
|
|
210
|
-
* @property {string} [assignment_preference]
|
|
211
219
|
*/
|
|
212
220
|
/**
|
|
213
221
|
* @typedef ZoneResponse
|
|
@@ -229,7 +237,6 @@ export = ServiceabilityPlatformModel;
|
|
|
229
237
|
* @property {string} slug
|
|
230
238
|
* @property {boolean} is_active
|
|
231
239
|
* @property {number[]} store_ids
|
|
232
|
-
* @property {string} assignment_preference
|
|
233
240
|
*/
|
|
234
241
|
/**
|
|
235
242
|
* @typedef GetZoneFromPincodeViewResponse
|
|
@@ -1027,7 +1034,7 @@ export = ServiceabilityPlatformModel;
|
|
|
1027
1034
|
declare class ServiceabilityPlatformModel {
|
|
1028
1035
|
}
|
|
1029
1036
|
declare namespace ServiceabilityPlatformModel {
|
|
1030
|
-
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, CourierAccountRequestBody, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerRuleCPListResponse, CourierPartnerRuleResponse, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse };
|
|
1037
|
+
export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingDetailType, ZoneMappingType, ZoneMappingRegions, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, CourierAccountRequestBody, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerRuleCPListResponse, CourierPartnerRuleResponse, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse };
|
|
1031
1038
|
}
|
|
1032
1039
|
/** @returns {UpdateZoneConfigRequest} */
|
|
1033
1040
|
declare function UpdateZoneConfigRequest(): UpdateZoneConfigRequest;
|
|
@@ -1211,12 +1218,44 @@ type ZoneProductTypes = {
|
|
|
1211
1218
|
type: string;
|
|
1212
1219
|
tags: string[];
|
|
1213
1220
|
};
|
|
1221
|
+
/** @returns {ZoneMappingDetailType} */
|
|
1222
|
+
declare function ZoneMappingDetailType(): ZoneMappingDetailType;
|
|
1223
|
+
type ZoneMappingDetailType = {
|
|
1224
|
+
/**
|
|
1225
|
+
* - Uid for the country.
|
|
1226
|
+
*/
|
|
1227
|
+
country: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* - List of regions with its details.
|
|
1230
|
+
*/
|
|
1231
|
+
regions?: ZoneMappingRegions[];
|
|
1232
|
+
};
|
|
1214
1233
|
/** @returns {ZoneMappingType} */
|
|
1215
1234
|
declare function ZoneMappingType(): ZoneMappingType;
|
|
1216
1235
|
type ZoneMappingType = {
|
|
1217
1236
|
country: string;
|
|
1218
|
-
|
|
1219
|
-
|
|
1237
|
+
regions: string[];
|
|
1238
|
+
};
|
|
1239
|
+
/** @returns {ZoneMappingRegions} */
|
|
1240
|
+
declare function ZoneMappingRegions(): ZoneMappingRegions;
|
|
1241
|
+
type ZoneMappingRegions = {
|
|
1242
|
+
/**
|
|
1243
|
+
* - Name of the region that is in proper casing.
|
|
1244
|
+
*/
|
|
1245
|
+
display_name?: string;
|
|
1246
|
+
parent_id?: string[];
|
|
1247
|
+
/**
|
|
1248
|
+
* - Unique identifier for that regions parent.
|
|
1249
|
+
*/
|
|
1250
|
+
parent_uid?: string;
|
|
1251
|
+
/**
|
|
1252
|
+
* - What type does the region belong to.
|
|
1253
|
+
*/
|
|
1254
|
+
sub_type?: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* - Unique identifier for that region.
|
|
1257
|
+
*/
|
|
1258
|
+
uid?: string;
|
|
1220
1259
|
};
|
|
1221
1260
|
/** @returns {UpdateZoneData} */
|
|
1222
1261
|
declare function UpdateZoneData(): UpdateZoneData;
|
|
@@ -1231,7 +1270,6 @@ type UpdateZoneData = {
|
|
|
1231
1270
|
store_ids: number[];
|
|
1232
1271
|
region_type: string;
|
|
1233
1272
|
mapping: ZoneMappingType[];
|
|
1234
|
-
assignment_preference?: string;
|
|
1235
1273
|
};
|
|
1236
1274
|
/** @returns {ZoneUpdateRequest} */
|
|
1237
1275
|
declare function ZoneUpdateRequest(): ZoneUpdateRequest;
|
|
@@ -1258,7 +1296,6 @@ type GetZoneDataViewItems = {
|
|
|
1258
1296
|
store_ids: number[];
|
|
1259
1297
|
region_type?: string;
|
|
1260
1298
|
mapping: ZoneMappingType[];
|
|
1261
|
-
assignment_preference?: string;
|
|
1262
1299
|
stores_count: number;
|
|
1263
1300
|
};
|
|
1264
1301
|
/** @returns {GetSingleZoneDataViewResponse} */
|
|
@@ -1278,9 +1315,10 @@ type GetZoneByIdSchema = {
|
|
|
1278
1315
|
product: ZoneProductTypes;
|
|
1279
1316
|
store_ids: number[];
|
|
1280
1317
|
region_type: string;
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1318
|
+
/**
|
|
1319
|
+
* - Country to region mapping for the zone.
|
|
1320
|
+
*/
|
|
1321
|
+
mapping: ZoneMappingDetailType[];
|
|
1284
1322
|
};
|
|
1285
1323
|
/** @returns {CreateZoneData} */
|
|
1286
1324
|
declare function CreateZoneData(): CreateZoneData;
|
|
@@ -1291,9 +1329,9 @@ type CreateZoneData = {
|
|
|
1291
1329
|
is_active: boolean;
|
|
1292
1330
|
channels: GetZoneDataViewChannels[];
|
|
1293
1331
|
store_ids: number[];
|
|
1332
|
+
product: ZoneProductTypes;
|
|
1294
1333
|
region_type: string;
|
|
1295
1334
|
mapping: ZoneMappingType[];
|
|
1296
|
-
assignment_preference?: string;
|
|
1297
1335
|
};
|
|
1298
1336
|
/** @returns {ZoneResponse} */
|
|
1299
1337
|
declare function ZoneResponse(): ZoneResponse;
|
|
@@ -1318,7 +1356,6 @@ type Zone = {
|
|
|
1318
1356
|
slug: string;
|
|
1319
1357
|
is_active: boolean;
|
|
1320
1358
|
store_ids: number[];
|
|
1321
|
-
assignment_preference: string;
|
|
1322
1359
|
};
|
|
1323
1360
|
/** @returns {GetZoneFromPincodeViewResponse} */
|
|
1324
1361
|
declare function GetZoneFromPincodeViewResponse(): GetZoneFromPincodeViewResponse;
|