@gofynd/fdk-client-javascript 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/documentation/application/CART.md +256 -239
- package/documentation/application/CATALOG.md +413 -409
- package/documentation/application/COMMON.md +4 -0
- package/documentation/application/COMMUNICATION.md +4 -0
- package/documentation/application/CONFIGURATION.md +4 -0
- package/documentation/application/CONTENT.md +7 -20
- package/documentation/application/FILESTORAGE.md +85 -0
- package/documentation/application/LEAD.md +6 -2
- package/documentation/application/LOGISTIC.md +4 -0
- package/documentation/application/ORDER.md +307 -303
- package/documentation/application/PAYMENT.md +445 -259
- package/documentation/application/POSCART.md +317 -300
- package/documentation/application/REWARDS.md +153 -160
- package/documentation/application/SHARE.md +4 -0
- package/documentation/application/THEME.md +4 -0
- package/documentation/application/USER.md +4 -0
- package/documentation/platform/ANALYTICS.md +4 -0
- package/documentation/platform/AUDITTRAIL.md +4 -0
- package/documentation/platform/BILLING.md +4 -0
- package/documentation/platform/CART.md +480 -463
- package/documentation/platform/CATALOG.md +3895 -2942
- package/documentation/platform/COMMON.md +4 -0
- package/documentation/platform/COMMUNICATION.md +4 -0
- package/documentation/platform/COMPANYPROFILE.md +224 -193
- package/documentation/platform/CONFIGURATION.md +4 -0
- package/documentation/platform/CONTENT.md +8 -21
- package/documentation/platform/DISCOUNT.md +4 -0
- package/documentation/platform/FILESTORAGE.md +85 -0
- package/documentation/platform/INVENTORY.md +4 -0
- package/documentation/platform/LEAD.md +6 -2
- package/documentation/platform/ORDER.md +6298 -1448
- package/documentation/platform/PARTNER.md +12 -8
- package/documentation/platform/PAYMENT.md +107 -103
- package/documentation/platform/README.md +2 -2
- package/documentation/platform/REWARDS.md +219 -152
- package/documentation/platform/SHARE.md +4 -0
- package/documentation/platform/THEME.md +4 -0
- package/documentation/platform/USER.md +4 -0
- package/documentation/platform/WEBHOOK.md +4 -0
- package/documentation/public/CONFIGURATION.md +4 -0
- package/documentation/public/INVENTORY.md +4 -0
- package/documentation/public/WEBHOOK.md +4 -0
- package/package.json +1 -1
- package/sdk/application/ApplicationModels.d.ts +77 -73
- package/sdk/application/ApplicationModels.js +1751 -1725
- package/sdk/application/client/CartApplicationClient.d.ts +36 -36
- package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
- package/sdk/application/client/CatalogApplicationClient.js +16 -16
- package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
- package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
- package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
- package/sdk/application/client/FileStorageApplicationClient.js +2 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
- package/sdk/application/client/LogisticApplicationClient.d.ts +5 -5
- package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
- package/sdk/application/client/OrderApplicationClient.js +1 -1
- package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
- package/sdk/application/client/PaymentApplicationClient.js +66 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
- package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
- package/sdk/application/client/RewardsApplicationClient.js +77 -77
- package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
- package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/client/UserApplicationClient.d.ts +63 -63
- package/sdk/application/models/CatalogValidator.d.ts +1 -1
- package/sdk/application/models/CatalogValidator.js +2 -2
- package/sdk/application/models/PaymentValidator.d.ts +2 -0
- package/sdk/application/models/PaymentValidator.js +12 -0
- package/sdk/application/models/RewardsValidator.d.ts +3 -3
- package/sdk/application/models/RewardsValidator.js +12 -12
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +8600 -7286
- package/sdk/platform/PlatformApplicationClient.js +4338 -3678
- package/sdk/platform/PlatformApplicationModels.d.ts +21 -26
- package/sdk/platform/PlatformApplicationModels.js +5561 -4301
- package/sdk/platform/PlatformClient.d.ts +3448 -2801
- package/sdk/platform/PlatformClient.js +3903 -3108
- package/sdk/platform/PlatformModels.d.ts +352 -278
- package/sdk/platform/PlatformModels.js +5230 -3942
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
- package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
- package/sdk/platform/client/CatalogPlatformClient.d.ts +209 -150
- package/sdk/platform/client/CatalogPlatformClient.js +441 -294
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
- package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
- package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
- package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
- package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
- package/sdk/platform/client/OrderPlatformClient.js +1551 -247
- package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
- package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/models/CatalogValidator.d.ts +24 -21
- package/sdk/platform/models/CatalogValidator.js +103 -72
- package/sdk/platform/models/OrderValidator.d.ts +43 -11
- package/sdk/platform/models/OrderValidator.js +312 -51
- package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
- package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
- package/tests/common/schema/action-url.json +15 -0
- package/tests/common/schema/url-action.json +16 -0
|
@@ -1,110 +1,371 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
const Validator = require("../PlatformModels");
|
|
3
3
|
class OrderValidator {
|
|
4
|
-
static
|
|
4
|
+
static getShipments() {
|
|
5
5
|
return Joi.object({
|
|
6
|
-
|
|
6
|
+
lane: Joi.string().allow(""),
|
|
7
|
+
searchType: Joi.string().allow(""),
|
|
8
|
+
searchValue: Joi.string().allow(""),
|
|
9
|
+
searchId: Joi.string().allow(""),
|
|
10
|
+
fromDate: Joi.string().allow(""),
|
|
11
|
+
toDate: Joi.string().allow(""),
|
|
12
|
+
dpIds: Joi.string().allow(""),
|
|
13
|
+
orderingCompanyId: Joi.string().allow(""),
|
|
14
|
+
stores: Joi.string().allow(""),
|
|
15
|
+
salesChannel: Joi.string().allow(""),
|
|
16
|
+
requestByExt: Joi.string().allow(""),
|
|
17
|
+
pageNo: Joi.number(),
|
|
18
|
+
pageSize: Joi.number(),
|
|
19
|
+
isPrioritySort: Joi.boolean(),
|
|
20
|
+
excludeLockedShipments: Joi.boolean(),
|
|
21
|
+
paymentMethods: Joi.string().allow(""),
|
|
22
|
+
channelShipmentId: Joi.string().allow(""),
|
|
23
|
+
channelOrderId: Joi.string().allow(""),
|
|
24
|
+
customMeta: Joi.string().allow(""),
|
|
7
25
|
}).required();
|
|
8
26
|
}
|
|
9
27
|
|
|
10
|
-
static
|
|
28
|
+
static getShipmentById() {
|
|
11
29
|
return Joi.object({
|
|
12
|
-
|
|
30
|
+
channelShipmentId: Joi.string().allow(""),
|
|
31
|
+
shipmentId: Joi.string().allow(""),
|
|
32
|
+
orderingCompanyId: Joi.string().allow(""),
|
|
33
|
+
requestByExt: Joi.string().allow(""),
|
|
13
34
|
}).required();
|
|
14
35
|
}
|
|
15
36
|
|
|
16
|
-
static
|
|
37
|
+
static getOrderById() {
|
|
17
38
|
return Joi.object({
|
|
18
|
-
|
|
39
|
+
orderId: Joi.string().allow("").required(),
|
|
19
40
|
}).required();
|
|
20
41
|
}
|
|
21
42
|
|
|
22
|
-
static
|
|
43
|
+
static getLaneConfig() {
|
|
23
44
|
return Joi.object({
|
|
24
|
-
|
|
45
|
+
superLane: Joi.string().allow(""),
|
|
46
|
+
groupEntity: Joi.string().allow(""),
|
|
47
|
+
fromDate: Joi.string().allow(""),
|
|
48
|
+
toDate: Joi.string().allow(""),
|
|
49
|
+
dpIds: Joi.string().allow(""),
|
|
50
|
+
stores: Joi.string().allow(""),
|
|
51
|
+
salesChannel: Joi.string().allow(""),
|
|
52
|
+
paymentMode: Joi.string().allow(""),
|
|
53
|
+
bagStatus: Joi.string().allow(""),
|
|
25
54
|
}).required();
|
|
26
55
|
}
|
|
27
56
|
|
|
28
|
-
static
|
|
57
|
+
static getOrders() {
|
|
29
58
|
return Joi.object({
|
|
30
|
-
|
|
59
|
+
lane: Joi.string().allow(""),
|
|
60
|
+
searchType: Joi.string().allow(""),
|
|
61
|
+
searchValue: Joi.string().allow(""),
|
|
62
|
+
fromDate: Joi.string().allow(""),
|
|
63
|
+
toDate: Joi.string().allow(""),
|
|
64
|
+
dpIds: Joi.string().allow(""),
|
|
65
|
+
stores: Joi.string().allow(""),
|
|
66
|
+
salesChannel: Joi.string().allow(""),
|
|
67
|
+
pageNo: Joi.number(),
|
|
68
|
+
pageSize: Joi.number(),
|
|
69
|
+
isPrioritySort: Joi.boolean(),
|
|
70
|
+
customMeta: Joi.string().allow(""),
|
|
31
71
|
}).required();
|
|
32
72
|
}
|
|
33
73
|
|
|
34
|
-
static
|
|
74
|
+
static getMetricCount() {
|
|
35
75
|
return Joi.object({
|
|
36
|
-
pageNo: Joi.string().allow(""),
|
|
37
|
-
pageSize: Joi.string().allow(""),
|
|
38
76
|
fromDate: Joi.string().allow(""),
|
|
39
77
|
toDate: Joi.string().allow(""),
|
|
40
|
-
isPrioritySort: Joi.boolean(),
|
|
41
|
-
lockStatus: Joi.boolean(),
|
|
42
|
-
userId: Joi.string().allow(""),
|
|
43
|
-
q: Joi.string().allow(""),
|
|
44
|
-
stage: Joi.string().allow(""),
|
|
45
|
-
salesChannels: Joi.string().allow(""),
|
|
46
|
-
orderId: Joi.string().allow(""),
|
|
47
|
-
stores: Joi.string().allow(""),
|
|
48
|
-
deploymentStores: Joi.string().allow(""),
|
|
49
|
-
status: Joi.string().allow(""),
|
|
50
|
-
dp: Joi.string().allow(""),
|
|
51
|
-
filterType: Joi.string().allow(""),
|
|
52
78
|
}).required();
|
|
53
79
|
}
|
|
54
80
|
|
|
55
|
-
static
|
|
81
|
+
static getfilters() {
|
|
82
|
+
return Joi.object({
|
|
83
|
+
view: Joi.string().allow("").required(),
|
|
84
|
+
groupEntity: Joi.string().allow(""),
|
|
85
|
+
}).required();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static createShipmentReport() {
|
|
56
89
|
return Joi.object({
|
|
57
|
-
pageNo: Joi.string().allow(""),
|
|
58
|
-
pageSize: Joi.string().allow(""),
|
|
59
90
|
fromDate: Joi.string().allow(""),
|
|
60
91
|
toDate: Joi.string().allow(""),
|
|
61
|
-
q: Joi.string().allow(""),
|
|
62
|
-
stage: Joi.string().allow(""),
|
|
63
|
-
salesChannels: Joi.string().allow(""),
|
|
64
|
-
orderId: Joi.string().allow(""),
|
|
65
|
-
stores: Joi.string().allow(""),
|
|
66
|
-
status: Joi.string().allow(""),
|
|
67
|
-
filterType: Joi.string().allow(""),
|
|
68
92
|
}).required();
|
|
69
93
|
}
|
|
70
94
|
|
|
71
|
-
static
|
|
95
|
+
static getReportsShipmentListing() {
|
|
96
|
+
return Joi.object({
|
|
97
|
+
pageNo: Joi.number(),
|
|
98
|
+
pageSize: Joi.number(),
|
|
99
|
+
}).required();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static upsertJioCode() {
|
|
103
|
+
return Joi.object({
|
|
104
|
+
body: Validator.JioCodeUpsertPayload().required(),
|
|
105
|
+
}).required();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static getBulkInvoice() {
|
|
109
|
+
return Joi.object({
|
|
110
|
+
batchId: Joi.string().allow("").required(),
|
|
111
|
+
docType: Joi.string().allow("").required(),
|
|
112
|
+
}).required();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static getBulkInvoiceLabel() {
|
|
116
|
+
return Joi.object({
|
|
117
|
+
batchId: Joi.string().allow("").required(),
|
|
118
|
+
}).required();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static getBulkShipmentExcelFile() {
|
|
72
122
|
return Joi.object({
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
123
|
+
lane: Joi.string().allow(""),
|
|
124
|
+
searchType: Joi.string().allow(""),
|
|
125
|
+
searchId: Joi.string().allow(""),
|
|
126
|
+
fromDate: Joi.string().allow(""),
|
|
127
|
+
toDate: Joi.string().allow(""),
|
|
128
|
+
dpIds: Joi.string().allow(""),
|
|
129
|
+
orderingCompanyId: Joi.string().allow(""),
|
|
130
|
+
stores: Joi.string().allow(""),
|
|
131
|
+
salesChannel: Joi.string().allow(""),
|
|
132
|
+
requestByExt: Joi.string().allow(""),
|
|
133
|
+
pageNo: Joi.number(),
|
|
134
|
+
pageSize: Joi.number(),
|
|
135
|
+
customerId: Joi.string().allow(""),
|
|
136
|
+
isPrioritySort: Joi.boolean(),
|
|
76
137
|
}).required();
|
|
77
138
|
}
|
|
78
139
|
|
|
79
|
-
static
|
|
140
|
+
static getBulkList() {
|
|
80
141
|
return Joi.object({
|
|
81
|
-
|
|
82
|
-
|
|
142
|
+
lane: Joi.string().allow(""),
|
|
143
|
+
searchType: Joi.string().allow(""),
|
|
144
|
+
searchId: Joi.string().allow(""),
|
|
83
145
|
fromDate: Joi.string().allow(""),
|
|
84
146
|
toDate: Joi.string().allow(""),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
salesChannels: Joi.string().allow(""),
|
|
88
|
-
orderId: Joi.string().allow(""),
|
|
147
|
+
dpIds: Joi.string().allow(""),
|
|
148
|
+
orderingCompanyId: Joi.string().allow(""),
|
|
89
149
|
stores: Joi.string().allow(""),
|
|
150
|
+
salesChannel: Joi.string().allow(""),
|
|
151
|
+
requestByExt: Joi.string().allow(""),
|
|
152
|
+
pageNo: Joi.number(),
|
|
153
|
+
pageSize: Joi.number(),
|
|
154
|
+
customerId: Joi.string().allow(""),
|
|
155
|
+
isPrioritySort: Joi.boolean(),
|
|
156
|
+
}).required();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
static getManifestList() {
|
|
160
|
+
return Joi.object({
|
|
90
161
|
status: Joi.string().allow(""),
|
|
91
|
-
|
|
162
|
+
storeId: Joi.number(),
|
|
163
|
+
pageNo: Joi.number(),
|
|
164
|
+
pageSize: Joi.number(),
|
|
165
|
+
searchValue: Joi.string().allow(""),
|
|
166
|
+
fromDate: Joi.string().allow(""),
|
|
167
|
+
toDate: Joi.string().allow(""),
|
|
168
|
+
}).required();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
static getManifestDetailsWithShipments() {
|
|
172
|
+
return Joi.object({
|
|
173
|
+
manifestId: Joi.string().allow("").required(),
|
|
174
|
+
fromDate: Joi.string().allow(""),
|
|
175
|
+
toDate: Joi.string().allow(""),
|
|
176
|
+
storeId: Joi.number().required(),
|
|
177
|
+
page: Joi.number(),
|
|
178
|
+
pageSize: Joi.number(),
|
|
179
|
+
lane: Joi.string().allow(""),
|
|
180
|
+
dpIds: Joi.number(),
|
|
181
|
+
searchType: Joi.string().allow(""),
|
|
182
|
+
searchValue: Joi.string().allow(""),
|
|
183
|
+
}).required();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
static getBulkActionFailedReport() {
|
|
187
|
+
return Joi.object({
|
|
188
|
+
batchId: Joi.string().allow("").required(),
|
|
189
|
+
reportType: Joi.string().allow(""),
|
|
92
190
|
}).required();
|
|
93
191
|
}
|
|
94
192
|
|
|
95
|
-
static
|
|
193
|
+
static getShipmentReasons() {
|
|
96
194
|
return Joi.object({
|
|
97
195
|
shipmentId: Joi.string().allow("").required(),
|
|
98
|
-
|
|
196
|
+
bagId: Joi.string().allow("").required(),
|
|
197
|
+
state: Joi.string().allow("").required(),
|
|
198
|
+
}).required();
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
static bulkActionProcessXlsxFile() {
|
|
202
|
+
return Joi.object({
|
|
203
|
+
body: Validator.BulkActionPayload().required(),
|
|
204
|
+
}).required();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
static bulkActionDetails() {
|
|
208
|
+
return Joi.object({
|
|
209
|
+
batchId: Joi.string().allow("").required(),
|
|
210
|
+
}).required();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
static getBagById() {
|
|
214
|
+
return Joi.object({
|
|
215
|
+
bagId: Joi.string().allow(""),
|
|
216
|
+
channelBagId: Joi.string().allow(""),
|
|
217
|
+
channelId: Joi.string().allow(""),
|
|
218
|
+
}).required();
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
static getBags() {
|
|
222
|
+
return Joi.object({
|
|
223
|
+
bagIds: Joi.string().allow(""),
|
|
224
|
+
shipmentIds: Joi.string().allow(""),
|
|
225
|
+
orderIds: Joi.string().allow(""),
|
|
226
|
+
channelBagIds: Joi.string().allow(""),
|
|
227
|
+
channelShipmentIds: Joi.string().allow(""),
|
|
228
|
+
channelOrderIds: Joi.string().allow(""),
|
|
229
|
+
channelId: Joi.string().allow(""),
|
|
230
|
+
pageNo: Joi.number(),
|
|
231
|
+
pageSize: Joi.number(),
|
|
232
|
+
}).required();
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
static invalidateShipmentCache() {
|
|
236
|
+
return Joi.object({
|
|
237
|
+
body: Validator.InvalidateShipmentCachePayload().required(),
|
|
99
238
|
}).required();
|
|
100
239
|
}
|
|
101
240
|
|
|
102
|
-
static
|
|
241
|
+
static reassignLocation() {
|
|
242
|
+
return Joi.object({
|
|
243
|
+
body: Validator.StoreReassign().required(),
|
|
244
|
+
}).required();
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
static updateShipmentLock() {
|
|
248
|
+
return Joi.object({
|
|
249
|
+
body: Validator.UpdateShipmentLockPayload().required(),
|
|
250
|
+
}).required();
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
static getAnnouncements() {
|
|
254
|
+
return Joi.object({
|
|
255
|
+
date: Joi.string().allow(""),
|
|
256
|
+
}).required();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
static updateAddress() {
|
|
103
260
|
return Joi.object({
|
|
104
261
|
shipmentId: Joi.string().allow("").required(),
|
|
262
|
+
name: Joi.string().allow(""),
|
|
263
|
+
address: Joi.string().allow(""),
|
|
264
|
+
addressType: Joi.string().allow(""),
|
|
265
|
+
pincode: Joi.string().allow(""),
|
|
266
|
+
phone: Joi.string().allow(""),
|
|
267
|
+
email: Joi.string().allow(""),
|
|
268
|
+
landmark: Joi.string().allow(""),
|
|
105
269
|
addressCategory: Joi.string().allow("").required(),
|
|
106
|
-
|
|
270
|
+
city: Joi.string().allow(""),
|
|
271
|
+
state: Joi.string().allow(""),
|
|
272
|
+
country: Joi.string().allow(""),
|
|
273
|
+
}).required();
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
static click2Call() {
|
|
277
|
+
return Joi.object({
|
|
278
|
+
caller: Joi.string().allow("").required(),
|
|
279
|
+
receiver: Joi.string().allow("").required(),
|
|
280
|
+
bagId: Joi.string().allow("").required(),
|
|
281
|
+
callingTo: Joi.string().allow(""),
|
|
282
|
+
callerId: Joi.string().allow(""),
|
|
283
|
+
}).required();
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
static updateShipmentStatus() {
|
|
287
|
+
return Joi.object({
|
|
288
|
+
body: Validator.UpdateShipmentStatusRequest().required(),
|
|
289
|
+
}).required();
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
static processManifest() {
|
|
293
|
+
return Joi.object({
|
|
294
|
+
body: Validator.CreateOrderPayload().required(),
|
|
295
|
+
}).required();
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
static dispatchManifest() {
|
|
299
|
+
return Joi.object({
|
|
300
|
+
body: Validator.DispatchManifest().required(),
|
|
301
|
+
}).required();
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
static getRoleBasedActions() {
|
|
305
|
+
return Joi.object({}).required();
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
static getShipmentHistory() {
|
|
309
|
+
return Joi.object({
|
|
310
|
+
shipmentId: Joi.number(),
|
|
311
|
+
bagId: Joi.number(),
|
|
312
|
+
}).required();
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
static sendSmsNinja() {
|
|
316
|
+
return Joi.object({
|
|
317
|
+
body: Validator.SendSmsPayload().required(),
|
|
318
|
+
}).required();
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
static platformManualAssignDPToShipment() {
|
|
322
|
+
return Joi.object({
|
|
323
|
+
body: Validator.ManualAssignDPToShipment().required(),
|
|
324
|
+
}).required();
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
static updatePackagingDimensions() {
|
|
328
|
+
return Joi.object({
|
|
329
|
+
body: Validator.CreateOrderPayload().required(),
|
|
330
|
+
}).required();
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
static createOrder() {
|
|
334
|
+
return Joi.object({
|
|
335
|
+
body: Validator.CreateOrderAPI().required(),
|
|
336
|
+
}).required();
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
static createChannelConfig() {
|
|
340
|
+
return Joi.object({
|
|
341
|
+
body: Validator.CreateChannelConfigData().required(),
|
|
342
|
+
}).required();
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
static getChannelConfig() {
|
|
346
|
+
return Joi.object({}).required();
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
static uploadConsent() {
|
|
350
|
+
return Joi.object({
|
|
351
|
+
body: Validator.UploadConsent().required(),
|
|
107
352
|
}).required();
|
|
108
353
|
}
|
|
354
|
+
|
|
355
|
+
static orderUpdate() {
|
|
356
|
+
return Joi.object({
|
|
357
|
+
body: Validator.PlatformOrderUpdate().required(),
|
|
358
|
+
}).required();
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
static checkOrderStatus() {
|
|
362
|
+
return Joi.object({
|
|
363
|
+
body: Validator.OrderStatus().required(),
|
|
364
|
+
}).required();
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
static sendSmsNinjaPlatform() {
|
|
368
|
+
return Joi.object({}).required();
|
|
369
|
+
}
|
|
109
370
|
}
|
|
110
371
|
module.exports = OrderValidator;
|
|
@@ -19,7 +19,7 @@ declare class Configuration {
|
|
|
19
19
|
searchApplication({ authorization, query }?: {
|
|
20
20
|
authorization?: string;
|
|
21
21
|
query?: string;
|
|
22
|
-
}): Promise<
|
|
22
|
+
}): Promise<ApplicationResponse>;
|
|
23
23
|
/**
|
|
24
24
|
* @param {Object} arg - Arg object.
|
|
25
25
|
* @param {string} [arg.locationType] - Provide location type to query on.
|
|
@@ -34,5 +34,5 @@ declare class Configuration {
|
|
|
34
34
|
getLocations({ locationType, id }?: {
|
|
35
35
|
locationType?: string;
|
|
36
36
|
id?: string;
|
|
37
|
-
}): Promise<
|
|
37
|
+
}): Promise<Locations>;
|
|
38
38
|
}
|
|
@@ -23,7 +23,7 @@ declare class Inventory {
|
|
|
23
23
|
getJobCodesMetrics({ dailyJob, jobCode }?: {
|
|
24
24
|
dailyJob?: boolean;
|
|
25
25
|
jobCode?: string;
|
|
26
|
-
}): Promise<
|
|
26
|
+
}): Promise<ResponseEnvelopeObject>;
|
|
27
27
|
/**
|
|
28
28
|
* @param {Object} arg - Arg object.
|
|
29
29
|
* @param {EmailJobMetrics} arg.body
|
|
@@ -32,8 +32,8 @@ declare class Inventory {
|
|
|
32
32
|
* @description: Endpoint to save JobCode Metrics
|
|
33
33
|
*/
|
|
34
34
|
saveJobCodesMetrics({ body }?: {
|
|
35
|
-
body:
|
|
36
|
-
}): Promise<
|
|
35
|
+
body: EmailJobMetrics;
|
|
36
|
+
}): Promise<ResponseEnvelopeEmailJobMetrics>;
|
|
37
37
|
/**
|
|
38
38
|
* @param {Object} arg - Arg object.
|
|
39
39
|
* @param {string} arg.apikey - Api key
|
|
@@ -43,7 +43,7 @@ declare class Inventory {
|
|
|
43
43
|
*/
|
|
44
44
|
getConfigByApiKey({ apikey }?: {
|
|
45
45
|
apikey: string;
|
|
46
|
-
}): Promise<
|
|
46
|
+
}): Promise<ResponseEnvelopeSlingshotConfigurationDetail>;
|
|
47
47
|
/**
|
|
48
48
|
* @param {Object} arg - Arg object.
|
|
49
49
|
* @param {string} arg.userName - Integration id
|
|
@@ -55,7 +55,7 @@ declare class Inventory {
|
|
|
55
55
|
getApiKey({ userName, password }?: {
|
|
56
56
|
userName: string;
|
|
57
57
|
password: string;
|
|
58
|
-
}): Promise<
|
|
58
|
+
}): Promise<ResponseEnvelopeApikeyModel>;
|
|
59
59
|
/**
|
|
60
60
|
* @param {Object} arg - Arg object.
|
|
61
61
|
* @param {string} arg.code - Job Code
|
|
@@ -65,7 +65,7 @@ declare class Inventory {
|
|
|
65
65
|
*/
|
|
66
66
|
getJobByCode({ code }?: {
|
|
67
67
|
code: string;
|
|
68
|
-
}): Promise<
|
|
68
|
+
}): Promise<ResponseEnvelopeJobConfigDTO>;
|
|
69
69
|
/**
|
|
70
70
|
* @param {Object} arg - Arg object.
|
|
71
71
|
* @param {string} arg.integrationType - Integration Type
|
|
@@ -77,5 +77,5 @@ declare class Inventory {
|
|
|
77
77
|
getJobConfigByIntegrationType({ integrationType, disable }?: {
|
|
78
78
|
integrationType: string;
|
|
79
79
|
disable?: boolean;
|
|
80
|
-
}): Promise<
|
|
80
|
+
}): Promise<ResponseEnvelopeListJobConfigDTO>;
|
|
81
81
|
}
|
|
@@ -14,7 +14,7 @@ declare class Webhook {
|
|
|
14
14
|
* @summary: Get All Webhook Events
|
|
15
15
|
* @description: Get All Webhook Events
|
|
16
16
|
*/
|
|
17
|
-
fetchAllWebhookEvents({}?: any): Promise<
|
|
17
|
+
fetchAllWebhookEvents({}?: any): Promise<EventConfigResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* @param {Object} arg - Arg object.
|
|
20
20
|
* @param {EventConfigBase[]} arg.body
|
|
@@ -23,6 +23,6 @@ declare class Webhook {
|
|
|
23
23
|
* @description: Get Webhook Event Details for provided events
|
|
24
24
|
*/
|
|
25
25
|
queryWebhookEventDetails({ body }?: {
|
|
26
|
-
body:
|
|
27
|
-
}): Promise<
|
|
26
|
+
body: EventConfigBase[];
|
|
27
|
+
}): Promise<EventConfigResponse>;
|
|
28
28
|
}
|
|
@@ -18,6 +18,21 @@
|
|
|
18
18
|
"path": "/brand/test/?department=men&department=women"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
"name": "profile order shipments",
|
|
23
|
+
"action": {
|
|
24
|
+
"type": "page",
|
|
25
|
+
"page": {
|
|
26
|
+
"type": "profile-order-shipment",
|
|
27
|
+
"params": {
|
|
28
|
+
"shipmentid": [16720482187091110000]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"result": {
|
|
33
|
+
"path": "/profile/orders/shipment/16720482187091110000"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
21
36
|
{
|
|
22
37
|
"name": "category listing query param ",
|
|
23
38
|
"action": {
|
|
@@ -275,6 +275,22 @@
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
+
{
|
|
279
|
+
"name": "profile orders shipments",
|
|
280
|
+
"path": "/profile/orders/shipment/16720482187091110000",
|
|
281
|
+
"result": {
|
|
282
|
+
"action": {
|
|
283
|
+
"type": "page",
|
|
284
|
+
"page": {
|
|
285
|
+
"type": "profile-order-shipment",
|
|
286
|
+
"params": {
|
|
287
|
+
"shipmentid": [16720482187091110000]
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
|
|
278
294
|
{
|
|
279
295
|
"name": "faq with category",
|
|
280
296
|
"path": "/faq/:category",
|