@gofynd/fdk-client-javascript 1.0.0 → 1.0.1
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/documentation/application/CATALOG.md +371 -371
- package/documentation/application/ORDER.md +272 -272
- package/documentation/application/PAYMENT.md +269 -269
- package/documentation/platform/CATALOG.md +1678 -1664
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/ORDER.md +1442 -1323
- package/documentation/platform/PAYMENT.md +88 -88
- package/index.js +7 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +302 -0
- package/sdk/application/Cart/CartApplicationValidator.js +1 -0
- package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
- package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
- package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
- package/sdk/application/Common/CommonApplicationClient.js +22 -0
- package/sdk/application/Common/CommonApplicationValidator.js +1 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
- package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationClient.js +215 -0
- package/sdk/application/Content/ContentApplicationValidator.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
- package/sdk/application/Lead/LeadApplicationClient.js +81 -0
- package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.js +146 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
- package/sdk/application/Order/OrderApplicationModel.js +329 -329
- package/sdk/application/Order/OrderApplicationValidator.js +1 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
- package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
- package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
- package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
- package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
- package/sdk/application/Share/ShareApplicationClient.js +87 -0
- package/sdk/application/Share/ShareApplicationValidator.js +1 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
- package/sdk/application/User/UserApplicationClient.js +405 -0
- package/sdk/application/User/UserApplicationValidator.js +1 -0
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
- package/sdk/platform/Common/CommonPlatformClient.js +26 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
- package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
- package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
- package/sdk/platform/Order/OrderPlatformClient.js +674 -15
- package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
- package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
- package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
- package/sdk/platform/PlatformApplicationClient.js +2514 -2524
- package/sdk/platform/PlatformClient.d.ts +2217 -2243
- package/sdk/platform/PlatformClient.js +2514 -2524
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
- package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
- package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
- package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
|
@@ -92,6 +92,19 @@ class Catalog {
|
|
|
92
92
|
if (error) {
|
|
93
93
|
return Promise.reject(new FDKClientValidationError(error));
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
// Showing warrnings if extra unknown parameters are found
|
|
97
|
+
const {
|
|
98
|
+
error: warrning,
|
|
99
|
+
} = CatalogValidator.getProductDetailBySlug().validate(
|
|
100
|
+
{ slug },
|
|
101
|
+
{ abortEarly: false, allowUnknown: false }
|
|
102
|
+
);
|
|
103
|
+
if (warrning) {
|
|
104
|
+
console.log("Parameter Validation warrnings for getProductDetailBySlug");
|
|
105
|
+
console.log(warrning);
|
|
106
|
+
}
|
|
107
|
+
|
|
95
108
|
const query_params = {};
|
|
96
109
|
|
|
97
110
|
const xHeaders = {};
|
|
@@ -128,6 +141,19 @@ class Catalog {
|
|
|
128
141
|
if (error) {
|
|
129
142
|
return Promise.reject(new FDKClientValidationError(error));
|
|
130
143
|
}
|
|
144
|
+
|
|
145
|
+
// Showing warrnings if extra unknown parameters are found
|
|
146
|
+
const {
|
|
147
|
+
error: warrning,
|
|
148
|
+
} = CatalogValidator.getProductSizesBySlug().validate(
|
|
149
|
+
{ slug, storeId },
|
|
150
|
+
{ abortEarly: false, allowUnknown: false }
|
|
151
|
+
);
|
|
152
|
+
if (warrning) {
|
|
153
|
+
console.log("Parameter Validation warrnings for getProductSizesBySlug");
|
|
154
|
+
console.log(warrning);
|
|
155
|
+
}
|
|
156
|
+
|
|
131
157
|
const query_params = {};
|
|
132
158
|
query_params["store_id"] = storeId;
|
|
133
159
|
|
|
@@ -163,6 +189,21 @@ class Catalog {
|
|
|
163
189
|
if (error) {
|
|
164
190
|
return Promise.reject(new FDKClientValidationError(error));
|
|
165
191
|
}
|
|
192
|
+
|
|
193
|
+
// Showing warrnings if extra unknown parameters are found
|
|
194
|
+
const {
|
|
195
|
+
error: warrning,
|
|
196
|
+
} = CatalogValidator.getProductComparisonBySlugs().validate(
|
|
197
|
+
{ slug },
|
|
198
|
+
{ abortEarly: false, allowUnknown: false }
|
|
199
|
+
);
|
|
200
|
+
if (warrning) {
|
|
201
|
+
console.log(
|
|
202
|
+
"Parameter Validation warrnings for getProductComparisonBySlugs"
|
|
203
|
+
);
|
|
204
|
+
console.log(warrning);
|
|
205
|
+
}
|
|
206
|
+
|
|
166
207
|
const query_params = {};
|
|
167
208
|
query_params["slug"] = slug;
|
|
168
209
|
|
|
@@ -200,6 +241,21 @@ class Catalog {
|
|
|
200
241
|
if (error) {
|
|
201
242
|
return Promise.reject(new FDKClientValidationError(error));
|
|
202
243
|
}
|
|
244
|
+
|
|
245
|
+
// Showing warrnings if extra unknown parameters are found
|
|
246
|
+
const {
|
|
247
|
+
error: warrning,
|
|
248
|
+
} = CatalogValidator.getSimilarComparisonProductBySlug().validate(
|
|
249
|
+
{ slug },
|
|
250
|
+
{ abortEarly: false, allowUnknown: false }
|
|
251
|
+
);
|
|
252
|
+
if (warrning) {
|
|
253
|
+
console.log(
|
|
254
|
+
"Parameter Validation warrnings for getSimilarComparisonProductBySlug"
|
|
255
|
+
);
|
|
256
|
+
console.log(warrning);
|
|
257
|
+
}
|
|
258
|
+
|
|
203
259
|
const query_params = {};
|
|
204
260
|
|
|
205
261
|
const xHeaders = {};
|
|
@@ -236,6 +292,21 @@ class Catalog {
|
|
|
236
292
|
if (error) {
|
|
237
293
|
return Promise.reject(new FDKClientValidationError(error));
|
|
238
294
|
}
|
|
295
|
+
|
|
296
|
+
// Showing warrnings if extra unknown parameters are found
|
|
297
|
+
const {
|
|
298
|
+
error: warrning,
|
|
299
|
+
} = CatalogValidator.getComparedFrequentlyProductBySlug().validate(
|
|
300
|
+
{ slug },
|
|
301
|
+
{ abortEarly: false, allowUnknown: false }
|
|
302
|
+
);
|
|
303
|
+
if (warrning) {
|
|
304
|
+
console.log(
|
|
305
|
+
"Parameter Validation warrnings for getComparedFrequentlyProductBySlug"
|
|
306
|
+
);
|
|
307
|
+
console.log(warrning);
|
|
308
|
+
}
|
|
309
|
+
|
|
239
310
|
const query_params = {};
|
|
240
311
|
|
|
241
312
|
const xHeaders = {};
|
|
@@ -270,6 +341,21 @@ class Catalog {
|
|
|
270
341
|
if (error) {
|
|
271
342
|
return Promise.reject(new FDKClientValidationError(error));
|
|
272
343
|
}
|
|
344
|
+
|
|
345
|
+
// Showing warrnings if extra unknown parameters are found
|
|
346
|
+
const {
|
|
347
|
+
error: warrning,
|
|
348
|
+
} = CatalogValidator.getProductVariantsBySlug().validate(
|
|
349
|
+
{ slug },
|
|
350
|
+
{ abortEarly: false, allowUnknown: false }
|
|
351
|
+
);
|
|
352
|
+
if (warrning) {
|
|
353
|
+
console.log(
|
|
354
|
+
"Parameter Validation warrnings for getProductVariantsBySlug"
|
|
355
|
+
);
|
|
356
|
+
console.log(warrning);
|
|
357
|
+
}
|
|
358
|
+
|
|
273
359
|
const query_params = {};
|
|
274
360
|
|
|
275
361
|
const xHeaders = {};
|
|
@@ -310,6 +396,19 @@ class Catalog {
|
|
|
310
396
|
if (error) {
|
|
311
397
|
return Promise.reject(new FDKClientValidationError(error));
|
|
312
398
|
}
|
|
399
|
+
|
|
400
|
+
// Showing warrnings if extra unknown parameters are found
|
|
401
|
+
const {
|
|
402
|
+
error: warrning,
|
|
403
|
+
} = CatalogValidator.getProductStockByIds().validate(
|
|
404
|
+
{ itemId, alu, skuCode, ean, upc },
|
|
405
|
+
{ abortEarly: false, allowUnknown: false }
|
|
406
|
+
);
|
|
407
|
+
if (warrning) {
|
|
408
|
+
console.log("Parameter Validation warrnings for getProductStockByIds");
|
|
409
|
+
console.log(warrning);
|
|
410
|
+
}
|
|
411
|
+
|
|
313
412
|
const query_params = {};
|
|
314
413
|
query_params["item_id"] = itemId;
|
|
315
414
|
query_params["alu"] = alu;
|
|
@@ -349,6 +448,21 @@ class Catalog {
|
|
|
349
448
|
if (error) {
|
|
350
449
|
return Promise.reject(new FDKClientValidationError(error));
|
|
351
450
|
}
|
|
451
|
+
|
|
452
|
+
// Showing warrnings if extra unknown parameters are found
|
|
453
|
+
const {
|
|
454
|
+
error: warrning,
|
|
455
|
+
} = CatalogValidator.getProductStockForTimeByIds().validate(
|
|
456
|
+
{ timestamp, pageSize, pageId },
|
|
457
|
+
{ abortEarly: false, allowUnknown: false }
|
|
458
|
+
);
|
|
459
|
+
if (warrning) {
|
|
460
|
+
console.log(
|
|
461
|
+
"Parameter Validation warrnings for getProductStockForTimeByIds"
|
|
462
|
+
);
|
|
463
|
+
console.log(warrning);
|
|
464
|
+
}
|
|
465
|
+
|
|
352
466
|
const query_params = {};
|
|
353
467
|
query_params["timestamp"] = timestamp;
|
|
354
468
|
query_params["page_size"] = pageSize;
|
|
@@ -436,6 +550,17 @@ class Catalog {
|
|
|
436
550
|
if (error) {
|
|
437
551
|
return Promise.reject(new FDKClientValidationError(error));
|
|
438
552
|
}
|
|
553
|
+
|
|
554
|
+
// Showing warrnings if extra unknown parameters are found
|
|
555
|
+
const { error: warrning } = CatalogValidator.getProducts().validate(
|
|
556
|
+
{ q, f, filters, sortOn, pageId, pageSize, pageNo, pageType },
|
|
557
|
+
{ abortEarly: false, allowUnknown: false }
|
|
558
|
+
);
|
|
559
|
+
if (warrning) {
|
|
560
|
+
console.log("Parameter Validation warrnings for getProducts");
|
|
561
|
+
console.log(warrning);
|
|
562
|
+
}
|
|
563
|
+
|
|
439
564
|
const query_params = {};
|
|
440
565
|
query_params["q"] = q;
|
|
441
566
|
query_params["f"] = f;
|
|
@@ -525,6 +650,17 @@ class Catalog {
|
|
|
525
650
|
if (error) {
|
|
526
651
|
return Promise.reject(new FDKClientValidationError(error));
|
|
527
652
|
}
|
|
653
|
+
|
|
654
|
+
// Showing warrnings if extra unknown parameters are found
|
|
655
|
+
const { error: warrning } = CatalogValidator.getBrands().validate(
|
|
656
|
+
{ department, pageNo, pageSize },
|
|
657
|
+
{ abortEarly: false, allowUnknown: false }
|
|
658
|
+
);
|
|
659
|
+
if (warrning) {
|
|
660
|
+
console.log("Parameter Validation warrnings for getBrands");
|
|
661
|
+
console.log(warrning);
|
|
662
|
+
}
|
|
663
|
+
|
|
528
664
|
const query_params = {};
|
|
529
665
|
query_params["department"] = department;
|
|
530
666
|
query_params["page_no"] = pageNo;
|
|
@@ -593,6 +729,19 @@ class Catalog {
|
|
|
593
729
|
if (error) {
|
|
594
730
|
return Promise.reject(new FDKClientValidationError(error));
|
|
595
731
|
}
|
|
732
|
+
|
|
733
|
+
// Showing warrnings if extra unknown parameters are found
|
|
734
|
+
const {
|
|
735
|
+
error: warrning,
|
|
736
|
+
} = CatalogValidator.getBrandDetailBySlug().validate(
|
|
737
|
+
{ slug },
|
|
738
|
+
{ abortEarly: false, allowUnknown: false }
|
|
739
|
+
);
|
|
740
|
+
if (warrning) {
|
|
741
|
+
console.log("Parameter Validation warrnings for getBrandDetailBySlug");
|
|
742
|
+
console.log(warrning);
|
|
743
|
+
}
|
|
744
|
+
|
|
596
745
|
const query_params = {};
|
|
597
746
|
|
|
598
747
|
const xHeaders = {};
|
|
@@ -628,6 +777,17 @@ class Catalog {
|
|
|
628
777
|
if (error) {
|
|
629
778
|
return Promise.reject(new FDKClientValidationError(error));
|
|
630
779
|
}
|
|
780
|
+
|
|
781
|
+
// Showing warrnings if extra unknown parameters are found
|
|
782
|
+
const { error: warrning } = CatalogValidator.getCategories().validate(
|
|
783
|
+
{ department },
|
|
784
|
+
{ abortEarly: false, allowUnknown: false }
|
|
785
|
+
);
|
|
786
|
+
if (warrning) {
|
|
787
|
+
console.log("Parameter Validation warrnings for getCategories");
|
|
788
|
+
console.log(warrning);
|
|
789
|
+
}
|
|
790
|
+
|
|
631
791
|
const query_params = {};
|
|
632
792
|
query_params["department"] = department;
|
|
633
793
|
|
|
@@ -663,6 +823,19 @@ class Catalog {
|
|
|
663
823
|
if (error) {
|
|
664
824
|
return Promise.reject(new FDKClientValidationError(error));
|
|
665
825
|
}
|
|
826
|
+
|
|
827
|
+
// Showing warrnings if extra unknown parameters are found
|
|
828
|
+
const {
|
|
829
|
+
error: warrning,
|
|
830
|
+
} = CatalogValidator.getCategoryDetailBySlug().validate(
|
|
831
|
+
{ slug },
|
|
832
|
+
{ abortEarly: false, allowUnknown: false }
|
|
833
|
+
);
|
|
834
|
+
if (warrning) {
|
|
835
|
+
console.log("Parameter Validation warrnings for getCategoryDetailBySlug");
|
|
836
|
+
console.log(warrning);
|
|
837
|
+
}
|
|
838
|
+
|
|
666
839
|
const query_params = {};
|
|
667
840
|
|
|
668
841
|
const xHeaders = {};
|
|
@@ -699,6 +872,17 @@ class Catalog {
|
|
|
699
872
|
if (error) {
|
|
700
873
|
return Promise.reject(new FDKClientValidationError(error));
|
|
701
874
|
}
|
|
875
|
+
|
|
876
|
+
// Showing warrnings if extra unknown parameters are found
|
|
877
|
+
const { error: warrning } = CatalogValidator.getHomeProducts().validate(
|
|
878
|
+
{ sortOn, pageId, pageSize },
|
|
879
|
+
{ abortEarly: false, allowUnknown: false }
|
|
880
|
+
);
|
|
881
|
+
if (warrning) {
|
|
882
|
+
console.log("Parameter Validation warrnings for getHomeProducts");
|
|
883
|
+
console.log(warrning);
|
|
884
|
+
}
|
|
885
|
+
|
|
702
886
|
const query_params = {};
|
|
703
887
|
query_params["sort_on"] = sortOn;
|
|
704
888
|
query_params["page_id"] = pageId;
|
|
@@ -763,6 +947,17 @@ class Catalog {
|
|
|
763
947
|
if (error) {
|
|
764
948
|
return Promise.reject(new FDKClientValidationError(error));
|
|
765
949
|
}
|
|
950
|
+
|
|
951
|
+
// Showing warrnings if extra unknown parameters are found
|
|
952
|
+
const { error: warrning } = CatalogValidator.getDepartments().validate(
|
|
953
|
+
{},
|
|
954
|
+
{ abortEarly: false, allowUnknown: false }
|
|
955
|
+
);
|
|
956
|
+
if (warrning) {
|
|
957
|
+
console.log("Parameter Validation warrnings for getDepartments");
|
|
958
|
+
console.log(warrning);
|
|
959
|
+
}
|
|
960
|
+
|
|
766
961
|
const query_params = {};
|
|
767
962
|
|
|
768
963
|
const xHeaders = {};
|
|
@@ -798,6 +993,17 @@ class Catalog {
|
|
|
798
993
|
if (error) {
|
|
799
994
|
return Promise.reject(new FDKClientValidationError(error));
|
|
800
995
|
}
|
|
996
|
+
|
|
997
|
+
// Showing warrnings if extra unknown parameters are found
|
|
998
|
+
const { error: warrning } = CatalogValidator.getSearchResults().validate(
|
|
999
|
+
{ q },
|
|
1000
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1001
|
+
);
|
|
1002
|
+
if (warrning) {
|
|
1003
|
+
console.log("Parameter Validation warrnings for getSearchResults");
|
|
1004
|
+
console.log(warrning);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
801
1007
|
const query_params = {};
|
|
802
1008
|
query_params["q"] = q;
|
|
803
1009
|
|
|
@@ -834,6 +1040,17 @@ class Catalog {
|
|
|
834
1040
|
if (error) {
|
|
835
1041
|
return Promise.reject(new FDKClientValidationError(error));
|
|
836
1042
|
}
|
|
1043
|
+
|
|
1044
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1045
|
+
const { error: warrning } = CatalogValidator.getCollections().validate(
|
|
1046
|
+
{ pageNo, pageSize, tag },
|
|
1047
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1048
|
+
);
|
|
1049
|
+
if (warrning) {
|
|
1050
|
+
console.log("Parameter Validation warrnings for getCollections");
|
|
1051
|
+
console.log(warrning);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
837
1054
|
const query_params = {};
|
|
838
1055
|
query_params["page_no"] = pageNo;
|
|
839
1056
|
query_params["page_size"] = pageSize;
|
|
@@ -917,6 +1134,21 @@ class Catalog {
|
|
|
917
1134
|
if (error) {
|
|
918
1135
|
return Promise.reject(new FDKClientValidationError(error));
|
|
919
1136
|
}
|
|
1137
|
+
|
|
1138
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1139
|
+
const {
|
|
1140
|
+
error: warrning,
|
|
1141
|
+
} = CatalogValidator.getCollectionItemsBySlug().validate(
|
|
1142
|
+
{ slug, f, filters, sortOn, pageId, pageSize },
|
|
1143
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1144
|
+
);
|
|
1145
|
+
if (warrning) {
|
|
1146
|
+
console.log(
|
|
1147
|
+
"Parameter Validation warrnings for getCollectionItemsBySlug"
|
|
1148
|
+
);
|
|
1149
|
+
console.log(warrning);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
920
1152
|
const query_params = {};
|
|
921
1153
|
query_params["f"] = f;
|
|
922
1154
|
query_params["filters"] = filters;
|
|
@@ -1004,6 +1236,21 @@ class Catalog {
|
|
|
1004
1236
|
if (error) {
|
|
1005
1237
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1006
1238
|
}
|
|
1239
|
+
|
|
1240
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1241
|
+
const {
|
|
1242
|
+
error: warrning,
|
|
1243
|
+
} = CatalogValidator.getCollectionDetailBySlug().validate(
|
|
1244
|
+
{ slug },
|
|
1245
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1246
|
+
);
|
|
1247
|
+
if (warrning) {
|
|
1248
|
+
console.log(
|
|
1249
|
+
"Parameter Validation warrnings for getCollectionDetailBySlug"
|
|
1250
|
+
);
|
|
1251
|
+
console.log(warrning);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1007
1254
|
const query_params = {};
|
|
1008
1255
|
|
|
1009
1256
|
const xHeaders = {};
|
|
@@ -1039,6 +1286,17 @@ class Catalog {
|
|
|
1039
1286
|
if (error) {
|
|
1040
1287
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1041
1288
|
}
|
|
1289
|
+
|
|
1290
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1291
|
+
const { error: warrning } = CatalogValidator.getFollowedListing().validate(
|
|
1292
|
+
{ collectionType, pageId, pageSize },
|
|
1293
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1294
|
+
);
|
|
1295
|
+
if (warrning) {
|
|
1296
|
+
console.log("Parameter Validation warrnings for getFollowedListing");
|
|
1297
|
+
console.log(warrning);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1042
1300
|
const query_params = {};
|
|
1043
1301
|
query_params["page_id"] = pageId;
|
|
1044
1302
|
query_params["page_size"] = pageSize;
|
|
@@ -1104,6 +1362,17 @@ class Catalog {
|
|
|
1104
1362
|
if (error) {
|
|
1105
1363
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1106
1364
|
}
|
|
1365
|
+
|
|
1366
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1367
|
+
const { error: warrning } = CatalogValidator.followById().validate(
|
|
1368
|
+
{ collectionType, collectionId },
|
|
1369
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1370
|
+
);
|
|
1371
|
+
if (warrning) {
|
|
1372
|
+
console.log("Parameter Validation warrnings for followById");
|
|
1373
|
+
console.log(warrning);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1107
1376
|
const query_params = {};
|
|
1108
1377
|
|
|
1109
1378
|
const xHeaders = {};
|
|
@@ -1138,6 +1407,17 @@ class Catalog {
|
|
|
1138
1407
|
if (error) {
|
|
1139
1408
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1140
1409
|
}
|
|
1410
|
+
|
|
1411
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1412
|
+
const { error: warrning } = CatalogValidator.unfollowById().validate(
|
|
1413
|
+
{ collectionType, collectionId },
|
|
1414
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1415
|
+
);
|
|
1416
|
+
if (warrning) {
|
|
1417
|
+
console.log("Parameter Validation warrnings for unfollowById");
|
|
1418
|
+
console.log(warrning);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1141
1421
|
const query_params = {};
|
|
1142
1422
|
|
|
1143
1423
|
const xHeaders = {};
|
|
@@ -1172,6 +1452,19 @@ class Catalog {
|
|
|
1172
1452
|
if (error) {
|
|
1173
1453
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1174
1454
|
}
|
|
1455
|
+
|
|
1456
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1457
|
+
const {
|
|
1458
|
+
error: warrning,
|
|
1459
|
+
} = CatalogValidator.getFollowerCountById().validate(
|
|
1460
|
+
{ collectionType, collectionId },
|
|
1461
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1462
|
+
);
|
|
1463
|
+
if (warrning) {
|
|
1464
|
+
console.log("Parameter Validation warrnings for getFollowerCountById");
|
|
1465
|
+
console.log(warrning);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1175
1468
|
const query_params = {};
|
|
1176
1469
|
|
|
1177
1470
|
const xHeaders = {};
|
|
@@ -1205,6 +1498,17 @@ class Catalog {
|
|
|
1205
1498
|
if (error) {
|
|
1206
1499
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1207
1500
|
}
|
|
1501
|
+
|
|
1502
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1503
|
+
const { error: warrning } = CatalogValidator.getFollowIds().validate(
|
|
1504
|
+
{ collectionType },
|
|
1505
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1506
|
+
);
|
|
1507
|
+
if (warrning) {
|
|
1508
|
+
console.log("Parameter Validation warrnings for getFollowIds");
|
|
1509
|
+
console.log(warrning);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1208
1512
|
const query_params = {};
|
|
1209
1513
|
query_params["collection_type"] = collectionType;
|
|
1210
1514
|
|
|
@@ -1248,6 +1552,17 @@ class Catalog {
|
|
|
1248
1552
|
if (error) {
|
|
1249
1553
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1250
1554
|
}
|
|
1555
|
+
|
|
1556
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1557
|
+
const { error: warrning } = CatalogValidator.getStores().validate(
|
|
1558
|
+
{ pageNo, pageSize, q, city, range, latitude, longitude },
|
|
1559
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1560
|
+
);
|
|
1561
|
+
if (warrning) {
|
|
1562
|
+
console.log("Parameter Validation warrnings for getStores");
|
|
1563
|
+
console.log(warrning);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1251
1566
|
const query_params = {};
|
|
1252
1567
|
query_params["page_no"] = pageNo;
|
|
1253
1568
|
query_params["page_size"] = pageSize;
|
|
@@ -1344,6 +1659,17 @@ class Catalog {
|
|
|
1344
1659
|
if (error) {
|
|
1345
1660
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1346
1661
|
}
|
|
1662
|
+
|
|
1663
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1664
|
+
const { error: warrning } = CatalogValidator.getInStockLocations().validate(
|
|
1665
|
+
{ pageNo, pageSize, q, city, range, latitude, longitude },
|
|
1666
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1667
|
+
);
|
|
1668
|
+
if (warrning) {
|
|
1669
|
+
console.log("Parameter Validation warrnings for getInStockLocations");
|
|
1670
|
+
console.log(warrning);
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1347
1673
|
const query_params = {};
|
|
1348
1674
|
query_params["page_no"] = pageNo;
|
|
1349
1675
|
query_params["page_size"] = pageSize;
|
|
@@ -1429,6 +1755,19 @@ class Catalog {
|
|
|
1429
1755
|
if (error) {
|
|
1430
1756
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1431
1757
|
}
|
|
1758
|
+
|
|
1759
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1760
|
+
const {
|
|
1761
|
+
error: warrning,
|
|
1762
|
+
} = CatalogValidator.getLocationDetailsById().validate(
|
|
1763
|
+
{ locationId },
|
|
1764
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1765
|
+
);
|
|
1766
|
+
if (warrning) {
|
|
1767
|
+
console.log("Parameter Validation warrnings for getLocationDetailsById");
|
|
1768
|
+
console.log(warrning);
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1432
1771
|
const query_params = {};
|
|
1433
1772
|
|
|
1434
1773
|
const xHeaders = {};
|
|
@@ -1462,6 +1801,19 @@ class Catalog {
|
|
|
1462
1801
|
if (error) {
|
|
1463
1802
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1464
1803
|
}
|
|
1804
|
+
|
|
1805
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1806
|
+
const {
|
|
1807
|
+
error: warrning,
|
|
1808
|
+
} = CatalogValidator.getProductBundlesBySlug().validate(
|
|
1809
|
+
{ slug, id },
|
|
1810
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1811
|
+
);
|
|
1812
|
+
if (warrning) {
|
|
1813
|
+
console.log("Parameter Validation warrnings for getProductBundlesBySlug");
|
|
1814
|
+
console.log(warrning);
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1465
1817
|
const query_params = {};
|
|
1466
1818
|
query_params["slug"] = slug;
|
|
1467
1819
|
query_params["id"] = id;
|
|
@@ -1507,6 +1859,19 @@ class Catalog {
|
|
|
1507
1859
|
if (error) {
|
|
1508
1860
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1509
1861
|
}
|
|
1862
|
+
|
|
1863
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1864
|
+
const {
|
|
1865
|
+
error: warrning,
|
|
1866
|
+
} = CatalogValidator.getProductPriceBySlug().validate(
|
|
1867
|
+
{ slug, size, storeId, pincode, moq },
|
|
1868
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1869
|
+
);
|
|
1870
|
+
if (warrning) {
|
|
1871
|
+
console.log("Parameter Validation warrnings for getProductPriceBySlug");
|
|
1872
|
+
console.log(warrning);
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1510
1875
|
const query_params = {};
|
|
1511
1876
|
query_params["store_id"] = storeId;
|
|
1512
1877
|
query_params["pincode"] = pincode;
|
|
@@ -1561,6 +1926,19 @@ class Catalog {
|
|
|
1561
1926
|
if (error) {
|
|
1562
1927
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1563
1928
|
}
|
|
1929
|
+
|
|
1930
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1931
|
+
const {
|
|
1932
|
+
error: warrning,
|
|
1933
|
+
} = CatalogValidator.getProductSellersBySlug().validate(
|
|
1934
|
+
{ slug, size, pincode, strategy, pageNo, pageSize },
|
|
1935
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1936
|
+
);
|
|
1937
|
+
if (warrning) {
|
|
1938
|
+
console.log("Parameter Validation warrnings for getProductSellersBySlug");
|
|
1939
|
+
console.log(warrning);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1564
1942
|
const query_params = {};
|
|
1565
1943
|
query_params["pincode"] = pincode;
|
|
1566
1944
|
query_params["strategy"] = strategy;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export = CatalogModel;
|
|
2
2
|
declare class CatalogModel {
|
|
3
|
-
static ApplicationItemMOQ(): any;
|
|
4
|
-
static Meta(): any;
|
|
5
|
-
static Media(): any;
|
|
6
3
|
static ProductListingActionPage(): any;
|
|
7
4
|
static ProductListingAction(): any;
|
|
5
|
+
static Meta(): any;
|
|
6
|
+
static Media(): any;
|
|
8
7
|
static ProductBrand(): any;
|
|
8
|
+
static NetQuantity(): any;
|
|
9
9
|
static ProductCategoryMap(): any;
|
|
10
|
-
static
|
|
10
|
+
static ApplicationItemSEO(): any;
|
|
11
11
|
static ProductDetailAttribute(): any;
|
|
12
12
|
static ProductDetailGroupedAttribute(): any;
|
|
13
13
|
static Price(): any;
|
|
14
14
|
static ProductListingPrice(): any;
|
|
15
|
-
static
|
|
16
|
-
static
|
|
15
|
+
static CustomMetaFields(): any;
|
|
16
|
+
static ApplicationItemMOQ(): any;
|
|
17
17
|
static ProductDetail(): any;
|
|
18
18
|
static ErrorResponse(): any;
|
|
19
|
-
static ProductSizeStores(): any;
|
|
20
19
|
static Dimension(): any;
|
|
21
20
|
static Weight(): any;
|
|
22
21
|
static ProductSize(): any;
|
|
22
|
+
static ProductSizeStores(): any;
|
|
23
23
|
static ColumnHeader(): any;
|
|
24
24
|
static ColumnHeaders(): any;
|
|
25
25
|
static SizeChartValues(): any;
|
|
@@ -33,18 +33,18 @@ declare class CatalogModel {
|
|
|
33
33
|
static ProductVariantItemResponse(): any;
|
|
34
34
|
static ProductVariantResponse(): any;
|
|
35
35
|
static ProductVariantsResponse(): any;
|
|
36
|
-
static CompanyDetail(): any;
|
|
37
36
|
static ProductStockPrice(): any;
|
|
38
|
-
static Seller(): any;
|
|
39
37
|
static StoreDetail(): any;
|
|
38
|
+
static Seller(): any;
|
|
39
|
+
static CompanyDetail(): any;
|
|
40
40
|
static ProductStockStatusItem(): any;
|
|
41
41
|
static ProductStockStatusResponse(): any;
|
|
42
42
|
static Page(): any;
|
|
43
43
|
static ProductStockPolling(): any;
|
|
44
|
-
static
|
|
44
|
+
static ProductSortOn(): any;
|
|
45
45
|
static ProductFiltersKey(): any;
|
|
46
|
+
static ProductFiltersValue(): any;
|
|
46
47
|
static ProductFilters(): any;
|
|
47
|
-
static ProductSortOn(): any;
|
|
48
48
|
static ProductVariantListingResponse(): any;
|
|
49
49
|
static ProductListingDetail(): any;
|
|
50
50
|
static ProductListingResponse(): any;
|
|
@@ -99,18 +99,18 @@ declare class CatalogModel {
|
|
|
99
99
|
static ProductGroupingModel(): any;
|
|
100
100
|
static ProductBundle(): any;
|
|
101
101
|
static StrategyWiseListingSchemaV3(): any;
|
|
102
|
-
static
|
|
102
|
+
static ArticleAssignmentV3(): any;
|
|
103
|
+
static ReturnConfigSchemaV3(): any;
|
|
104
|
+
static DetailsSchemaV3(): any;
|
|
105
|
+
static SellerGroupAttributes(): any;
|
|
103
106
|
static StoreV3(): any;
|
|
107
|
+
static ProductStockUnitPriceV3(): any;
|
|
104
108
|
static ProductSetDistributionSizeV3(): any;
|
|
105
109
|
static ProductSetDistributionV3(): any;
|
|
106
110
|
static ProductSetV3(): any;
|
|
107
|
-
static ReturnConfigSchemaV3(): any;
|
|
108
111
|
static ProductStockPriceV3(): any;
|
|
109
|
-
static DetailsSchemaV3(): any;
|
|
110
|
-
static MarketPlaceSttributesSchemaV3(): any;
|
|
111
|
-
static SellerGroupAttributes(): any;
|
|
112
|
-
static ArticleAssignmentV3(): any;
|
|
113
112
|
static SellerV3(): any;
|
|
113
|
+
static MarketPlaceSttributesSchemaV3(): any;
|
|
114
114
|
static ProductSizePriceResponseV3(): any;
|
|
115
115
|
static ProductSizeSellerFilterSchemaV3(): any;
|
|
116
116
|
static ProductSizeSellersResponseV3(): any;
|