@gofynd/fdk-client-javascript 1.1.1 → 1.1.3
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 -2
- package/index.d.ts +4 -7
- package/index.js +5 -12
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +20 -20
- package/sdk/application/ApplicationClient.js +26 -26
- package/sdk/application/Cart/CartApplicationClient.d.ts +45 -4
- package/sdk/application/Cart/CartApplicationClient.js +169 -9
- package/sdk/application/Cart/CartApplicationModel.d.ts +15 -0
- package/sdk/application/Cart/CartApplicationModel.js +177 -1
- package/sdk/application/Cart/CartApplicationValidator.d.ts +2 -0
- package/sdk/application/Cart/CartApplicationValidator.js +20 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +14 -4
- package/sdk/application/Catalog/CatalogApplicationClient.js +18 -6
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1 -0
- package/sdk/application/Catalog/CatalogApplicationModel.js +13 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +2 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +14 -10
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -10
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationModel.js +4 -1
- 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/Logistic/LogisticApplicationModel.js +3 -2
- package/sdk/application/Order/OrderApplicationClient.d.ts +17 -2
- package/sdk/application/Order/OrderApplicationClient.js +70 -2
- package/sdk/application/Order/OrderApplicationModel.d.ts +17 -0
- package/sdk/application/Order/OrderApplicationModel.js +129 -8
- package/sdk/application/Order/OrderApplicationValidator.d.ts +1 -0
- package/sdk/application/Order/OrderApplicationValidator.js +7 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +35 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +200 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +4 -0
- package/sdk/application/Payment/PaymentApplicationModel.js +58 -7
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +3 -0
- package/sdk/application/Payment/PaymentApplicationValidator.js +19 -0
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +16 -3
- package/sdk/application/PosCart/PosCartApplicationClient.js +39 -6
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +10 -0
- package/sdk/application/PosCart/PosCartApplicationModel.js +113 -1
- package/sdk/application/PosCart/PosCartApplicationValidator.js +6 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +8 -8
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -8
- package/sdk/application/index.d.ts +10 -10
- package/sdk/application/index.js +13 -13
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/platform/Billing/BillingPlatformModel.js +6 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +479 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +2574 -307
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +263 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +61 -0
- package/sdk/platform/Cart/CartPlatformModel.js +697 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +8 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +10 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +41 -29
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +9 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +5 -4
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +99 -78
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +99 -78
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +87 -71
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +87 -71
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +26 -0
- package/sdk/platform/Content/ContentPlatformModel.js +4 -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 +8 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +2 -2
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +135 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +853 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +51 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +342 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +16 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +84 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +66 -2
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +161 -81
- package/sdk/platform/Order/OrderPlatformClient.js +546 -119
- package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -6
- package/sdk/platform/Order/OrderPlatformModel.js +570 -158
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
- package/sdk/platform/Order/OrderPlatformValidator.js +52 -10
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +22 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +127 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +13 -0
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +145 -0
- package/sdk/platform/Partner/PartnerPlatformClient.js +799 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +39 -0
- package/sdk/platform/Partner/PartnerPlatformModel.js +367 -0
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +14 -0
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +221 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1476 -190
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +20 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +126 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +44 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +410 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +1149 -930
- package/sdk/platform/PlatformApplicationClient.js +1260 -1027
- package/sdk/platform/PlatformClient.d.ts +10360 -8660
- package/sdk/platform/PlatformClient.js +11126 -9093
- 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/index.d.ts +15 -14
- package/sdk/platform/index.js +20 -18
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +2 -2
- package/partner.d.ts +0 -4
- package/partner.js +0 -7
- package/sdk/partner/OAuthClient.d.ts +0 -14
- package/sdk/partner/OAuthClient.js +0 -112
- package/sdk/partner/PartnerAPIClient.d.ts +0 -12
- package/sdk/partner/PartnerAPIClient.js +0 -42
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -17
- package/sdk/partner/PartnerConfig.d.ts +0 -30
- package/sdk/partner/PartnerConfig.js +0 -39
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -5
|
@@ -2,6 +2,16 @@ 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 {AttachOrderUser} arg.body
|
|
8
|
+
* @returns {Promise<AttachOrderUserResponse>} - Success response
|
|
9
|
+
* @summary:
|
|
10
|
+
* @description:
|
|
11
|
+
*/
|
|
12
|
+
attachOrderUser({ body }?: {
|
|
13
|
+
body: AttachOrderUser;
|
|
14
|
+
}): Promise<AttachOrderUserResponse>;
|
|
5
15
|
/**
|
|
6
16
|
* @param {Object} arg - Arg object.
|
|
7
17
|
* @param {OrderStatus} arg.body
|
|
@@ -70,6 +80,40 @@ declare class Order {
|
|
|
70
80
|
downloadBulkActionTemplate({ templateSlug }?: {
|
|
71
81
|
templateSlug?: string;
|
|
72
82
|
}): Promise<FileResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* @param {Object} arg - Arg object.
|
|
85
|
+
* @param {FetchCreditBalanceRequestPayload} arg.body
|
|
86
|
+
* @returns {Promise<FetchCreditBalanceResponsePayload>} - Success response
|
|
87
|
+
* @summary:
|
|
88
|
+
* @description:
|
|
89
|
+
*/
|
|
90
|
+
fetchCreditBalanceDetail({ body }?: {
|
|
91
|
+
body: FetchCreditBalanceRequestPayload;
|
|
92
|
+
}): Promise<FetchCreditBalanceResponsePayload>;
|
|
93
|
+
/**
|
|
94
|
+
* @param {Object} arg - Arg object.
|
|
95
|
+
* @param {RefundModeConfigRequestPayload} arg.body
|
|
96
|
+
* @returns {Promise<RefundModeConfigResponsePayload>} - Success response
|
|
97
|
+
* @summary:
|
|
98
|
+
* @description:
|
|
99
|
+
*/
|
|
100
|
+
fetchRefundModeConfig({ body }?: {
|
|
101
|
+
body: RefundModeConfigRequestPayload;
|
|
102
|
+
}): Promise<RefundModeConfigResponsePayload>;
|
|
103
|
+
/**
|
|
104
|
+
* @param {Object} arg - Arg object.
|
|
105
|
+
* @param {string} arg.orderId -
|
|
106
|
+
* @param {string} [arg.shipmentId] -
|
|
107
|
+
* @param {string} [arg.documentType] -
|
|
108
|
+
* @returns {Promise<GeneratePosOrderReceiptResponse>} - Success response
|
|
109
|
+
* @summary:
|
|
110
|
+
* @description:
|
|
111
|
+
*/
|
|
112
|
+
generatePOSReceiptByOrderId({ orderId, shipmentId, documentType, }?: {
|
|
113
|
+
orderId: string;
|
|
114
|
+
shipmentId?: string;
|
|
115
|
+
documentType?: string;
|
|
116
|
+
}): Promise<GeneratePosOrderReceiptResponse>;
|
|
73
117
|
/**
|
|
74
118
|
* @param {Object} arg - Arg object.
|
|
75
119
|
* @param {string} [arg.date] - Date On which the announcement is Active
|
|
@@ -83,9 +127,9 @@ declare class Order {
|
|
|
83
127
|
}): Promise<AnnouncementsResponse>;
|
|
84
128
|
/**
|
|
85
129
|
* @param {Object} arg - Arg object.
|
|
86
|
-
* @param {string} [arg.bagId] -
|
|
87
|
-
* @param {string} [arg.channelBagId] -
|
|
88
|
-
* @param {string} [arg.channelId] -
|
|
130
|
+
* @param {string} [arg.bagId] - Id of bag
|
|
131
|
+
* @param {string} [arg.channelBagId] - Id of application bag
|
|
132
|
+
* @param {string} [arg.channelId] - Id of application
|
|
89
133
|
* @returns {Promise<BagDetailsPlatformResponse>} - Success response
|
|
90
134
|
* @summary:
|
|
91
135
|
* @description:
|
|
@@ -97,15 +141,16 @@ declare class Order {
|
|
|
97
141
|
}): Promise<BagDetailsPlatformResponse>;
|
|
98
142
|
/**
|
|
99
143
|
* @param {Object} arg - Arg object.
|
|
100
|
-
* @param {string} [arg.bagIds] -
|
|
101
|
-
* @param {string} [arg.shipmentIds] -
|
|
102
|
-
* @param {string} [arg.orderIds] -
|
|
103
|
-
* @param {string} [arg.channelBagIds] -
|
|
104
|
-
* @param {string} [arg.channelShipmentIds] -
|
|
105
|
-
*
|
|
106
|
-
* @param {string} [arg.
|
|
107
|
-
* @param {
|
|
108
|
-
* @param {number} [arg.
|
|
144
|
+
* @param {string} [arg.bagIds] - Comma separated values of bag ids
|
|
145
|
+
* @param {string} [arg.shipmentIds] - Comma separated values of shipment ids
|
|
146
|
+
* @param {string} [arg.orderIds] - Comma separated values of order ids
|
|
147
|
+
* @param {string} [arg.channelBagIds] - Comma separated values of app bag ids
|
|
148
|
+
* @param {string} [arg.channelShipmentIds] - Comma separated values of app
|
|
149
|
+
* shipment ids
|
|
150
|
+
* @param {string} [arg.channelOrderIds] - Comma separated values of app order ids
|
|
151
|
+
* @param {string} [arg.channelId] - Comma separated values of app ids
|
|
152
|
+
* @param {number} [arg.pageNo] - Page number for paginated data
|
|
153
|
+
* @param {number} [arg.pageSize] - Page size of data received per page
|
|
109
154
|
* @returns {Promise<GetBagsPlatformResponse>} - Success response
|
|
110
155
|
* @summary:
|
|
111
156
|
* @description:
|
|
@@ -130,14 +175,14 @@ declare class Order {
|
|
|
130
175
|
getBulkActionTemplate({}?: any): Promise<BulkActionTemplateResponse>;
|
|
131
176
|
/**
|
|
132
177
|
* @param {Object} arg - Arg object.
|
|
133
|
-
* @param {string} [arg.salesChannels] - Comma
|
|
134
|
-
* @param {string} [arg.dpIds] - Comma
|
|
178
|
+
* @param {string} [arg.salesChannels] - Comma separated values of sales channel ids
|
|
179
|
+
* @param {string} [arg.dpIds] - Comma separated values of delivery partner ids
|
|
135
180
|
* @param {string} [arg.fromDate] - Start Date in DD-MM-YYYY format
|
|
136
181
|
* @param {string} [arg.toDate] - End Date in DD-MM-YYYY format
|
|
137
|
-
* @param {string} [arg.stores] - Comma
|
|
138
|
-
* @param {string} [arg.tags] - Comma
|
|
139
|
-
* @param {string} [arg.bagStatus] - Comma
|
|
140
|
-
* @param {string} [arg.paymentMethods] - Comma
|
|
182
|
+
* @param {string} [arg.stores] - Comma separated values of store ids
|
|
183
|
+
* @param {string} [arg.tags] - Comma separated values of tags
|
|
184
|
+
* @param {string} [arg.bagStatus] - Comma separated values of bag statuses
|
|
185
|
+
* @param {string} [arg.paymentMethods] - Comma separated values of payment methods
|
|
141
186
|
* @param {string} [arg.fileType] - File type to be downloaded
|
|
142
187
|
* @param {number} [arg.timeToDispatch] - Sla breached or not breached
|
|
143
188
|
* @param {number} [arg.pageNo] -
|
|
@@ -169,63 +214,82 @@ declare class Order {
|
|
|
169
214
|
getChannelConfig({}?: any): Promise<CreateChannelConfigData>;
|
|
170
215
|
/**
|
|
171
216
|
* @param {Object} arg - Arg object.
|
|
172
|
-
* @param {string} [arg.superLane] -
|
|
173
|
-
* @param {string} [arg.groupEntity] -
|
|
174
|
-
* @param {string} [arg.fromDate] -
|
|
175
|
-
* @param {string} [arg.toDate] -
|
|
176
|
-
* @param {string} [arg.dpIds] -
|
|
177
|
-
* @param {string} [arg.stores] -
|
|
178
|
-
* @param {string} [arg.
|
|
179
|
-
* @param {string} [arg.paymentMode] -
|
|
180
|
-
* @param {string} [arg.bagStatus] -
|
|
217
|
+
* @param {string} [arg.superLane] - Name of lane for which data is to be fetched
|
|
218
|
+
* @param {string} [arg.groupEntity] - Name of group entity
|
|
219
|
+
* @param {string} [arg.fromDate] - Start Date in DD-MM-YYYY format
|
|
220
|
+
* @param {string} [arg.toDate] - End Date in DD-MM-YYYY format
|
|
221
|
+
* @param {string} [arg.dpIds] - Comma separated values of delivery partner ids
|
|
222
|
+
* @param {string} [arg.stores] - Comma separated values of store ids
|
|
223
|
+
* @param {string} [arg.salesChannels] -
|
|
224
|
+
* @param {string} [arg.paymentMode] - Comma separated values of payment modes
|
|
225
|
+
* @param {string} [arg.bagStatus] - Comma separated values of bag statuses
|
|
226
|
+
* @param {string} [arg.searchType] -
|
|
227
|
+
* @param {string} [arg.searchValue] -
|
|
228
|
+
* @param {string} [arg.tags] -
|
|
229
|
+
* @param {string} [arg.timeToDispatch] -
|
|
230
|
+
* @param {string} [arg.paymentMethods] -
|
|
231
|
+
* @param {boolean} [arg.myOrders] -
|
|
181
232
|
* @returns {Promise<LaneConfigResponse>} - Success response
|
|
182
233
|
* @summary:
|
|
183
234
|
* @description:
|
|
184
235
|
*/
|
|
185
|
-
getLaneConfig({ superLane, groupEntity, fromDate, toDate, dpIds, stores,
|
|
236
|
+
getLaneConfig({ superLane, groupEntity, fromDate, toDate, dpIds, stores, salesChannels, paymentMode, bagStatus, searchType, searchValue, tags, timeToDispatch, paymentMethods, myOrders, }?: {
|
|
186
237
|
superLane?: string;
|
|
187
238
|
groupEntity?: string;
|
|
188
239
|
fromDate?: string;
|
|
189
240
|
toDate?: string;
|
|
190
241
|
dpIds?: string;
|
|
191
242
|
stores?: string;
|
|
192
|
-
|
|
243
|
+
salesChannels?: string;
|
|
193
244
|
paymentMode?: string;
|
|
194
245
|
bagStatus?: string;
|
|
246
|
+
searchType?: string;
|
|
247
|
+
searchValue?: string;
|
|
248
|
+
tags?: string;
|
|
249
|
+
timeToDispatch?: string;
|
|
250
|
+
paymentMethods?: string;
|
|
251
|
+
myOrders?: boolean;
|
|
195
252
|
}): Promise<LaneConfigResponse>;
|
|
196
253
|
/**
|
|
197
254
|
* @param {Object} arg - Arg object.
|
|
198
255
|
* @param {string} arg.orderId -
|
|
199
|
-
* @returns {Promise<
|
|
256
|
+
* @returns {Promise<OrderDetailsResponse>} - Success response
|
|
200
257
|
* @summary:
|
|
201
258
|
* @description:
|
|
202
259
|
*/
|
|
203
260
|
getOrderById({ orderId }?: {
|
|
204
261
|
orderId: string;
|
|
205
|
-
}): Promise<
|
|
262
|
+
}): Promise<OrderDetailsResponse>;
|
|
206
263
|
/**
|
|
207
264
|
* @param {Object} arg - Arg object.
|
|
208
|
-
* @param {string} [arg.lane] -
|
|
209
|
-
*
|
|
210
|
-
* @param {string} [arg.
|
|
211
|
-
*
|
|
265
|
+
* @param {string} [arg.lane] - Lane refers to a section where orders are
|
|
266
|
+
* assigned, indicating its grouping
|
|
267
|
+
* @param {string} [arg.searchType] - Search_type refers to the field that
|
|
268
|
+
* will be used as the target for the search operation
|
|
269
|
+
* @param {string} [arg.bagStatus] - Bag_status refers to status of the
|
|
270
|
+
* entity. Filters orders based on the status.
|
|
271
|
+
* @param {string} [arg.timeToDispatch] - Time_to_dispatch refers to
|
|
272
|
+
* estimated SLA time.
|
|
212
273
|
* @param {string} [arg.paymentMethods] -
|
|
213
|
-
* @param {string} [arg.tags] -
|
|
214
|
-
*
|
|
274
|
+
* @param {string} [arg.tags] - Tags refers to additional descriptive labels
|
|
275
|
+
* associated with the order
|
|
276
|
+
* @param {string} [arg.searchValue] - Search_value is matched against the
|
|
277
|
+
* field specified by the search_type
|
|
215
278
|
* @param {string} [arg.fromDate] -
|
|
216
279
|
* @param {string} [arg.toDate] -
|
|
217
|
-
* @param {string} [arg.dpIds] -
|
|
280
|
+
* @param {string} [arg.dpIds] - Delivery Partner IDs to which shipments are assigned.
|
|
218
281
|
* @param {string} [arg.stores] -
|
|
219
|
-
* @param {string} [arg.
|
|
282
|
+
* @param {string} [arg.salesChannels] -
|
|
220
283
|
* @param {number} [arg.pageNo] -
|
|
221
284
|
* @param {number} [arg.pageSize] -
|
|
222
285
|
* @param {boolean} [arg.isPrioritySort] -
|
|
223
286
|
* @param {string} [arg.customMeta] -
|
|
287
|
+
* @param {boolean} [arg.myOrders] -
|
|
224
288
|
* @returns {Promise<OrderListingResponse>} - Success response
|
|
225
289
|
* @summary:
|
|
226
290
|
* @description:
|
|
227
291
|
*/
|
|
228
|
-
getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, dpIds, stores,
|
|
292
|
+
getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, }?: {
|
|
229
293
|
lane?: string;
|
|
230
294
|
searchType?: string;
|
|
231
295
|
bagStatus?: string;
|
|
@@ -237,11 +301,12 @@ declare class Order {
|
|
|
237
301
|
toDate?: string;
|
|
238
302
|
dpIds?: string;
|
|
239
303
|
stores?: string;
|
|
240
|
-
|
|
304
|
+
salesChannels?: string;
|
|
241
305
|
pageNo?: number;
|
|
242
306
|
pageSize?: number;
|
|
243
307
|
isPrioritySort?: boolean;
|
|
244
308
|
customMeta?: string;
|
|
309
|
+
myOrders?: boolean;
|
|
245
310
|
}): Promise<OrderListingResponse>;
|
|
246
311
|
/**
|
|
247
312
|
* @param {Object} arg - Arg object.
|
|
@@ -252,19 +317,15 @@ declare class Order {
|
|
|
252
317
|
getRoleBasedActions({}?: any): Promise<GetActionsResponse>;
|
|
253
318
|
/**
|
|
254
319
|
* @param {Object} arg - Arg object.
|
|
255
|
-
* @param {string} [arg.channelShipmentId] -
|
|
256
|
-
* @param {string} [arg.shipmentId] -
|
|
257
|
-
* @param {string} [arg.orderingCompanyId] -
|
|
258
|
-
* @param {string} [arg.requestByExt] -
|
|
320
|
+
* @param {string} [arg.channelShipmentId] - App Shipment Id
|
|
321
|
+
* @param {string} [arg.shipmentId] - Shipment Id
|
|
259
322
|
* @returns {Promise<ShipmentInfoResponse>} - Success response
|
|
260
323
|
* @summary:
|
|
261
324
|
* @description:
|
|
262
325
|
*/
|
|
263
|
-
getShipmentById({ channelShipmentId, shipmentId
|
|
326
|
+
getShipmentById({ channelShipmentId, shipmentId }?: {
|
|
264
327
|
channelShipmentId?: string;
|
|
265
328
|
shipmentId?: string;
|
|
266
|
-
orderingCompanyId?: string;
|
|
267
|
-
requestByExt?: string;
|
|
268
329
|
}): Promise<ShipmentInfoResponse>;
|
|
269
330
|
/**
|
|
270
331
|
* @param {Object} arg - Arg object.
|
|
@@ -297,51 +358,48 @@ declare class Order {
|
|
|
297
358
|
}): Promise<PlatformShipmentReasonsResponse>;
|
|
298
359
|
/**
|
|
299
360
|
* @param {Object} arg - Arg object.
|
|
300
|
-
* @param {string} [arg.lane] -
|
|
301
|
-
* @param {string} [arg.bagStatus] -
|
|
302
|
-
* @param {boolean} [arg.statusOverrideLane] -
|
|
303
|
-
*
|
|
304
|
-
* @param {string} [arg.
|
|
305
|
-
* @param {string} [arg.
|
|
306
|
-
* @param {string} [arg.
|
|
307
|
-
* @param {string} [arg.
|
|
308
|
-
* @param {string} [arg.
|
|
309
|
-
* @param {string} [arg.
|
|
310
|
-
* @param {string} [arg.stores] -
|
|
311
|
-
* @param {string} [arg.
|
|
312
|
-
* @param {
|
|
313
|
-
* @param {number} [arg.
|
|
314
|
-
* @param {
|
|
315
|
-
* @param {boolean} [arg.
|
|
316
|
-
* @param {
|
|
317
|
-
* @param {
|
|
318
|
-
* @param {string} [arg.
|
|
319
|
-
* @param {string} [arg.channelShipmentId] -
|
|
320
|
-
* @param {string} [arg.channelOrderId] -
|
|
361
|
+
* @param {string} [arg.lane] - Name of lane for which data is to be fetched
|
|
362
|
+
* @param {string} [arg.bagStatus] - Comma separated values of bag statuses
|
|
363
|
+
* @param {boolean} [arg.statusOverrideLane] - Use this flag to fetch by
|
|
364
|
+
* bag_status and override lane
|
|
365
|
+
* @param {string} [arg.timeToDispatch] -
|
|
366
|
+
* @param {string} [arg.searchType] - Search type key
|
|
367
|
+
* @param {string} [arg.searchValue] - Search type value
|
|
368
|
+
* @param {string} [arg.fromDate] - Start Date in DD-MM-YYYY format
|
|
369
|
+
* @param {string} [arg.toDate] - End Date in DD-MM-YYYY format
|
|
370
|
+
* @param {string} [arg.dpIds] - Comma separated values of delivery partner ids
|
|
371
|
+
* @param {string} [arg.stores] - Comma separated values of store ids
|
|
372
|
+
* @param {string} [arg.salesChannels] - Comma separated values of sales channel ids
|
|
373
|
+
* @param {number} [arg.pageNo] - Page number for paginated data
|
|
374
|
+
* @param {number} [arg.pageSize] - Page size of data received per page
|
|
375
|
+
* @param {boolean} [arg.fetchActiveShipment] - Flag to fetch active shipments
|
|
376
|
+
* @param {boolean} [arg.excludeLockedShipments] - Flag to fetch locked shipments
|
|
377
|
+
* @param {string} [arg.paymentMethods] - Comma separated values of payment methods
|
|
378
|
+
* @param {string} [arg.channelShipmentId] - App Shipment Id
|
|
379
|
+
* @param {string} [arg.channelOrderId] - App Order Id
|
|
321
380
|
* @param {string} [arg.customMeta] -
|
|
322
381
|
* @param {string} [arg.orderingChannel] -
|
|
323
382
|
* @param {string} [arg.companyAffiliateTag] -
|
|
383
|
+
* @param {boolean} [arg.myOrders] -
|
|
384
|
+
* @param {string} [arg.platformUserId] -
|
|
324
385
|
* @returns {Promise<ShipmentInternalPlatformViewResponse>} - Success response
|
|
325
386
|
* @summary:
|
|
326
387
|
* @description:
|
|
327
388
|
*/
|
|
328
|
-
getShipments({ lane, bagStatus, statusOverrideLane, searchType, searchValue,
|
|
389
|
+
getShipments({ lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, }?: {
|
|
329
390
|
lane?: string;
|
|
330
391
|
bagStatus?: string;
|
|
331
392
|
statusOverrideLane?: boolean;
|
|
393
|
+
timeToDispatch?: string;
|
|
332
394
|
searchType?: string;
|
|
333
395
|
searchValue?: string;
|
|
334
|
-
searchId?: string;
|
|
335
396
|
fromDate?: string;
|
|
336
397
|
toDate?: string;
|
|
337
398
|
dpIds?: string;
|
|
338
|
-
orderingCompanyId?: string;
|
|
339
399
|
stores?: string;
|
|
340
|
-
|
|
341
|
-
requestByExt?: string;
|
|
400
|
+
salesChannels?: string;
|
|
342
401
|
pageNo?: number;
|
|
343
402
|
pageSize?: number;
|
|
344
|
-
isPrioritySort?: boolean;
|
|
345
403
|
fetchActiveShipment?: boolean;
|
|
346
404
|
excludeLockedShipments?: boolean;
|
|
347
405
|
paymentMethods?: string;
|
|
@@ -350,6 +408,8 @@ declare class Order {
|
|
|
350
408
|
customMeta?: string;
|
|
351
409
|
orderingChannel?: string;
|
|
352
410
|
companyAffiliateTag?: string;
|
|
411
|
+
myOrders?: boolean;
|
|
412
|
+
platformUserId?: string;
|
|
353
413
|
}): Promise<ShipmentInternalPlatformViewResponse>;
|
|
354
414
|
/**
|
|
355
415
|
* @param {Object} arg - Arg object.
|
|
@@ -360,8 +420,8 @@ declare class Order {
|
|
|
360
420
|
getStateTransitionMap({}?: any): Promise<BagStateTransitionMap>;
|
|
361
421
|
/**
|
|
362
422
|
* @param {Object} arg - Arg object.
|
|
363
|
-
* @param {string} arg.view -
|
|
364
|
-
* @param {string} [arg.groupEntity] -
|
|
423
|
+
* @param {string} arg.view - Name of view
|
|
424
|
+
* @param {string} [arg.groupEntity] - Name of group entity
|
|
365
425
|
* @returns {Promise<FiltersResponse>} - Success response
|
|
366
426
|
* @summary:
|
|
367
427
|
* @description:
|
|
@@ -430,6 +490,16 @@ declare class Order {
|
|
|
430
490
|
sendSmsNinja({ body }?: {
|
|
431
491
|
body: SendSmsPayload;
|
|
432
492
|
}): Promise<OrderStatusResult>;
|
|
493
|
+
/**
|
|
494
|
+
* @param {Object} arg - Arg object.
|
|
495
|
+
* @param {SendUserMobileOTP} arg.body
|
|
496
|
+
* @returns {Promise<SendUserMobileOtpResponse>} - Success response
|
|
497
|
+
* @summary:
|
|
498
|
+
* @description:
|
|
499
|
+
*/
|
|
500
|
+
sendUserMobileOTP({ body }?: {
|
|
501
|
+
body: SendUserMobileOTP;
|
|
502
|
+
}): Promise<SendUserMobileOtpResponse>;
|
|
433
503
|
/**
|
|
434
504
|
* @param {Object} arg - Arg object.
|
|
435
505
|
* @param {string} arg.shipmentId -
|
|
@@ -464,14 +534,14 @@ declare class Order {
|
|
|
464
534
|
}): Promise<BaseResponse>;
|
|
465
535
|
/**
|
|
466
536
|
* @param {Object} arg - Arg object.
|
|
467
|
-
* @param {
|
|
468
|
-
* @returns {Promise<
|
|
537
|
+
* @param {UpdatePackagingDimensionsPayload} arg.body
|
|
538
|
+
* @returns {Promise<UpdatePackagingDimensionsResponse>} - Success response
|
|
469
539
|
* @summary:
|
|
470
540
|
* @description:
|
|
471
541
|
*/
|
|
472
542
|
updatePackagingDimensions({ body }?: {
|
|
473
|
-
body:
|
|
474
|
-
}): Promise<
|
|
543
|
+
body: UpdatePackagingDimensionsPayload;
|
|
544
|
+
}): Promise<UpdatePackagingDimensionsResponse>;
|
|
475
545
|
/**
|
|
476
546
|
* @param {Object} arg - Arg object.
|
|
477
547
|
* @param {UpdateShipmentLockPayload} arg.body
|
|
@@ -502,4 +572,14 @@ declare class Order {
|
|
|
502
572
|
uploadConsent({ body }?: {
|
|
503
573
|
body: UploadConsent;
|
|
504
574
|
}): Promise<SuccessResponse>;
|
|
575
|
+
/**
|
|
576
|
+
* @param {Object} arg - Arg object.
|
|
577
|
+
* @param {VerifyMobileOTP} arg.body
|
|
578
|
+
* @returns {Promise<VerifyOtpResponse>} - Success response
|
|
579
|
+
* @summary:
|
|
580
|
+
* @description:
|
|
581
|
+
*/
|
|
582
|
+
verifyMobileOTP({ body }?: {
|
|
583
|
+
body: VerifyMobileOTP;
|
|
584
|
+
}): Promise<VerifyOtpResponse>;
|
|
505
585
|
}
|