@gofynd/fdk-client-javascript 1.1.0 → 1.1.2
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 +0 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +11 -0
- package/sdk/application/Cart/CartApplicationClient.js +65 -0
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -0
- package/sdk/application/Cart/CartApplicationModel.js +72 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -0
- package/sdk/application/Cart/CartApplicationValidator.js +6 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +19 -4
- package/sdk/application/Catalog/CatalogApplicationClient.js +27 -6
- package/sdk/application/Catalog/CatalogApplicationValidator.js +4 -0
- package/sdk/application/Content/ContentApplicationModel.js +1 -4
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -2
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +2 -2
- package/sdk/application/Lead/LeadApplicationModel.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +4 -0
- package/sdk/application/PosCart/PosCartApplicationModel.js +50 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +8 -8
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -8
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/Constant.d.ts +0 -18
- package/sdk/common/Constant.js +0 -22
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +51 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +308 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +30 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +13 -0
- package/sdk/platform/Cart/CartPlatformModel.js +154 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +5 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +0 -183
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +0 -417
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +0 -10
- package/sdk/platform/Communication/CommunicationPlatformClient.js +0 -26
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +4 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -22
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +0 -56
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +12 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +62 -2
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +6 -0
- package/sdk/platform/Content/ContentPlatformModel.js +1 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +1 -1
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +1 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +15 -0
- package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +10 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +15 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +9 -3
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -47
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -201
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -3
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -26
- package/sdk/platform/Order/OrderPlatformClient.d.ts +54 -186
- package/sdk/platform/Order/OrderPlatformClient.js +246 -934
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -20
- package/sdk/platform/Order/OrderPlatformModel.js +40 -182
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +3 -12
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -96
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +24 -10
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +111 -44
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +2 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +13 -5
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +12 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +20 -41
- package/sdk/platform/PlatformApplicationClient.js +22 -45
- package/sdk/platform/PlatformClient.d.ts +190 -266
- package/sdk/platform/PlatformClient.js +223 -318
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +14 -26
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +14 -74
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +61 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +11 -0
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +0 -109
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +0 -558
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +0 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +0 -56
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +0 -88
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +0 -361
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +0 -23
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +0 -169
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.d.ts +0 -7
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +0 -38
|
@@ -12,202 +12,6 @@ class Order {
|
|
|
12
12
|
this.applicationId = applicationId;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* @param {Object} arg - Arg object.
|
|
17
|
-
* @param {string} arg.orderId -
|
|
18
|
-
* @returns {Promise<ShipmentDetailsResponse>} - Success response
|
|
19
|
-
* @summary:
|
|
20
|
-
* @description:
|
|
21
|
-
*/
|
|
22
|
-
async getAppOrderShipmentDetails({ orderId } = {}) {
|
|
23
|
-
const { error } = OrderValidator.getAppOrderShipmentDetails().validate(
|
|
24
|
-
{
|
|
25
|
-
orderId,
|
|
26
|
-
},
|
|
27
|
-
{ abortEarly: false, allowUnknown: true }
|
|
28
|
-
);
|
|
29
|
-
if (error) {
|
|
30
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Showing warrnings if extra unknown parameters are found
|
|
34
|
-
const {
|
|
35
|
-
error: warrning,
|
|
36
|
-
} = OrderValidator.getAppOrderShipmentDetails().validate(
|
|
37
|
-
{
|
|
38
|
-
orderId,
|
|
39
|
-
},
|
|
40
|
-
{ abortEarly: false, allowUnknown: false }
|
|
41
|
-
);
|
|
42
|
-
if (warrning) {
|
|
43
|
-
Logger({
|
|
44
|
-
level: "WARN",
|
|
45
|
-
message:
|
|
46
|
-
"Parameter Validation warrnings for getAppOrderShipmentDetails",
|
|
47
|
-
});
|
|
48
|
-
Logger({ level: "WARN", message: warrning });
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const query_params = {};
|
|
52
|
-
query_params["order_id"] = orderId;
|
|
53
|
-
|
|
54
|
-
const response = await PlatformAPIClient.execute(
|
|
55
|
-
this.config,
|
|
56
|
-
"get",
|
|
57
|
-
`/service/platform/orders/v1.0/company/${this.config.companyId}/application/${this.applicationId}/order-details`,
|
|
58
|
-
query_params,
|
|
59
|
-
undefined
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
const {
|
|
63
|
-
error: res_error,
|
|
64
|
-
} = OrderModel.ShipmentDetailsResponse().validate(response, {
|
|
65
|
-
abortEarly: false,
|
|
66
|
-
allowUnknown: false,
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
if (res_error) {
|
|
70
|
-
Logger({
|
|
71
|
-
level: "WARN",
|
|
72
|
-
message: "Response Validation Warnnings for getAppOrderShipmentDetails",
|
|
73
|
-
});
|
|
74
|
-
Logger({ level: "WARN", message: res_error });
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return response;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @param {Object} arg - Arg object.
|
|
82
|
-
* @param {string} [arg.lane] -
|
|
83
|
-
* @param {string} [arg.searchType] -
|
|
84
|
-
* @param {string} [arg.searchId] -
|
|
85
|
-
* @param {string} [arg.fromDate] -
|
|
86
|
-
* @param {string} [arg.toDate] -
|
|
87
|
-
* @param {string} [arg.dpIds] -
|
|
88
|
-
* @param {string} [arg.orderingCompanyId] -
|
|
89
|
-
* @param {string} [arg.stores] -
|
|
90
|
-
* @param {string} [arg.salesChannel] -
|
|
91
|
-
* @param {string} [arg.requestByExt] -
|
|
92
|
-
* @param {number} [arg.pageNo] -
|
|
93
|
-
* @param {number} [arg.pageSize] -
|
|
94
|
-
* @param {string} [arg.customerId] -
|
|
95
|
-
* @param {boolean} [arg.isPrioritySort] -
|
|
96
|
-
* @returns {Promise<ShipmentInternalPlatformViewResponse>} - Success response
|
|
97
|
-
* @summary:
|
|
98
|
-
* @description:
|
|
99
|
-
*/
|
|
100
|
-
async getApplicationShipments({
|
|
101
|
-
lane,
|
|
102
|
-
searchType,
|
|
103
|
-
searchId,
|
|
104
|
-
fromDate,
|
|
105
|
-
toDate,
|
|
106
|
-
dpIds,
|
|
107
|
-
orderingCompanyId,
|
|
108
|
-
stores,
|
|
109
|
-
salesChannel,
|
|
110
|
-
requestByExt,
|
|
111
|
-
pageNo,
|
|
112
|
-
pageSize,
|
|
113
|
-
customerId,
|
|
114
|
-
isPrioritySort,
|
|
115
|
-
} = {}) {
|
|
116
|
-
const { error } = OrderValidator.getApplicationShipments().validate(
|
|
117
|
-
{
|
|
118
|
-
lane,
|
|
119
|
-
searchType,
|
|
120
|
-
searchId,
|
|
121
|
-
fromDate,
|
|
122
|
-
toDate,
|
|
123
|
-
dpIds,
|
|
124
|
-
orderingCompanyId,
|
|
125
|
-
stores,
|
|
126
|
-
salesChannel,
|
|
127
|
-
requestByExt,
|
|
128
|
-
pageNo,
|
|
129
|
-
pageSize,
|
|
130
|
-
customerId,
|
|
131
|
-
isPrioritySort,
|
|
132
|
-
},
|
|
133
|
-
{ abortEarly: false, allowUnknown: true }
|
|
134
|
-
);
|
|
135
|
-
if (error) {
|
|
136
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Showing warrnings if extra unknown parameters are found
|
|
140
|
-
const {
|
|
141
|
-
error: warrning,
|
|
142
|
-
} = OrderValidator.getApplicationShipments().validate(
|
|
143
|
-
{
|
|
144
|
-
lane,
|
|
145
|
-
searchType,
|
|
146
|
-
searchId,
|
|
147
|
-
fromDate,
|
|
148
|
-
toDate,
|
|
149
|
-
dpIds,
|
|
150
|
-
orderingCompanyId,
|
|
151
|
-
stores,
|
|
152
|
-
salesChannel,
|
|
153
|
-
requestByExt,
|
|
154
|
-
pageNo,
|
|
155
|
-
pageSize,
|
|
156
|
-
customerId,
|
|
157
|
-
isPrioritySort,
|
|
158
|
-
},
|
|
159
|
-
{ abortEarly: false, allowUnknown: false }
|
|
160
|
-
);
|
|
161
|
-
if (warrning) {
|
|
162
|
-
Logger({
|
|
163
|
-
level: "WARN",
|
|
164
|
-
message: "Parameter Validation warrnings for getApplicationShipments",
|
|
165
|
-
});
|
|
166
|
-
Logger({ level: "WARN", message: warrning });
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
const query_params = {};
|
|
170
|
-
query_params["lane"] = lane;
|
|
171
|
-
query_params["search_type"] = searchType;
|
|
172
|
-
query_params["search_id"] = searchId;
|
|
173
|
-
query_params["from_date"] = fromDate;
|
|
174
|
-
query_params["to_date"] = toDate;
|
|
175
|
-
query_params["dp_ids"] = dpIds;
|
|
176
|
-
query_params["ordering_company_id"] = orderingCompanyId;
|
|
177
|
-
query_params["stores"] = stores;
|
|
178
|
-
query_params["sales_channel"] = salesChannel;
|
|
179
|
-
query_params["request_by_ext"] = requestByExt;
|
|
180
|
-
query_params["page_no"] = pageNo;
|
|
181
|
-
query_params["page_size"] = pageSize;
|
|
182
|
-
query_params["customer_id"] = customerId;
|
|
183
|
-
query_params["is_priority_sort"] = isPrioritySort;
|
|
184
|
-
|
|
185
|
-
const response = await PlatformAPIClient.execute(
|
|
186
|
-
this.config,
|
|
187
|
-
"get",
|
|
188
|
-
`/service/platform/orders/v1.0/company/${this.config.companyId}/application/${this.applicationId}/shipments/`,
|
|
189
|
-
query_params,
|
|
190
|
-
undefined
|
|
191
|
-
);
|
|
192
|
-
|
|
193
|
-
const {
|
|
194
|
-
error: res_error,
|
|
195
|
-
} = OrderModel.ShipmentInternalPlatformViewResponse().validate(response, {
|
|
196
|
-
abortEarly: false,
|
|
197
|
-
allowUnknown: false,
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
if (res_error) {
|
|
201
|
-
Logger({
|
|
202
|
-
level: "WARN",
|
|
203
|
-
message: "Response Validation Warnnings for getApplicationShipments",
|
|
204
|
-
});
|
|
205
|
-
Logger({ level: "WARN", message: res_error });
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
return response;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
15
|
/**
|
|
212
16
|
* @param {Object} arg - Arg object.
|
|
213
17
|
* @param {string} arg.shipmentId -
|
|
@@ -215,8 +19,8 @@ class Order {
|
|
|
215
19
|
* @summary: Track shipment
|
|
216
20
|
* @description: Track Shipment by shipment id, for application based on application Id
|
|
217
21
|
*/
|
|
218
|
-
async
|
|
219
|
-
const { error } = OrderValidator.
|
|
22
|
+
async trackShipmentPlatform({ shipmentId } = {}) {
|
|
23
|
+
const { error } = OrderValidator.trackShipmentPlatform().validate(
|
|
220
24
|
{
|
|
221
25
|
shipmentId,
|
|
222
26
|
},
|
|
@@ -227,7 +31,7 @@ class Order {
|
|
|
227
31
|
}
|
|
228
32
|
|
|
229
33
|
// Showing warrnings if extra unknown parameters are found
|
|
230
|
-
const { error: warrning } = OrderValidator.
|
|
34
|
+
const { error: warrning } = OrderValidator.trackShipmentPlatform().validate(
|
|
231
35
|
{
|
|
232
36
|
shipmentId,
|
|
233
37
|
},
|
|
@@ -236,7 +40,7 @@ class Order {
|
|
|
236
40
|
if (warrning) {
|
|
237
41
|
Logger({
|
|
238
42
|
level: "WARN",
|
|
239
|
-
message: "Parameter Validation warrnings for
|
|
43
|
+
message: "Parameter Validation warrnings for trackShipmentPlatform",
|
|
240
44
|
});
|
|
241
45
|
Logger({ level: "WARN", message: warrning });
|
|
242
46
|
}
|
|
@@ -261,7 +65,7 @@ class Order {
|
|
|
261
65
|
if (res_error) {
|
|
262
66
|
Logger({
|
|
263
67
|
level: "WARN",
|
|
264
|
-
message: "Response Validation Warnnings for
|
|
68
|
+
message: "Response Validation Warnnings for trackShipmentPlatform",
|
|
265
69
|
});
|
|
266
70
|
Logger({ level: "WARN", message: res_error });
|
|
267
71
|
}
|
|
@@ -2,32 +2,7 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const OrderModel = require("./OrderPlatformModel");
|
|
4
4
|
class OrderValidator {
|
|
5
|
-
static
|
|
6
|
-
return Joi.object({
|
|
7
|
-
orderId: Joi.string().allow("").required(),
|
|
8
|
-
}).required();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static getApplicationShipments() {
|
|
12
|
-
return Joi.object({
|
|
13
|
-
lane: Joi.string().allow(""),
|
|
14
|
-
searchType: Joi.string().allow(""),
|
|
15
|
-
searchId: Joi.string().allow(""),
|
|
16
|
-
fromDate: Joi.string().allow(""),
|
|
17
|
-
toDate: Joi.string().allow(""),
|
|
18
|
-
dpIds: Joi.string().allow(""),
|
|
19
|
-
orderingCompanyId: Joi.string().allow(""),
|
|
20
|
-
stores: Joi.string().allow(""),
|
|
21
|
-
salesChannel: Joi.string().allow(""),
|
|
22
|
-
requestByExt: Joi.string().allow(""),
|
|
23
|
-
pageNo: Joi.number(),
|
|
24
|
-
pageSize: Joi.number(),
|
|
25
|
-
customerId: Joi.string().allow(""),
|
|
26
|
-
isPrioritySort: Joi.boolean(),
|
|
27
|
-
}).required();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static trackPlatformShipment() {
|
|
5
|
+
static trackShipmentPlatform() {
|
|
31
6
|
return Joi.object({
|
|
32
7
|
shipmentId: Joi.string().allow("").required(),
|
|
33
8
|
}).required();
|
|
@@ -2,26 +2,6 @@ export = Order;
|
|
|
2
2
|
declare class Order {
|
|
3
3
|
constructor(config: any);
|
|
4
4
|
config: any;
|
|
5
|
-
/**
|
|
6
|
-
* @param {Object} arg - Arg object.
|
|
7
|
-
* @param {string} arg.batchId -
|
|
8
|
-
* @returns {Promise<BulkActionDetailsResponse>} - Success response
|
|
9
|
-
* @summary: Returns failed, processing and successfully processed shipments.
|
|
10
|
-
* @description: Returns failed, processing and successfully processed shipments along with their counts and failed reasons.
|
|
11
|
-
*/
|
|
12
|
-
bulkActionDetails({ batchId }?: {
|
|
13
|
-
batchId: string;
|
|
14
|
-
}): Promise<BulkActionDetailsResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* @param {Object} arg - Arg object.
|
|
17
|
-
* @param {BulkActionPayload} arg.body
|
|
18
|
-
* @returns {Promise<BulkActionResponse>} - Success response
|
|
19
|
-
* @summary: emits uuid to kafka topic.
|
|
20
|
-
* @description: Use this API to start processing Xlsx file.
|
|
21
|
-
*/
|
|
22
|
-
bulkActionProcessXlsxFile({ body }?: {
|
|
23
|
-
body: BulkActionPayload;
|
|
24
|
-
}): Promise<BulkActionResponse>;
|
|
25
5
|
/**
|
|
26
6
|
* @param {Object} arg - Arg object.
|
|
27
7
|
* @param {OrderStatus} arg.body
|
|
@@ -34,21 +14,21 @@ declare class Order {
|
|
|
34
14
|
}): Promise<OrderStatusResult>;
|
|
35
15
|
/**
|
|
36
16
|
* @param {Object} arg - Arg object.
|
|
37
|
-
* @param {string} arg.caller -
|
|
38
|
-
* @param {string} arg.receiver -
|
|
39
|
-
* @param {string} arg.bagId -
|
|
40
|
-
* @param {string} [arg.
|
|
41
|
-
* @param {string} [arg.
|
|
17
|
+
* @param {string} arg.caller - Call Number
|
|
18
|
+
* @param {string} arg.receiver - Receiver Number
|
|
19
|
+
* @param {string} arg.bagId - Bag Id for the query
|
|
20
|
+
* @param {string} [arg.callerId] - Caller Id
|
|
21
|
+
* @param {string} [arg.method] - Provider Method to Call
|
|
42
22
|
* @returns {Promise<Click2CallResponse>} - Success response
|
|
43
23
|
* @summary:
|
|
44
24
|
* @description:
|
|
45
25
|
*/
|
|
46
|
-
click2Call({ caller, receiver, bagId,
|
|
26
|
+
click2Call({ caller, receiver, bagId, callerId, method, }?: {
|
|
47
27
|
caller: string;
|
|
48
28
|
receiver: string;
|
|
49
29
|
bagId: string;
|
|
50
|
-
callingTo?: string;
|
|
51
30
|
callerId?: string;
|
|
31
|
+
method?: string;
|
|
52
32
|
}): Promise<Click2CallResponse>;
|
|
53
33
|
/**
|
|
54
34
|
* @param {Object} arg - Arg object.
|
|
@@ -70,18 +50,6 @@ declare class Order {
|
|
|
70
50
|
createOrder({ body }?: {
|
|
71
51
|
body: CreateOrderAPI;
|
|
72
52
|
}): Promise<CreateOrderResponse>;
|
|
73
|
-
/**
|
|
74
|
-
* @param {Object} arg - Arg object.
|
|
75
|
-
* @param {string} [arg.fromDate] -
|
|
76
|
-
* @param {string} [arg.toDate] -
|
|
77
|
-
* @returns {Promise<Success>} - Success response
|
|
78
|
-
* @summary:
|
|
79
|
-
* @description:
|
|
80
|
-
*/
|
|
81
|
-
createShipmentReport({ fromDate, toDate }?: {
|
|
82
|
-
fromDate?: string;
|
|
83
|
-
toDate?: string;
|
|
84
|
-
}): Promise<Success>;
|
|
85
53
|
/**
|
|
86
54
|
* @param {Object} arg - Arg object.
|
|
87
55
|
* @param {DispatchManifest} arg.body
|
|
@@ -94,7 +62,18 @@ declare class Order {
|
|
|
94
62
|
}): Promise<SuccessResponse>;
|
|
95
63
|
/**
|
|
96
64
|
* @param {Object} arg - Arg object.
|
|
97
|
-
* @param {string} [arg.
|
|
65
|
+
* @param {string} [arg.templateSlug] - Slug name of template to be downloaded
|
|
66
|
+
* @returns {Promise<FileResponse>} - Success response
|
|
67
|
+
* @summary:
|
|
68
|
+
* @description:
|
|
69
|
+
*/
|
|
70
|
+
downloadBulkActionTemplate({ templateSlug }?: {
|
|
71
|
+
templateSlug?: string;
|
|
72
|
+
}): Promise<FileResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* @param {Object} arg - Arg object.
|
|
75
|
+
* @param {string} [arg.date] - Date On which the announcement is Active
|
|
76
|
+
* (Date should in ISO Datetime format IST Time)
|
|
98
77
|
* @returns {Promise<AnnouncementsResponse>} - Success response
|
|
99
78
|
* @summary:
|
|
100
79
|
* @description:
|
|
@@ -144,109 +123,42 @@ declare class Order {
|
|
|
144
123
|
}): Promise<GetBagsPlatformResponse>;
|
|
145
124
|
/**
|
|
146
125
|
* @param {Object} arg - Arg object.
|
|
147
|
-
* @
|
|
148
|
-
* @param {string} [arg.reportType] -
|
|
149
|
-
* @returns {Promise<FileResponse>} - Success response
|
|
150
|
-
* @summary:
|
|
151
|
-
* @description:
|
|
152
|
-
*/
|
|
153
|
-
getBulkActionFailedReport({ batchId, reportType }?: {
|
|
154
|
-
batchId: string;
|
|
155
|
-
reportType?: string;
|
|
156
|
-
}): Promise<FileResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* @param {Object} arg - Arg object.
|
|
159
|
-
* @param {string} arg.batchId -
|
|
160
|
-
* @param {string} arg.docType -
|
|
161
|
-
* @returns {Promise<BulkInvoicingResponse>} - Success response
|
|
126
|
+
* @returns {Promise<BulkActionTemplateResponse>} - Success response
|
|
162
127
|
* @summary:
|
|
163
128
|
* @description:
|
|
164
129
|
*/
|
|
165
|
-
|
|
166
|
-
batchId: string;
|
|
167
|
-
docType: string;
|
|
168
|
-
}): Promise<BulkInvoicingResponse>;
|
|
169
|
-
/**
|
|
170
|
-
* @param {Object} arg - Arg object.
|
|
171
|
-
* @param {string} arg.batchId -
|
|
172
|
-
* @returns {Promise<BulkInvoiceLabelResponse>} - Success response
|
|
173
|
-
* @summary:
|
|
174
|
-
* @description:
|
|
175
|
-
*/
|
|
176
|
-
getBulkInvoiceLabel({ batchId }?: {
|
|
177
|
-
batchId: string;
|
|
178
|
-
}): Promise<BulkInvoiceLabelResponse>;
|
|
179
|
-
/**
|
|
180
|
-
* @param {Object} arg - Arg object.
|
|
181
|
-
* @param {string} [arg.lane] -
|
|
182
|
-
* @param {string} [arg.searchType] -
|
|
183
|
-
* @param {string} [arg.searchId] -
|
|
184
|
-
* @param {string} [arg.fromDate] -
|
|
185
|
-
* @param {string} [arg.toDate] -
|
|
186
|
-
* @param {string} [arg.dpIds] -
|
|
187
|
-
* @param {string} [arg.orderingCompanyId] -
|
|
188
|
-
* @param {string} [arg.stores] -
|
|
189
|
-
* @param {string} [arg.salesChannel] -
|
|
190
|
-
* @param {string} [arg.requestByExt] -
|
|
191
|
-
* @param {number} [arg.pageNo] -
|
|
192
|
-
* @param {number} [arg.pageSize] -
|
|
193
|
-
* @param {string} [arg.customerId] -
|
|
194
|
-
* @param {boolean} [arg.isPrioritySort] -
|
|
195
|
-
* @returns {Promise<BulkListingResponse>} - Success response
|
|
196
|
-
* @summary:
|
|
197
|
-
* @description:
|
|
198
|
-
*/
|
|
199
|
-
getBulkList({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, }?: {
|
|
200
|
-
lane?: string;
|
|
201
|
-
searchType?: string;
|
|
202
|
-
searchId?: string;
|
|
203
|
-
fromDate?: string;
|
|
204
|
-
toDate?: string;
|
|
205
|
-
dpIds?: string;
|
|
206
|
-
orderingCompanyId?: string;
|
|
207
|
-
stores?: string;
|
|
208
|
-
salesChannel?: string;
|
|
209
|
-
requestByExt?: string;
|
|
210
|
-
pageNo?: number;
|
|
211
|
-
pageSize?: number;
|
|
212
|
-
customerId?: string;
|
|
213
|
-
isPrioritySort?: boolean;
|
|
214
|
-
}): Promise<BulkListingResponse>;
|
|
130
|
+
getBulkActionTemplate({}?: any): Promise<BulkActionTemplateResponse>;
|
|
215
131
|
/**
|
|
216
132
|
* @param {Object} arg - Arg object.
|
|
217
|
-
* @param {string} [arg.
|
|
218
|
-
* @param {string} [arg.
|
|
219
|
-
* @param {string} [arg.
|
|
220
|
-
* @param {string} [arg.
|
|
221
|
-
* @param {string} [arg.
|
|
222
|
-
* @param {string} [arg.
|
|
223
|
-
* @param {string} [arg.
|
|
224
|
-
* @param {string} [arg.
|
|
225
|
-
* @param {string} [arg.
|
|
226
|
-
* @param {
|
|
133
|
+
* @param {string} [arg.salesChannels] - Comma seperated values of sales channel ids
|
|
134
|
+
* @param {string} [arg.dpIds] - Comma seperated values of delivery partner ids
|
|
135
|
+
* @param {string} [arg.fromDate] - Start Date in DD-MM-YYYY format
|
|
136
|
+
* @param {string} [arg.toDate] - End Date in DD-MM-YYYY format
|
|
137
|
+
* @param {string} [arg.stores] - Comma seperated values of store ids
|
|
138
|
+
* @param {string} [arg.tags] - Comma seperated values of tags
|
|
139
|
+
* @param {string} [arg.bagStatus] - Comma seperated values of bag statuses
|
|
140
|
+
* @param {string} [arg.paymentMethods] - Comma seperated values of payment methods
|
|
141
|
+
* @param {string} [arg.fileType] - File type to be downloaded
|
|
142
|
+
* @param {number} [arg.timeToDispatch] - Sla breached or not breached
|
|
227
143
|
* @param {number} [arg.pageNo] -
|
|
228
144
|
* @param {number} [arg.pageSize] -
|
|
229
|
-
* @param {string} [arg.customerId] -
|
|
230
|
-
* @param {boolean} [arg.isPrioritySort] -
|
|
231
145
|
* @returns {Promise<FileResponse>} - Success response
|
|
232
146
|
* @summary:
|
|
233
147
|
* @description:
|
|
234
148
|
*/
|
|
235
|
-
getBulkShipmentExcelFile({
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
searchId?: string;
|
|
149
|
+
getBulkShipmentExcelFile({ salesChannels, dpIds, fromDate, toDate, stores, tags, bagStatus, paymentMethods, fileType, timeToDispatch, pageNo, pageSize, }?: {
|
|
150
|
+
salesChannels?: string;
|
|
151
|
+
dpIds?: string;
|
|
239
152
|
fromDate?: string;
|
|
240
153
|
toDate?: string;
|
|
241
|
-
dpIds?: string;
|
|
242
|
-
orderingCompanyId?: string;
|
|
243
154
|
stores?: string;
|
|
244
|
-
|
|
245
|
-
|
|
155
|
+
tags?: string;
|
|
156
|
+
bagStatus?: string;
|
|
157
|
+
paymentMethods?: string;
|
|
158
|
+
fileType?: string;
|
|
159
|
+
timeToDispatch?: number;
|
|
246
160
|
pageNo?: number;
|
|
247
161
|
pageSize?: number;
|
|
248
|
-
customerId?: string;
|
|
249
|
-
isPrioritySort?: boolean;
|
|
250
162
|
}): Promise<FileResponse>;
|
|
251
163
|
/**
|
|
252
164
|
* @param {Object} arg - Arg object.
|
|
@@ -281,18 +193,6 @@ declare class Order {
|
|
|
281
193
|
paymentMode?: string;
|
|
282
194
|
bagStatus?: string;
|
|
283
195
|
}): Promise<LaneConfigResponse>;
|
|
284
|
-
/**
|
|
285
|
-
* @param {Object} arg - Arg object.
|
|
286
|
-
* @param {string} [arg.fromDate] -
|
|
287
|
-
* @param {string} [arg.toDate] -
|
|
288
|
-
* @returns {Promise<MetricCountResponse>} - Success response
|
|
289
|
-
* @summary:
|
|
290
|
-
* @description:
|
|
291
|
-
*/
|
|
292
|
-
getMetricCount({ fromDate, toDate }?: {
|
|
293
|
-
fromDate?: string;
|
|
294
|
-
toDate?: string;
|
|
295
|
-
}): Promise<MetricCountResponse>;
|
|
296
196
|
/**
|
|
297
197
|
* @param {Object} arg - Arg object.
|
|
298
198
|
* @param {string} arg.orderId -
|
|
@@ -316,7 +216,7 @@ declare class Order {
|
|
|
316
216
|
* @param {string} [arg.toDate] -
|
|
317
217
|
* @param {string} [arg.dpIds] -
|
|
318
218
|
* @param {string} [arg.stores] -
|
|
319
|
-
* @param {string} [arg.
|
|
219
|
+
* @param {string} [arg.salesChannels] -
|
|
320
220
|
* @param {number} [arg.pageNo] -
|
|
321
221
|
* @param {number} [arg.pageSize] -
|
|
322
222
|
* @param {boolean} [arg.isPrioritySort] -
|
|
@@ -325,7 +225,7 @@ declare class Order {
|
|
|
325
225
|
* @summary:
|
|
326
226
|
* @description:
|
|
327
227
|
*/
|
|
328
|
-
getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, dpIds, stores,
|
|
228
|
+
getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, }?: {
|
|
329
229
|
lane?: string;
|
|
330
230
|
searchType?: string;
|
|
331
231
|
bagStatus?: string;
|
|
@@ -337,24 +237,12 @@ declare class Order {
|
|
|
337
237
|
toDate?: string;
|
|
338
238
|
dpIds?: string;
|
|
339
239
|
stores?: string;
|
|
340
|
-
|
|
240
|
+
salesChannels?: string;
|
|
341
241
|
pageNo?: number;
|
|
342
242
|
pageSize?: number;
|
|
343
243
|
isPrioritySort?: boolean;
|
|
344
244
|
customMeta?: string;
|
|
345
245
|
}): Promise<OrderListingResponse>;
|
|
346
|
-
/**
|
|
347
|
-
* @param {Object} arg - Arg object.
|
|
348
|
-
* @param {number} [arg.pageNo] -
|
|
349
|
-
* @param {number} [arg.pageSize] -
|
|
350
|
-
* @returns {Promise<OmsReports>} - Success response
|
|
351
|
-
* @summary:
|
|
352
|
-
* @description:
|
|
353
|
-
*/
|
|
354
|
-
getReportsShipmentListing({ pageNo, pageSize }?: {
|
|
355
|
-
pageNo?: number;
|
|
356
|
-
pageSize?: number;
|
|
357
|
-
}): Promise<OmsReports>;
|
|
358
246
|
/**
|
|
359
247
|
* @param {Object} arg - Arg object.
|
|
360
248
|
* @returns {Promise<GetActionsResponse>} - Success response
|
|
@@ -380,14 +268,14 @@ declare class Order {
|
|
|
380
268
|
}): Promise<ShipmentInfoResponse>;
|
|
381
269
|
/**
|
|
382
270
|
* @param {Object} arg - Arg object.
|
|
383
|
-
* @param {
|
|
384
|
-
* @param {number} [arg.bagId] -
|
|
271
|
+
* @param {string} [arg.shipmentId] - Shipment Id
|
|
272
|
+
* @param {number} [arg.bagId] - Bag/Product Id
|
|
385
273
|
* @returns {Promise<ShipmentHistoryResponse>} - Success response
|
|
386
274
|
* @summary:
|
|
387
275
|
* @description:
|
|
388
276
|
*/
|
|
389
277
|
getShipmentHistory({ shipmentId, bagId }?: {
|
|
390
|
-
shipmentId?:
|
|
278
|
+
shipmentId?: string;
|
|
391
279
|
bagId?: number;
|
|
392
280
|
}): Promise<ShipmentHistoryResponse>;
|
|
393
281
|
/**
|
|
@@ -463,6 +351,13 @@ declare class Order {
|
|
|
463
351
|
orderingChannel?: string;
|
|
464
352
|
companyAffiliateTag?: string;
|
|
465
353
|
}): Promise<ShipmentInternalPlatformViewResponse>;
|
|
354
|
+
/**
|
|
355
|
+
* @param {Object} arg - Arg object.
|
|
356
|
+
* @returns {Promise<BagStateTransitionMap>} - Success response
|
|
357
|
+
* @summary:
|
|
358
|
+
* @description:
|
|
359
|
+
*/
|
|
360
|
+
getStateTransitionMap({}?: any): Promise<BagStateTransitionMap>;
|
|
466
361
|
/**
|
|
467
362
|
* @param {Object} arg - Arg object.
|
|
468
363
|
* @param {string} arg.view -
|
|
@@ -495,16 +390,6 @@ declare class Order {
|
|
|
495
390
|
orderUpdate({ body }?: {
|
|
496
391
|
body: PlatformOrderUpdate;
|
|
497
392
|
}): Promise<ResponseDetail>;
|
|
498
|
-
/**
|
|
499
|
-
* @param {Object} arg - Arg object.
|
|
500
|
-
* @param {ManualAssignDPToShipment} arg.body
|
|
501
|
-
* @returns {Promise<ManualAssignDPToShipmentResponse>} - Success response
|
|
502
|
-
* @summary:
|
|
503
|
-
* @description:
|
|
504
|
-
*/
|
|
505
|
-
platformManualAssignDPToShipment({ body }?: {
|
|
506
|
-
body: ManualAssignDPToShipment;
|
|
507
|
-
}): Promise<ManualAssignDPToShipmentResponse>;
|
|
508
393
|
/**
|
|
509
394
|
* @param {Object} arg - Arg object.
|
|
510
395
|
* @param {PostShipmentHistory} arg.body
|
|
@@ -545,13 +430,6 @@ declare class Order {
|
|
|
545
430
|
sendSmsNinja({ body }?: {
|
|
546
431
|
body: SendSmsPayload;
|
|
547
432
|
}): Promise<OrderStatusResult>;
|
|
548
|
-
/**
|
|
549
|
-
* @param {Object} arg - Arg object.
|
|
550
|
-
* @returns {Promise<OrderStatusResult>} - Success response
|
|
551
|
-
* @summary:
|
|
552
|
-
* @description:
|
|
553
|
-
*/
|
|
554
|
-
sendSmsNinjaPlatform({}?: any): Promise<OrderStatusResult>;
|
|
555
433
|
/**
|
|
556
434
|
* @param {Object} arg - Arg object.
|
|
557
435
|
* @param {string} arg.shipmentId -
|
|
@@ -599,7 +477,7 @@ declare class Order {
|
|
|
599
477
|
* @param {UpdateShipmentLockPayload} arg.body
|
|
600
478
|
* @returns {Promise<UpdateShipmentLockResponse>} - Success response
|
|
601
479
|
* @summary:
|
|
602
|
-
* @description: update shipment lock
|
|
480
|
+
* @description: update shipment/bag lock and check status
|
|
603
481
|
*/
|
|
604
482
|
updateShipmentLock({ body }?: {
|
|
605
483
|
body: UpdateShipmentLockPayload;
|
|
@@ -609,7 +487,7 @@ declare class Order {
|
|
|
609
487
|
* @param {UpdateShipmentStatusRequest} arg.body
|
|
610
488
|
* @returns {Promise<UpdateShipmentStatusResponseBody>} - Success response
|
|
611
489
|
* @summary:
|
|
612
|
-
* @description:
|
|
490
|
+
* @description: This API is for Shipment State transition or Shipment data update or both below example is for partial state transition with data update
|
|
613
491
|
*/
|
|
614
492
|
updateShipmentStatus({ body }?: {
|
|
615
493
|
body: UpdateShipmentStatusRequest;
|
|
@@ -624,14 +502,4 @@ declare class Order {
|
|
|
624
502
|
uploadConsent({ body }?: {
|
|
625
503
|
body: UploadConsent;
|
|
626
504
|
}): Promise<SuccessResponse>;
|
|
627
|
-
/**
|
|
628
|
-
* @param {Object} arg - Arg object.
|
|
629
|
-
* @param {JioCodeUpsertPayload} arg.body
|
|
630
|
-
* @returns {Promise<JioCodeUpsertResponse>} - Success response
|
|
631
|
-
* @summary:
|
|
632
|
-
* @description:
|
|
633
|
-
*/
|
|
634
|
-
upsertJioCode({ body }?: {
|
|
635
|
-
body: JioCodeUpsertPayload;
|
|
636
|
-
}): Promise<JioCodeUpsertResponse>;
|
|
637
505
|
}
|