@gofynd/fdk-client-javascript 0.1.35 → 0.1.37
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 +272 -249
- package/documentation/application/CATALOG.md +417 -413
- 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 +427 -101
- package/documentation/application/ORDER.md +292 -288
- package/documentation/application/PAYMENT.md +445 -259
- package/documentation/application/POSCART.md +309 -286
- package/documentation/application/README.md +1 -1
- 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 +6 -2
- package/documentation/platform/BILLING.md +4 -0
- package/documentation/platform/CART.md +476 -459
- package/documentation/platform/CATALOG.md +4138 -2968
- package/documentation/platform/COMMON.md +4 -0
- package/documentation/platform/COMMUNICATION.md +4 -0
- package/documentation/platform/COMPANYPROFILE.md +258 -206
- 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 +2 -2
- package/sdk/application/ApplicationAPIClient.js +3 -0
- package/sdk/application/ApplicationClient.d.ts +1 -0
- package/sdk/application/ApplicationClient.js +11 -1
- package/sdk/application/ApplicationConfig.d.ts +1 -0
- package/sdk/application/ApplicationConfig.js +1 -0
- package/sdk/application/ApplicationModels.d.ts +94 -85
- package/sdk/application/ApplicationModels.js +1909 -1792
- 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 +32 -21
- package/sdk/application/client/LogisticApplicationClient.js +62 -27
- 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/LogisticValidator.d.ts +2 -1
- package/sdk/application/models/LogisticValidator.js +11 -6
- 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 +7962 -6505
- package/sdk/platform/PlatformApplicationClient.js +4377 -3635
- package/sdk/platform/PlatformApplicationModels.d.ts +26 -31
- package/sdk/platform/PlatformApplicationModels.js +5530 -4134
- package/sdk/platform/PlatformClient.d.ts +3495 -2780
- package/sdk/platform/PlatformClient.js +3985 -3108
- package/sdk/platform/PlatformModels.d.ts +354 -273
- package/sdk/platform/PlatformModels.js +5635 -4211
- 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 +222 -154
- package/sdk/platform/client/CatalogPlatformClient.js +473 -295
- 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 +26 -22
- package/sdk/platform/models/CatalogValidator.js +109 -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
|
@@ -18,7 +18,7 @@ declare class Payment {
|
|
|
18
18
|
* @description: Save Payout
|
|
19
19
|
*/
|
|
20
20
|
savePayout({ body }?: {
|
|
21
|
-
body:
|
|
21
|
+
body: PayoutRequest;
|
|
22
22
|
}): Promise<any>;
|
|
23
23
|
/**
|
|
24
24
|
* @param {Object} arg - Arg object.
|
|
@@ -29,7 +29,7 @@ declare class Payment {
|
|
|
29
29
|
*/
|
|
30
30
|
updatePayout({ uniqueTransferNo, body }?: {
|
|
31
31
|
uniqueTransferNo: string;
|
|
32
|
-
body:
|
|
32
|
+
body: PayoutRequest;
|
|
33
33
|
}): Promise<any>;
|
|
34
34
|
/**
|
|
35
35
|
* @param {Object} arg - Arg object.
|
|
@@ -40,7 +40,7 @@ declare class Payment {
|
|
|
40
40
|
*/
|
|
41
41
|
activateAndDectivatePayout({ uniqueTransferNo, body }?: {
|
|
42
42
|
uniqueTransferNo: string;
|
|
43
|
-
body:
|
|
43
|
+
body: UpdatePayoutRequest;
|
|
44
44
|
}): Promise<any>;
|
|
45
45
|
/**
|
|
46
46
|
* @param {Object} arg - Arg object.
|
|
@@ -84,7 +84,7 @@ declare class Payment {
|
|
|
84
84
|
* @description: Uses this api to Save Subscription Setup Intent
|
|
85
85
|
*/
|
|
86
86
|
saveSubscriptionSetupIntent({ body }?: {
|
|
87
|
-
body:
|
|
87
|
+
body: SaveSubscriptionSetupIntentRequest;
|
|
88
88
|
}): Promise<any>;
|
|
89
89
|
/**
|
|
90
90
|
* @param {Object} arg - Arg object.
|
|
@@ -22,7 +22,7 @@ declare class Webhook {
|
|
|
22
22
|
* @description: Register Subscriber
|
|
23
23
|
*/
|
|
24
24
|
registerSubscriberToEvent({ body }?: {
|
|
25
|
-
body:
|
|
25
|
+
body: SubscriberConfig;
|
|
26
26
|
}): Promise<any>;
|
|
27
27
|
/**
|
|
28
28
|
* @param {Object} arg - Arg object.
|
|
@@ -31,7 +31,7 @@ declare class Webhook {
|
|
|
31
31
|
* @description: Update Subscriber
|
|
32
32
|
*/
|
|
33
33
|
updateSubscriberConfig({ body }?: {
|
|
34
|
-
body:
|
|
34
|
+
body: SubscriberConfig;
|
|
35
35
|
}): Promise<any>;
|
|
36
36
|
/**
|
|
37
37
|
* @param {Object} arg - Arg object.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export = CatalogValidator;
|
|
2
2
|
declare class CatalogValidator {
|
|
3
|
-
static getProductBundle(): any;
|
|
4
3
|
static createProductBundle(): any;
|
|
5
|
-
static
|
|
4
|
+
static getProductBundle(): any;
|
|
6
5
|
static updateProductBundle(): any;
|
|
7
|
-
static
|
|
6
|
+
static getProductBundleDetail(): any;
|
|
8
7
|
static createSizeGuide(): any;
|
|
9
|
-
static
|
|
8
|
+
static getSizeGuides(): any;
|
|
10
9
|
static updateSizeGuide(): any;
|
|
10
|
+
static getSizeGuide(): any;
|
|
11
11
|
static getSellerInsights(): any;
|
|
12
12
|
static createMarketplaceOptin(): any;
|
|
13
13
|
static getMarketplaceOptinDetail(): any;
|
|
@@ -17,56 +17,60 @@ declare class CatalogValidator {
|
|
|
17
17
|
static getStoreDetail(): any;
|
|
18
18
|
static getGenderAttribute(): any;
|
|
19
19
|
static listProductTemplateCategories(): any;
|
|
20
|
-
static listDepartmentsData(): any;
|
|
21
20
|
static createDepartments(): any;
|
|
22
|
-
static
|
|
21
|
+
static listDepartmentsData(): any;
|
|
23
22
|
static updateDepartment(): any;
|
|
23
|
+
static getDepartmentData(): any;
|
|
24
24
|
static listProductTemplate(): any;
|
|
25
25
|
static validateProductTemplate(): any;
|
|
26
26
|
static downloadProductTemplateViews(): any;
|
|
27
|
-
static
|
|
27
|
+
static downloadInventoryTemplateView(): any;
|
|
28
28
|
static validateProductTemplateSchema(): any;
|
|
29
29
|
static listHSNCodes(): any;
|
|
30
30
|
static listProductTemplateExportDetails(): any;
|
|
31
31
|
static listTemplateBrandTypeValues(): any;
|
|
32
|
-
static listCategories(): any;
|
|
33
32
|
static createCategories(): any;
|
|
34
|
-
static
|
|
33
|
+
static listCategories(): any;
|
|
35
34
|
static updateCategory(): any;
|
|
36
|
-
static
|
|
35
|
+
static getCategoryData(): any;
|
|
37
36
|
static createProduct(): any;
|
|
37
|
+
static getProducts(): any;
|
|
38
|
+
static getVariantsOfProducts(): any;
|
|
38
39
|
static getProductAttributes(): any;
|
|
39
|
-
static getProduct(): any;
|
|
40
|
-
static editProduct(): any;
|
|
41
40
|
static deleteProduct(): any;
|
|
41
|
+
static editProduct(): any;
|
|
42
|
+
static getProduct(): any;
|
|
43
|
+
static allSizes(): any;
|
|
42
44
|
static getProductValidation(): any;
|
|
43
45
|
static getProductSize(): any;
|
|
44
|
-
static getProductBulkUploadHistory(): any;
|
|
45
46
|
static createBulkProductUploadJob(): any;
|
|
46
|
-
static
|
|
47
|
+
static getProductBulkUploadHistory(): any;
|
|
48
|
+
static uploadBulkProducts(): any;
|
|
47
49
|
static createProductsInBulk(): any;
|
|
50
|
+
static deleteProductBulkJob(): any;
|
|
48
51
|
static getProductTags(): any;
|
|
49
|
-
static getProductAssetsInBulk(): any;
|
|
50
52
|
static createProductAssetsInBulk(): any;
|
|
53
|
+
static getProductAssetsInBulk(): any;
|
|
51
54
|
static deleteSize(): any;
|
|
52
|
-
static getInventoryBySize(): any;
|
|
53
55
|
static addInventory(): any;
|
|
56
|
+
static getInventoryBySize(): any;
|
|
54
57
|
static getInventoryBySizeIdentifier(): any;
|
|
58
|
+
static getInventories(): any;
|
|
55
59
|
static deleteInventory(): any;
|
|
56
|
-
static getInventoryBulkUploadHistory(): any;
|
|
57
60
|
static createBulkInventoryJob(): any;
|
|
58
|
-
static
|
|
61
|
+
static getInventoryBulkUploadHistory(): any;
|
|
59
62
|
static createBulkInventory(): any;
|
|
60
|
-
static
|
|
63
|
+
static deleteBulkInventoryJob(): any;
|
|
61
64
|
static createInventoryExportJob(): any;
|
|
65
|
+
static getInventoryExport(): any;
|
|
62
66
|
static exportInventoryConfig(): any;
|
|
63
|
-
static deleteRealtimeInventory(): any;
|
|
64
67
|
static updateRealtimeInventory(): any;
|
|
68
|
+
static deleteRealtimeInventory(): any;
|
|
65
69
|
static updateInventories(): any;
|
|
66
|
-
static getAllHsnCodes(): any;
|
|
67
70
|
static createHsnCode(): any;
|
|
68
|
-
static
|
|
71
|
+
static getAllHsnCodes(): any;
|
|
69
72
|
static updateHsnCode(): any;
|
|
73
|
+
static getHsnCode(): any;
|
|
70
74
|
static bulkHsnCode(): any;
|
|
71
75
|
static getAllProductHsnCodes(): any;
|
|
72
76
|
static getSingleProductHSNCode(): any;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
const Validator = require("../PlatformModels");
|
|
3
3
|
class CatalogValidator {
|
|
4
|
+
static createProductBundle() {
|
|
5
|
+
return Joi.object({
|
|
6
|
+
body: Validator.ProductBundleRequest().required(),
|
|
7
|
+
}).required();
|
|
8
|
+
}
|
|
9
|
+
|
|
4
10
|
static getProductBundle() {
|
|
5
11
|
return Joi.object({
|
|
6
12
|
q: Joi.string().allow(""),
|
|
@@ -8,9 +14,10 @@ class CatalogValidator {
|
|
|
8
14
|
}).required();
|
|
9
15
|
}
|
|
10
16
|
|
|
11
|
-
static
|
|
17
|
+
static updateProductBundle() {
|
|
12
18
|
return Joi.object({
|
|
13
|
-
|
|
19
|
+
id: Joi.string().allow("").required(),
|
|
20
|
+
body: Validator.ProductBundleUpdateRequest().required(),
|
|
14
21
|
}).required();
|
|
15
22
|
}
|
|
16
23
|
|
|
@@ -20,10 +27,9 @@ class CatalogValidator {
|
|
|
20
27
|
}).required();
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
static
|
|
30
|
+
static createSizeGuide() {
|
|
24
31
|
return Joi.object({
|
|
25
|
-
|
|
26
|
-
body: Validator.ProductBundleUpdateRequest().required(),
|
|
32
|
+
body: Validator.ValidateSizeGuide().required(),
|
|
27
33
|
}).required();
|
|
28
34
|
}
|
|
29
35
|
|
|
@@ -37,8 +43,9 @@ class CatalogValidator {
|
|
|
37
43
|
}).required();
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
static
|
|
46
|
+
static updateSizeGuide() {
|
|
41
47
|
return Joi.object({
|
|
48
|
+
id: Joi.string().allow("").required(),
|
|
42
49
|
body: Validator.ValidateSizeGuide().required(),
|
|
43
50
|
}).required();
|
|
44
51
|
}
|
|
@@ -49,13 +56,6 @@ class CatalogValidator {
|
|
|
49
56
|
}).required();
|
|
50
57
|
}
|
|
51
58
|
|
|
52
|
-
static updateSizeGuide() {
|
|
53
|
-
return Joi.object({
|
|
54
|
-
id: Joi.string().allow("").required(),
|
|
55
|
-
body: Validator.ValidateSizeGuide().required(),
|
|
56
|
-
}).required();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
59
|
static getSellerInsights() {
|
|
60
60
|
return Joi.object({
|
|
61
61
|
sellerAppId: Joi.string().allow("").required(),
|
|
@@ -112,6 +112,12 @@ class CatalogValidator {
|
|
|
112
112
|
}).required();
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
static createDepartments() {
|
|
116
|
+
return Joi.object({
|
|
117
|
+
body: Validator.DepartmentCreateUpdate().required(),
|
|
118
|
+
}).required();
|
|
119
|
+
}
|
|
120
|
+
|
|
115
121
|
static listDepartmentsData() {
|
|
116
122
|
return Joi.object({
|
|
117
123
|
pageNo: Joi.number(),
|
|
@@ -122,8 +128,9 @@ class CatalogValidator {
|
|
|
122
128
|
}).required();
|
|
123
129
|
}
|
|
124
130
|
|
|
125
|
-
static
|
|
131
|
+
static updateDepartment() {
|
|
126
132
|
return Joi.object({
|
|
133
|
+
uid: Joi.string().allow("").required(),
|
|
127
134
|
body: Validator.DepartmentCreateUpdate().required(),
|
|
128
135
|
}).required();
|
|
129
136
|
}
|
|
@@ -134,13 +141,6 @@ class CatalogValidator {
|
|
|
134
141
|
}).required();
|
|
135
142
|
}
|
|
136
143
|
|
|
137
|
-
static updateDepartment() {
|
|
138
|
-
return Joi.object({
|
|
139
|
-
uid: Joi.string().allow("").required(),
|
|
140
|
-
body: Validator.DepartmentCreateUpdate().required(),
|
|
141
|
-
}).required();
|
|
142
|
-
}
|
|
143
|
-
|
|
144
144
|
static listProductTemplate() {
|
|
145
145
|
return Joi.object({
|
|
146
146
|
department: Joi.string().allow("").required(),
|
|
@@ -159,7 +159,7 @@ class CatalogValidator {
|
|
|
159
159
|
}).required();
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
static
|
|
162
|
+
static downloadInventoryTemplateView() {
|
|
163
163
|
return Joi.object({
|
|
164
164
|
itemType: Joi.string().allow("").required(),
|
|
165
165
|
}).required();
|
|
@@ -185,6 +185,12 @@ class CatalogValidator {
|
|
|
185
185
|
}).required();
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
static createCategories() {
|
|
189
|
+
return Joi.object({
|
|
190
|
+
body: Validator.CategoryRequestBody().required(),
|
|
191
|
+
}).required();
|
|
192
|
+
}
|
|
193
|
+
|
|
188
194
|
static listCategories() {
|
|
189
195
|
return Joi.object({
|
|
190
196
|
level: Joi.string().allow(""),
|
|
@@ -195,8 +201,9 @@ class CatalogValidator {
|
|
|
195
201
|
}).required();
|
|
196
202
|
}
|
|
197
203
|
|
|
198
|
-
static
|
|
204
|
+
static updateCategory() {
|
|
199
205
|
return Joi.object({
|
|
206
|
+
uid: Joi.string().allow("").required(),
|
|
200
207
|
body: Validator.CategoryRequestBody().required(),
|
|
201
208
|
}).required();
|
|
202
209
|
}
|
|
@@ -207,10 +214,9 @@ class CatalogValidator {
|
|
|
207
214
|
}).required();
|
|
208
215
|
}
|
|
209
216
|
|
|
210
|
-
static
|
|
217
|
+
static createProduct() {
|
|
211
218
|
return Joi.object({
|
|
212
|
-
|
|
213
|
-
body: Validator.CategoryRequestBody().required(),
|
|
219
|
+
body: Validator.ProductCreateUpdateSchemaV2().required(),
|
|
214
220
|
}).required();
|
|
215
221
|
}
|
|
216
222
|
|
|
@@ -228,9 +234,12 @@ class CatalogValidator {
|
|
|
228
234
|
}).required();
|
|
229
235
|
}
|
|
230
236
|
|
|
231
|
-
static
|
|
237
|
+
static getVariantsOfProducts() {
|
|
232
238
|
return Joi.object({
|
|
233
|
-
|
|
239
|
+
itemId: Joi.number().required(),
|
|
240
|
+
variantType: Joi.string().allow("").required(),
|
|
241
|
+
pageNo: Joi.number(),
|
|
242
|
+
pageSize: Joi.number(),
|
|
234
243
|
}).required();
|
|
235
244
|
}
|
|
236
245
|
|
|
@@ -241,22 +250,28 @@ class CatalogValidator {
|
|
|
241
250
|
}).required();
|
|
242
251
|
}
|
|
243
252
|
|
|
244
|
-
static
|
|
253
|
+
static deleteProduct() {
|
|
245
254
|
return Joi.object({
|
|
246
|
-
itemCode: Joi.string().allow(""),
|
|
247
255
|
itemId: Joi.number().required(),
|
|
248
|
-
brandUid: Joi.number(),
|
|
249
256
|
}).required();
|
|
250
257
|
}
|
|
251
258
|
|
|
252
259
|
static editProduct() {
|
|
253
260
|
return Joi.object({
|
|
254
261
|
itemId: Joi.number().required(),
|
|
255
|
-
body: Validator.
|
|
262
|
+
body: Validator.ProductCreateUpdateSchemaV2().required(),
|
|
256
263
|
}).required();
|
|
257
264
|
}
|
|
258
265
|
|
|
259
|
-
static
|
|
266
|
+
static getProduct() {
|
|
267
|
+
return Joi.object({
|
|
268
|
+
itemId: Joi.number().required(),
|
|
269
|
+
brandUid: Joi.number(),
|
|
270
|
+
itemCode: Joi.string().allow(""),
|
|
271
|
+
}).required();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
static allSizes() {
|
|
260
275
|
return Joi.object({
|
|
261
276
|
itemId: Joi.number().required(),
|
|
262
277
|
}).required();
|
|
@@ -275,29 +290,38 @@ class CatalogValidator {
|
|
|
275
290
|
}).required();
|
|
276
291
|
}
|
|
277
292
|
|
|
293
|
+
static createBulkProductUploadJob() {
|
|
294
|
+
return Joi.object({
|
|
295
|
+
body: Validator.BulkJob().required(),
|
|
296
|
+
}).required();
|
|
297
|
+
}
|
|
298
|
+
|
|
278
299
|
static getProductBulkUploadHistory() {
|
|
279
300
|
return Joi.object({
|
|
301
|
+
search: Joi.string().allow(""),
|
|
280
302
|
pageNo: Joi.number(),
|
|
281
303
|
pageSize: Joi.number(),
|
|
282
304
|
}).required();
|
|
283
305
|
}
|
|
284
306
|
|
|
285
|
-
static
|
|
307
|
+
static uploadBulkProducts() {
|
|
286
308
|
return Joi.object({
|
|
309
|
+
department: Joi.string().allow("").required(),
|
|
310
|
+
productType: Joi.string().allow("").required(),
|
|
287
311
|
body: Validator.BulkJob().required(),
|
|
288
312
|
}).required();
|
|
289
313
|
}
|
|
290
314
|
|
|
291
|
-
static
|
|
315
|
+
static createProductsInBulk() {
|
|
292
316
|
return Joi.object({
|
|
293
|
-
batchId: Joi.
|
|
317
|
+
batchId: Joi.string().allow("").required(),
|
|
318
|
+
body: Validator.BulkProductRequest().required(),
|
|
294
319
|
}).required();
|
|
295
320
|
}
|
|
296
321
|
|
|
297
|
-
static
|
|
322
|
+
static deleteProductBulkJob() {
|
|
298
323
|
return Joi.object({
|
|
299
|
-
batchId: Joi.
|
|
300
|
-
body: Validator.BulkProductRequest().required(),
|
|
324
|
+
batchId: Joi.number().required(),
|
|
301
325
|
}).required();
|
|
302
326
|
}
|
|
303
327
|
|
|
@@ -305,6 +329,12 @@ class CatalogValidator {
|
|
|
305
329
|
return Joi.object({}).required();
|
|
306
330
|
}
|
|
307
331
|
|
|
332
|
+
static createProductAssetsInBulk() {
|
|
333
|
+
return Joi.object({
|
|
334
|
+
body: Validator.ProductBulkAssets().required(),
|
|
335
|
+
}).required();
|
|
336
|
+
}
|
|
337
|
+
|
|
308
338
|
static getProductAssetsInBulk() {
|
|
309
339
|
return Joi.object({
|
|
310
340
|
pageNo: Joi.number(),
|
|
@@ -312,16 +342,18 @@ class CatalogValidator {
|
|
|
312
342
|
}).required();
|
|
313
343
|
}
|
|
314
344
|
|
|
315
|
-
static
|
|
345
|
+
static deleteSize() {
|
|
316
346
|
return Joi.object({
|
|
317
|
-
|
|
347
|
+
itemId: Joi.number().required(),
|
|
348
|
+
size: Joi.string().allow("").required(),
|
|
318
349
|
}).required();
|
|
319
350
|
}
|
|
320
351
|
|
|
321
|
-
static
|
|
352
|
+
static addInventory() {
|
|
322
353
|
return Joi.object({
|
|
323
354
|
itemId: Joi.number().required(),
|
|
324
|
-
size: Joi.
|
|
355
|
+
size: Joi.string().allow("").required(),
|
|
356
|
+
body: Validator.InventoryRequest().required(),
|
|
325
357
|
}).required();
|
|
326
358
|
}
|
|
327
359
|
|
|
@@ -336,14 +368,6 @@ class CatalogValidator {
|
|
|
336
368
|
}).required();
|
|
337
369
|
}
|
|
338
370
|
|
|
339
|
-
static addInventory() {
|
|
340
|
-
return Joi.object({
|
|
341
|
-
itemId: Joi.number().required(),
|
|
342
|
-
size: Joi.string().allow("").required(),
|
|
343
|
-
body: Validator.InventoryRequest().required(),
|
|
344
|
-
}).required();
|
|
345
|
-
}
|
|
346
|
-
|
|
347
371
|
static getInventoryBySizeIdentifier() {
|
|
348
372
|
return Joi.object({
|
|
349
373
|
itemId: Joi.string().allow("").required(),
|
|
@@ -355,18 +379,24 @@ class CatalogValidator {
|
|
|
355
379
|
}).required();
|
|
356
380
|
}
|
|
357
381
|
|
|
358
|
-
static
|
|
382
|
+
static getInventories() {
|
|
359
383
|
return Joi.object({
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
384
|
+
itemId: Joi.string().allow(""),
|
|
385
|
+
size: Joi.string().allow(""),
|
|
386
|
+
pageNo: Joi.number(),
|
|
387
|
+
pageSize: Joi.number(),
|
|
388
|
+
q: Joi.string().allow(""),
|
|
389
|
+
sellable: Joi.boolean(),
|
|
390
|
+
storeIds: Joi.array().items(Joi.number()),
|
|
391
|
+
sizeIdentifier: Joi.string().allow(""),
|
|
363
392
|
}).required();
|
|
364
393
|
}
|
|
365
394
|
|
|
366
|
-
static
|
|
395
|
+
static deleteInventory() {
|
|
367
396
|
return Joi.object({
|
|
368
|
-
|
|
369
|
-
|
|
397
|
+
size: Joi.string().allow("").required(),
|
|
398
|
+
itemId: Joi.number().required(),
|
|
399
|
+
locationId: Joi.number().required(),
|
|
370
400
|
}).required();
|
|
371
401
|
}
|
|
372
402
|
|
|
@@ -376,9 +406,10 @@ class CatalogValidator {
|
|
|
376
406
|
}).required();
|
|
377
407
|
}
|
|
378
408
|
|
|
379
|
-
static
|
|
409
|
+
static getInventoryBulkUploadHistory() {
|
|
380
410
|
return Joi.object({
|
|
381
|
-
|
|
411
|
+
pageNo: Joi.number(),
|
|
412
|
+
pageSize: Joi.number(),
|
|
382
413
|
}).required();
|
|
383
414
|
}
|
|
384
415
|
|
|
@@ -389,8 +420,10 @@ class CatalogValidator {
|
|
|
389
420
|
}).required();
|
|
390
421
|
}
|
|
391
422
|
|
|
392
|
-
static
|
|
393
|
-
return Joi.object({
|
|
423
|
+
static deleteBulkInventoryJob() {
|
|
424
|
+
return Joi.object({
|
|
425
|
+
batchId: Joi.string().allow("").required(),
|
|
426
|
+
}).required();
|
|
394
427
|
}
|
|
395
428
|
|
|
396
429
|
static createInventoryExportJob() {
|
|
@@ -399,13 +432,17 @@ class CatalogValidator {
|
|
|
399
432
|
}).required();
|
|
400
433
|
}
|
|
401
434
|
|
|
435
|
+
static getInventoryExport() {
|
|
436
|
+
return Joi.object({}).required();
|
|
437
|
+
}
|
|
438
|
+
|
|
402
439
|
static exportInventoryConfig() {
|
|
403
440
|
return Joi.object({
|
|
404
441
|
filterType: Joi.string().allow(""),
|
|
405
442
|
}).required();
|
|
406
443
|
}
|
|
407
444
|
|
|
408
|
-
static
|
|
445
|
+
static updateRealtimeInventory() {
|
|
409
446
|
return Joi.object({
|
|
410
447
|
itemId: Joi.number().required(),
|
|
411
448
|
sellerIdentifier: Joi.string().allow("").required(),
|
|
@@ -413,7 +450,7 @@ class CatalogValidator {
|
|
|
413
450
|
}).required();
|
|
414
451
|
}
|
|
415
452
|
|
|
416
|
-
static
|
|
453
|
+
static deleteRealtimeInventory() {
|
|
417
454
|
return Joi.object({
|
|
418
455
|
itemId: Joi.number().required(),
|
|
419
456
|
sellerIdentifier: Joi.string().allow("").required(),
|
|
@@ -427,6 +464,12 @@ class CatalogValidator {
|
|
|
427
464
|
}).required();
|
|
428
465
|
}
|
|
429
466
|
|
|
467
|
+
static createHsnCode() {
|
|
468
|
+
return Joi.object({
|
|
469
|
+
body: Validator.HsnUpsert().required(),
|
|
470
|
+
}).required();
|
|
471
|
+
}
|
|
472
|
+
|
|
430
473
|
static getAllHsnCodes() {
|
|
431
474
|
return Joi.object({
|
|
432
475
|
pageNo: Joi.number(),
|
|
@@ -435,8 +478,9 @@ class CatalogValidator {
|
|
|
435
478
|
}).required();
|
|
436
479
|
}
|
|
437
480
|
|
|
438
|
-
static
|
|
481
|
+
static updateHsnCode() {
|
|
439
482
|
return Joi.object({
|
|
483
|
+
id: Joi.string().allow("").required(),
|
|
440
484
|
body: Validator.HsnUpsert().required(),
|
|
441
485
|
}).required();
|
|
442
486
|
}
|
|
@@ -447,13 +491,6 @@ class CatalogValidator {
|
|
|
447
491
|
}).required();
|
|
448
492
|
}
|
|
449
493
|
|
|
450
|
-
static updateHsnCode() {
|
|
451
|
-
return Joi.object({
|
|
452
|
-
id: Joi.string().allow("").required(),
|
|
453
|
-
body: Validator.HsnUpsert().required(),
|
|
454
|
-
}).required();
|
|
455
|
-
}
|
|
456
|
-
|
|
457
494
|
static bulkHsnCode() {
|
|
458
495
|
return Joi.object({
|
|
459
496
|
body: Validator.BulkHsnUpsert().required(),
|
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
export = OrderValidator;
|
|
2
2
|
declare class OrderValidator {
|
|
3
|
-
static
|
|
4
|
-
static
|
|
5
|
-
static
|
|
6
|
-
static
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static
|
|
3
|
+
static getShipments(): any;
|
|
4
|
+
static getShipmentById(): any;
|
|
5
|
+
static getOrderById(): any;
|
|
6
|
+
static getLaneConfig(): any;
|
|
7
|
+
static getOrders(): any;
|
|
8
|
+
static getMetricCount(): any;
|
|
9
|
+
static getfilters(): any;
|
|
10
|
+
static createShipmentReport(): any;
|
|
11
|
+
static getReportsShipmentListing(): any;
|
|
12
|
+
static upsertJioCode(): any;
|
|
13
|
+
static getBulkInvoice(): any;
|
|
14
|
+
static getBulkInvoiceLabel(): any;
|
|
15
|
+
static getBulkShipmentExcelFile(): any;
|
|
16
|
+
static getBulkList(): any;
|
|
17
|
+
static getManifestList(): any;
|
|
18
|
+
static getManifestDetailsWithShipments(): any;
|
|
19
|
+
static getBulkActionFailedReport(): any;
|
|
20
|
+
static getShipmentReasons(): any;
|
|
21
|
+
static bulkActionProcessXlsxFile(): any;
|
|
22
|
+
static bulkActionDetails(): any;
|
|
23
|
+
static getBagById(): any;
|
|
24
|
+
static getBags(): any;
|
|
25
|
+
static invalidateShipmentCache(): any;
|
|
26
|
+
static reassignLocation(): any;
|
|
27
|
+
static updateShipmentLock(): any;
|
|
28
|
+
static getAnnouncements(): any;
|
|
29
|
+
static updateAddress(): any;
|
|
30
|
+
static click2Call(): any;
|
|
31
|
+
static updateShipmentStatus(): any;
|
|
32
|
+
static processManifest(): any;
|
|
33
|
+
static dispatchManifest(): any;
|
|
34
|
+
static getRoleBasedActions(): any;
|
|
35
|
+
static getShipmentHistory(): any;
|
|
36
|
+
static sendSmsNinja(): any;
|
|
37
|
+
static platformManualAssignDPToShipment(): any;
|
|
38
|
+
static updatePackagingDimensions(): any;
|
|
39
|
+
static createOrder(): any;
|
|
40
|
+
static createChannelConfig(): any;
|
|
41
|
+
static getChannelConfig(): any;
|
|
42
|
+
static uploadConsent(): any;
|
|
43
|
+
static orderUpdate(): any;
|
|
44
|
+
static checkOrderStatus(): any;
|
|
45
|
+
static sendSmsNinjaPlatform(): any;
|
|
14
46
|
}
|