@gofynd/fdk-client-javascript 3.23.0 → 3.24.0

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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +12 -12
  4. package/sdk/application/Cart/CartApplicationClient.js +119 -33
  5. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  6. package/sdk/application/Logistic/LogisticApplicationClient.js +4 -2
  7. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +17 -17
  8. package/sdk/platform/Cart/CartPlatformApplicationClient.js +84 -13
  9. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -0
  10. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +52 -0
  11. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +7 -2
  12. package/sdk/platform/Catalog/CatalogPlatformModel.js +5 -2
  13. package/sdk/platform/Common/CommonPlatformClient.js +1 -1
  14. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +96 -1
  15. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +61 -0
  16. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
  17. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
  18. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
  19. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
  20. package/sdk/platform/Order/OrderPlatformClient.d.ts +28 -0
  21. package/sdk/platform/Order/OrderPlatformClient.js +179 -3
  22. package/sdk/platform/Order/OrderPlatformModel.d.ts +155 -6
  23. package/sdk/platform/Order/OrderPlatformModel.js +105 -3
  24. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  25. package/sdk/platform/Order/OrderPlatformValidator.js +30 -0
  26. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +24 -1
  27. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +18 -0
  28. package/sdk/platform/User/UserPlatformModel.d.ts +14 -1
  29. package/sdk/platform/User/UserPlatformModel.js +16 -0
  30. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
