@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
|
@@ -49,6 +49,25 @@ class Cart {
|
|
|
49
49
|
return Promise.reject(new FDKClientValidationError(error));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
// Showing warrnings if extra unknown parameters are found
|
|
53
|
+
const { error: warrning } = CartValidator.getCoupons().validate(
|
|
54
|
+
{
|
|
55
|
+
pageNo,
|
|
56
|
+
pageSize,
|
|
57
|
+
isArchived,
|
|
58
|
+
title,
|
|
59
|
+
isPublic,
|
|
60
|
+
isDisplay,
|
|
61
|
+
typeSlug,
|
|
62
|
+
code,
|
|
63
|
+
},
|
|
64
|
+
{ abortEarly: false, allowUnknown: false }
|
|
65
|
+
);
|
|
66
|
+
if (warrning) {
|
|
67
|
+
console.log("Parameter Validation warrnings for getCoupons");
|
|
68
|
+
console.log(warrning);
|
|
69
|
+
}
|
|
70
|
+
|
|
52
71
|
const query_params = {};
|
|
53
72
|
query_params["page_no"] = pageNo;
|
|
54
73
|
query_params["page_size"] = pageSize;
|
|
@@ -137,6 +156,18 @@ class Cart {
|
|
|
137
156
|
return Promise.reject(new FDKClientValidationError(error));
|
|
138
157
|
}
|
|
139
158
|
|
|
159
|
+
// Showing warrnings if extra unknown parameters are found
|
|
160
|
+
const { error: warrning } = CartValidator.createCoupon().validate(
|
|
161
|
+
{
|
|
162
|
+
body,
|
|
163
|
+
},
|
|
164
|
+
{ abortEarly: false, allowUnknown: false }
|
|
165
|
+
);
|
|
166
|
+
if (warrning) {
|
|
167
|
+
console.log("Parameter Validation warrnings for createCoupon");
|
|
168
|
+
console.log(warrning);
|
|
169
|
+
}
|
|
170
|
+
|
|
140
171
|
const query_params = {};
|
|
141
172
|
|
|
142
173
|
return PlatformAPIClient.execute(
|
|
@@ -165,6 +196,18 @@ class Cart {
|
|
|
165
196
|
return Promise.reject(new FDKClientValidationError(error));
|
|
166
197
|
}
|
|
167
198
|
|
|
199
|
+
// Showing warrnings if extra unknown parameters are found
|
|
200
|
+
const { error: warrning } = CartValidator.getCouponById().validate(
|
|
201
|
+
{
|
|
202
|
+
id,
|
|
203
|
+
},
|
|
204
|
+
{ abortEarly: false, allowUnknown: false }
|
|
205
|
+
);
|
|
206
|
+
if (warrning) {
|
|
207
|
+
console.log("Parameter Validation warrnings for getCouponById");
|
|
208
|
+
console.log(warrning);
|
|
209
|
+
}
|
|
210
|
+
|
|
168
211
|
const query_params = {};
|
|
169
212
|
|
|
170
213
|
return PlatformAPIClient.execute(
|
|
@@ -195,6 +238,19 @@ class Cart {
|
|
|
195
238
|
return Promise.reject(new FDKClientValidationError(error));
|
|
196
239
|
}
|
|
197
240
|
|
|
241
|
+
// Showing warrnings if extra unknown parameters are found
|
|
242
|
+
const { error: warrning } = CartValidator.updateCoupon().validate(
|
|
243
|
+
{
|
|
244
|
+
id,
|
|
245
|
+
body,
|
|
246
|
+
},
|
|
247
|
+
{ abortEarly: false, allowUnknown: false }
|
|
248
|
+
);
|
|
249
|
+
if (warrning) {
|
|
250
|
+
console.log("Parameter Validation warrnings for updateCoupon");
|
|
251
|
+
console.log(warrning);
|
|
252
|
+
}
|
|
253
|
+
|
|
198
254
|
const query_params = {};
|
|
199
255
|
|
|
200
256
|
return PlatformAPIClient.execute(
|
|
@@ -225,6 +281,19 @@ class Cart {
|
|
|
225
281
|
return Promise.reject(new FDKClientValidationError(error));
|
|
226
282
|
}
|
|
227
283
|
|
|
284
|
+
// Showing warrnings if extra unknown parameters are found
|
|
285
|
+
const { error: warrning } = CartValidator.updateCouponPartially().validate(
|
|
286
|
+
{
|
|
287
|
+
id,
|
|
288
|
+
body,
|
|
289
|
+
},
|
|
290
|
+
{ abortEarly: false, allowUnknown: false }
|
|
291
|
+
);
|
|
292
|
+
if (warrning) {
|
|
293
|
+
console.log("Parameter Validation warrnings for updateCouponPartially");
|
|
294
|
+
console.log(warrning);
|
|
295
|
+
}
|
|
296
|
+
|
|
228
297
|
const query_params = {};
|
|
229
298
|
|
|
230
299
|
return PlatformAPIClient.execute(
|
|
@@ -276,6 +345,25 @@ class Cart {
|
|
|
276
345
|
return Promise.reject(new FDKClientValidationError(error));
|
|
277
346
|
}
|
|
278
347
|
|
|
348
|
+
// Showing warrnings if extra unknown parameters are found
|
|
349
|
+
const { error: warrning } = CartValidator.getPromotions().validate(
|
|
350
|
+
{
|
|
351
|
+
pageNo,
|
|
352
|
+
pageSize,
|
|
353
|
+
q,
|
|
354
|
+
isActive,
|
|
355
|
+
promoGroup,
|
|
356
|
+
promotionType,
|
|
357
|
+
fpPanel,
|
|
358
|
+
promotionId,
|
|
359
|
+
},
|
|
360
|
+
{ abortEarly: false, allowUnknown: false }
|
|
361
|
+
);
|
|
362
|
+
if (warrning) {
|
|
363
|
+
console.log("Parameter Validation warrnings for getPromotions");
|
|
364
|
+
console.log(warrning);
|
|
365
|
+
}
|
|
366
|
+
|
|
279
367
|
const query_params = {};
|
|
280
368
|
query_params["page_no"] = pageNo;
|
|
281
369
|
query_params["page_size"] = pageSize;
|
|
@@ -364,6 +452,18 @@ class Cart {
|
|
|
364
452
|
return Promise.reject(new FDKClientValidationError(error));
|
|
365
453
|
}
|
|
366
454
|
|
|
455
|
+
// Showing warrnings if extra unknown parameters are found
|
|
456
|
+
const { error: warrning } = CartValidator.createPromotion().validate(
|
|
457
|
+
{
|
|
458
|
+
body,
|
|
459
|
+
},
|
|
460
|
+
{ abortEarly: false, allowUnknown: false }
|
|
461
|
+
);
|
|
462
|
+
if (warrning) {
|
|
463
|
+
console.log("Parameter Validation warrnings for createPromotion");
|
|
464
|
+
console.log(warrning);
|
|
465
|
+
}
|
|
466
|
+
|
|
367
467
|
const query_params = {};
|
|
368
468
|
|
|
369
469
|
return PlatformAPIClient.execute(
|
|
@@ -392,6 +492,18 @@ class Cart {
|
|
|
392
492
|
return Promise.reject(new FDKClientValidationError(error));
|
|
393
493
|
}
|
|
394
494
|
|
|
495
|
+
// Showing warrnings if extra unknown parameters are found
|
|
496
|
+
const { error: warrning } = CartValidator.getPromotionById().validate(
|
|
497
|
+
{
|
|
498
|
+
id,
|
|
499
|
+
},
|
|
500
|
+
{ abortEarly: false, allowUnknown: false }
|
|
501
|
+
);
|
|
502
|
+
if (warrning) {
|
|
503
|
+
console.log("Parameter Validation warrnings for getPromotionById");
|
|
504
|
+
console.log(warrning);
|
|
505
|
+
}
|
|
506
|
+
|
|
395
507
|
const query_params = {};
|
|
396
508
|
|
|
397
509
|
return PlatformAPIClient.execute(
|
|
@@ -422,6 +534,19 @@ class Cart {
|
|
|
422
534
|
return Promise.reject(new FDKClientValidationError(error));
|
|
423
535
|
}
|
|
424
536
|
|
|
537
|
+
// Showing warrnings if extra unknown parameters are found
|
|
538
|
+
const { error: warrning } = CartValidator.updatePromotion().validate(
|
|
539
|
+
{
|
|
540
|
+
id,
|
|
541
|
+
body,
|
|
542
|
+
},
|
|
543
|
+
{ abortEarly: false, allowUnknown: false }
|
|
544
|
+
);
|
|
545
|
+
if (warrning) {
|
|
546
|
+
console.log("Parameter Validation warrnings for updatePromotion");
|
|
547
|
+
console.log(warrning);
|
|
548
|
+
}
|
|
549
|
+
|
|
425
550
|
const query_params = {};
|
|
426
551
|
|
|
427
552
|
return PlatformAPIClient.execute(
|
|
@@ -452,6 +577,23 @@ class Cart {
|
|
|
452
577
|
return Promise.reject(new FDKClientValidationError(error));
|
|
453
578
|
}
|
|
454
579
|
|
|
580
|
+
// Showing warrnings if extra unknown parameters are found
|
|
581
|
+
const {
|
|
582
|
+
error: warrning,
|
|
583
|
+
} = CartValidator.updatePromotionPartially().validate(
|
|
584
|
+
{
|
|
585
|
+
id,
|
|
586
|
+
body,
|
|
587
|
+
},
|
|
588
|
+
{ abortEarly: false, allowUnknown: false }
|
|
589
|
+
);
|
|
590
|
+
if (warrning) {
|
|
591
|
+
console.log(
|
|
592
|
+
"Parameter Validation warrnings for updatePromotionPartially"
|
|
593
|
+
);
|
|
594
|
+
console.log(warrning);
|
|
595
|
+
}
|
|
596
|
+
|
|
455
597
|
const query_params = {};
|
|
456
598
|
|
|
457
599
|
return PlatformAPIClient.execute(
|
|
@@ -480,6 +622,22 @@ class Cart {
|
|
|
480
622
|
return Promise.reject(new FDKClientValidationError(error));
|
|
481
623
|
}
|
|
482
624
|
|
|
625
|
+
// Showing warrnings if extra unknown parameters are found
|
|
626
|
+
const {
|
|
627
|
+
error: warrning,
|
|
628
|
+
} = CartValidator.fetchAndvalidateCartItems().validate(
|
|
629
|
+
{
|
|
630
|
+
body,
|
|
631
|
+
},
|
|
632
|
+
{ abortEarly: false, allowUnknown: false }
|
|
633
|
+
);
|
|
634
|
+
if (warrning) {
|
|
635
|
+
console.log(
|
|
636
|
+
"Parameter Validation warrnings for fetchAndvalidateCartItems"
|
|
637
|
+
);
|
|
638
|
+
console.log(warrning);
|
|
639
|
+
}
|
|
640
|
+
|
|
483
641
|
const query_params = {};
|
|
484
642
|
|
|
485
643
|
return PlatformAPIClient.execute(
|
|
@@ -508,6 +666,20 @@ class Cart {
|
|
|
508
666
|
return Promise.reject(new FDKClientValidationError(error));
|
|
509
667
|
}
|
|
510
668
|
|
|
669
|
+
// Showing warrnings if extra unknown parameters are found
|
|
670
|
+
const {
|
|
671
|
+
error: warrning,
|
|
672
|
+
} = CartValidator.checkCartServiceability().validate(
|
|
673
|
+
{
|
|
674
|
+
body,
|
|
675
|
+
},
|
|
676
|
+
{ abortEarly: false, allowUnknown: false }
|
|
677
|
+
);
|
|
678
|
+
if (warrning) {
|
|
679
|
+
console.log("Parameter Validation warrnings for checkCartServiceability");
|
|
680
|
+
console.log(warrning);
|
|
681
|
+
}
|
|
682
|
+
|
|
511
683
|
const query_params = {};
|
|
512
684
|
|
|
513
685
|
return PlatformAPIClient.execute(
|
|
@@ -536,6 +708,18 @@ class Cart {
|
|
|
536
708
|
return Promise.reject(new FDKClientValidationError(error));
|
|
537
709
|
}
|
|
538
710
|
|
|
711
|
+
// Showing warrnings if extra unknown parameters are found
|
|
712
|
+
const { error: warrning } = CartValidator.checkoutCart().validate(
|
|
713
|
+
{
|
|
714
|
+
body,
|
|
715
|
+
},
|
|
716
|
+
{ abortEarly: false, allowUnknown: false }
|
|
717
|
+
);
|
|
718
|
+
if (warrning) {
|
|
719
|
+
console.log("Parameter Validation warrnings for checkoutCart");
|
|
720
|
+
console.log(warrning);
|
|
721
|
+
}
|
|
722
|
+
|
|
539
723
|
const query_params = {};
|
|
540
724
|
|
|
541
725
|
return PlatformAPIClient.execute(
|
|
@@ -584,6 +768,24 @@ class Cart {
|
|
|
584
768
|
return Promise.reject(new FDKClientValidationError(error));
|
|
585
769
|
}
|
|
586
770
|
|
|
771
|
+
// Showing warrnings if extra unknown parameters are found
|
|
772
|
+
const { error: warrning } = CartValidator.getAbandonedCart().validate(
|
|
773
|
+
{
|
|
774
|
+
pageNo,
|
|
775
|
+
pageSize,
|
|
776
|
+
fromDate,
|
|
777
|
+
toDate,
|
|
778
|
+
anonymousCart,
|
|
779
|
+
lastId,
|
|
780
|
+
sortOn,
|
|
781
|
+
},
|
|
782
|
+
{ abortEarly: false, allowUnknown: false }
|
|
783
|
+
);
|
|
784
|
+
if (warrning) {
|
|
785
|
+
console.log("Parameter Validation warrnings for getAbandonedCart");
|
|
786
|
+
console.log(warrning);
|
|
787
|
+
}
|
|
788
|
+
|
|
587
789
|
const query_params = {};
|
|
588
790
|
query_params["page_no"] = pageNo;
|
|
589
791
|
query_params["page_size"] = pageSize;
|
|
@@ -672,6 +874,22 @@ class Cart {
|
|
|
672
874
|
return Promise.reject(new FDKClientValidationError(error));
|
|
673
875
|
}
|
|
674
876
|
|
|
877
|
+
// Showing warrnings if extra unknown parameters are found
|
|
878
|
+
const {
|
|
879
|
+
error: warrning,
|
|
880
|
+
} = CartValidator.getAbandonedCartDetails().validate(
|
|
881
|
+
{
|
|
882
|
+
id,
|
|
883
|
+
i,
|
|
884
|
+
b,
|
|
885
|
+
},
|
|
886
|
+
{ abortEarly: false, allowUnknown: false }
|
|
887
|
+
);
|
|
888
|
+
if (warrning) {
|
|
889
|
+
console.log("Parameter Validation warrnings for getAbandonedCartDetails");
|
|
890
|
+
console.log(warrning);
|
|
891
|
+
}
|
|
892
|
+
|
|
675
893
|
const query_params = {};
|
|
676
894
|
query_params["id"] = id;
|
|
677
895
|
query_params["i"] = i;
|
|
@@ -707,6 +925,20 @@ class Cart {
|
|
|
707
925
|
return Promise.reject(new FDKClientValidationError(error));
|
|
708
926
|
}
|
|
709
927
|
|
|
928
|
+
// Showing warrnings if extra unknown parameters are found
|
|
929
|
+
const { error: warrning } = CartValidator.addItems().validate(
|
|
930
|
+
{
|
|
931
|
+
cartId,
|
|
932
|
+
body,
|
|
933
|
+
b,
|
|
934
|
+
},
|
|
935
|
+
{ abortEarly: false, allowUnknown: false }
|
|
936
|
+
);
|
|
937
|
+
if (warrning) {
|
|
938
|
+
console.log("Parameter Validation warrnings for addItems");
|
|
939
|
+
console.log(warrning);
|
|
940
|
+
}
|
|
941
|
+
|
|
710
942
|
const query_params = {};
|
|
711
943
|
query_params["b"] = b;
|
|
712
944
|
|
|
@@ -740,6 +972,20 @@ class Cart {
|
|
|
740
972
|
return Promise.reject(new FDKClientValidationError(error));
|
|
741
973
|
}
|
|
742
974
|
|
|
975
|
+
// Showing warrnings if extra unknown parameters are found
|
|
976
|
+
const { error: warrning } = CartValidator.updateCart().validate(
|
|
977
|
+
{
|
|
978
|
+
cartId,
|
|
979
|
+
body,
|
|
980
|
+
b,
|
|
981
|
+
},
|
|
982
|
+
{ abortEarly: false, allowUnknown: false }
|
|
983
|
+
);
|
|
984
|
+
if (warrning) {
|
|
985
|
+
console.log("Parameter Validation warrnings for updateCart");
|
|
986
|
+
console.log(warrning);
|
|
987
|
+
}
|
|
988
|
+
|
|
743
989
|
const query_params = {};
|
|
744
990
|
query_params["b"] = b;
|
|
745
991
|
|
|
@@ -6,24 +6,24 @@ declare class Catalog {
|
|
|
6
6
|
/**
|
|
7
7
|
* @param {Object} arg - Arg object.
|
|
8
8
|
* @param {string} arg.id - A `id` is a unique identifier for a particular
|
|
9
|
-
* detail. Pass the `id` of the keywords which you want to
|
|
10
|
-
* @
|
|
11
|
-
* @
|
|
12
|
-
* @description: Update Search Keyword by its id. On successful request, returns the updated collection
|
|
9
|
+
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
10
|
+
* @summary: Get a Search Keywords Details
|
|
11
|
+
* @description: Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema`
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
getSearchKeywords({ id }?: {
|
|
15
14
|
id: string;
|
|
16
|
-
body: CreateSearchKeyword;
|
|
17
15
|
}): Promise<any>;
|
|
18
16
|
/**
|
|
19
17
|
* @param {Object} arg - Arg object.
|
|
20
18
|
* @param {string} arg.id - A `id` is a unique identifier for a particular
|
|
21
|
-
* detail. Pass the `id` of the keywords which you want to
|
|
22
|
-
* @
|
|
23
|
-
* @
|
|
19
|
+
* detail. Pass the `id` of the keywords which you want to delete.
|
|
20
|
+
* @param {CreateSearchKeyword} arg.body
|
|
21
|
+
* @summary: Update Search Keyword
|
|
22
|
+
* @description: Update Search Keyword by its id. On successful request, returns the updated collection
|
|
24
23
|
*/
|
|
25
|
-
|
|
24
|
+
updateSearchKeywords({ id, body }?: {
|
|
26
25
|
id: string;
|
|
26
|
+
body: CreateSearchKeyword;
|
|
27
27
|
}): Promise<any>;
|
|
28
28
|
/**
|
|
29
29
|
* @param {Object} arg - Arg object.
|
|
@@ -53,24 +53,24 @@ declare class Catalog {
|
|
|
53
53
|
/**
|
|
54
54
|
* @param {Object} arg - Arg object.
|
|
55
55
|
* @param {string} arg.id - A `id` is a unique identifier for a particular
|
|
56
|
-
* detail. Pass the `id` of the keywords which you want to
|
|
57
|
-
* @
|
|
58
|
-
* @
|
|
59
|
-
* @description: Update a mapping by it's id. On successful request, returns the updated Keyword mapping
|
|
56
|
+
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
57
|
+
* @summary: Get a Autocomplete Keywords Details
|
|
58
|
+
* @description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema`
|
|
60
59
|
*/
|
|
61
|
-
|
|
60
|
+
getAutocompleteKeywordDetail({ id }?: {
|
|
62
61
|
id: string;
|
|
63
|
-
body: CreateAutocompleteKeyword;
|
|
64
62
|
}): Promise<any>;
|
|
65
63
|
/**
|
|
66
64
|
* @param {Object} arg - Arg object.
|
|
67
65
|
* @param {string} arg.id - A `id` is a unique identifier for a particular
|
|
68
|
-
* detail. Pass the `id` of the keywords which you want to
|
|
69
|
-
* @
|
|
70
|
-
* @
|
|
66
|
+
* detail. Pass the `id` of the keywords which you want to delete.
|
|
67
|
+
* @param {CreateAutocompleteKeyword} arg.body
|
|
68
|
+
* @summary: Create & Update Autocomplete Keyword
|
|
69
|
+
* @description: Update a mapping by it's id. On successful request, returns the updated Keyword mapping
|
|
71
70
|
*/
|
|
72
|
-
|
|
71
|
+
updateAutocompleteKeyword({ id, body }?: {
|
|
73
72
|
id: string;
|
|
73
|
+
body: CreateAutocompleteKeyword;
|
|
74
74
|
}): Promise<any>;
|
|
75
75
|
/**
|
|
76
76
|
* @param {Object} arg - Arg object.
|
|
@@ -97,6 +97,15 @@ declare class Catalog {
|
|
|
97
97
|
createCustomAutocompleteRule({ body }?: {
|
|
98
98
|
body: CreateAutocompleteKeyword;
|
|
99
99
|
}): Promise<any>;
|
|
100
|
+
/**
|
|
101
|
+
* @param {Object} arg - Arg object.
|
|
102
|
+
* @param {string} arg.itemId - Product id for a particular product.
|
|
103
|
+
* @summary: Get company application product data.
|
|
104
|
+
* @description: Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent.
|
|
105
|
+
*/
|
|
106
|
+
getAppProduct({ itemId }?: {
|
|
107
|
+
itemId: string;
|
|
108
|
+
}): Promise<any>;
|
|
100
109
|
/**
|
|
101
110
|
* @param {Object} arg - Arg object.
|
|
102
111
|
* @param {string} arg.itemId - Product id for which the custom_meta is associated.
|
|
@@ -108,15 +117,6 @@ declare class Catalog {
|
|
|
108
117
|
itemId: string;
|
|
109
118
|
body: ApplicationItemMeta;
|
|
110
119
|
}): Promise<any>;
|
|
111
|
-
/**
|
|
112
|
-
* @param {Object} arg - Arg object.
|
|
113
|
-
* @param {string} arg.itemId - Product id for a particular product.
|
|
114
|
-
* @summary: Get company application product data.
|
|
115
|
-
* @description: Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent.
|
|
116
|
-
*/
|
|
117
|
-
getAppProduct({ itemId }?: {
|
|
118
|
-
itemId: string;
|
|
119
|
-
}): Promise<any>;
|
|
120
120
|
/**
|
|
121
121
|
* @param {Object} arg - Arg object.
|
|
122
122
|
* @param {string} arg.configType - A `config_type` is an identifier that
|