@@ -266,6 +266,7 @@ class Cart {
266
266
  {
267
267
  body,
268
268
  xOrderingSource,
269
+ xOrderingSourceType,
269
270
  xAnonymousCart,
270
271
  i,
271
272
  b,
@@ -280,6 +281,7 @@ class Cart {
280
281
  {
281
282
  body,
282
283
  xOrderingSource,
284
+ xOrderingSourceType,
283
285
  xAnonymousCart,
284
286
  i,
285
287
  b,
@@ -300,6 +302,7 @@ class Cart {
300
302
  {
301
303
  body,
302
304
  xOrderingSource,
305
+ xOrderingSourceType,
303
306
  xAnonymousCart,
304
307
  i,
305
308
  b,
@@ -369,9 +372,16 @@ class Cart {
369
372
  * @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/applyLoyaltyPoints/).
370
373
  */
371
374
  async applyLoyaltyPoints(
372
- { body, xOrderingSource, id, i, b, buyNow, requestHeaders } = {
373
- requestHeaders: {},
374
- },
375
+ {
376
+ body,
377
+ xOrderingSource,
378
+ xOrderingSourceType,
379
+ id,
380
+ i,
381
+ b,
382
+ buyNow,
383
+ requestHeaders,
384
+ } = { requestHeaders: {} },
375
385
  { responseHeaders } = { responseHeaders: false }
376
386
  ) {
377
387
  const {
@@ -380,6 +390,7 @@ class Cart {
380
390
  {
381
391
  body,
382
392
  xOrderingSource,
393
+ xOrderingSourceType,
383
394
  id,
384
395
  i,
385
396
  b,
@@ -398,6 +409,7 @@ class Cart {
398
409
  {
399
410
  body,
400
411
  xOrderingSource,
412
+ xOrderingSourceType,
401
413
  id,
402
414
  i,
403
415
  b,
@@ -467,7 +479,9 @@ class Cart {
467
479
  * @description: Verify the serviceability of items in the cart at a specific pin code and ensure accurate delivery promises. System checks each item's availability and delivery feasibility, providing real-time information on serviceability and estimated delivery times. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/checkCartServiceability/).
468
480
  */
469
481
  async checkCartServiceability(
470
- { body, xOrderingSource, requestHeaders } = { requestHeaders: {} },
482
+ { body, xOrderingSource, xOrderingSourceType, requestHeaders } = {
483
+ requestHeaders: {},
484
+ },
471
485
  { responseHeaders } = { responseHeaders: false }
472
486
  ) {
473
487
  const {
@@ -476,6 +490,7 @@ class Cart {
476
490
  {
477
491
  body,
478
492
  xOrderingSource,
493
+ xOrderingSourceType,
479
494
  },
480
495
  { abortEarly: false, allowUnknown: true }
481
496
  );
@@ -490,6 +505,7 @@ class Cart {
490
505
  {
491
506
  body,
492
507
  xOrderingSource,
508
+ xOrderingSourceType,
493
509
  },
494
510
  { abortEarly: false, allowUnknown: false }
495
511
  );
@@ -551,6 +567,7 @@ class Cart {
551
567
  {
552
568
  body,
553
569
  xOrderingSource,
570
+ xOrderingSourceType,
554
571
  xAnonymousCart,
555
572
  xLocationDetail,
556
573
  xCurrencyCode,
@@ -562,6 +579,7 @@ class Cart {
562
579
  {
563
580
  body,
564
581
  xOrderingSource,
582
+ xOrderingSourceType,
565
583
  xAnonymousCart,
566
584
  xLocationDetail,
567
585
  xCurrencyCode,
@@ -579,6 +597,7 @@ class Cart {
579
597
  {
580
598
  body,
581
599
  xOrderingSource,
600
+ xOrderingSourceType,
582
601
  xAnonymousCart,
583
602
  xLocationDetail,
584
603
  xCurrencyCode,
@@ -1272,6 +1291,7 @@ class Cart {
1272
1291
  {
1273
1292
  body,
1274
1293
  xOrderingSource,
1294
+ xOrderingSourceType,
1275
1295
  xLocationDetail,
1276
1296
  xCurrencyCode,
1277
1297
  requestHeaders,
@@ -1284,6 +1304,7 @@ class Cart {
1284
1304
  {
1285
1305
  body,
1286
1306
  xOrderingSource,
1307
+ xOrderingSourceType,
1287
1308
  xLocationDetail,
1288
1309
  xCurrencyCode,
1289
1310
  },
@@ -1300,6 +1321,7 @@ class Cart {
1300
1321
  {
1301
1322
  body,
1302
1323
  xOrderingSource,
1324
+ xOrderingSourceType,
1303
1325
  xLocationDetail,
1304
1326
  xCurrencyCode,
1305
1327
  },
@@ -2023,6 +2045,7 @@ class Cart {
2023
2045
  async getCart(
2024
2046
  {
2025
2047
  xOrderingSource,
2048
+ xOrderingSourceType,
2026
2049
  xAnonymousCart,
2027
2050
  id,
2028
2051
  userId,
@@ -2038,6 +2061,7 @@ class Cart {
2038
2061
  const { error } = CartPlatformApplicationValidator.getCart().validate(
2039
2062
  {
2040
2063
  xOrderingSource,
2064
+ xOrderingSourceType,
2041
2065
  xAnonymousCart,
2042
2066
  id,
2043
2067
  userId,
@@ -2059,6 +2083,7 @@ class Cart {
2059
2083
  } = CartPlatformApplicationValidator.getCart().validate(
2060
2084
  {
2061
2085
  xOrderingSource,
2086
+ xOrderingSourceType,
2062
2087
  xAnonymousCart,
2063
2088
  id,
2064
2089
  userId,
@@ -3889,6 +3914,7 @@ class Cart {
3889
3914
  {
3890
3915
  body,
3891
3916
  xOrderingSource,
3917
+ xOrderingSourceType,
3892
3918
  xLocationDetail,
3893
3919
  xCurrencyCode,
3894
3920
  requestHeaders,
@@ -3899,6 +3925,7 @@ class Cart {
3899
3925
  {
3900
3926
  body,
3901
3927
  xOrderingSource,
3928
+ xOrderingSourceType,
3902
3929
  xLocationDetail,
3903
3930
  xCurrencyCode,
3904
3931
  },
@@ -3915,6 +3942,7 @@ class Cart {
3915
3942
  {
3916
3943
  body,
3917
3944
  xOrderingSource,
3945
+ xOrderingSourceType,
3918
3946
  xLocationDetail,
3919
3947
  xCurrencyCode,
3920
3948
  },
@@ -3978,6 +4006,7 @@ class Cart {
3978
4006
  {
3979
4007
  body,
3980
4008
  xOrderingSource,
4009
+ xOrderingSourceType,
3981
4010
  xAnonymousCart,
3982
4011
  i,
3983
4012
  b,
@@ -3995,6 +4024,7 @@ class Cart {
3995
4024
  {
3996
4025
  body,
3997
4026
  xOrderingSource,
4027
+ xOrderingSourceType,
3998
4028
  xAnonymousCart,
3999
4029
  i,
4000
4030
  b,
@@ -4016,6 +4046,7 @@ class Cart {
4016
4046
  {
4017
4047
  body,
4018
4048
  xOrderingSource,
4049
+ xOrderingSourceType,
4019
4050
  xAnonymousCart,
4020
4051
  i,
4021
4052
  b,
@@ -4089,9 +4120,14 @@ class Cart {
4089
4120
  * @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/platformCheckoutCart/).
4090
4121
  */
4091
4122
  async platformCheckoutCart(
4092
- { body, xOrderingSource, xAnonymousCart, id, requestHeaders } = {
4093
- requestHeaders: {},
4094
- },
4123
+ {
4124
+ body,
4125
+ xOrderingSource,
4126
+ xOrderingSourceType,
4127
+ xAnonymousCart,
4128
+ id,
4129
+ requestHeaders,
4130
+ } = { requestHeaders: {} },
4095
4131
  { responseHeaders } = { responseHeaders: false }
4096
4132
  ) {
4097
4133
  const {
@@ -4100,6 +4136,7 @@ class Cart {
4100
4136
  {
4101
4137
  body,
4102
4138
  xOrderingSource,
4139
+ xOrderingSourceType,
4103
4140
  xAnonymousCart,
4104
4141
  id,
4105
4142
  },
@@ -4116,6 +4153,7 @@ class Cart {
4116
4153
  {
4117
4154
  body,
4118
4155
  xOrderingSource,
4156
+ xOrderingSourceType,
4119
4157
  xAnonymousCart,
4120
4158
  id,
4121
4159
  },
@@ -4182,6 +4220,7 @@ class Cart {
4182
4220
  {
4183
4221
  body,
4184
4222
  xOrderingSource,
4223
+ xOrderingSourceType,
4185
4224
  xAnonymousCart,
4186
4225
  xLocationDetail,
4187
4226
  xCurrencyCode,
@@ -4196,6 +4235,7 @@ class Cart {
4196
4235
  {
4197
4236
  body,
4198
4237
  xOrderingSource,
4238
+ xOrderingSourceType,
4199
4239
  xAnonymousCart,
4200
4240
  xLocationDetail,
4201
4241
  xCurrencyCode,
@@ -4214,6 +4254,7 @@ class Cart {
4214
4254
  {
4215
4255
  body,
4216
4256
  xOrderingSource,
4257
+ xOrderingSourceType,
4217
4258
  xAnonymousCart,
4218
4259
  xLocationDetail,
4219
4260
  xCurrencyCode,
@@ -4280,6 +4321,7 @@ class Cart {
4280
4321
  {
4281
4322
  body,
4282
4323
  xOrderingSource,
4324
+ xOrderingSourceType,
4283
4325
  xAnonymousCart,
4284
4326
  id,
4285
4327
  i,
@@ -4297,6 +4339,7 @@ class Cart {
4297
4339
  {
4298
4340
  body,
4299
4341
  xOrderingSource,
4342
+ xOrderingSourceType,
4300
4343
  xAnonymousCart,
4301
4344
  id,
4302
4345
  i,
@@ -4318,6 +4361,7 @@ class Cart {
4318
4361
  {
4319
4362
  body,
4320
4363
  xOrderingSource,
4364
+ xOrderingSourceType,
4321
4365
  xAnonymousCart,
4322
4366
  id,
4323
4367
  i,
@@ -4469,14 +4513,20 @@ class Cart {
4469
4513
  * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/removeCoupon/).
4470
4514
  */
4471
4515
  async removeCoupon(
4472
- { xOrderingSource, xAnonymousCart, uid, buyNow, requestHeaders } = {
4473
- requestHeaders: {},
4474
- },
4516
+ {
4517
+ xOrderingSource,
4518
+ xOrderingSourceType,
4519
+ xAnonymousCart,
4520
+ uid,
4521
+ buyNow,
4522
+ requestHeaders,
4523
+ } = { requestHeaders: {} },
4475
4524
  { responseHeaders } = { responseHeaders: false }
4476
4525
  ) {
4477
4526
  const { error } = CartPlatformApplicationValidator.removeCoupon().validate(
4478
4527
  {
4479
4528
  xOrderingSource,
4529
+ xOrderingSourceType,
4480
4530
  xAnonymousCart,
4481
4531
  uid,
4482
4532
  buyNow,
@@ -4493,6 +4543,7 @@ class Cart {
4493
4543
  } = CartPlatformApplicationValidator.removeCoupon().validate(
4494
4544
  {
4495
4545
  xOrderingSource,
4546
+ xOrderingSourceType,
4496
4547
  xAnonymousCart,
4497
4548
  uid,
4498
4549
  buyNow,
@@ -4640,6 +4691,7 @@ class Cart {
4640
4691
  {
4641
4692
  body,
4642
4693
  xOrderingSource,
4694
+ xOrderingSourceType,
4643
4695
  xAnonymousCart,
4644
4696
  cartId,
4645
4697
  buyNow,
@@ -4653,6 +4705,7 @@ class Cart {
4653
4705
  {
4654
4706
  body,
4655
4707
  xOrderingSource,
4708
+ xOrderingSourceType,
4656
4709
  xAnonymousCart,
4657
4710
  cartId,
4658
4711
  buyNow,
@@ -4672,6 +4725,7 @@ class Cart {
4672
4725
  {
4673
4726
  body,
4674
4727
  xOrderingSource,
4728
+ xOrderingSourceType,
4675
4729
  xAnonymousCart,
4676
4730
  cartId,
4677
4731
  buyNow,
@@ -4742,6 +4796,7 @@ class Cart {
4742
4796
  {
4743
4797
  body,
4744
4798
  xOrderingSource,
4799
+ xOrderingSourceType,
4745
4800
  xAnonymousCart,
4746
4801
  id,
4747
4802
  buyNow,
@@ -4756,6 +4811,7 @@ class Cart {
4756
4811
  {
4757
4812
  body,
4758
4813
  xOrderingSource,
4814
+ xOrderingSourceType,
4759
4815
  xAnonymousCart,
4760
4816
  id,
4761
4817
  buyNow,
@@ -4774,6 +4830,7 @@ class Cart {
4774
4830
  {
4775
4831
  body,
4776
4832
  xOrderingSource,
4833
+ xOrderingSourceType,
4777
4834
  xAnonymousCart,
4778
4835
  id,
4779
4836
  buyNow,
@@ -4839,9 +4896,15 @@ class Cart {
4839
4896
  * @description: Selection of payment mode that supports multiple MOP(mode of payment). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/selectPaymentModeV2/).
4840
4897
  */
4841
4898
  async selectPaymentModeV2(
4842
- { body, xOrderingSource, id, buyNow, orderType, requestHeaders } = {
4843
- requestHeaders: {},
4844
- },
4899
+ {
4900
+ body,
4901
+ xOrderingSource,
4902
+ xOrderingSourceType,
4903
+ id,
4904
+ buyNow,
4905
+ orderType,
4906
+ requestHeaders,
4907
+ } = { requestHeaders: {} },
4845
4908
  { responseHeaders } = { responseHeaders: false }
4846
4909
  ) {
4847
4910
  const {
@@ -4850,6 +4913,7 @@ class Cart {
4850
4913
  {
4851
4914
  body,
4852
4915
  xOrderingSource,
4916
+ xOrderingSourceType,
4853
4917
  id,
4854
4918
  buyNow,
4855
4919
  orderType,
@@ -4867,6 +4931,7 @@ class Cart {
4867
4931
  {
4868
4932
  body,
4869
4933
  xOrderingSource,
4934
+ xOrderingSourceType,
4870
4935
  id,
4871
4936
  buyNow,
4872
4937
  orderType,
@@ -5095,6 +5160,7 @@ class Cart {
5095
5160
  {
5096
5161
  body,
5097
5162
  xOrderingSource,
5163
+ xOrderingSourceType,
5098
5164
  xAnonymousCart,
5099
5165
  id,
5100
5166
  i,
@@ -5111,6 +5177,7 @@ class Cart {
5111
5177
  {
5112
5178
  body,
5113
5179
  xOrderingSource,
5180
+ xOrderingSourceType,
5114
5181
  xAnonymousCart,
5115
5182
  id,
5116
5183
  i,
@@ -5131,6 +5198,7 @@ class Cart {
5131
5198
  {
5132
5199
  body,
5133
5200
  xOrderingSource,
5201
+ xOrderingSourceType,
5134
5202
  xAnonymousCart,
5135
5203
  id,
5136
5204
  i,
@@ -6211,6 +6279,7 @@ class Cart {
6211
6279
  async validateCouponForPayment(
6212
6280
  {
6213
6281
  xOrderingSource,
6282
+ xOrderingSourceType,
6214
6283
  id,
6215
6284
  buyNow,
6216
6285
  addressId,
@@ -6227,6 +6296,7 @@ class Cart {
6227
6296
  } = CartPlatformApplicationValidator.validateCouponForPayment().validate(
6228
6297
  {
6229
6298
  xOrderingSource,
6299
+ xOrderingSourceType,
6230
6300
  id,
6231
6301
  buyNow,
6232
6302
  addressId,
@@ -6247,6 +6317,7 @@ class Cart {
6247
6317
  } = CartPlatformApplicationValidator.validateCouponForPayment().validate(
6248
6318
  {
6249
6319
  xOrderingSource,
6320
+ xOrderingSourceType,
6250
6321
  id,
6251
6322
  buyNow,
6252
6323
  addressId,